The python export class for Material. More...
#include <MaterialPy.h>
Public Types | |
typedef Material * PointerType | |
![]() | |
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 | |
![]() | |
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 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 PyMethodDef Methods [] | |
static PyTypeObject Type | |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~MaterialPy () | |
![]() | |
virtual ~PyObjectBase () | |
destructor More... | |
callbacks and implementers for the python object methods | |
PyObject * set (PyObject *args) | |
implementer for the set() method More... | |
static PyObject * staticCallback_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... | |
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... | |
Material * getMaterialPtr (void) const | |
getter for the object handled by this class More... | |
static PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * staticCallback_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 | |
![]() | |
std::bitset< 32 > StatusBits | |
Detailed Description
The python export class for Material.
Member Typedef Documentation
◆ PointerType
typedef Material* App::MaterialPy::PointerType |
Constructor & Destructor Documentation
◆ ~MaterialPy()
|
protected |
◆ MaterialPy()
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()
Material * MaterialPy::getMaterialPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by getAmbientColor(), getDiffuseColor(), getEmissiveColor(), getShininess(), getSpecularColor(), getTransparency(), set(), setAmbientColor(), setDiffuseColor(), setEmissiveColor(), Gui::LinkViewPy::setMaterial(), setShininess(), setSpecularColor(), and setTransparency().
◆ 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 |
Reimplemented from Base::PyObjectBase.
◆ PyInit()
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()
References MaterialPy().
◆ representation()
std::string MaterialPy::representation | ( | void | ) | const |
Referenced by config_control_design.pcurve::wr1(), config_control_design.degenerate_pcurve::wr1(), automotive_design.motion_link_relationship::wr1(), automotive_design.pcurve::wr1(), automotive_design.degenerate_pcurve::wr1(), config_control_design.pcurve::wr2(), config_control_design.degenerate_pcurve::wr2(), automotive_design.pcurve::wr2(), and automotive_design.degenerate_pcurve::wr2().
◆ set()
implementer for the set() method
References getMaterialPtr(), and App::Material::set().
Referenced by draftguitools.gui_trackers.editTracker::move(), and staticCallback_set().
◆ 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()
getter callback for the AmbientColor attribute
References Base::BaseExceptionFreeCADError, getAmbientColor(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getDiffuseColor()
getter callback for the DiffuseColor attribute
References Base::BaseExceptionFreeCADError, getDiffuseColor(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getEmissiveColor()
getter callback for the EmissiveColor attribute
References Base::BaseExceptionFreeCADError, getEmissiveColor(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getShininess()
getter callback for the Shininess attribute
References Base::BaseExceptionFreeCADError, getShininess(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getSpecularColor()
getter callback for the SpecularColor attribute
References Base::BaseExceptionFreeCADError, getSpecularColor(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getTransparency()
getter callback for the Transparency attribute
References Base::BaseExceptionFreeCADError, getTransparency(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_set()
callback for the set() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), set(), and Base::PyObjectBase::startNotify().
◆ staticCallback_setAmbientColor()
|
static |
setter callback for the AmbientColor attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setAmbientColor().
◆ staticCallback_setDiffuseColor()
|
static |
setter callback for the DiffuseColor attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setDiffuseColor().
◆ staticCallback_setEmissiveColor()
|
static |
setter callback for the EmissiveColor attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setEmissiveColor().
◆ staticCallback_setShininess()
|
static |
setter callback for the Shininess attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setShininess().
◆ staticCallback_setSpecularColor()
|
static |
setter callback for the SpecularColor attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setSpecularColor().
◆ staticCallback_setTransparency()
|
static |
setter callback for the Transparency attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setTransparency().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of MaterialPy.
◆ Methods
|
static |
Methods structure of MaterialPy.
◆ Type
|
static |
Type structure of MaterialPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), ArchComponent.Component::execute(), DraftLayer.LayerContainer::execute(), App::PropertyMaterialList::getPyValue(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), draftobjects.draft_annotation.DraftAnnotation::onDocumentRestored(), Gui::LinkViewPy::setMaterial(), ArchReference.ArchReference::setProperties(), DraftLayer.Layer::setProperties(), and App::PropertyMaterial::setPyObject().
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