![]() |
Chemical Data Processing Library Python API - Version 1.3.0
|
The abstract base of all classes describing the geometric shape of 3D objects. More...
Inheritance diagram for CDPL.Vis.Shape3D:Public Member Functions | |
| None | __init__ () |
| Initializes the Shape3D instance. | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| Shape3D | clone () |
| Creates a dynamically allocated copy of the graphics primitive. More... | |
| None | accept (Shape3DVisitor visitor) |
| Vis.Shape3DVisitor implementation accept method [VPTN]. More... | |
Properties | |
| objectID = property(getObjectID) | |
The abstract base of all classes describing the geometric shape of 3D objects.
| int CDPL.Vis.Shape3D.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python Shape3D instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two Shape3D instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| Shape3D CDPL.Vis.Shape3D.clone | ( | ) |
Creates a dynamically allocated copy of the graphics primitive.
| None CDPL.Vis.Shape3D.accept | ( | Shape3DVisitor | visitor | ) |
Vis.Shape3DVisitor implementation accept method [VPTN].
| visitor | The Vis.Shape3DVisitor instance to accept. |