The python export class for Constraint. More...

#include <ConstraintPy.h>

Public Types

typedef ConstraintPointerType
 
- Public Types inherited from Base::PersistencePy
typedef PersistencePointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClassPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

 ConstraintPy (Constraint *pcObject, PyTypeObject *T=&Type)
 
virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constructor) More...
 
std::string representation (void) const
 
- Public Member Functions inherited from Base::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectdumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObjectrestoreContent (PyObject *args)
 implementer for the restoreContent() method More...
 
Py::String getContent (void) const
 getter for the Content attribute More...
 
Py::Int getMemSize (void) const
 getter for the MemSize attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
PersistencegetPersistencePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::BaseClassPy
 BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectisDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObjectgetAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method More...
 
Py::String getTypeId (void) const
 getter for the TypeId attribute More...
 
Py::String getModule (void) const
 getter for the Module attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
BaseClassgetBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBaseIncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isNotTracking () const
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObjectstaticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObjectstaticCallback_getContent (PyObject *self, void *closure)
 getter callback for the Content attribute More...
 
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure)
 setter callback for the Content attribute More...
 
static PyObjectstaticCallback_getMemSize (PyObject *self, void *closure)
 getter callback for the MemSize attribute More...
 
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the MemSize attribute More...
 
- Static Public Member Functions inherited from Base::BaseClassPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObjectstaticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObjectstaticCallback_getTypeId (PyObject *self, void *closure)
 getter callback for the TypeId attribute More...
 
static int staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure)
 setter callback for the TypeId attribute More...
 
static PyObjectstaticCallback_getModule (PyObject *self, void *closure)
 getter callback for the Module attribute More...
 
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure)
 setter callback for the Module attribute More...
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of ConstraintPy. More...
 
static PyMethodDef Methods []
 Methods structure of ConstraintPy. More...
 
static PyTypeObject Type
 Type structure of ConstraintPy. More...
 
- Static Public Attributes inherited from Base::PersistencePy
static PyGetSetDef GetterSetter []
 Attribute structure of PersistencePy. More...
 
static PyMethodDef Methods []
 Methods structure of PersistencePy. More...
 
static PyTypeObject Type
 Type structure of PersistencePy. More...
 
- Static Public Attributes inherited from Base::BaseClassPy
static PyGetSetDef GetterSetter []
 Attribute structure of BaseClassPy. More...
 
static PyMethodDef Methods []
 Methods structure of BaseClassPy. More...
 
static PyTypeObject Type
 Type structure of BaseClassPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~ConstraintPy ()
 
- Protected Member Functions inherited from Base::PersistencePy
 ~PersistencePy ()
 
- Protected Member Functions inherited from Base::BaseClassPy
 ~BaseClassPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object attributes

Py::String getType (void) const
 getter for the Type attribute More...
 
Py::Long getFirst (void) const
 getter for the First attribute More...
 
void setFirst (Py::Long arg)
 setter for the First attribute More...
 
Py::Long getFirstPos (void) const
 getter for the FirstPos attribute More...
 
void setFirstPos (Py::Long arg)
 setter for the FirstPos attribute More...
 
Py::Long getSecond (void) const
 getter for the Second attribute More...
 
void setSecond (Py::Long arg)
 setter for the Second attribute More...
 
Py::Long getSecondPos (void) const
 getter for the SecondPos attribute More...
 
void setSecondPos (Py::Long arg)
 setter for the SecondPos attribute More...
 
Py::Long getThird (void) const
 getter for the Third attribute More...
 
void setThird (Py::Long arg)
 setter for the Third attribute More...
 
Py::Long getThirdPos (void) const
 getter for the ThirdPos attribute More...
 
void setThirdPos (Py::Long arg)
 setter for the ThirdPos attribute More...
 
Py::Float getValue (void) const
 getter for the Value attribute More...
 
Py::String getName (void) const
 getter for the Name attribute More...
 
void setName (Py::String arg)
 setter for the Name attribute More...
 
Py::Boolean getDriving (void) const
 getter for the Driving attribute More...
 
Py::Boolean getInVirtualSpace (void) const
 getter for the InVirtualSpace attribute More...
 
Py::Boolean getIsActive (void) const
 getter for the IsActive attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
ConstraintgetConstraintPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getType (PyObject *self, void *closure)
 getter callback for the Type attribute More...
 
static int staticCallback_setType (PyObject *self, PyObject *value, void *closure)
 setter callback for the Type attribute More...
 
static PyObjectstaticCallback_getFirst (PyObject *self, void *closure)
 getter callback for the First attribute More...
 
static int staticCallback_setFirst (PyObject *self, PyObject *value, void *closure)
 setter callback for the First attribute More...
 
static PyObjectstaticCallback_getFirstPos (PyObject *self, void *closure)
 getter callback for the FirstPos attribute More...
 
static int staticCallback_setFirstPos (PyObject *self, PyObject *value, void *closure)
 setter callback for the FirstPos attribute More...
 
static PyObjectstaticCallback_getSecond (PyObject *self, void *closure)
 getter callback for the Second attribute More...
 
static int staticCallback_setSecond (PyObject *self, PyObject *value, void *closure)
 setter callback for the Second attribute More...
 
static PyObjectstaticCallback_getSecondPos (PyObject *self, void *closure)
 getter callback for the SecondPos attribute More...
 
static int staticCallback_setSecondPos (PyObject *self, PyObject *value, void *closure)
 setter callback for the SecondPos attribute More...
 
static PyObjectstaticCallback_getThird (PyObject *self, void *closure)
 getter callback for the Third attribute More...
 
static int staticCallback_setThird (PyObject *self, PyObject *value, void *closure)
 setter callback for the Third attribute More...
 
static PyObjectstaticCallback_getThirdPos (PyObject *self, void *closure)
 getter callback for the ThirdPos attribute More...
 
static int staticCallback_setThirdPos (PyObject *self, PyObject *value, void *closure)
 setter callback for the ThirdPos attribute More...
 
static PyObjectstaticCallback_getValue (PyObject *self, void *closure)
 getter callback for the Value attribute More...
 
static int staticCallback_setValue (PyObject *self, PyObject *value, void *closure)
 setter callback for the Value attribute More...
 
static PyObjectstaticCallback_getName (PyObject *self, void *closure)
 getter callback for the Name attribute More...
 
static int staticCallback_setName (PyObject *self, PyObject *value, void *closure)
 setter callback for the Name attribute More...
 
static PyObjectstaticCallback_getDriving (PyObject *self, void *closure)
 getter callback for the Driving attribute More...
 
static int staticCallback_setDriving (PyObject *self, PyObject *value, void *closure)
 setter callback for the Driving attribute More...
 
static PyObjectstaticCallback_getInVirtualSpace (PyObject *self, void *closure)
 getter callback for the InVirtualSpace attribute More...
 
static int staticCallback_setInVirtualSpace (PyObject *self, PyObject *value, void *closure)
 setter callback for the InVirtualSpace attribute More...
 
static PyObjectstaticCallback_getIsActive (PyObject *self, void *closure)
 getter callback for the IsActive attribute More...
 
static int staticCallback_setIsActive (PyObject *self, PyObject *value, void *closure)
 setter callback for the IsActive attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Constraint.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~ConstraintPy()

ConstraintPy::~ConstraintPy ( )
protected

◆ ConstraintPy()

ConstraintPy::ConstraintPy ( Constraint pcObject,
PyTypeObject *  T = &Type 
)

Referenced by PyMake().

Member Function Documentation

◆ getConstraintPtr()

◆ getCustomAttributes()

PyObject * ConstraintPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ getDriving()

Py::Boolean ConstraintPy::getDriving ( void  ) const

getter for the Driving attribute

References getConstraintPtr().

Referenced by staticCallback_getDriving().

◆ getFirst()

Py::Long ConstraintPy::getFirst ( void  ) const

getter for the First attribute

References getConstraintPtr().

Referenced by staticCallback_getFirst().

◆ getFirstPos()

Py::Long ConstraintPy::getFirstPos ( void  ) const

getter for the FirstPos attribute

References getConstraintPtr().

Referenced by staticCallback_getFirstPos().

◆ getInVirtualSpace()

Py::Boolean ConstraintPy::getInVirtualSpace ( void  ) const

getter for the InVirtualSpace attribute

References getConstraintPtr().

Referenced by staticCallback_getInVirtualSpace().

◆ getIsActive()

Py::Boolean ConstraintPy::getIsActive ( void  ) const

getter for the IsActive attribute

References getConstraintPtr().

Referenced by staticCallback_getIsActive().

◆ getName()

Py::String ConstraintPy::getName ( void  ) const

getter for the Name attribute

References getConstraintPtr().

Referenced by staticCallback_getName().

◆ getSecond()

Py::Long ConstraintPy::getSecond ( void  ) const

getter for the Second attribute

References getConstraintPtr().

Referenced by staticCallback_getSecond().

◆ getSecondPos()

Py::Long ConstraintPy::getSecondPos ( void  ) const

getter for the SecondPos attribute

References getConstraintPtr().

Referenced by staticCallback_getSecondPos().

◆ getThird()

Py::Long ConstraintPy::getThird ( void  ) const

getter for the Third attribute

References getConstraintPtr().

Referenced by staticCallback_getThird().

◆ getThirdPos()

Py::Long ConstraintPy::getThirdPos ( void  ) const

getter for the ThirdPos attribute

References getConstraintPtr().

Referenced by staticCallback_getThirdPos().

◆ GetType()

virtual PyTypeObject* Sketcher::ConstraintPy::GetType ( void  )
virtual

Reimplemented from Base::PersistencePy.

◆ getType()

◆ getValue()

Py::Float ConstraintPy::getValue ( void  ) const

getter for the Value attribute

References getConstraintPtr().

Referenced by staticCallback_getValue().

◆ PyInit()

◆ PyMake()

PyObject * ConstraintPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

References ConstraintPy().

◆ representation()

◆ setCustomAttributes()

int ConstraintPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ setFirst()

void ConstraintPy::setFirst ( Py::Long  arg)

setter for the First attribute

References Sketcher::Constraint::First, and getConstraintPtr().

Referenced by staticCallback_setFirst().

◆ setFirstPos()

void ConstraintPy::setFirstPos ( Py::Long  arg)

setter for the FirstPos attribute

References Sketcher::Constraint::FirstPos, getConstraintPtr(), Sketcher::mid, and Sketcher::none.

Referenced by staticCallback_setFirstPos().

◆ setName()

void ConstraintPy::setName ( Py::String  arg)

setter for the Name attribute

References getConstraintPtr(), and Sketcher::Constraint::Name.

Referenced by staticCallback_setName().

◆ setSecond()

void ConstraintPy::setSecond ( Py::Long  arg)

setter for the Second attribute

References getConstraintPtr(), and Sketcher::Constraint::Second.

Referenced by staticCallback_setSecond().

◆ setSecondPos()

void ConstraintPy::setSecondPos ( Py::Long  arg)

setter for the SecondPos attribute

References getConstraintPtr(), Sketcher::mid, Sketcher::none, and Sketcher::Constraint::SecondPos.

Referenced by staticCallback_setSecondPos().

◆ setThird()

void ConstraintPy::setThird ( Py::Long  arg)

setter for the Third attribute

References getConstraintPtr(), and Sketcher::Constraint::Third.

Referenced by staticCallback_setThird().

◆ setThirdPos()

void ConstraintPy::setThirdPos ( Py::Long  arg)

setter for the ThirdPos attribute

References getConstraintPtr(), Sketcher::mid, Sketcher::none, and Sketcher::Constraint::ThirdPos.

Referenced by staticCallback_setThirdPos().

◆ staticCallback_getDriving()

PyObject * ConstraintPy::staticCallback_getDriving ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getFirst()

PyObject * ConstraintPy::staticCallback_getFirst ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getFirstPos()

PyObject * ConstraintPy::staticCallback_getFirstPos ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getInVirtualSpace()

PyObject * ConstraintPy::staticCallback_getInVirtualSpace ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getIsActive()

PyObject * ConstraintPy::staticCallback_getIsActive ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getName()

PyObject * ConstraintPy::staticCallback_getName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSecond()

PyObject * ConstraintPy::staticCallback_getSecond ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSecondPos()

PyObject * ConstraintPy::staticCallback_getSecondPos ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getThird()

PyObject * ConstraintPy::staticCallback_getThird ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getThirdPos()

PyObject * ConstraintPy::staticCallback_getThirdPos ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getType()

PyObject * ConstraintPy::staticCallback_getType ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getValue()

PyObject * ConstraintPy::staticCallback_getValue ( PyObject self,
void *  closure 
)
static

◆ staticCallback_setDriving()

int ConstraintPy::staticCallback_setDriving ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Driving attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setFirst()

int ConstraintPy::staticCallback_setFirst ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setFirstPos()

int ConstraintPy::staticCallback_setFirstPos ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setInVirtualSpace()

int ConstraintPy::staticCallback_setInVirtualSpace ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the InVirtualSpace attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setIsActive()

int ConstraintPy::staticCallback_setIsActive ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the IsActive attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setName()

int ConstraintPy::staticCallback_setName ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setSecond()

int ConstraintPy::staticCallback_setSecond ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setSecondPos()

int ConstraintPy::staticCallback_setSecondPos ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setThird()

int ConstraintPy::staticCallback_setThird ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setThirdPos()

int ConstraintPy::staticCallback_setThirdPos ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setType()

int ConstraintPy::staticCallback_setType ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Type attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setValue()

int ConstraintPy::staticCallback_setValue ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Value attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

Member Data Documentation

◆ GetterSetter

PyGetSetDef ConstraintPy::GetterSetter
static

Attribute structure of ConstraintPy.

◆ Methods

PyMethodDef ConstraintPy::Methods
static
Initial value:
= {
{NULL, NULL, 0, NULL}
}

Methods structure of ConstraintPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Sketcher/App/ConstraintPy.h
  • src/Mod/Sketcher/App/ConstraintPyImp.cpp
  • build/webdoc/src/Mod/Sketcher/App/ConstraintPy.cpp