Chemical Data Processing Library Python API - Version 1.1.1
Public Member Functions | Properties | List of all members
CDPL.Shape.GaussianShape.Element Class Reference
+ Inheritance diagram for CDPL.Shape.GaussianShape.Element:

Public Member Functions

None __init__ (Element elem)
 Initializes a copy of the Element instance elem. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
Element assign (Element elem)
 Replaces the current state of self with a copy of the state of the Element instance elem. More...
 
None setPosition (Math.Vector3D pos)
 
Math.Vector3D getPosition ()
 
None setRadius (float radius)
 
float getRadius ()
 
None setColor (int color)
 
int getColor ()
 
None setHardness (float hardness)
 
float getHardness ()
 

Properties

 objectID = property(getObjectID)
 
 radius = property(getRadius, setRadius)
 
 color = property(getColor, setColor)
 
 hardness = property(getHardness, setHardness)
 
 position = property(getPosition, setPosition)
 

Constructor & Destructor Documentation

◆ __init__()

None CDPL.Shape.GaussianShape.Element.__init__ ( Element  elem)

Initializes a copy of the Element instance elem.

Parameters
elemThe Element instance to copy.

Member Function Documentation

◆ getObjectID()

int CDPL.Shape.GaussianShape.Element.getObjectID ( )

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

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

◆ assign()

Element CDPL.Shape.GaussianShape.Element.assign ( Element  elem)

Replaces the current state of self with a copy of the state of the Element instance elem.

Parameters
elemThe Element instance to copy.
Returns
self

◆ setPosition()

None CDPL.Shape.GaussianShape.Element.setPosition ( Math.Vector3D  pos)
Parameters
pos

◆ getPosition()

Math.Vector3D CDPL.Shape.GaussianShape.Element.getPosition ( )
Returns

◆ setRadius()

None CDPL.Shape.GaussianShape.Element.setRadius ( float  radius)
Parameters
radius

◆ getRadius()

float CDPL.Shape.GaussianShape.Element.getRadius ( )
Returns

◆ setColor()

None CDPL.Shape.GaussianShape.Element.setColor ( int  color)
Parameters
color

◆ getColor()

int CDPL.Shape.GaussianShape.Element.getColor ( )
Returns

◆ setHardness()

None CDPL.Shape.GaussianShape.Element.setHardness ( float  hardness)
Parameters
hardness

◆ getHardness()

float CDPL.Shape.GaussianShape.Element.getHardness ( )
Returns