SymmetryClassCalculator.
More...
|
int | DEF_ATOM_PROPERTY_FLAGS = 158 |
| Specifies the default set of atomic properties considered in the perception of topological symmetry classes.
|
|
int | DEF_BOND_PROPERTY_FLAGS = 10 |
| Specifies the default set of bond properties considered in the perception of topological symmetry classes.
|
|
◆ __init__()
Constructs the SymmetryClassCalculator
instance and perceives the topological symmetry classes of the atoms in the molecular graph molgraph.
- Parameters
-
molgraph | The molecular graph for which to perceive the symmetry classes. |
class_ids | An array containing the perceived symmetry class IDs. The class IDs are stored in the same order as the atoms appear in the atom list of the molecular graph (i.e. the symmetry class of an atom is accessible via its index). |
◆ getObjectID()
int CDPL.Chem.SymmetryClassCalculator.getObjectID |
( |
| ) |
|
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python SymmetryClassCalculator 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 SymmetryClassCalculator 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.
◆ setAtomPropertyFlags()
None CDPL.Chem.SymmetryClassCalculator.setAtomPropertyFlags |
( |
int |
flags | ) |
|
Allows to specify the set of atomic properties that has to be considered in the perception of topological symmetry classes.
The flags argument is an OR combination of the constants defined in namespace Chem.AtomPropertyFlag. Supported property flags are:
- Parameters
-
flags | The set of atomic properties to consider. |
- Note
- The default set of atomic properties is specified by SymmetryClassCalculator.DEF_ATOM_PROPERTY_FLAGS.
◆ setBondPropertyFlags()
None CDPL.Chem.SymmetryClassCalculator.setBondPropertyFlags |
( |
int |
flags | ) |
|
Allows to specify the set of bond properties that has to be considered in the perception of topological symmetry classes.
The flags argument is an OR combination of the constants defined in namespace Chem.BondPropertyFlag. Supported property flags are:
- Parameters
-
flags | The set of bond properties to consider. |
- Note
- The default set of bond properties is specified by SymmetryClassCalculator.DEF_BOND_PROPERTY_FLAGS.
◆ includeImplicitHydrogens()
None CDPL.Chem.SymmetryClassCalculator.includeImplicitHydrogens |
( |
bool |
include | ) |
|
Allows to specify whether implicit hydrogen atoms shall be ignored or treated in the same way as explicit ones.
- Parameters
-
include | If True , implicit hydrogen atoms are treated as if they were explicit and are ignored otherwise. |
- Note
- By default, implicit hydrogen atoms are treated in the same way as explicit ones.
◆ getAtomPropertyFlags()
int CDPL.Chem.SymmetryClassCalculator.getAtomPropertyFlags |
( |
| ) |
|
Returns the set of atomic properties that gets considered in the perception of topological symmetry classes.
- Returns
- The set of considered atomic properties.
- See also
- setAtomPropertyFlags()
◆ getBondPropertyFlags()
int CDPL.Chem.SymmetryClassCalculator.getBondPropertyFlags |
( |
| ) |
|
Returns the set of bond properties that gets considered in the perception of topological symmetry classes.
- Returns
- The set of considered bond properties.
- See also
- setBondPropertyFlags()
◆ implicitHydrogensIncluded()
bool CDPL.Chem.SymmetryClassCalculator.implicitHydrogensIncluded |
( |
| ) |
|
Tells whether implicit hydrogen atoms are ignored or treated in the same way as explicit ones.
- Returns
True
if implicit hydrogen atoms are treated in the same way as explicit ones, and False
if they are ignored.
◆ calculate()
Perceives the topological symmetry classes of the atoms in the molecular graph molgraph.
- Parameters
-
molgraph | The molecular graph for which to perceive the symmetry classes. |
class_ids | An array containing the perceived symmetry class IDs. The class IDs are stored in the same order as the atoms appear in the atom list of the molecular graph (i.e. the symmetry class of an atom is accessible via its index). |