The python export class for Material. More...

#include <MaterialPy.h>

Public Types

typedef MaterialPointerType
 
- 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)
 
 MaterialPy (Material *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 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 MaterialPy. More...
 
static PyMethodDef Methods []
 Methods structure of MaterialPy. More...
 
static PyTypeObject Type
 Type structure of MaterialPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

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

callbacks and implementers for the python object methods

PyObjectset (PyObject *args)
 implementer for the set() method More...
 
static PyObjectstaticCallback_set (PyObject *self, PyObject *args)
 callback for the set() method More...
 

callbacks and implementers for the python object attributes

Py::Tuple getAmbientColor (void) const
 getter for the AmbientColor attribute More...
 
void setAmbientColor (Py::Tuple arg)
 setter for the AmbientColor attribute More...
 
Py::Tuple getDiffuseColor (void) const
 getter for the DiffuseColor attribute More...
 
void setDiffuseColor (Py::Tuple arg)
 setter for the DiffuseColor attribute More...
 
Py::Tuple getEmissiveColor (void) const
 getter for the EmissiveColor attribute More...
 
void setEmissiveColor (Py::Tuple arg)
 setter for the EmissiveColor attribute More...
 
Py::Tuple getSpecularColor (void) const
 getter for the SpecularColor attribute More...
 
void setSpecularColor (Py::Tuple arg)
 setter for the SpecularColor attribute More...
 
Py::Float getShininess (void) const
 getter for the Shininess attribute More...
 
void setShininess (Py::Float arg)
 setter for the Shininess attribute More...
 
Py::Float getTransparency (void) const
 getter for the Transparency attribute More...
 
void setTransparency (Py::Float arg)
 setter for the Transparency 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...
 
MaterialgetMaterialPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getAmbientColor (PyObject *self, void *closure)
 getter callback for the AmbientColor attribute More...
 
static int staticCallback_setAmbientColor (PyObject *self, PyObject *value, void *closure)
 setter callback for the AmbientColor attribute More...
 
static PyObjectstaticCallback_getDiffuseColor (PyObject *self, void *closure)
 getter callback for the DiffuseColor attribute More...
 
static int staticCallback_setDiffuseColor (PyObject *self, PyObject *value, void *closure)
 setter callback for the DiffuseColor attribute More...
 
static PyObjectstaticCallback_getEmissiveColor (PyObject *self, void *closure)
 getter callback for the EmissiveColor attribute More...
 
static int staticCallback_setEmissiveColor (PyObject *self, PyObject *value, void *closure)
 setter callback for the EmissiveColor attribute More...
 
static PyObjectstaticCallback_getSpecularColor (PyObject *self, void *closure)
 getter callback for the SpecularColor attribute More...
 
static int staticCallback_setSpecularColor (PyObject *self, PyObject *value, void *closure)
 setter callback for the SpecularColor attribute More...
 
static PyObjectstaticCallback_getShininess (PyObject *self, void *closure)
 getter callback for the Shininess attribute More...
 
static int staticCallback_setShininess (PyObject *self, PyObject *value, void *closure)
 setter callback for the Shininess attribute More...
 
static PyObjectstaticCallback_getTransparency (PyObject *self, void *closure)
 getter callback for the Transparency attribute More...
 
static int staticCallback_setTransparency (PyObject *self, PyObject *value, void *closure)
 setter callback for the Transparency attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for Material.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~MaterialPy()

MaterialPy::~MaterialPy ( )
protected

◆ MaterialPy()

MaterialPy::MaterialPy ( Material pcObject,
PyTypeObject *  T = &Type 
)

Referenced by PyMake().

Member Function Documentation

◆ getAmbientColor()

Py::Tuple MaterialPy::getAmbientColor ( void  ) const

getter for the AmbientColor attribute

References getMaterialPtr().

Referenced by staticCallback_getAmbientColor().

◆ getCustomAttributes()

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

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

◆ getDiffuseColor()

Py::Tuple MaterialPy::getDiffuseColor ( void  ) const

getter for the DiffuseColor attribute

References getMaterialPtr().

Referenced by staticCallback_getDiffuseColor().

◆ getEmissiveColor()

Py::Tuple MaterialPy::getEmissiveColor ( void  ) const

getter for the EmissiveColor attribute

References getMaterialPtr().

Referenced by staticCallback_getEmissiveColor().

◆ getMaterialPtr()

◆ getShininess()

Py::Float MaterialPy::getShininess ( void  ) const

getter for the Shininess attribute

References getMaterialPtr().

Referenced by staticCallback_getShininess().

◆ getSpecularColor()

Py::Tuple MaterialPy::getSpecularColor ( void  ) const

getter for the SpecularColor attribute

References getMaterialPtr().

Referenced by staticCallback_getSpecularColor().

◆ getTransparency()

Py::Float MaterialPy::getTransparency ( void  ) const

getter for the Transparency attribute

References getMaterialPtr().

Referenced by staticCallback_getTransparency().

◆ GetType()

virtual PyTypeObject* App::MaterialPy::GetType ( void  )
virtual

Reimplemented from Base::PyObjectBase.

◆ PyInit()

int MaterialPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from Base::PyObjectBase.

References setAmbientColor(), setDiffuseColor(), setEmissiveColor(), setShininess(), setSpecularColor(), and setTransparency().

◆ PyMake()

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

References MaterialPy().

◆ representation()

◆ set()

PyObject * MaterialPy::set ( PyObject args)

◆ setAmbientColor()

void MaterialPy::setAmbientColor ( Py::Tuple  arg)

setter for the AmbientColor attribute

References App::Material::ambientColor, getMaterialPtr(), and App::Color::r.

Referenced by PyInit(), and staticCallback_setAmbientColor().

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ setDiffuseColor()

void MaterialPy::setDiffuseColor ( Py::Tuple  arg)

setter for the DiffuseColor attribute

References App::Material::diffuseColor, getMaterialPtr(), and App::Color::r.

Referenced by PyInit(), and staticCallback_setDiffuseColor().

◆ setEmissiveColor()

void MaterialPy::setEmissiveColor ( Py::Tuple  arg)

setter for the EmissiveColor attribute

References App::Material::emissiveColor, getMaterialPtr(), and App::Color::r.

Referenced by PyInit(), and staticCallback_setEmissiveColor().

◆ setShininess()

void MaterialPy::setShininess ( Py::Float  arg)

setter for the Shininess attribute

References getMaterialPtr(), and App::Material::shininess.

Referenced by PyInit(), and staticCallback_setShininess().

◆ setSpecularColor()

void MaterialPy::setSpecularColor ( Py::Tuple  arg)

setter for the SpecularColor attribute

References getMaterialPtr(), App::Color::r, and App::Material::specularColor.

Referenced by PyInit(), and staticCallback_setSpecularColor().

◆ setTransparency()

void MaterialPy::setTransparency ( Py::Float  arg)

setter for the Transparency attribute

References getMaterialPtr(), and App::Material::transparency.

Referenced by PyInit(), and staticCallback_setTransparency().

◆ staticCallback_getAmbientColor()

PyObject * MaterialPy::staticCallback_getAmbientColor ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getDiffuseColor()

PyObject * MaterialPy::staticCallback_getDiffuseColor ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getEmissiveColor()

PyObject * MaterialPy::staticCallback_getEmissiveColor ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getShininess()

PyObject * MaterialPy::staticCallback_getShininess ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSpecularColor()

PyObject * MaterialPy::staticCallback_getSpecularColor ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getTransparency()

PyObject * MaterialPy::staticCallback_getTransparency ( PyObject self,
void *  closure 
)
static

◆ staticCallback_set()

◆ staticCallback_setAmbientColor()

int MaterialPy::staticCallback_setAmbientColor ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setDiffuseColor()

int MaterialPy::staticCallback_setDiffuseColor ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setEmissiveColor()

int MaterialPy::staticCallback_setEmissiveColor ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setShininess()

int MaterialPy::staticCallback_setShininess ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setSpecularColor()

int MaterialPy::staticCallback_setSpecularColor ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setTransparency()

int MaterialPy::staticCallback_setTransparency ( PyObject self,
PyObject value,
void *  closure 
)
static

Member Data Documentation

◆ GetterSetter

PyGetSetDef MaterialPy::GetterSetter
static

Attribute structure of MaterialPy.

◆ Methods

PyMethodDef MaterialPy::Methods
static
Initial value:
= {
{"set",
reinterpret_cast<PyCFunction>( staticCallback_set ),
METH_VARARGS,
"\nSet(string) -- Set the material.\n\nThe material must be one of the following values:\nBrass, Bronze, Copper, Gold, Pewter, Plaster, Plastic, Silver, Steel, Stone, Shiny plastic,\nSatin, Metalized, Neon GNC, Chrome, Aluminium, Obsidian, Neon PHC, Jade, Ruby or Emerald.\n "
},
{NULL, NULL, 0, NULL}
}

Methods structure of MaterialPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/App/MaterialPy.h
  • src/App/MaterialPyImp.cpp
  • build/webdoc/src/App/MaterialPy.cpp
static PyObject * staticCallback_set(PyObject *self, PyObject *args)
callback for the set() method
Definition: MaterialPy.cpp:134