Chemical Data Processing Library Python API - Version 1.1.1
|
Public Member Functions | |
None | __init__ () |
Initializes the GaussianShapeOverlapFunction instance. | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
None | setShapeFunction (GaussianShapeFunction func, bool is_ref) |
GaussianShapeFunction | getShapeFunction (bool ref) |
None | setColorMatchFunction (Pharm.BoolSizeType2Functor func) |
Pharm.BoolSizeType2Functor | getColorMatchFunction () |
None | setColorFilterFunction (BoolSizeTypeFunctor func) |
BoolSizeTypeFunctor | getColorFilterFunction () |
float | calcSelfOverlap (bool ref) |
float | calcColorSelfOverlap (bool ref) |
float | calcOverlap () |
float | calcOverlap (Math.Vector3DArray coords) |
float | calcColorOverlap () |
float | calcColorOverlap (Math.Vector3DArray coords) |
float | calcOverlapGradient (Math.Vector3DArray coords, Math.Vector3DArray grad) |
Properties | |
objectID = property(getObjectID) | |
colorMatchFunction = property(getColorMatchFunction, setColorMatchFunction) | |
colorFilterFunction = property(getColorFilterFunction, setColorFilterFunction) | |
int CDPL.Shape.GaussianShapeOverlapFunction.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python GaussianShapeOverlapFunction 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 GaussianShapeOverlapFunction 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()
.
None CDPL.Shape.GaussianShapeOverlapFunction.setShapeFunction | ( | GaussianShapeFunction | func, |
bool | is_ref | ||
) |
func | |
is_ref |
GaussianShapeFunction CDPL.Shape.GaussianShapeOverlapFunction.getShapeFunction | ( | bool | ref | ) |
ref |
None CDPL.Shape.GaussianShapeOverlapFunction.setColorMatchFunction | ( | Pharm.BoolSizeType2Functor | func | ) |
func |
Pharm.BoolSizeType2Functor CDPL.Shape.GaussianShapeOverlapFunction.getColorMatchFunction | ( | ) |
None CDPL.Shape.GaussianShapeOverlapFunction.setColorFilterFunction | ( | BoolSizeTypeFunctor | func | ) |
func |
BoolSizeTypeFunctor CDPL.Shape.GaussianShapeOverlapFunction.getColorFilterFunction | ( | ) |
float CDPL.Shape.GaussianShapeOverlapFunction.calcSelfOverlap | ( | bool | ref | ) |
ref |
float CDPL.Shape.GaussianShapeOverlapFunction.calcColorSelfOverlap | ( | bool | ref | ) |
ref |
float CDPL.Shape.GaussianShapeOverlapFunction.calcOverlap | ( | ) |
float CDPL.Shape.GaussianShapeOverlapFunction.calcOverlap | ( | Math.Vector3DArray | coords | ) |
coords |
float CDPL.Shape.GaussianShapeOverlapFunction.calcColorOverlap | ( | ) |
float CDPL.Shape.GaussianShapeOverlapFunction.calcColorOverlap | ( | Math.Vector3DArray | coords | ) |
coords |
float CDPL.Shape.GaussianShapeOverlapFunction.calcOverlapGradient | ( | Math.Vector3DArray | coords, |
Math.Vector3DArray | grad | ||
) |
coords | |
grad |