The python export class for Facet. More...
#include <FacetPy.h>
Public Types | |
typedef Facet * PointerType | |
![]() | |
typedef void * PointerType | |
enum Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 } | |
Public Member Functions | |
FacetPy (Facet *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 | |
![]() | |
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 FacetPy. More... | |
static PyMethodDef Methods [] | |
Methods structure of FacetPy. More... | |
static PyTypeObject Type | |
Type structure of FacetPy. More... | |
![]() | |
static PyMethodDef Methods [] | |
static PyTypeObject Type | |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~FacetPy () | |
![]() | |
virtual ~PyObjectBase () | |
destructor More... | |
callbacks and implementers for the python object methods | |
PyObject * unbound (PyObject *args) | |
implementer for the unbound() method More... | |
PyObject * intersect (PyObject *args) | |
implementer for the intersect() method More... | |
PyObject * isDegenerated (PyObject *args) | |
implementer for the isDegenerated() method More... | |
PyObject * isDeformed (PyObject *args) | |
implementer for the isDeformed() method More... | |
static PyObject * staticCallback_unbound (PyObject *self, PyObject *args) | |
callback for the unbound() method More... | |
static PyObject * staticCallback_intersect (PyObject *self, PyObject *args) | |
callback for the intersect() method More... | |
static PyObject * staticCallback_isDegenerated (PyObject *self, PyObject *args) | |
callback for the isDegenerated() method More... | |
static PyObject * staticCallback_isDeformed (PyObject *self, PyObject *args) | |
callback for the isDeformed() method More... | |
callbacks and implementers for the python object attributes | |
Py::Long getIndex (void) const | |
getter for the Index attribute More... | |
Py::Boolean getBound (void) const | |
getter for the Bound attribute More... | |
Py::Object getNormal (void) const | |
getter for the Normal attribute More... | |
Py::List getPoints (void) const | |
getter for the Points attribute More... | |
Py::Tuple getPointIndices (void) const | |
getter for the PointIndices attribute More... | |
Py::Tuple getNeighbourIndices (void) const | |
getter for the NeighbourIndices attribute More... | |
Py::Float getArea (void) const | |
getter for the Area attribute More... | |
Py::Float getAspectRatio (void) const | |
getter for the AspectRatio attribute More... | |
Py::Float getAspectRatio2 (void) const | |
getter for the AspectRatio2 attribute More... | |
Py::Float getRoundness (void) const | |
getter for the Roundness attribute More... | |
Py::Tuple getCircumCircle (void) const | |
getter for the CircumCircle attribute More... | |
Py::Tuple getInCircle (void) const | |
getter for the InCircle 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... | |
Facet * getFacetPtr (void) const | |
getter for the object handled by this class More... | |
static PyObject * staticCallback_getIndex (PyObject *self, void *closure) | |
getter callback for the Index attribute More... | |
static int staticCallback_setIndex (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Index attribute More... | |
static PyObject * staticCallback_getBound (PyObject *self, void *closure) | |
getter callback for the Bound attribute More... | |
static int staticCallback_setBound (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Bound attribute More... | |
static PyObject * staticCallback_getNormal (PyObject *self, void *closure) | |
getter callback for the Normal attribute More... | |
static int staticCallback_setNormal (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Normal attribute More... | |
static PyObject * staticCallback_getPoints (PyObject *self, void *closure) | |
getter callback for the Points attribute More... | |
static int staticCallback_setPoints (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Points attribute More... | |
static PyObject * staticCallback_getPointIndices (PyObject *self, void *closure) | |
getter callback for the PointIndices attribute More... | |
static int staticCallback_setPointIndices (PyObject *self, PyObject *value, void *closure) | |
setter callback for the PointIndices attribute More... | |
static PyObject * staticCallback_getNeighbourIndices (PyObject *self, void *closure) | |
getter callback for the NeighbourIndices attribute More... | |
static int staticCallback_setNeighbourIndices (PyObject *self, PyObject *value, void *closure) | |
setter callback for the NeighbourIndices attribute More... | |
static PyObject * staticCallback_getArea (PyObject *self, void *closure) | |
getter callback for the Area attribute More... | |
static int staticCallback_setArea (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Area attribute More... | |
static PyObject * staticCallback_getAspectRatio (PyObject *self, void *closure) | |
getter callback for the AspectRatio attribute More... | |
static int staticCallback_setAspectRatio (PyObject *self, PyObject *value, void *closure) | |
setter callback for the AspectRatio attribute More... | |
static PyObject * staticCallback_getAspectRatio2 (PyObject *self, void *closure) | |
getter callback for the AspectRatio2 attribute More... | |
static int staticCallback_setAspectRatio2 (PyObject *self, PyObject *value, void *closure) | |
setter callback for the AspectRatio2 attribute More... | |
static PyObject * staticCallback_getRoundness (PyObject *self, void *closure) | |
getter callback for the Roundness attribute More... | |
static int staticCallback_setRoundness (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Roundness attribute More... | |
static PyObject * staticCallback_getCircumCircle (PyObject *self, void *closure) | |
getter callback for the CircumCircle attribute More... | |
static int staticCallback_setCircumCircle (PyObject *self, PyObject *value, void *closure) | |
setter callback for the CircumCircle attribute More... | |
static PyObject * staticCallback_getInCircle (PyObject *self, void *closure) | |
getter callback for the InCircle attribute More... | |
static int staticCallback_setInCircle (PyObject *self, PyObject *value, void *closure) | |
setter callback for the InCircle attribute More... | |
Additional Inherited Members | |
![]() | |
std::bitset< 32 > StatusBits | |
Detailed Description
The python export class for Facet.
Member Typedef Documentation
◆ PointerType
typedef Facet* Mesh::FacetPy::PointerType |
Constructor & Destructor Documentation
◆ ~FacetPy()
|
protected |
◆ FacetPy()
Member Function Documentation
◆ getArea()
Py::Float FacetPy::getArea | ( | void | ) | const |
getter for the Area attribute
References MeshCore::MeshGeomFacet::Area(), MeshCore::MeshKernel::GetFacet(), getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getArea().
◆ getAspectRatio()
Py::Float FacetPy::getAspectRatio | ( | void | ) | const |
getter for the AspectRatio attribute
References MeshCore::MeshGeomFacet::AspectRatio(), MeshCore::MeshKernel::GetFacet(), getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getAspectRatio().
◆ getAspectRatio2()
Py::Float FacetPy::getAspectRatio2 | ( | void | ) | const |
getter for the AspectRatio2 attribute
References MeshCore::MeshGeomFacet::AspectRatio2(), MeshCore::MeshKernel::GetFacet(), getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getAspectRatio2().
◆ getBound()
Py::Boolean FacetPy::getBound | ( | void | ) | const |
◆ getCircumCircle()
Py::Tuple FacetPy::getCircumCircle | ( | void | ) | const |
getter for the CircumCircle attribute
References MeshCore::MeshGeomFacet::CenterOfCircumCircle(), MeshCore::MeshKernel::GetFacet(), getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getCircumCircle().
◆ getCustomAttributes()
PyObject * FacetPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getFacetPtr()
Facet * FacetPy::getFacetPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by getArea(), getAspectRatio(), getAspectRatio2(), getBound(), getCircumCircle(), getInCircle(), getIndex(), getNeighbourIndices(), getNormal(), getPointIndices(), getPoints(), getRoundness(), intersect(), isDeformed(), isDegenerated(), representation(), and unbound().
◆ getInCircle()
Py::Tuple FacetPy::getInCircle | ( | void | ) | const |
getter for the InCircle attribute
References MeshCore::MeshGeomFacet::CenterOfInscribedCircle(), MeshCore::MeshKernel::GetFacet(), getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getInCircle().
◆ getIndex()
Py::Long FacetPy::getIndex | ( | void | ) | const |
◆ getNeighbourIndices()
Py::Tuple FacetPy::getNeighbourIndices | ( | void | ) | const |
getter for the NeighbourIndices attribute
References getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getNeighbourIndices().
◆ getNormal()
Py::Object FacetPy::getNormal | ( | void | ) | const |
getter for the Normal attribute
References getFacetPtr(), and Base::PyObjectBase::setConst().
Referenced by staticCallback_getNormal().
◆ getPointIndices()
Py::Tuple FacetPy::getPointIndices | ( | void | ) | const |
getter for the PointIndices attribute
References getFacetPtr(), and Mesh::Facet::isBound().
Referenced by staticCallback_getPointIndices().
◆ getPoints()
Py::List FacetPy::getPoints | ( | void | ) | const |
◆ getRoundness()
Py::Float FacetPy::getRoundness | ( | void | ) | const |
getter for the Roundness attribute
References MeshCore::MeshKernel::GetFacet(), getFacetPtr(), Mesh::Facet::isBound(), and MeshCore::MeshGeomFacet::Roundness().
Referenced by staticCallback_getRoundness().
◆ GetType()
|
virtual |
Reimplemented from Base::PyObjectBase.
◆ intersect()
implementer for the intersect() method
References getFacetPtr(), MeshCore::MeshGeomFacet::IntersectWithFacet(), Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by staticCallback_intersect().
◆ isDeformed()
implementer for the isDeformed() method
References MeshCore::MeshKernel::GetFacet(), getFacetPtr(), Mesh::Facet::isBound(), and MeshCore::MeshGeomFacet::IsDeformed().
Referenced by staticCallback_isDeformed().
◆ isDegenerated()
implementer for the isDegenerated() method
References MeshCore::MeshKernel::GetFacet(), getFacetPtr(), Mesh::Facet::isBound(), and MeshCore::MeshGeomFacet::IsDegenerated().
Referenced by staticCallback_isDegenerated().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::PyObjectBase.
◆ PyMake()
References FacetPy().
◆ representation()
std::string FacetPy::representation | ( | void | ) | const |
References getFacetPtr(), Mesh::Facet::Index, Mesh::Facet::isBound(), Mesh::Facet::NIndex, and Mesh::Facet::PIndex.
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().
◆ setCustomAttributes()
int FacetPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ staticCallback_getArea()
getter callback for the Area attribute
References Base::BaseExceptionFreeCADError, getArea(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getAspectRatio()
getter callback for the AspectRatio attribute
References Base::BaseExceptionFreeCADError, getAspectRatio(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getAspectRatio2()
getter callback for the AspectRatio2 attribute
References Base::BaseExceptionFreeCADError, getAspectRatio2(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getBound()
getter callback for the Bound attribute
References Base::BaseExceptionFreeCADError, getBound(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getCircumCircle()
getter callback for the CircumCircle attribute
References Base::BaseExceptionFreeCADError, getCircumCircle(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getInCircle()
getter callback for the InCircle attribute
References Base::BaseExceptionFreeCADError, getInCircle(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getIndex()
getter callback for the Index attribute
References Base::BaseExceptionFreeCADError, getIndex(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getNeighbourIndices()
getter callback for the NeighbourIndices attribute
References Base::BaseExceptionFreeCADError, getNeighbourIndices(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getNormal()
getter callback for the Normal attribute
References Base::BaseExceptionFreeCADError, getNormal(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getPointIndices()
getter callback for the PointIndices attribute
References Base::BaseExceptionFreeCADError, getPointIndices(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getPoints()
getter callback for the Points attribute
References Base::BaseExceptionFreeCADError, getPoints(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getRoundness()
getter callback for the Roundness attribute
References Base::BaseExceptionFreeCADError, getRoundness(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_intersect()
◆ staticCallback_isDeformed()
◆ staticCallback_isDegenerated()
◆ staticCallback_setArea()
setter callback for the Area attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setAspectRatio()
|
static |
setter callback for the AspectRatio attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setAspectRatio2()
|
static |
setter callback for the AspectRatio2 attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setBound()
setter callback for the Bound attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setCircumCircle()
|
static |
setter callback for the CircumCircle attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setInCircle()
|
static |
setter callback for the InCircle attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setIndex()
setter callback for the Index attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setNeighbourIndices()
|
static |
setter callback for the NeighbourIndices attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setNormal()
setter callback for the Normal attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setPointIndices()
|
static |
setter callback for the PointIndices attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setPoints()
setter callback for the Points attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setRoundness()
|
static |
setter callback for the Roundness attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_unbound()
callback for the unbound() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::PyObjectBase::startNotify(), and unbound().
◆ unbound()
implementer for the unbound() method
References getFacetPtr(), Mesh::Facet::Index, and Mesh::Facet::Mesh.
Referenced by staticCallback_unbound().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of FacetPy.
◆ Methods
|
static |
Methods structure of FacetPy.
◆ Type
|
static |
Type structure of FacetPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), Mesh::MeshPy::addFacet(), Mesh::MeshPy::addFacets(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), intersect(), ArchSchedule.CommandArchSchedule::IsActive(), and ArchAxis.CommandArchGrid::IsActive().
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Mesh/App/FacetPy.h
- src/Mod/Mesh/App/FacetPyImp.cpp
- build/webdoc/src/Mod/Mesh/App/FacetPy.cpp