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

The base of all Vis.Shape3D visitor implementations [VPTN]. More...

+ Inheritance diagram for CDPL.Vis.Shape3DVisitor:

Public Member Functions

None __init__ ()
 Initializes the Shape3DVisitor instance.
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
None visitTriangleMesh (TriangleMesh3D mesh)
 Visit method for Vis.TriangleMesh3D instances. More...
 

Properties

 objectID = property(getObjectID)
 

Detailed Description

The base of all Vis.Shape3D visitor implementations [VPTN].

Since
1.3

Member Function Documentation

◆ getObjectID()

int CDPL.Vis.Shape3DVisitor.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python Shape3DVisitor 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 Shape3DVisitor 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.

◆ visitTriangleMesh()

None CDPL.Vis.Shape3DVisitor.visitTriangleMesh ( TriangleMesh3D  mesh)

Visit method for Vis.TriangleMesh3D instances.

Parameters
meshThe Vis.TriangleMesh3D instance to visit.