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 |
virtual void | editProperty (const char *propName) override |
PyObject * | getPyObject (void) override |
void | setPyObject (PyObject *obj) override |
FeaturePythonT (const FeaturePythonT &)=delete | |
FeaturePythonT (FeaturePythonT &&)=delete | |
FeaturePythonT & | operator= (const FeaturePythonT &)=delete |
FeaturePythonT & | operator= (FeaturePythonT &&)=delete |
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 |
Generic Python feature class which allows to behave every DocumentObject derived class as Python feature – simply by subclassing.
App::FeaturePythonT< FeatureT >::FeaturePythonT | ( | ) |
|
virtual |
|
delete |
|
delete |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
References App::FeaturePythonImp::canLoadPartial().
|
overridevirtual |
References App::FeaturePythonImp::editProperty().
|
overridevirtual |
recalculate the Feature
References App::FeaturePythonImp::execute(), and App::DocumentObject::StdReturn.
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.DistanceBolt.DistanceBolt::onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder::onChanged(), Mod.PartDesign.Scripts.Spring.MySpring::onChanged(), FeaturePython.DistanceBolt::onChanged(), PathScripts.PathStock.StockFromBase::onChanged(), PathScripts.PathStock.StockCreateBox::onChanged(), PathScripts.PathStock.StockCreateCylinder::onChanged(), draftobjects.draftlink.DraftLink::onDocumentRestored(), draftobjects.patharray.PathArray::onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray::onDocumentRestored().
|
overridevirtual |
References App::FeaturePythonImp::getLinkedObject().
|
override |
References App::FeaturePythonImp::getPyObject().
|
overridevirtual |
References App::FeaturePythonImp::getSubObject().
|
overridevirtual |
References App::FeaturePythonImp::getSubObjects().
|
overridevirtual |
returns the type name of the ViewProvider
|
overridevirtual |
References App::FeaturePythonImp::getViewProviderName().
|
overridevirtual |
return true to activate tree view group object handling
References App::FeaturePythonImp::Accepted, App::FeaturePythonImp::hasChildElement(), and App::FeaturePythonImp::Rejected.
|
overridevirtual |
Get sub-element visibility.
References App::FeaturePythonImp::isElementVisible().
|
override |
References App::FeaturePythonImp::mustExecute().
|
overrideprotectedvirtual |
References App::FeaturePythonImp::onBeforeChange().
Referenced by PathScripts.PathGui.QuantitySpinBox::updateProperty().
|
overrideprotectedvirtual |
References App::FeaturePythonImp::onBeforeChangeLabel().
|
overrideprotectedvirtual |
References App::PropertyPythonObject::getValue(), App::FeaturePythonImp::init(), and App::FeaturePythonImp::onChanged().
Referenced by ArchStructure.CommandStructuralSystem::Activated(), draftviewproviders.view_base.ViewProviderDraft::attach(), ArchSite.Compass::buildCoordinates(), draftobjects.wire.Wire::execute(), ArchBuildingPart.ViewProviderBuildingPart::updateData(), ArchPanel.ViewProviderPanelCut::updateData(), ArchPanel.ViewProviderPanelSheet::updateData(), draftviewproviders.view_label.ViewProviderLabel::updateData(), draftviewproviders.view_layer.ViewProviderLayer::updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::updateData().
|
overrideprotectedvirtual |
References App::FeaturePythonImp::onDocumentRestored().
|
delete |
|
delete |
|
overridevirtual |
|
overridevirtual |
Set sub-element visibility.
References App::FeaturePythonImp::setElementVisible().
|
override |