#include <DocumentObserver.h>
Public Member Functions | |
const char * | getElementName () const |
Return the sub-element (Face, Edge, etc) of the subname path. More... | |
std::string | getNewElementName () const |
Return the new style sub-element name. More... | |
std::string | getOldElementName (int *index=0) const |
Return the old style sub-element name. More... | |
const std::string & | getSubName () const |
Return the subname path. More... | |
std::string | getSubNameNoElement () const |
Return the subname path without sub-element. More... | |
DocumentObject * | getSubObject () const |
Return the sub-object. More... | |
std::vector< DocumentObject * > | getSubObjectList () const |
Return all objects along the subname path. More... | |
std::string | getSubObjectPython (bool force=true) const |
bool | operator< (const SubObjectT &other) const |
SubObjectT & | operator= (const SubObjectT &) |
SubObjectT & | operator= (SubObjectT &&) |
bool | operator== (const SubObjectT &) const |
void | setSubName (const char *subname) |
Set the subname path to the sub-object. More... | |
SubObjectT () | |
SubObjectT (const char *docName, const char *objName, const char *subname) | |
SubObjectT (const DocumentObject *, const char *subname) | |
SubObjectT (const DocumentObjectT &obj, const char *subname) | |
SubObjectT (const SubObjectT &) | |
SubObjectT (SubObjectT &&) | |
Public Member Functions inherited from App::DocumentObjectT | |
DocumentObjectT () | |
DocumentObjectT (const char *docName, const char *objName) | |
DocumentObjectT (const DocumentObject *) | |
DocumentObjectT (const DocumentObjectT &) | |
DocumentObjectT (const Property *) | |
DocumentObjectT (DocumentObjectT &&) | |
Document * | getDocument () const |
const std::string & | getDocumentName () const |
std::string | getDocumentPython () const |
DocumentObject * | getObject () const |
template<typename T > | |
T * | getObjectAs () const |
const std::string & | getObjectLabel () const |
const std::string & | getObjectName () const |
std::string | getObjectPython () const |
Property * | getProperty () const |
template<typename T > | |
T * | getPropertyAs () const |
const std::string & | getPropertyName () const |
std::string | getPropertyPython () const |
void | operator= (const DocumentObject *) |
DocumentObjectT & | operator= (const DocumentObjectT &) |
void | operator= (const Property *) |
DocumentObjectT & | operator= (DocumentObjectT &&) |
bool | operator== (const DocumentObjectT &) const |
~DocumentObjectT () | |
Constructor & Destructor Documentation
◆ SubObjectT() [1/6]
SubObjectT::SubObjectT | ( | ) |
Constructor
◆ SubObjectT() [2/6]
SubObjectT::SubObjectT | ( | const SubObjectT & | other | ) |
Constructor
◆ SubObjectT() [3/6]
SubObjectT::SubObjectT | ( | SubObjectT && | other | ) |
Constructor
◆ SubObjectT() [4/6]
SubObjectT::SubObjectT | ( | const DocumentObjectT & | obj, |
const char * | subname | ||
) |
Constructor
◆ SubObjectT() [5/6]
SubObjectT::SubObjectT | ( | const DocumentObject * | obj, |
const char * | subname | ||
) |
Constructor
◆ SubObjectT() [6/6]
SubObjectT::SubObjectT | ( | const char * | docName, |
const char * | objName, | ||
const char * | subname | ||
) |
Constructor
Member Function Documentation
◆ getElementName()
const char * SubObjectT::getElementName | ( | ) | const |
Return the sub-element (Face, Edge, etc) of the subname path.
References Data::ComplexGeoData::findElementName().
◆ getNewElementName()
std::string SubObjectT::getNewElementName | ( | ) | const |
Return the new style sub-element name.
References App::DocumentObjectT::getObject(), and App::GeoFeature::resolveElement().
◆ getOldElementName()
std::string SubObjectT::getOldElementName | ( | int * | index = 0 | ) | const |
Return the old style sub-element name.
- Parameters
-
index if given, then return the element type, and extract the index
References App::DocumentObjectT::getObject(), and App::GeoFeature::resolveElement().
◆ getSubName()
const std::string & SubObjectT::getSubName | ( | ) | const |
Return the subname path.
Referenced by Gui::Dialog::DlgPropertyLink::formatObject(), operator<(), Gui::PropertyEditor::LinkSelection::select(), Gui::SelectionSingleton::slotSelectionChanged(), and MeshPartGui::Mesh2ShapeGmsh::writeProject().
◆ getSubNameNoElement()
std::string SubObjectT::getSubNameNoElement | ( | ) | const |
Return the subname path without sub-element.
References Data::ComplexGeoData::noElementName().
◆ getSubObject()
App::DocumentObject * SubObjectT::getSubObject | ( | ) | const |
Return the sub-object.
References App::DocumentObjectT::getObject().
Referenced by Gui::PropertyEditor::LinkSelection::select().
◆ getSubObjectList()
std::vector< App::DocumentObject * > SubObjectT::getSubObjectList | ( | ) | const |
Return all objects along the subname path.
References App::DocumentObjectT::getObject().
◆ getSubObjectPython()
std::string SubObjectT::getSubObjectPython | ( | bool | force = true | ) | const |
◆ operator<()
bool SubObjectT::operator< | ( | const SubObjectT & | other | ) | const |
◆ operator=() [1/2]
SubObjectT & SubObjectT::operator= | ( | const SubObjectT & | other | ) |
Assignment operator
◆ operator=() [2/2]
SubObjectT & SubObjectT::operator= | ( | SubObjectT && | other | ) |
Assignment operator
◆ operator==()
bool SubObjectT::operator== | ( | const SubObjectT & | other | ) | const |
Equality operator
◆ setSubName()
void SubObjectT::setSubName | ( | const char * | subname | ) |
Set the subname path to the sub-object.
Referenced by Gui::SelectionSingleton::slotSelectionChanged().
The documentation for this class was generated from the following files:
- src/App/DocumentObserver.h
- src/App/DocumentObserver.cpp