App::SubObjectT Class Reference

#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...
 
DocumentObjectgetSubObject () 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
 
SubObjectToperator= (const App::DocumentObject *)
 
SubObjectToperator= (const DocumentObjectT &)
 
SubObjectToperator= (const SubObjectT &)
 
SubObjectToperator= (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 &&)
 
DocumentgetDocument () const
 
const std::string & getDocumentName () const
 
std::string getDocumentPython () const
 
DocumentObjectgetObject () const
 
template<typename T >
T * getObjectAs () const
 
const std::string & getObjectLabel () const
 
const std::string & getObjectName () const
 
std::string getObjectPython () const
 
PropertygetProperty () const
 
template<typename T >
T * getPropertyAs () const
 
const std::string & getPropertyName () const
 
std::string getPropertyPython () const
 
void operator= (const DocumentObject *)
 
DocumentObjectToperator= (const DocumentObjectT &)
 
void operator= (const Property *)
 
DocumentObjectToperator= (DocumentObjectT &&)
 
bool operator== (const DocumentObjectT &) const
 
 ~DocumentObjectT ()
 

Constructor & Destructor Documentation

◆ SubObjectT() [1/7]

SubObjectT::SubObjectT ( )

Constructor

◆ SubObjectT() [2/7]

SubObjectT::SubObjectT ( const SubObjectT other)

Constructor

◆ SubObjectT() [3/7]

SubObjectT::SubObjectT ( SubObjectT &&  other)

Constructor

◆ SubObjectT() [4/7]

SubObjectT::SubObjectT ( const DocumentObjectT obj,
const char *  subname 
)

Constructor

◆ SubObjectT() [5/7]

SubObjectT::SubObjectT ( const DocumentObject obj,
const char *  subname 
)

Constructor

◆ SubObjectT() [6/7]

SubObjectT::SubObjectT ( const DocumentObject obj)

Constructor

◆ SubObjectT() [7/7]

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

◆ getObjectFullName()

std::string SubObjectT::getObjectFullName ( const char *  docName = nullptr) const

Return docname::objname (label)

Parameters
docNameoptional 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().

◆ getOldElementName()

std::string SubObjectT::getOldElementName ( int index = nullptr) const

Return the old style sub-element name.

Parameters
indexif given, then return the element type, and extract the index

References App::DocumentObjectT::getObject(), draftfunctions.move::move(), and App::GeoFeature::resolveElement().

◆ getSubName()

◆ getSubNameNoElement()

std::string SubObjectT::getSubNameNoElement ( ) const

Return the subname path without sub-element.

References Data::ComplexGeoData::noElementName().

◆ getSubObject()

App::DocumentObject * SubObjectT::getSubObject ( ) const

◆ getSubObjectFullName()

std::string SubObjectT::getSubObjectFullName ( const char *  docName = nullptr) const

Return docname::objname.subname (label)

Parameters
docoptional 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().

◆ 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<()

◆ operator=() [1/4]

SubObjectT & SubObjectT::operator= ( const App::DocumentObject other)

Assignment operator

◆ operator=() [2/4]

SubObjectT & SubObjectT::operator= ( const DocumentObjectT other)

Assignment operator

◆ operator=() [3/4]

SubObjectT & SubObjectT::operator= ( const SubObjectT other)

Assignment operator

◆ operator=() [4/4]

SubObjectT & SubObjectT::operator= ( SubObjectT &&  other)

Assignment operator

References draftfunctions.move::move().

◆ operator==()

bool SubObjectT::operator== ( const SubObjectT other) const

Equality operator

◆ setSubName() [1/2]

void SubObjectT::setSubName ( const char *  subname)

Set the subname path to the sub-object.

Referenced by Gui::SelectionSingleton::slotSelectionChanged().

◆ setSubName() [2/2]

void App::SubObjectT::setSubName ( const std::string &  subname)

Set the subname path to the sub-object.


The documentation for this class was generated from the following files: