App::FeaturePythonImp Class Reference

#include <FeaturePython.h>

Public Types

enum  ValueT { NotImplemented = 0 , Accepted = 1 , Rejected = 2 }
 

Public Member Functions

ValueT allowDuplicateLabel () const
 
ValueT canLinkProperties () const
 
int canLoadPartial () const
 
bool editProperty (const char *propName)
 
bool execute ()
 
 FeaturePythonImp (App::DocumentObject *)
 
bool getLinkedObject (App::DocumentObject *&ret, bool recurse, Base::Matrix4D *mat, bool transform, int depth) const
 
PyObjectgetPyObject (void)
 
bool getSubObject (App::DocumentObject *&ret, const char *subname, PyObject **pyObj, Base::Matrix4D *mat, bool transform, int depth) const
 
bool getSubObjects (std::vector< std::string > &ret, int reason) const
 
std::string getViewProviderName ()
 
ValueT hasChildElement () const
 return true to activate tree view group object handling More...
 
void init (PyObject *pyobj)
 
int isElementVisible (const char *) const
 Get sub-element visibility. More...
 
bool mustExecute () const
 
void onBeforeChange (const Property *prop)
 
bool onBeforeChangeLabel (std::string &newLabel)
 
void onChanged (const Property *prop)
 
void onDocumentRestored ()
 
ValueT redirectSubName (std::ostringstream &ss, App::DocumentObject *topParent, App::DocumentObject *child) const
 
int setElementVisible (const char *, bool)
 Set sub-element visibility. More...
 
 ~FeaturePythonImp ()
 

Member Enumeration Documentation

◆ ValueT

Enumerator
NotImplemented 
Accepted 
Rejected 

Constructor & Destructor Documentation

◆ FeaturePythonImp()

FeaturePythonImp::FeaturePythonImp ( App::DocumentObject o)

◆ ~FeaturePythonImp()

FeaturePythonImp::~FeaturePythonImp ( )

Member Function Documentation

◆ allowDuplicateLabel()

◆ canLinkProperties()

◆ canLoadPartial()

int FeaturePythonImp::canLoadPartial ( ) const

◆ editProperty()

bool FeaturePythonImp::editProperty ( const char *  propName)

◆ execute()

◆ getLinkedObject()

bool FeaturePythonImp::getLinkedObject ( App::DocumentObject *&  ret,
bool  recurse,
Base::Matrix4D mat,
bool  transform,
int  depth 
) const

◆ getPyObject()

PyObject * FeaturePythonImp::getPyObject ( void  )

◆ getSubObject()

bool FeaturePythonImp::getSubObject ( App::DocumentObject *&  ret,
const char *  subname,
PyObject **  pyObj,
Base::Matrix4D mat,
bool  transform,
int  depth 
) const

◆ getSubObjects()

bool FeaturePythonImp::getSubObjects ( std::vector< std::string > &  ret,
int  reason 
) const

◆ getViewProviderName()

std::string FeaturePythonImp::getViewProviderName ( void  )

◆ hasChildElement()

FeaturePythonImp::ValueT FeaturePythonImp::hasChildElement ( ) const

return true to activate tree view group object handling

References Accepted, hasChildElement(), NotImplemented, Base::pyCall(), and Rejected.

Referenced by hasChildElement(), and App::FeaturePythonT< FeatureT >::hasChildElement().

◆ init()

void FeaturePythonImp::init ( PyObject pyobj)

◆ isElementVisible()

int FeaturePythonImp::isElementVisible ( const char *  element) const

Get sub-element visibility.

References isElementVisible(), and Base::pyCall().

Referenced by isElementVisible(), and App::FeaturePythonT< FeatureT >::isElementVisible().

◆ mustExecute()

bool FeaturePythonImp::mustExecute ( void  ) const

◆ onBeforeChange()

void FeaturePythonImp::onBeforeChange ( const Property prop)

◆ onBeforeChangeLabel()

bool FeaturePythonImp::onBeforeChangeLabel ( std::string &  newLabel)

◆ onChanged()

◆ onDocumentRestored()

void FeaturePythonImp::onDocumentRestored ( )

◆ redirectSubName()

FeaturePythonImp::ValueT FeaturePythonImp::redirectSubName ( std::ostringstream &  ss,
App::DocumentObject topParent,
App::DocumentObject child 
) const

◆ setElementVisible()

int FeaturePythonImp::setElementVisible ( const char *  element,
bool  visible 
)

Set sub-element visibility.

References Base::pyCall(), and setElementVisible().

Referenced by setElementVisible(), and App::FeaturePythonT< FeatureT >::setElementVisible().


The documentation for this class was generated from the following files: