![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
A single sphere of the Gaussian shape, characterized by a position, radius, hardness and color. More...
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) |
| Sets the position of the sphere center. More... | |
| Math.Vector3D | getPosition () |
| Returns the position of the sphere center. More... | |
| None | setRadius (float radius) |
| Sets the sphere radius. More... | |
| float | getRadius () |
| Returns the sphere radius. More... | |
| None | setColor (int color) |
| Sets the color attribute of the sphere. More... | |
| int | getColor () |
| Returns the color attribute of the sphere. More... | |
| None | setHardness (float hardness) |
| Sets the hardness of the Gaussian. More... | |
| float | getHardness () |
| Returns the hardness of the Gaussian. More... | |
Properties | |
| objectID = property(getObjectID) | |
| radius = property(getRadius, setRadius) | |
| color = property(getColor, setColor) | |
| hardness = property(getHardness, setHardness) | |
| position = property(getPosition, setPosition) | |
A single sphere of the Gaussian shape, characterized by a position, radius, hardness and color.
| 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 | ) |
Sets the position of the sphere center.
| pos | The sphere center position. |
| Math.Vector3D CDPL.Shape.GaussianShape.Element.getPosition | ( | ) |
Returns the position of the sphere center.
| None CDPL.Shape.GaussianShape.Element.setRadius | ( | float | radius | ) |
Sets the sphere radius.
| radius | The sphere radius. |
| float CDPL.Shape.GaussianShape.Element.getRadius | ( | ) |
Returns the sphere radius.
| None CDPL.Shape.GaussianShape.Element.setColor | ( | int | color | ) |
Sets the color attribute of the sphere.
| color | The color attribute. |
| int CDPL.Shape.GaussianShape.Element.getColor | ( | ) |
Returns the color attribute of the sphere.
| None CDPL.Shape.GaussianShape.Element.setHardness | ( | float | hardness | ) |
Sets the hardness of the Gaussian.
| hardness | The Gaussian hardness. |
| float CDPL.Shape.GaussianShape.Element.getHardness | ( | ) |
Returns the hardness of the Gaussian.