App::FeatureCustomT< FeatureT > Class Template Reference

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 DocumentObjectExecReturnexecute (void)
 recalculate the Feature More...
 
virtual const char * getViewProviderName (void) const
 returns the type name of the ViewProvider More...
 
PyObjectgetPyObject (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.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ FeatureCustomT()

template<class FeatureT >
App::FeatureCustomT< FeatureT >::FeatureCustomT ( )

◆ ~FeatureCustomT()

template<class FeatureT >
virtual App::FeatureCustomT< FeatureT >::~FeatureCustomT ( )
virtual

Member Function Documentation

◆ execute()

◆ getPyObject()

template<class FeatureT >
PyObject* App::FeatureCustomT< FeatureT >::getPyObject ( void  )

◆ getViewProviderName()

template<class FeatureT >
virtual const char* App::FeatureCustomT< FeatureT >::getViewProviderName ( void  ) const
virtual

returns the type name of the ViewProvider

◆ mustExecute()

template<class FeatureT >
short App::FeatureCustomT< FeatureT >::mustExecute ( ) const

◆ onBeforeChange()

template<class FeatureT >
virtual void App::FeatureCustomT< FeatureT >::onBeforeChange ( const Property prop)
protectedvirtual

◆ onChanged()

◆ onDocumentRestored()

template<class FeatureT >
virtual void App::FeatureCustomT< FeatureT >::onDocumentRestored ( )
protectedvirtual

◆ onSettingDocument()

template<class FeatureT >
virtual void App::FeatureCustomT< FeatureT >::onSettingDocument ( )
protectedvirtual

◆ setPyObject()

template<class FeatureT >
void App::FeatureCustomT< FeatureT >::setPyObject ( PyObject obj)

The documentation for this class was generated from the following file:
  • src/App/FeatureCustom.h