The python export class for StepShape. More...

#include <StepShapePy.h>

Public Types

typedef StepShape * PointerType
 
- 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)
 
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
 
 StepShapePy (StepShape *pcObject, PyTypeObject *T=&Type)
 
callbacks and implementers for the python object attributes
PyObject * getCustomAttributes (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...
 
StepShape * getStepShapePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBase * DecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBase * IncRef (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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
- 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 StepShapePy. More...
 
static PyMethodDef Methods []
 Methods structure of StepShapePy. More...
 
static PyTypeObject Type
 Type structure of StepShapePy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

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

callbacks and implementers for the python object methods

PyObject * read (PyObject *args)
 implementer for the read() method More...
 
static PyObject * staticCallback_read (PyObject *self, PyObject *args)
 callback for the read() method More...
 

Additional Inherited Members

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

Detailed Description

The python export class for StepShape.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~StepShapePy()

StepShapePy::~StepShapePy ( )
protected

◆ StepShapePy()

StepShapePy::StepShapePy ( StepShape *  pcObject,
PyTypeObject *  T = &Type 
)

Referenced by PyMake().

Member Function Documentation

◆ getCustomAttributes()

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

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

◆ getStepShapePtr()

StepShape * StepShapePy::getStepShapePtr ( void  ) const

getter for the object handled by this class

Referenced by PyInit().

◆ GetType()

virtual PyTypeObject* Import::StepShapePy::GetType ( void  )
virtual

Reimplemented from Base::PyObjectBase.

◆ PyInit()

int StepShapePy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from Base::PyObjectBase.

References getStepShapePtr(), and Import::StepShape::read().

◆ PyMake()

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

References StepShapePy().

◆ read()

PyObject * StepShapePy::read ( PyObject *  args)

implementer for the read() method

Referenced by staticCallback_read().

◆ representation()

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ staticCallback_read()

Member Data Documentation

◆ GetterSetter

PyGetSetDef StepShapePy::GetterSetter
static
Initial value:
= {
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of StepShapePy.

◆ Methods

PyMethodDef StepShapePy::Methods
static
Initial value:
= {
{"read",
reinterpret_cast<PyCFunction>( staticCallback_read ),
METH_VARARGS,
"method read()\nRead a STEP file into memory and make it accessible\n "
},
{NULL, NULL, 0, NULL}
}

Methods structure of StepShapePy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Import/App/StepShapePy.h
  • src/Mod/Import/App/StepShapePyImp.cpp
  • build/webdoc/src/Mod/Import/App/StepShapePy.cpp
static PyObject * staticCallback_read(PyObject *self, PyObject *args)
callback for the read() method
Definition: StepShapePy.cpp:100