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 () |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
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 Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
The Selection object class.
SelectionObject::SelectionObject | ( | ) |
Constructs a SelectionObject object.
Referenced by getPyObject().
SelectionObject::SelectionObject | ( | const SelectionChanges & | msg | ) |
Constructs a SelectionObject from the SelectionChanges structure.
References DocName, FeatName, SelPoses, SubNames, and TypeName.
|
explicit |
|
virtual |
std::string SelectionObject::getAsPropertyLinkSubString | ( | void | ) | const |
returns python expreasion sutably for assigning to a LinkSub property
References getObject(), Gui::Command::getObjectCmd(), and SubNames.
const char * Gui::SelectionObject::getDocName | ( | void | ) | const |
get the name of the Document of this SelctionObject
const char * Gui::SelectionObject::getFeatName | ( | void | ) | const |
get the name of the Document Object of this SelectionObject
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().
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(), isObjectTypeOf(), PartDesignGui::TaskScaledParameters::onSelectionChanged(), SurfaceGui::FillingPanel::onSelectionChanged(), SurfaceGui::FillingEdgePanel::onSelectionChanged(), SurfaceGui::FillingVertexPanel::onSelectionChanged(), SurfaceGui::GeomFillSurface::onSelectionChanged(), SurfaceGui::SectionsPanel::onSelectionChanged(), and PartGui::DlgFilletEdges::Private::SelectionObjectCompare::operator()().
const std::vector< Base::Vector3d > Gui::SelectionObject::getPickedPoints | ( | void | ) | const |
get the selection points
|
virtual |
The default implementation returns an instance of SelectionObjectPy.
Reimplemented from Base::BaseClass.
References SelectionObject().
Referenced by Gui::SelectionSingleton::sGetSelectionObject().
const std::vector< std::string > & Gui::SelectionObject::getSubNames | ( | void | ) | const |
get the SubElement name of this SelectionObject
Referenced by Gui::SelectionSingleton::getAsPropertyLinkSubList().
const char * Gui::SelectionObject::getTypeName | ( | void | ) | const |
get the Type of the selected Object
bool Gui::SelectionObject::hasSubNames | ( | void | ) | const |
are there any SubNames selected
bool SelectionObject::isObjectTypeOf | ( | const Base::Type & | typeId | ) | const |
check the selected object is a special type or derived of
References getObject().
|
friend |
|
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().
|
protected |
Referenced by getObject(), SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
|
protected |
Referenced by SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
|
protected |
Referenced by getAsPropertyLinkSubString(), SelectionObject(), and Gui::SelectionSingleton::sGetSelectionObject().
|
protected |
Referenced by SelectionObject().