Chemical Data Processing Library Python API - Version 1.1.1
|
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) | |
None CDPL.Shape.GaussianShape.Element.__init__ | ( | Element | elem | ) |
Initializes a copy of the Element instance elem.
elem | The Element instance to copy. |
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()
.
Replaces the current state of self with a copy of the state of the Element instance elem.
elem | The Element instance to copy. |
None CDPL.Shape.GaussianShape.Element.setPosition | ( | Math.Vector3D | pos | ) |
pos |
Math.Vector3D CDPL.Shape.GaussianShape.Element.getPosition | ( | ) |
None CDPL.Shape.GaussianShape.Element.setRadius | ( | float | radius | ) |
radius |
float CDPL.Shape.GaussianShape.Element.getRadius | ( | ) |
None CDPL.Shape.GaussianShape.Element.setColor | ( | int | color | ) |
color |
int CDPL.Shape.GaussianShape.Element.getColor | ( | ) |
None CDPL.Shape.GaussianShape.Element.setHardness | ( | float | hardness | ) |
hardness |
float CDPL.Shape.GaussianShape.Element.getHardness | ( | ) |