Chemical Data Processing Library Python API - Version 1.3.0
Public Member Functions | Properties | List of all members
CDPL.Vis.Shape3D Class Reference

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)
 

Detailed Description

The abstract base of all classes describing the geometric shape of 3D objects.

Since
1.3

Member Function Documentation

◆ getObjectID()

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().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ clone()

Shape3D CDPL.Vis.Shape3D.clone ( )

Creates a dynamically allocated copy of the graphics primitive.

Returns
The copy of the graphics primitive.

◆ accept()

None CDPL.Vis.Shape3D.accept ( Shape3DVisitor  visitor)

Vis.Shape3DVisitor implementation accept method [VPTN].

Parameters
visitorThe Vis.Shape3DVisitor instance to accept.