The python export class for Placement. More...

#include <PlacementPy.h>

Public Types

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

Public Member Functions

virtual PyTypeObject * GetType (void)
 
 PlacementPy (Placement *pcObject, PyTypeObject *T=&Type)
 
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::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 PyObjectrichCompare (PyObject *v, PyObject *w, int op)
 
- 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 PlacementPy. More...
 
static PyMethodDef Methods []
 Methods structure of PlacementPy. More...
 
static PyTypeObject Type
 Type structure of PlacementPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

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

callbacks and implementers for the python object methods

static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 
static PyObjectstaticCallback_move (PyObject *self, PyObject *args)
 callback for the move() method More...
 
static PyObjectstaticCallback_multiply (PyObject *self, PyObject *args)
 callback for the multiply() method More...
 
static PyObjectstaticCallback_multVec (PyObject *self, PyObject *args)
 callback for the multVec() method More...
 
static PyObjectstaticCallback_toMatrix (PyObject *self, PyObject *args)
 callback for the toMatrix() method More...
 
static PyObjectstaticCallback_inverse (PyObject *self, PyObject *args)
 callback for the inverse() method More...
 
static PyObjectstaticCallback_isIdentity (PyObject *self, PyObject *args)
 callback for the isIdentity() method More...
 
PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
PyObjectmove (PyObject *args)
 implementer for the move() method More...
 
PyObjectmultiply (PyObject *args)
 implementer for the multiply() method More...
 
PyObjectmultVec (PyObject *args)
 implementer for the multVec() method More...
 
PyObjecttoMatrix (PyObject *args)
 implementer for the toMatrix() method More...
 
PyObjectinverse (PyObject *args)
 implementer for the inverse() method More...
 
PyObjectisIdentity (PyObject *args)
 implementer for the isIdentity() method More...
 

callbacks and implementers for the python object attributes

static PyObjectstaticCallback_getBase (PyObject *self, void *closure)
 getter callback for the Base attribute More...
 
static int staticCallback_setBase (PyObject *self, PyObject *value, void *closure)
 setter callback for the Base attribute More...
 
static PyObjectstaticCallback_getRotation (PyObject *self, void *closure)
 getter callback for the Rotation attribute More...
 
static int staticCallback_setRotation (PyObject *self, PyObject *value, void *closure)
 setter callback for the Rotation attribute More...
 
Py::Object getBase (void) const
 getter for the Base attribute More...
 
void setBase (Py::Object arg)
 setter for the Base attribute More...
 
Py::Object getRotation (void) const
 getter for the Rotation attribute More...
 
void setRotation (Py::Object arg)
 setter for the Rotation 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...
 
PlacementgetPlacementPtr (void) const
 getter for the object handled by this class More...
 

Additional Inherited Members

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

Detailed Description

The python export class for Placement.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~PlacementPy()

PlacementPy::~PlacementPy ( )
protected

◆ PlacementPy()

PlacementPy::PlacementPy ( Placement pcObject,
PyTypeObject *  T = &Type 
)

Referenced by copy(), inverse(), multiply(), and PyMake().

Member Function Documentation

◆ copy()

PyObject * PlacementPy::copy ( PyObject args)

implementer for the copy() method

References getPlacementPtr(), and PlacementPy().

Referenced by staticCallback_copy().

◆ getBase()

Py::Object PlacementPy::getBase ( void  ) const

getter for the Base attribute

References getPlacementPtr().

Referenced by staticCallback_getBase().

◆ getCustomAttributes()

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

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

◆ getPlacementPtr()

◆ getRotation()

Py::Object PlacementPy::getRotation ( void  ) const

getter for the Rotation attribute

References getPlacementPtr().

Referenced by staticCallback_getRotation().

◆ GetType()

virtual PyTypeObject* Base::PlacementPy::GetType ( void  )
virtual

Reimplemented from Base::PyObjectBase.

◆ inverse()

PyObject * PlacementPy::inverse ( PyObject args)

implementer for the inverse() method

References getPlacementPtr(), Base::Placement::inverse(), and PlacementPy().

Referenced by staticCallback_inverse().

◆ isIdentity()

◆ move()

◆ multiply()

◆ multVec()

PyObject * PlacementPy::multVec ( PyObject args)

implementer for the multVec() method

References getPlacementPtr(), Base::Placement::multVec(), and Base::VectorPy::Type.

Referenced by staticCallback_multVec().

◆ PyInit()

int PlacementPy::PyInit ( PyObject ,
PyObject  
)
virtual

◆ PyMake()

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

References PlacementPy().

◆ representation()

◆ richCompare()

PyObject * PlacementPy::richCompare ( PyObject v,
PyObject w,
int  op 
)
static

References getPlacementPtr(), and Type.

◆ setBase()

void PlacementPy::setBase ( Py::Object  arg)

setter for the Base attribute

References getPlacementPtr(), Base::Placement::setPosition(), and Base::toVector().

Referenced by staticCallback_setBase().

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ setRotation()

void PlacementPy::setRotation ( Py::Object  arg)

setter for the Rotation attribute

References getPlacementPtr(), and Base::Placement::setRotation().

Referenced by staticCallback_setRotation().

◆ staticCallback_copy()

PyObject * PlacementPy::staticCallback_copy ( PyObject self,
PyObject args 
)
static

◆ staticCallback_getBase()

PyObject * PlacementPy::staticCallback_getBase ( PyObject self,
void *  closure 
)
static

getter callback for the Base attribute

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

◆ staticCallback_getRotation()

PyObject * PlacementPy::staticCallback_getRotation ( PyObject self,
void *  closure 
)
static

getter callback for the Rotation attribute

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

◆ staticCallback_inverse()

PyObject * PlacementPy::staticCallback_inverse ( PyObject self,
PyObject args 
)
static

◆ staticCallback_isIdentity()

PyObject * PlacementPy::staticCallback_isIdentity ( PyObject self,
PyObject args 
)
static

◆ staticCallback_move()

◆ staticCallback_multiply()

PyObject * PlacementPy::staticCallback_multiply ( PyObject self,
PyObject args 
)
static

◆ staticCallback_multVec()

PyObject * PlacementPy::staticCallback_multVec ( PyObject self,
PyObject args 
)
static

◆ staticCallback_setBase()

int PlacementPy::staticCallback_setBase ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setRotation()

int PlacementPy::staticCallback_setRotation ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_toMatrix()

PyObject * PlacementPy::staticCallback_toMatrix ( PyObject self,
PyObject args 
)
static

◆ toMatrix()

PyObject * PlacementPy::toMatrix ( PyObject args)

implementer for the toMatrix() method

References getPlacementPtr(), and Base::Placement::toMatrix().

Referenced by staticCallback_toMatrix().

Member Data Documentation

◆ GetterSetter

PyGetSetDef PlacementPy::GetterSetter
static
Initial value:
= {
{"Base",
"Vector to the Base Position of the Placement",
NULL
},
{"Rotation",
"Orientation of the placement expressed as rotation",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of PlacementPy.

◆ Methods

PyMethodDef PlacementPy::Methods
static

Methods structure of PlacementPy.

◆ Type

PyTypeObject PlacementPy::Type
static

The documentation for this class was generated from the following files:
  • build/webdoc/src/Base/PlacementPy.h
  • src/Base/PlacementPyImp.cpp
  • build/webdoc/src/Base/PlacementPy.cpp
static int staticCallback_setBase(PyObject *self, PyObject *value, void *closure)
setter callback for the Base attribute
Definition: PlacementPy.cpp:708
static PyObject * staticCallback_getRotation(PyObject *self, void *closure)
getter callback for the Rotation attribute
Definition: PlacementPy.cpp:734
static int staticCallback_setRotation(PyObject *self, PyObject *value, void *closure)
setter callback for the Rotation attribute
Definition: PlacementPy.cpp:752
static PyObject * staticCallback_getBase(PyObject *self, void *closure)
getter callback for the Base attribute
Definition: PlacementPy.cpp:690