#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 | getObjectFullName (const char *docName=nullptr) const |
Return docname::objname (label) More... | |
std::string | getOldElementName (int *index=nullptr) 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::string | getSubObjectFullName (const char *docName=nullptr) const |
Return docname::objname.subname (label) 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 App::DocumentObject *) |
SubObjectT & | operator= (const DocumentObjectT &) |
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... | |
void | setSubName (const std::string &subname) |
Set the subname path to the sub-object. More... | |
SubObjectT () | |
SubObjectT (const char *docName, const char *objName, const char *subname) | |
SubObjectT (const DocumentObject *) | |
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 Document *, const std::string &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 () | |
SubObjectT::SubObjectT | ( | ) |
Constructor
SubObjectT::SubObjectT | ( | const SubObjectT & | other | ) |
Constructor
SubObjectT::SubObjectT | ( | SubObjectT && | other | ) |
Constructor
SubObjectT::SubObjectT | ( | const DocumentObjectT & | obj, |
const char * | subname | ||
) |
Constructor
SubObjectT::SubObjectT | ( | const DocumentObject * | obj, |
const char * | subname | ||
) |
Constructor
SubObjectT::SubObjectT | ( | const DocumentObject * | obj | ) |
Constructor
SubObjectT::SubObjectT | ( | const char * | docName, |
const char * | objName, | ||
const char * | subname | ||
) |
Constructor
const char * SubObjectT::getElementName | ( | ) | const |
Return the sub-element (Face, Edge, etc) of the subname path.
References Data::ComplexGeoData::findElementName().
std::string SubObjectT::getNewElementName | ( | ) | const |
Return the new style sub-element name.
References App::DocumentObjectT::getObject(), draftfunctions.move::move(), and App::GeoFeature::resolveElement().
std::string SubObjectT::getObjectFullName | ( | const char * | docName = nullptr | ) | const |
Return docname::objname (label)
docName | optional document name. The document prefix will only be printed if it is different then the given 'doc'. |
References App::DocumentObjectT::getDocument(), App::DocumentObjectT::getDocumentName(), App::DocumentObjectT::getObjectLabel(), and App::DocumentObjectT::getObjectName().
Referenced by getSubObjectFullName().
std::string SubObjectT::getOldElementName | ( | int * | index = nullptr | ) | const |
Return the old style sub-element name.
index | if given, then return the element type, and extract the index |
References App::DocumentObjectT::getObject(), draftfunctions.move::move(), and App::GeoFeature::resolveElement().
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().
std::string SubObjectT::getSubNameNoElement | ( | ) | const |
Return the subname path without sub-element.
References Data::ComplexGeoData::noElementName().
App::DocumentObject * SubObjectT::getSubObject | ( | ) | const |
Return the sub-object.
References App::DocumentObjectT::getObject().
Referenced by getSubObjectFullName(), and Gui::PropertyEditor::LinkSelection::select().
std::string SubObjectT::getSubObjectFullName | ( | const char * | docName = nullptr | ) | const |
Return docname::objname.subname (label)
doc | optional document name. The document prefix will only be printed if it is different then the given 'doc'. |
References App::DocumentObjectT::getDocument(), App::DocumentObjectT::getDocumentName(), getObjectFullName(), App::DocumentObjectT::getObjectName(), and getSubObject().
std::vector< App::DocumentObject * > SubObjectT::getSubObjectList | ( | ) | const |
Return all objects along the subname path.
References App::DocumentObjectT::getObject().
std::string SubObjectT::getSubObjectPython | ( | bool | force = true | ) | const |
bool SubObjectT::operator< | ( | const SubObjectT & | other | ) | const |
SubObjectT & SubObjectT::operator= | ( | const App::DocumentObject * | other | ) |
Assignment operator
SubObjectT & SubObjectT::operator= | ( | const DocumentObjectT & | other | ) |
Assignment operator
SubObjectT & SubObjectT::operator= | ( | const SubObjectT & | other | ) |
Assignment operator
SubObjectT & SubObjectT::operator= | ( | SubObjectT && | other | ) |
Assignment operator
References draftfunctions.move::move().
bool SubObjectT::operator== | ( | const SubObjectT & | other | ) | const |
Equality operator
void SubObjectT::setSubName | ( | const char * | subname | ) |
Set the subname path to the sub-object.
Referenced by Gui::SelectionSingleton::slotSelectionChanged().
void App::SubObjectT::setSubName | ( | const std::string & | subname | ) |
Set the subname path to the sub-object.