High-level driver for the generation of a single low-energy 3D structure from a molecular graph.
More...
#include <StructureGenerator.hpp>
High-level driver for the generation of a single low-energy 3D structure from a molecular graph.
Internally delegates to the same pipeline as class ConfGen::ConformerGenerator but stops after the first acceptable conformer has been produced.
◆ StructureGenerator() [1/2]
| CDPL::ConfGen::StructureGenerator::StructureGenerator |
( |
| ) |
|
Constructs the StructureGenerator instance.
◆ StructureGenerator() [2/2]
◆ ~StructureGenerator()
| CDPL::ConfGen::StructureGenerator::~StructureGenerator |
( |
| ) |
|
◆ operator=()
◆ getSettings() [1/2]
Returns the current generator settings.
- Returns
- A
const reference to the settings.
◆ getSettings() [2/2]
Returns the current generator settings (mutable).
- Returns
- A reference to the settings.
◆ clearFragmentLibraries()
| void CDPL::ConfGen::StructureGenerator::clearFragmentLibraries |
( |
| ) |
|
Removes all configured fragment libraries.
◆ addFragmentLibrary()
Adds lib to the list of fragment libraries consulted during fragment-based 3D structure generation.
- Parameters
-
| lib | The fragment library to add. |
◆ clearTorsionLibraries()
| void CDPL::ConfGen::StructureGenerator::clearTorsionLibraries |
( |
| ) |
|
Removes all configured torsion libraries.
◆ addTorsionLibrary()
Adds lib to the list of torsion libraries consulted during torsion driving.
- Parameters
-
| lib | The torsion library to add. |
◆ setAbortCallback()
| void CDPL::ConfGen::StructureGenerator::setAbortCallback |
( |
const CallbackFunction & |
func | ) |
|
Sets the callback invoked periodically to allow the generation to be aborted by the user.
- Parameters
-
| func | The abort-check callback. |
◆ getAbortCallback()
| const CallbackFunction& CDPL::ConfGen::StructureGenerator::getAbortCallback |
( |
| ) |
const |
Returns the currently configured abort-check callback.
- Returns
- A
const reference to the abort-check callback.
◆ setTimeoutCallback()
| void CDPL::ConfGen::StructureGenerator::setTimeoutCallback |
( |
const CallbackFunction & |
func | ) |
|
Sets the callback invoked periodically to check whether the configured timeout has elapsed.
- Parameters
-
| func | The timeout-check callback. |
◆ getTimeoutCallback()
| const CallbackFunction& CDPL::ConfGen::StructureGenerator::getTimeoutCallback |
( |
| ) |
const |
Returns the currently configured timeout-check callback.
- Returns
- A
const reference to the timeout-check callback.
◆ setLogMessageCallback()
Sets the callback receiving log messages emitted by the generator.
- Parameters
-
| func | The log-message callback. |
◆ getLogMessageCallback()
Returns the currently configured log-message callback.
- Returns
- A
const reference to the log-message callback.
◆ generate() [1/3]
Generates a single 3D structure for molgraph.
- Parameters
-
| molgraph | The input molecular graph. |
- Returns
- A ConfGen::ReturnCode value reporting the outcome of the generation.
◆ generate() [2/3]
Generates a single 3D structure for molgraph while keeping the substructure fixed_substr at its current 3D coordinates.
- Parameters
-
| molgraph | The input molecular graph. |
| fixed_substr | The substructure that must retain its current 3D coordinates. |
- Returns
- A ConfGen::ReturnCode value reporting the outcome of the generation.
- Since
- 1.1
◆ generate() [3/3]
Generates a single 3D structure for molgraph while keeping the substructure fixed_substr at the supplied 3D coordinates fixed_substr_coords.
- Parameters
-
| molgraph | The input molecular graph. |
| fixed_substr | The substructure that must retain the supplied 3D coordinates. |
| fixed_substr_coords | The 3D coordinates assigned to fixed_substr. |
- Returns
- A ConfGen::ReturnCode value reporting the outcome of the generation.
- Since
- 1.1
◆ setCoordinates()
Transfers the generated 3D coordinates onto the atoms of molgraph (via Chem::set3DCoordinates).
- Parameters
-
| molgraph | The molecular graph receiving the 3D coordinates. |
◆ getCoordinates()
| const ConformerData& CDPL::ConfGen::StructureGenerator::getCoordinates |
( |
| ) |
const |
Returns the conformer data produced by the most recent generate() call.
- Returns
- A
const reference to the conformer data.
The documentation for this class was generated from the following file: