The Selection object class. More...
#include <SelectionObject.h>
Public Member Functions | |
std::string getAsPropertyLinkSubString (void) const | |
returns python expreasion sutably for assigning to a LinkSub property More... | |
const char * getDocName (void) const | |
get the name of the Document of this SelctionObject More... | |
const char * getFeatName (void) const | |
get the name of the Document Object of this SelectionObject More... | |
App::DocumentObject * getObject (void) | |
returns the selected DocumentObject or NULL if the object is already deleted More... | |
const App::DocumentObject * getObject (void) const | |
returns the selected DocumentObject or NULL if the object is already deleted More... | |
const std::vector< Base::Vector3d > getPickedPoints (void) const | |
get the selection points More... | |
PyObject * getPyObject () | |
The default implementation returns an instance of SelectionObjectPy. More... | |
const std::vector< std::string > & getSubNames (void) const | |
get the SubElement name of this SelectionObject More... | |
const char * getTypeName (void) const | |
get the Type of the selected Object More... | |
bool hasSubNames (void) const | |
are there any SubNames selected More... | |
bool isObjectTypeOf (const Base::Type &typeId) const | |
check the selected object is a special type or derived of More... | |
SelectionObject () | |
Constructs a SelectionObject object. More... | |
SelectionObject (App::DocumentObject *) | |
SelectionObject (const SelectionChanges &msg) | |
virtual ~SelectionObject () | |
![]() | |
BaseClass () | |
Construction. More... | |
virtual Type getTypeId (void) const | |
bool isDerivedFrom (const Type type) const | |
virtual void setPyObject (PyObject *) | |
virtual ~BaseClass () | |
Destruction. More... | |
Protected Attributes | |
std::string DocName | |
std::string FeatName | |
std::vector< Base::Vector3d > SelPoses | |
std::vector< std::string > SubNames | |
std::string TypeName | |
Friends | |
class SelectionSingleton | |
Additional Inherited Members | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
Detailed Description
The Selection object class.
Constructor & Destructor Documentation
◆ SelectionObject() [1/3]
SelectionObject::SelectionObject | ( | ) |
Constructs a SelectionObject object.
Referenced by getPyObject().
◆ SelectionObject() [2/3]
SelectionObject::SelectionObject | ( | const SelectionChanges & | msg | ) |
Constructs a SelectionObject from the SelectionChanges structure.
References DocName, FeatName, SelPoses, SubNames, and TypeName.
◆ SelectionObject() [3/3]
|
explicit |
◆ ~SelectionObject()
|
virtual |
Member Function Documentation
◆ getAsPropertyLinkSubString()
std::string SelectionObject::getAsPropertyLinkSubString | ( | void | ) | const |
returns python expreasion sutably for assigning to a LinkSub property
References getObject(), Gui::Command::getObjectCmd(), and SubNames.
◆ getDocName()
const char* Gui::SelectionObject::getDocName | ( | void | ) | const |
get the name of the Document of this SelctionObject
◆ getFeatName()
const char* Gui::SelectionObject::getFeatName | ( | void | ) | const |
get the name of the Document Object of this SelectionObject
◆ getObject() [1/2]
App::DocumentObject * SelectionObject::getObject | ( | void | ) |
returns the selected DocumentObject or NULL if the object is already deleted
References DocName, FeatName, App::GetApplication(), and App::Application::getDocument().
◆ getObject() [2/2]
const App::DocumentObject * SelectionObject::getObject | ( | void | ) | const |
returns the selected DocumentObject or NULL if the object is already deleted
References DocName, FeatName, App::GetApplication(), and App::Application::getDocument().
Referenced by Gui::SelectionSingleton::getAsPropertyLinkSubList(), getAsPropertyLinkSubString(), Gui::SelectionObjectPy::getSubObjects(), isObjectTypeOf(), PartDesignGui::TaskScaledParameters::onSelectionChanged(), SurfaceGui::FillingVertexPanel::onSelectionChanged(), SurfaceGui::FillingUnboundPanel::onSelectionChanged(), SurfaceGui::GeomFillSurface::onSelectionChanged(), SurfaceGui::FillingPanel::onSelectionChanged(), and PartGui::DlgFilletEdges::Private::SelectionObjectCompare::operator()().
◆ getPickedPoints()
const std::vector<Base::Vector3d> Gui::SelectionObject::getPickedPoints | ( | void | ) | const |
get the selection points
Referenced by Gui::SelectionObjectPy::getPickedPoints().
◆ getPyObject()
|
virtual |
The default implementation returns an instance of SelectionObjectPy.
Reimplemented from Base::BaseClass.
References SelectionObject().
Referenced by Gui::SelectionSingleton::sGetSelectionObject().
◆ getSubNames()
const std::vector<std::string>& Gui::SelectionObject::getSubNames | ( | void | ) | const |
get the SubElement name of this SelectionObject
Referenced by Gui::SelectionSingleton::getAsPropertyLinkSubList(), and Gui::SelectionObjectPy::getSubElementNames().
◆ getTypeName()
const char* Gui::SelectionObject::getTypeName | ( | void | ) | const |
get the Type of the selected Object
◆ hasSubNames()
bool Gui::SelectionObject::hasSubNames | ( | void | ) | const |
are there any SubNames selected
◆ isObjectTypeOf()
bool SelectionObject::isObjectTypeOf | ( | const Base::Type & | typeId | ) | const |
check the selected object is a special type or derived of
References getObject().
Referenced by Gui::SelectionObjectPy::isObjectTypeOf().
Friends And Related Function Documentation
◆ SelectionSingleton
|
friend |
Member Data Documentation
◆ DocName
|
protected |
Referenced by getObject(), SelectionObject(), Gui::SelectionSingleton::sGetSelectionObject(), Mod.Test.Document.DocumentPlatformCases::testColorList(), Mod.Test.Document.DocumentPlatformCases::testFloatList(), Mod.Test.Document.DocumentPlatformCases::testPoints(), and Mod.Test.Document.DocumentPlatformCases::testVectorList().
◆ FeatName
|
protected |
Referenced by getObject(), SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
◆ SelPoses
|
protected |
Referenced by SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
◆ SubNames
|
protected |
Referenced by getAsPropertyLinkSubString(), SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
◆ TypeName
|
protected |
Referenced by SelectionObject().
The documentation for this class was generated from the following files:
- src/Gui/SelectionObject.h
- src/Gui/SelectionObject.cpp