Public Member Functions | |
bool | getShape (const App::DocumentObject *obj, TopoShape &shape, const char *subname=nullptr) |
void | init () |
void | setShape (const App::DocumentObject *obj, const TopoShape &shape, const char *subname=nullptr) |
void | slotChanged (const App::DocumentObject &obj, const App::Property &prop) |
void | slotClear (const App::DocumentObject &obj) |
void | slotDeleteDocument (const App::Document &doc) |
Public Attributes | |
std::unordered_map< const App::Document *, std::map< std::pair< const App::DocumentObject *, std::string >,TopoShape > > | cache |
bool | inited = false |
bool ShapeCache::getShape | ( | const App::DocumentObject * | obj, |
TopoShape & | shape, | ||
const char * | subname = nullptr |
||
) |
void ShapeCache::init | ( | void | ) |
void ShapeCache::setShape | ( | const App::DocumentObject * | obj, |
const TopoShape & | shape, | ||
const char * | subname = nullptr |
||
) |
void ShapeCache::slotChanged | ( | const App::DocumentObject & | obj, |
const App::Property & | prop | ||
) |
References App::Property::getName(), and App::Property::isValidName().
Referenced by init().
void ShapeCache::slotClear | ( | const App::DocumentObject & | obj | ) |
Referenced by init().
void ShapeCache::slotDeleteDocument | ( | const App::Document & | doc | ) |
Referenced by init().
std::unordered_map<const App::Document*, std::map<std::pair<const App::DocumentObject*, std::string> ,TopoShape> > ShapeCache::cache |
Referenced by Part::Feature::clearShapeCache().
bool ShapeCache::inited = false |