OETransBase

class OETransBase

The OETransBase is the abstract base class which describes the interface for all of the high-level molecular transformation objects. It allows generic application of many manipulations (such as translation, Euler rotation, rotation by matrix, quaternion rotation) to conformers. All of the default transformation currently provided carry out rigid transformations of molecule positions rather than conformational modifications. These are provided in the OEMath namespace described below.

The following classes derive from this class:

CreateCopy

CreateCopy() -> OETransBase

It is a virtual const constructor which allows copying of concrete derived objects using a reference to this base class.

Extract

Extract(arg2: OEFloatArray, arg3: OEFloatArray) -> None
Extract(arg2: OEDoubleArray, arg3: OEFloatArray) -> None
Extract(arg2: OEFloatArray, arg3: OEDoubleArray) -> None
Extract(arg2: OEDoubleArray, arg3: OEDoubleArray) -> None

GetInverse

GetInverse() -> OETransBase

Transform

Transform(conf: OEConfBase) -> None
Transform(mol: Union[OEGraphMol,OEMol,OEQMol]) -> None

Applies the transformation specified by the OETransBase object to the molecule or conformer passed.

Transform(coords: OEFloatArray, rows: int, dim: int) -> None
Transform(coords: OEDoubleArray, rows: int, dim: int) -> None

Applies the transformation specified by the OETransBase object to the a set of coordinates (‘coords’). The ‘row’ argument specifies the number of coordinates in ‘coords’ array, while the ‘dim’ argument specifies the dimension of the coordinates. These methods presumes that the size of ‘coords’ at least \(rows*dim\). Both methods modify the coordinates in place.