FeatureCustomT is a template class to be used with DocumentObject or any of its subclasses as template parameter. More...
#include <FeatureCustom.h>
Public Member Functions | |
FeatureCustomT () | |
virtual | ~FeatureCustomT () |
methods override DocumentObject | |
short | mustExecute () const |
virtual DocumentObjectExecReturn * | execute (void) |
recalculate the Feature More... | |
virtual const char * | getViewProviderName (void) const |
returns the type name of the ViewProvider More... | |
PyObject * | getPyObject (void) |
void | setPyObject (PyObject *obj) |
virtual void | onBeforeChange (const Property *prop) |
virtual void | onChanged (const Property *prop) |
virtual void | onDocumentRestored () |
virtual void | onSettingDocument () |
Detailed Description
template<class FeatureT>
class App::FeatureCustomT< FeatureT >
FeatureCustomT is a template class to be used with DocumentObject or any of its subclasses as template parameter.
FeatureCustomT offers a way to add or remove a property at runtime. This class is similar to FeaturePythonT with the difference that it has no support for in Python written feature classes.
Constructor & Destructor Documentation
◆ FeatureCustomT()
App::FeatureCustomT< FeatureT >::FeatureCustomT | ( | ) |
◆ ~FeatureCustomT()
|
virtual |
Member Function Documentation
◆ execute()
|
virtual |
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().
◆ getPyObject()
PyObject* App::FeatureCustomT< FeatureT >::getPyObject | ( | void | ) |
◆ getViewProviderName()
|
virtual |
returns the type name of the ViewProvider
◆ mustExecute()
short App::FeatureCustomT< FeatureT >::mustExecute | ( | ) | const |
◆ onBeforeChange()
|
protectedvirtual |
◆ onChanged()
|
protectedvirtual |
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()
|
protectedvirtual |
◆ onSettingDocument()
|
protectedvirtual |
◆ setPyObject()
void App::FeatureCustomT< FeatureT >::setPyObject | ( | PyObject * | obj | ) |
The documentation for this class was generated from the following file:
- src/App/FeatureCustom.h