#include <ViewProviderPythonFeature.h>
Public Member Functions | |
std::vector < App::DocumentObject * > | claimChildren () const |
QIcon | getIcon () const |
PyObject * | getPyObject () |
virtual Base::Type | getTypeId (void) const |
ViewProviderPythonFeatureT () | |
constructor. | |
virtual | ~ViewProviderPythonFeatureT () |
destructor. | |
Access properties | |
virtual void | addDynamicProperties (const App::PropertyContainer *cont) |
App::Property * | addDynamicProperty (const char *type, const char *name=0, const char *group=0, const char *doc=0, short attr=0, bool ro=false, bool hidden=false) |
App::Property * | getDynamicPropertyByName (const char *name) const |
std::vector< std::string > | getDynamicPropertyNames () const |
virtual const char * | getName (const App::Property *prop) const |
get the name of a property | |
virtual App::Property * | getPropertyByName (const char *name) const |
find a property by its name | |
virtual void | getPropertyMap (std::map< std::string, App::Property * > &Map) const |
get all properties of the class (including parent) | |
Update data methods | |
virtual void | attach (App::DocumentObject *obj) |
virtual void | getTaskViewContent (std::vector< Gui::TaskView::TaskContent * > &c) const |
virtual void | updateData (const App::Property *prop) |
Restoring view provider from document load | |
virtual void | finishRestoring () |
virtual void | startRestoring () |
Nodes | |
virtual SoSeparator * | getBackRoot () const |
virtual SoSeparator * | getFrontRoot () const |
virtual SoSeparator * | getRoot () |
Display methods | |
virtual const char * | getDefaultDisplayMode () const |
get the default display mode | |
virtual std::vector< std::string > | getDisplayModes (void) const |
returns a list of all possible modes | |
virtual void | setDisplayMode (const char *ModeName) |
set the display mode | |
Selection handling | |
virtual std::string | getElement (const SoPickedPoint *pp) const |
virtual std::vector < Base::Vector3d > | getSelectionShape (const char *Element) const |
virtual bool | useNewSelectionModel () const |
Property attributes | |
const char * | getPropertyDocumentation (const char *name) const |
get the Group of a named Property | |
const char * | getPropertyDocumentation (const App::Property *prop) const |
get the Group of a Property | |
const char * | getPropertyGroup (const char *name) const |
get the Group of a named Property | |
const char * | getPropertyGroup (const App::Property *prop) const |
get the Group of a Property | |
short | getPropertyType (const char *name) const |
get the Type of a named Property | |
short | getPropertyType (const App::Property *prop) const |
get the Type of a Property | |
bool | isHidden (const char *name) const |
check if the named property is hidden | |
bool | isHidden (const App::Property *prop) const |
check if the property is hidden | |
bool | isReadOnly (const char *name) const |
check if the nameed property is read-only | |
bool | isReadOnly (const App::Property *prop) const |
check if the property is read-only | |
Property serialization | |
void | Restore (Base::XMLReader &reader) |
void | Save (Base::Writer &writer) const |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
virtual void | onChanged (const App::Property *prop) |
virtual bool | setEdit (int ModNum) |
is called by the document when the provider goes in edit mode | |
virtual void | unsetEdit (int ModNum) |
is called when you loose the edit mode | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Definition at line 80 of file ViewProviderPythonFeature.h.
Gui::ViewProviderPythonFeatureT< ViewProviderT >::ViewProviderPythonFeatureT | ( | ) | [inline] |
virtual Gui::ViewProviderPythonFeatureT< ViewProviderT >::~ViewProviderPythonFeatureT | ( | ) | [inline, virtual] |
destructor.
Definition at line 92 of file ViewProviderPythonFeature.h.
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::addDynamicProperties | ( | const App::PropertyContainer * | cont | ) | [inline, virtual] |
Definition at line 197 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::addDynamicProperties().
App::Property* Gui::ViewProviderPythonFeatureT< ViewProviderT >::addDynamicProperty | ( | const char * | type, | |
const char * | name = 0 , |
|||
const char * | group = 0 , |
|||
const char * | doc = 0 , |
|||
short | attr = 0 , |
|||
bool | ro = false , |
|||
bool | hidden = false | |||
) | [inline] |
Definition at line 185 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::addDynamicProperty(), and group.
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::attach | ( | App::DocumentObject * | obj | ) | [inline, virtual] |
Definition at line 138 of file ViewProviderPythonFeature.h.
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::onChanged().
std::vector<App::DocumentObject*> Gui::ViewProviderPythonFeatureT< ViewProviderT >::claimChildren | ( | void | ) | const [inline] |
Definition at line 105 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::claimChildren().
void * Gui::ViewProviderPythonGeometry::create | ( | void | ) | [inline, static] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::finishRestoring | ( | ) | [inline, virtual] |
Definition at line 157 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::finishRestoring().
virtual SoSeparator* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getBackRoot | ( | void | ) | const [inline, virtual] |
Definition at line 118 of file ViewProviderPythonFeature.h.
Base::Type Gui::ViewProviderPythonGeometry::getClassTypeId | ( | void | ) | [inline, static] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
virtual const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDefaultDisplayMode | ( | ) | const [inline, virtual] |
get the default display mode
Definition at line 165 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::getDefaultDisplayMode().
virtual std::vector<std::string> Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDisplayModes | ( | void | ) | const [inline, virtual] |
returns a list of all possible modes
Definition at line 169 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::getDisplayModes().
App::Property* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDynamicPropertyByName | ( | const char * | name | ) | const [inline] |
Definition at line 194 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getDynamicPropertyByName().
std::vector<std::string> Gui::ViewProviderPythonFeatureT< ViewProviderT >::getDynamicPropertyNames | ( | ) | const [inline] |
Definition at line 191 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getDynamicPropertyNames().
virtual std::string Gui::ViewProviderPythonFeatureT< ViewProviderT >::getElement | ( | const SoPickedPoint * | pp | ) | const [inline, virtual] |
Definition at line 128 of file ViewProviderPythonFeature.h.
virtual SoSeparator* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getFrontRoot | ( | void | ) | const [inline, virtual] |
Definition at line 114 of file ViewProviderPythonFeature.h.
QIcon Gui::ViewProviderPythonFeatureT< ViewProviderT >::getIcon | ( | void | ) | const [inline] |
Definition at line 98 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::getIcon().
virtual const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getName | ( | const App::Property * | prop | ) | const [inline, virtual] |
get the name of a property
Definition at line 209 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getName().
virtual App::Property* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyByName | ( | const char * | name | ) | const [inline, virtual] |
find a property by its name
Definition at line 205 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyByName().
const App::PropertyData & Gui::ViewProviderPythonGeometry::getPropertyData | ( | void | ) | const [inline, protected, virtual] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
const App::PropertyData * Gui::ViewProviderPythonGeometry::getPropertyDataPtr | ( | void | ) | [inline, static, protected] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyDocumentation | ( | const char * | name | ) | const [inline] |
get the Group of a named Property
Definition at line 237 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyDocumentation().
const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyDocumentation | ( | const App::Property * | prop | ) | const [inline] |
get the Group of a Property
Definition at line 233 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyDocumentation().
const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyGroup | ( | const char * | name | ) | const [inline] |
get the Group of a named Property
Definition at line 229 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyGroup().
const char* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyGroup | ( | const App::Property * | prop | ) | const [inline] |
get the Group of a Property
Definition at line 225 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyGroup().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyMap | ( | std::map< std::string, App::Property * > & | Map | ) | const [inline, virtual] |
get all properties of the class (including parent)
Definition at line 201 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyMap().
short Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyType | ( | const char * | name | ) | const [inline] |
get the Type of a named Property
Definition at line 221 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyType().
short Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPropertyType | ( | const App::Property * | prop | ) | const [inline] |
get the Type of a Property
Definition at line 217 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::getPropertyType().
PyObject* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getPyObject | ( | void | ) | [inline] |
Definition at line 268 of file ViewProviderPythonFeature.h.
virtual SoSeparator* Gui::ViewProviderPythonFeatureT< ViewProviderT >::getRoot | ( | void | ) | [inline, virtual] |
Definition at line 111 of file ViewProviderPythonFeature.h.
virtual std::vector<Base::Vector3d> Gui::ViewProviderPythonFeatureT< ViewProviderT >::getSelectionShape | ( | const char * | Element | ) | const [inline, virtual] |
Definition at line 131 of file ViewProviderPythonFeature.h.
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::getTaskViewContent | ( | std::vector< Gui::TaskView::TaskContent * > & | c | ) | const [inline, virtual] |
Definition at line 147 of file ViewProviderPythonFeature.h.
Base::Type Gui::ViewProviderPythonGeometry::getTypeId | ( | void | ) | const [inline, virtual] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
void Gui::ViewProviderPythonGeometry::init | ( | void | ) | [inline, static] |
Definition at line 581 of file ViewProviderPythonFeature.cpp.
References PROPERTY_SOURCE_TEMPLATE.
Referenced by initMeshGui(), initPartGui(), initPointsGui(), initSketcherGui(), and Gui::Application::initTypes().
bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::isHidden | ( | const char * | name | ) | const [inline] |
check if the named property is hidden
Definition at line 253 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::isHidden().
bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::isHidden | ( | const App::Property * | prop | ) | const [inline] |
check if the property is hidden
Definition at line 249 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::isHidden().
bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::isReadOnly | ( | const char * | name | ) | const [inline] |
check if the nameed property is read-only
Definition at line 245 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::isReadOnly().
bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::isReadOnly | ( | const App::Property * | prop | ) | const [inline] |
check if the property is read-only
Definition at line 241 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::isReadOnly().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::onChanged | ( | const App::Property * | prop | ) | [inline, protected, virtual] |
void Gui::ViewProviderPythonFeatureT< ViewProviderT >::Restore | ( | Base::XMLReader & | reader | ) | [inline] |
Definition at line 263 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::Restore().
void Gui::ViewProviderPythonFeatureT< ViewProviderT >::Save | ( | Base::Writer & | writer | ) | const [inline] |
Definition at line 260 of file ViewProviderPythonFeature.h.
References App::DynamicProperty::Save().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::setDisplayMode | ( | const char * | ModeName | ) | [inline, virtual] |
set the display mode
Definition at line 176 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::setDisplayMode().
virtual bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::setEdit | ( | int | ModNum | ) | [inline, protected, virtual] |
is called by the document when the provider goes in edit mode
Definition at line 295 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::setEdit().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::startRestoring | ( | ) | [inline, virtual] |
Definition at line 154 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::startRestoring().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::unsetEdit | ( | int | ModNum | ) | [inline, protected, virtual] |
is called when you loose the edit mode
Definition at line 302 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::unsetEdit().
virtual void Gui::ViewProviderPythonFeatureT< ViewProviderT >::updateData | ( | const App::Property * | prop | ) | [inline, virtual] |
Definition at line 143 of file ViewProviderPythonFeature.h.
References Gui::ViewProviderPythonFeatureImp::updateData().
virtual bool Gui::ViewProviderPythonFeatureT< ViewProviderT >::useNewSelectionModel | ( | void | ) | const [inline, virtual] |
Definition at line 125 of file ViewProviderPythonFeature.h.