Chemical Data Processing Library C++ API - Version 1.0.0
GaussianShapeGenerator.hpp
Go to the documentation of this file.
1 /*
2  * GaussianShapeGenerator.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_SHAPE_GAUSSIANSHAPEGENERATOR_HPP
30 #define CDPL_SHAPE_GAUSSIANSHAPEGENERATOR_HPP
31 
32 #include <vector>
33 #include <memory>
34 
35 #include "CDPL/Shape/APIPrefix.hpp"
40 
41 
42 namespace CDPL
43 {
44 
45  namespace Chem
46  {
47 
48  class Atom;
49  }
50 
51  namespace Shape
52  {
53 
55  {
56 
57  public:
58  typedef std::shared_ptr<GaussianShapeGenerator> SharedPointer;
59 
61 
62  void generateMoleculeShape(bool generate);
63 
64  bool generateMoleculeShape() const;
65 
66  void generatePharmacophoreShape(bool generate);
67 
69 
70  void multiConformerMode(bool multi_conf);
71 
72  bool multiConformerMode() const;
73 
74  void includeHydrogens(bool include);
75 
76  bool includeHydrogens() const;
77 
78  void setAtomRadius(double radius);
79 
80  double getAtomRadius() const;
81 
82  void setAtomHardness(double hardness);
83 
84  double getAtomHardness();
85 
86  void setFeatureRadius(double radius);
87 
88  double getFeatureRadius() const;
89 
90  void setFeatureHardness(double hardness);
91 
93 
95 
97 
99 
101 
103 
104  const GaussianShapeSet& getShapes() const;
105 
106  private:
107  typedef std::vector<const Chem::Atom*> AtomList;
108 
109  template <typename CoordsFunc>
110  void createShape(const Chem::MolecularGraph& molgraph, const CoordsFunc& coords_func,
111  GaussianShape& shape);
112 
113  template <typename CoordsFunc>
114  void createShape(const CoordsFunc& coords_func, GaussianShape& shape) const;
115 
117 
118  ShapeCache shapeCache;
121  bool genMolShape;
122  bool genPharmShape;
123  bool incHydrogens;
124  bool multiConf;
125  double atomRadius;
126  double atomHardness;
127  double ftrRadius;
128  double ftrHardness;
129  GaussianShapeSet shapes;
131  AtomList shapeAtoms;
132  };
133  } // namespace Shape
134 } // namespace CDPL
135 
136 #endif // CDPL_SHAPE_GAUSSIANSHAPEGENERATOR_HPP
ObjectStack.hpp
Definition of the class CDPL::Util::ObjectStack.
CDPL::Shape::GaussianShapeSet
Definition: GaussianShapeSet.hpp:46
CDPL::Shape::GaussianShapeGenerator::setAtomRadius
void setAtomRadius(double radius)
BasicPharmacophore.hpp
Definition of the class CDPL::Pharm::BasicPharmacophore.
CDPL::Shape::GaussianShapeGenerator::getAtomHardness
double getAtomHardness()
CDPL::Shape::GaussianShapeGenerator::GaussianShapeGenerator
GaussianShapeGenerator()
GaussianShapeSet.hpp
Definition of the class CDPL::Shape::GaussianShapeSet.
CDPL::Shape::GaussianShapeGenerator::includeHydrogens
bool includeHydrogens() const
CDPL::Chem::MolecularGraph
MolecularGraph.
Definition: MolecularGraph.hpp:52
CDPL::Shape::GaussianShapeGenerator::setFeatureRadius
void setFeatureRadius(double radius)
CDPL::Shape::GaussianShapeGenerator::SharedPointer
std::shared_ptr< GaussianShapeGenerator > SharedPointer
Definition: GaussianShapeGenerator.hpp:58
CDPL::Shape::GaussianShapeGenerator::getPharmacophoreGenerator
Pharm::PharmacophoreGenerator & getPharmacophoreGenerator() const
CDPL::Shape::GaussianShapeGenerator::multiConformerMode
void multiConformerMode(bool multi_conf)
CDPL::Shape::GaussianShapeGenerator::getDefaultPharmacophoreGenerator
Pharm::DefaultPharmacophoreGenerator & getDefaultPharmacophoreGenerator()
CDPL::Shape::GaussianShape
A data type for the descripton of arbitrary shapes composed of spheres approximated by gaussian funct...
Definition: GaussianShape.hpp:51
CDPL::Shape::GaussianShapeGenerator::generate
const GaussianShapeSet & generate(const Chem::MolecularGraph &molgraph)
CDPL::Shape::GaussianShapeGenerator::generateMoleculeShape
bool generateMoleculeShape() const
CDPL::Shape::GaussianShapeGenerator::getShapes
const GaussianShapeSet & getShapes() const
CDPL::Shape::GaussianShapeGenerator::setAtomHardness
void setAtomHardness(double hardness)
CDPL::Shape::GaussianShapeGenerator::includeHydrogens
void includeHydrogens(bool include)
CDPL::Pharm::BasicPharmacophore
BasicPharmacophore.
Definition: BasicPharmacophore.hpp:52
CDPL_SHAPE_API
#define CDPL_SHAPE_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL
The namespace of the Chemical Data Processing Library.
APIPrefix.hpp
Definition of the preprocessor macro CDPL_SHAPE_API.
CDPL::Pharm::PharmacophoreGenerator
PharmacophoreGenerator.
Definition: PharmacophoreGenerator.hpp:49
CDPL::Shape::GaussianShapeGenerator::setPharmacophoreGenerator
void setPharmacophoreGenerator(Pharm::PharmacophoreGenerator &gen)
DefaultPharmacophoreGenerator.hpp
Definition of the class CDPL::Pharm::DefaultPharmacophoreGenerator.
CDPL::Shape::GaussianShapeGenerator::getFeatureRadius
double getFeatureRadius() const
CDPL::Shape::GaussianShapeGenerator::generateMoleculeShape
void generateMoleculeShape(bool generate)
CDPL::Shape::GaussianShapeGenerator::setFeatureHardness
void setFeatureHardness(double hardness)
CDPL::Pharm::DefaultPharmacophoreGenerator
DefaultPharmacophoreGenerator.
Definition: DefaultPharmacophoreGenerator.hpp:48
CDPL::Util::ObjectStack< GaussianShape >
CDPL::Shape::GaussianShapeGenerator::generatePharmacophoreShape
void generatePharmacophoreShape(bool generate)
CDPL::Shape::GaussianShapeGenerator::multiConformerMode
bool multiConformerMode() const
CDPL::Shape::GaussianShapeGenerator::generatePharmacophoreShape
bool generatePharmacophoreShape() const
CDPL::Shape::GaussianShapeGenerator::getDefaultPharmacophoreGenerator
const Pharm::DefaultPharmacophoreGenerator & getDefaultPharmacophoreGenerator() const
CDPL::Shape::GaussianShapeGenerator
Definition: GaussianShapeGenerator.hpp:55
CDPL::Shape::GaussianShapeGenerator::getFeatureHardness
double getFeatureHardness()
CDPL::Shape::GaussianShapeGenerator::getAtomRadius
double getAtomRadius() const