Generic Python feature class which allows to behave every DocumentObject derived class as Python feature – simply by subclassing. More...
#include <FeaturePython.h>
Public Member Functions | |
FeaturePythonT () | |
virtual ~FeaturePythonT () | |
methods override DocumentObject | |
short mustExecute () const override | |
virtual DocumentObjectExecReturn * execute (void) override | |
recalculate the Feature More... | |
virtual const char * getViewProviderNameOverride (void) const override | |
virtual const char * getViewProviderName (void) const override | |
returns the type name of the ViewProvider More... | |
virtual App::DocumentObject * getSubObject (const char *subname, PyObject **pyObj, Base::Matrix4D *mat, bool transform, int depth) const override | |
virtual std::vector< std::string > getSubObjects (int reason=0) const override | |
virtual App::DocumentObject * getLinkedObject (bool recurse, Base::Matrix4D *mat, bool transform, int depth) const override | |
virtual bool hasChildElement () const override | |
return true to activate tree view group object handling More... | |
virtual int isElementVisible (const char *element) const override | |
Get sub-element visibility. More... | |
virtual int setElementVisible (const char *element, bool visible) override | |
Set sub-element visibility. More... | |
virtual bool canLinkProperties () const override | |
virtual bool allowDuplicateLabel () const override | |
virtual bool redirectSubName (std::ostringstream &ss, App::DocumentObject *topParent, App::DocumentObject *child) const override | |
virtual int canLoadPartial () const override | |
PyObject * getPyObject (void) override | |
void setPyObject (PyObject *obj) override | |
virtual void onBeforeChange (const Property *prop) override | |
virtual void onBeforeChangeLabel (std::string &newLabel) override | |
virtual void onChanged (const Property *prop) override | |
virtual void onDocumentRestored () override | |
Detailed Description
template<class FeatureT>
class App::FeaturePythonT< FeatureT >
Generic Python feature class which allows to behave every DocumentObject derived class as Python feature – simply by subclassing.
Constructor & Destructor Documentation
◆ FeaturePythonT()
App::FeaturePythonT< FeatureT >::FeaturePythonT | ( | ) |
References App::FeaturePythonImp::execute().
◆ ~FeaturePythonT()
|
virtual |
Member Function Documentation
◆ allowDuplicateLabel()
|
overridevirtual |
◆ canLinkProperties()
|
overridevirtual |
◆ canLoadPartial()
|
overridevirtual |
References App::FeaturePythonImp::onBeforeChange().
◆ execute()
|
overridevirtual |
recalculate the Feature
Referenced by draftobjects.facebinder.Facebinder::addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup::boneStateList(), ArchSite.Compass::buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), ArchPanel.PanelCut::getWires(), ArchSchedule.CommandArchSchedule::IsActive(), Mod.PartDesign.Scripts.Spring.MySpring::onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped::onChanged(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder::onChanged(), PathScripts.PathStock.StockFromBase::onChanged(), PathScripts.PathStock.StockCreateBox::onChanged(), PathScripts.PathStock.StockCreateCylinder::onChanged(), FeaturePython.DistanceBolt::onChanged(), draftobjects.draftlink.DraftLink::onDocumentRestored(), and draftobjects.patharray.PathArray::onDocumentRestored().
◆ getLinkedObject()
|
overridevirtual |
◆ getPyObject()
|
override |
Referenced by PartDesign::Feature::getFeatureBody().
◆ getSubObject()
|
overridevirtual |
◆ getSubObjects()
|
overridevirtual |
◆ getViewProviderName()
|
overridevirtual |
returns the type name of the ViewProvider
Referenced by PartDesign::Feature::getFeatureBody().
◆ getViewProviderNameOverride()
|
overridevirtual |
References App::FeaturePythonImp::getSubObjects().
◆ hasChildElement()
|
overridevirtual |
return true to activate tree view group object handling
◆ isElementVisible()
|
overridevirtual |
Get sub-element visibility.
◆ mustExecute()
|
override |
◆ onBeforeChange()
|
overrideprotectedvirtual |
◆ onBeforeChangeLabel()
|
overrideprotectedvirtual |
◆ onChanged()
|
overrideprotectedvirtual |
Referenced by draftviewproviders.view_base.ViewProviderDraft::attach(), ArchSite.Compass::buildCoordinates(), draftobjects.wire.Wire::execute(), ArchAxis.CommandArchGrid::IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::updateData(), draftviewproviders.view_label.ViewProviderLabel::updateData(), DraftLayer.ViewProviderLayer::updateData(), ArchBuildingPart.ViewProviderBuildingPart::updateData(), ArchPanel.ViewProviderPanelCut::updateData(), and ArchPanel.ViewProviderPanelSheet::updateData().
◆ onDocumentRestored()
|
overrideprotectedvirtual |
◆ redirectSubName()
|
overridevirtual |
References App::FeaturePythonImp::getPyObject().
◆ setElementVisible()
|
overridevirtual |
Set sub-element visibility.
◆ setPyObject()
|
override |
The documentation for this class was generated from the following files:
- src/App/FeaturePython.h
- src/App/FeaturePython.cpp
- src/App/Link.cpp
- src/App/Placement.cpp