Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | Public Member Functions | List of all members
CDPL::Shape::GaussianShapeGenerator Class Reference

Generates Shape::GaussianShape instances from molecular graphs. More...

#include <GaussianShapeGenerator.hpp>

Public Types

typedef std::shared_ptr< GaussianShapeGeneratorSharedPointer
 A reference-counted smart pointer [SHPTR] for dynamically allocated GaussianShapeGenerator instances. More...
 

Public Member Functions

 GaussianShapeGenerator ()
 Constructs the GaussianShapeGenerator instance. More...
 
void generateMoleculeShape (bool generate)
 Specifies whether a molecular (atom-based) shape shall be generated. More...
 
bool generateMoleculeShape () const
 Tells whether a molecular (atom-based) shape is generated. More...
 
void generatePharmacophoreShape (bool generate)
 Specifies whether a pharmacophore (feature-based) shape shall be generated. More...
 
bool generatePharmacophoreShape () const
 Tells whether a pharmacophore (feature-based) shape is generated. More...
 
void multiConformerMode (bool multi_conf)
 Specifies whether to emit one shape per conformer (instead of using the first conformer only). More...
 
bool multiConformerMode () const
 Tells whether the generator runs in multi-conformer mode. More...
 
void includeHydrogens (bool include)
 Specifies whether hydrogens are included when generating the molecular shape. More...
 
bool includeHydrogens () const
 Tells whether hydrogens are included when generating the molecular shape. More...
 
void setAtomRadius (double radius)
 Sets the sphere radius used for all atoms (negative value: use atom-specific Van der Waals radii). More...
 
double getAtomRadius () const
 Returns the currently configured atom sphere radius. More...
 
void setAtomHardness (double hardness)
 Sets the Gaussian hardness used for all atom spheres. More...
 
double getAtomHardness ()
 Returns the currently configured atom Gaussian hardness. More...
 
void setFeatureRadius (double radius)
 Sets the sphere radius used for all features (negative value: use feature-specific tolerances). More...
 
double getFeatureRadius () const
 Returns the currently configured feature sphere radius. More...
 
void setFeatureHardness (double hardness)
 Sets the Gaussian hardness used for all feature spheres. More...
 
double getFeatureHardness ()
 Returns the currently configured feature Gaussian hardness. More...
 
void setPharmacophoreGenerator (Pharm::PharmacophoreGenerator &gen)
 Specifies the pharmacophore generator used when emitting pharmacophore shapes. More...
 
Pharm::PharmacophoreGeneratorgetPharmacophoreGenerator () const
 Returns the currently configured pharmacophore generator. More...
 
const Pharm::DefaultPharmacophoreGeneratorgetDefaultPharmacophoreGenerator () const
 Returns the built-in default pharmacophore generator. More...
 
Pharm::DefaultPharmacophoreGeneratorgetDefaultPharmacophoreGenerator ()
 Returns the built-in default pharmacophore generator (mutable). More...
 
const GaussianShapeSetgenerate (const Chem::MolecularGraph &molgraph)
 Generates the set of Gaussian shapes for molgraph. More...
 
const GaussianShapeSetgetShapes () const
 Returns the shapes produced by the most recent call to generate(). More...
 

Detailed Description

Generates Shape::GaussianShape instances from molecular graphs.

The generator can emit shape representations of the molecule itself (one sphere per atom), of a pharmacophore derived from the molecule (one sphere per feature), or both. In multi-conformer mode, one Gaussian shape is generated per conformer.

Member Typedef Documentation

◆ SharedPointer

A reference-counted smart pointer [SHPTR] for dynamically allocated GaussianShapeGenerator instances.

Constructor & Destructor Documentation

◆ GaussianShapeGenerator()

CDPL::Shape::GaussianShapeGenerator::GaussianShapeGenerator ( )

Constructs the GaussianShapeGenerator instance.

Member Function Documentation

◆ generateMoleculeShape() [1/2]

void CDPL::Shape::GaussianShapeGenerator::generateMoleculeShape ( bool  generate)

Specifies whether a molecular (atom-based) shape shall be generated.

Parameters
generatetrue to enable the generation of the molecular shape, and false to disable it.

◆ generateMoleculeShape() [2/2]

bool CDPL::Shape::GaussianShapeGenerator::generateMoleculeShape ( ) const

Tells whether a molecular (atom-based) shape is generated.

Returns
true if the molecular shape is generated, and false otherwise.

◆ generatePharmacophoreShape() [1/2]

void CDPL::Shape::GaussianShapeGenerator::generatePharmacophoreShape ( bool  generate)

Specifies whether a pharmacophore (feature-based) shape shall be generated.

Parameters
generatetrue to enable the generation of the pharmacophore shape, and false to disable it.

◆ generatePharmacophoreShape() [2/2]

bool CDPL::Shape::GaussianShapeGenerator::generatePharmacophoreShape ( ) const

Tells whether a pharmacophore (feature-based) shape is generated.

Returns
true if the pharmacophore shape is generated, and false otherwise.

◆ multiConformerMode() [1/2]

void CDPL::Shape::GaussianShapeGenerator::multiConformerMode ( bool  multi_conf)

Specifies whether to emit one shape per conformer (instead of using the first conformer only).

Parameters
multi_conftrue to enable multi-conformer mode, and false to use the first conformer only.

◆ multiConformerMode() [2/2]

bool CDPL::Shape::GaussianShapeGenerator::multiConformerMode ( ) const

Tells whether the generator runs in multi-conformer mode.

Returns
true if multi-conformer mode is enabled, and false otherwise.

◆ includeHydrogens() [1/2]

void CDPL::Shape::GaussianShapeGenerator::includeHydrogens ( bool  include)

Specifies whether hydrogens are included when generating the molecular shape.

Parameters
includetrue to include hydrogens, and false to ignore them.

◆ includeHydrogens() [2/2]

bool CDPL::Shape::GaussianShapeGenerator::includeHydrogens ( ) const

Tells whether hydrogens are included when generating the molecular shape.

Returns
true if hydrogens are included, and false otherwise.

◆ setAtomRadius()

void CDPL::Shape::GaussianShapeGenerator::setAtomRadius ( double  radius)

Sets the sphere radius used for all atoms (negative value: use atom-specific Van der Waals radii).

Parameters
radiusThe new atom sphere radius.

◆ getAtomRadius()

double CDPL::Shape::GaussianShapeGenerator::getAtomRadius ( ) const

Returns the currently configured atom sphere radius.

Returns
The atom sphere radius.

◆ setAtomHardness()

void CDPL::Shape::GaussianShapeGenerator::setAtomHardness ( double  hardness)

Sets the Gaussian hardness used for all atom spheres.

Parameters
hardnessThe new atom Gaussian hardness.

◆ getAtomHardness()

double CDPL::Shape::GaussianShapeGenerator::getAtomHardness ( )

Returns the currently configured atom Gaussian hardness.

Returns
The atom Gaussian hardness.

◆ setFeatureRadius()

void CDPL::Shape::GaussianShapeGenerator::setFeatureRadius ( double  radius)

Sets the sphere radius used for all features (negative value: use feature-specific tolerances).

Parameters
radiusThe new feature sphere radius.

◆ getFeatureRadius()

double CDPL::Shape::GaussianShapeGenerator::getFeatureRadius ( ) const

Returns the currently configured feature sphere radius.

Returns
The feature sphere radius.

◆ setFeatureHardness()

void CDPL::Shape::GaussianShapeGenerator::setFeatureHardness ( double  hardness)

Sets the Gaussian hardness used for all feature spheres.

Parameters
hardnessThe new feature Gaussian hardness.

◆ getFeatureHardness()

double CDPL::Shape::GaussianShapeGenerator::getFeatureHardness ( )

Returns the currently configured feature Gaussian hardness.

Returns
The feature Gaussian hardness.

◆ setPharmacophoreGenerator()

void CDPL::Shape::GaussianShapeGenerator::setPharmacophoreGenerator ( Pharm::PharmacophoreGenerator gen)

Specifies the pharmacophore generator used when emitting pharmacophore shapes.

Parameters
genThe pharmacophore generator.

◆ getPharmacophoreGenerator()

Pharm::PharmacophoreGenerator& CDPL::Shape::GaussianShapeGenerator::getPharmacophoreGenerator ( ) const

Returns the currently configured pharmacophore generator.

Returns
A reference to the pharmacophore generator.

◆ getDefaultPharmacophoreGenerator() [1/2]

const Pharm::DefaultPharmacophoreGenerator& CDPL::Shape::GaussianShapeGenerator::getDefaultPharmacophoreGenerator ( ) const

Returns the built-in default pharmacophore generator.

Returns
A const reference to the default pharmacophore generator.

◆ getDefaultPharmacophoreGenerator() [2/2]

Pharm::DefaultPharmacophoreGenerator& CDPL::Shape::GaussianShapeGenerator::getDefaultPharmacophoreGenerator ( )

Returns the built-in default pharmacophore generator (mutable).

Returns
A reference to the default pharmacophore generator.

◆ generate()

const GaussianShapeSet& CDPL::Shape::GaussianShapeGenerator::generate ( const Chem::MolecularGraph molgraph)

Generates the set of Gaussian shapes for molgraph.

Parameters
molgraphThe molecular graph.
Returns
A const reference to the generated Shape::GaussianShapeSet.

◆ getShapes()

const GaussianShapeSet& CDPL::Shape::GaussianShapeGenerator::getShapes ( ) const

Returns the shapes produced by the most recent call to generate().

Returns
A const reference to the produced Shape::GaussianShapeSet.

The documentation for this class was generated from the following file: