A grid for determining the proximity of a given point to atoms in an OBMol.
More...
#include <openbabel/grid.h>
List of all members.
Public Member Functions |
| | OBProxGrid (int gridtype=0) |
| | ~OBProxGrid () |
| void | Setup (OBMol &mol, OBMol &box, double cutoff, double resolution=0.5) |
| void | Setup (OBMol &mol, OBMol &box, double cutoff, std::vector< bool > &use, double resolution=0.5) |
| std::vector< int > * | GetProxVector (double, double, double) |
| std::vector< int > * | GetProxVector (double *) |
| bool | LipoGrid () |
| bool | PolarGrid () |
| void | SetGridType (int gridtype) |
| virtual void | Init (OBMol &box) |
| double | GetXmin () const |
| double | GetYmin () const |
| double | GetZmin () const |
| double | GetXmax () const |
| double | GetYmax () const |
| double | GetZmax () const |
| bool | PointIsInBox (double x, double y, double z) |
| bool | PointIsInBox (double *c) |
| bool | PointIsInBox (vector3 v) |
| virtual bool | Clear () |
| virtual OBBase * | DoTransformations (const std::map< std::string, std::string > *, OBConversion *) |
| template<class T > |
| T * | CastAndClear (bool clear=true) |
| virtual const char * | GetTitle (bool replaceNewlines=true) const |
| virtual void | SetTitle (const char *) |
|
| bool | HasData (const std::string &) |
| bool | HasData (const char *) |
| bool | HasData (const unsigned int type) |
| void | DeleteData (unsigned int type) |
| void | DeleteData (OBGenericData *) |
| void | DeleteData (std::vector< OBGenericData * > &) |
| bool | DeleteData (const std::string &s) |
| void | SetData (OBGenericData *d) |
| void | CloneData (OBGenericData *d) |
| size_t | DataSize () const |
| OBGenericData * | GetData (const unsigned int type) |
| OBGenericData * | GetData (const std::string &) |
| OBGenericData * | GetData (const char *) |
| std::vector< OBGenericData * > & | GetData () |
| std::vector< OBGenericData * > | GetData (DataOrigin source) |
| std::vector< OBGenericData * > | GetAllData (const unsigned int type) |
| OBDataIterator | BeginData () |
| OBDataIterator | EndData () |
Static Public Member Functions |
| static const char * | ClassDescription () |
Protected Attributes |
| int | _gridtype |
| int | _nxinc |
| int | _nyinc |
| int | _nzinc |
| int | _maxinc |
| double | _inc |
| std::vector< std::vector< int > > | cell |
| double | _xmin |
| double | _xmax |
| double | _ymin |
| double | _ymax |
| double | _zmin |
| double | _zmax |
| std::vector< OBGenericData * > | _vdata |
Detailed Description
A grid for determining the proximity of a given point to atoms in an OBMol.
- Deprecated:
- May be removed in the future, since docking is not a key feature
Constructor & Destructor Documentation
Member Function Documentation
| void Setup |
( |
OBMol & |
mol, |
|
|
OBMol & |
box, |
|
|
double |
cutoff, |
|
|
double |
resolution = 0.5 |
|
) |
| |
| void Setup |
( |
OBMol & |
mol, |
|
|
OBMol & |
box, |
|
|
double |
cutoff, |
|
|
std::vector< bool > & |
use, |
|
|
double |
resolution = 0.5 |
|
) |
| |
| vector< int > * GetProxVector |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
| vector< int > * GetProxVector |
( |
double * |
c ) |
|
| bool LipoGrid |
( |
) |
[inline] |
| bool PolarGrid |
( |
) |
[inline] |
| void SetGridType |
( |
int |
gridtype ) |
[inline] |
| void Init |
( |
OBMol & |
box ) |
[virtual, inherited] |
Initialize the grid based on a box around the molecule box Subclasses should overload this method -- this only tracks the dimension of the box itself.
| double GetXmin |
( |
) |
const [inline, inherited] |
- Returns:
- the minimum x point of the grid
| double GetYmin |
( |
) |
const [inline, inherited] |
- Returns:
- the minimum y point of the grid
| double GetZmin |
( |
) |
const [inline, inherited] |
- Returns:
- the minimum z point of the grid
| double GetXmax |
( |
) |
const [inline, inherited] |
- Returns:
- the maximum x point of the grid
| double GetYmax |
( |
) |
const [inline, inherited] |
- Returns:
- the maximum y point of the grid
| double GetZmax |
( |
) |
const [inline, inherited] |
- Returns:
- the maximum z point of the grid
| bool PointIsInBox |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| [inline, inherited] |
- Returns:
- whether the supplied XYZ coordinates fall within the box
| bool PointIsInBox |
( |
double * |
c ) |
[inline, inherited] |
- Returns:
- true if the point falls within the box
| bool PointIsInBox |
( |
vector3 |
v ) |
[inline, inherited] |
- Returns:
- true if the point falls within the box
| bool Clear |
( |
void |
) |
[virtual, inherited] |
| virtual OBBase* DoTransformations |
( |
const std::map< std::string, std::string > * |
, |
|
|
OBConversion * |
|
|
) |
| [inline, virtual, inherited] |
| static const char* ClassDescription |
( |
) |
[inline, static, inherited] |
| T* CastAndClear |
( |
bool |
clear = true ) |
[inline, inherited] |
By default clears the object. Called from ReadMolecule of most format classes.
| virtual const char* GetTitle |
( |
bool |
replaceNewlines = true ) |
const [inline, virtual, inherited] |
| virtual void SetTitle |
( |
const char * |
) |
[inline, virtual, inherited] |
| bool HasData |
( |
const std::string & |
s ) |
[inherited] |
| bool HasData |
( |
const char * |
s ) |
[inherited] |
- Returns:
- whether the generic attribute/value pair exists
| bool HasData |
( |
const unsigned int |
type ) |
[inherited] |
- Returns:
- whether the generic attribute/value pair exists, for a given OBGenericDataType
| void DeleteData |
( |
unsigned int |
type ) |
[inherited] |
Delete the given generic data from this object.
| void DeleteData |
( |
std::vector< OBGenericData * > & |
vg ) |
[inherited] |
Delete all of the given generic data from this object.
| bool DeleteData |
( |
const std::string & |
s ) |
[inherited] |
Deletes the generic data with the specified attribute, returning false if not found.
Adds a data object; does nothing if d==NULL.
Referenced by OBGastChrg::AssignPartialCharges(), OpenBabel::CalcSignedVolume(), OBForceField::GetAtomTypes(), OBForceField::GetConformers(), OBForceField::GetCoordinates(), OBMol::GetEnergies(), OBMol::GetEnergy(), OBMol::GetNextFragment(), OBForceField::GetPartialCharges(), OBMoleculeFormat::MakeCombinedMolecule(), OBDescriptor::PredictAndSave(), and OBMol::SetEnergies().
Adds a copy of a data object; does nothing if d == NULL
- Since:
- version 2.2
| size_t DataSize |
( |
) |
const [inline, inherited] |
- Returns:
- the number of OBGenericData items attached to this molecule.
- Returns:
- the first matching data for a given type from OBGenericDataType or NULL if nothing matches
Referenced by OpenBabel::CalcSignedVolume(), OpenBabel::CorrectChirality(), OBDepict::DrawMolecule(), OBDescriptor::FilterCompare(), OpenBabel::GetAtomSymClass(), OBForceField::GetAtomTypes(), OBForceField::GetConformers(), OBForceField::GetCoordinates(), OBMol::GetNextFragment(), OBForceField::GetPartialCharges(), OBDescriptor::GetValues(), OBMoleculeFormat::MakeCombinedMolecule(), OBMolAngleIter::OBMolAngleIter(), OBMolRingIter::OBMolRingIter(), OBMolTorsionIter::OBMolTorsionIter(), OBMol::operator=(), and OBDescriptor::PredictAndSave().
- Returns:
- any data matching the given attribute name or NULL if nothing matches
-
the value given an attribute name
- Returns:
- any data matching the given attribute name or NULL if nothing matches
-
the value given an attribute name
- Returns:
- all data with a specific origin, suitable for iterating
| std::vector< OBGenericData * > GetAllData |
( |
const unsigned int |
type ) |
[inherited] |
Member Data Documentation
std::vector<std::vector<int> > cell [protected] |
double _xmin [protected, inherited] |
double _xmax [protected, inherited] |
double _ymin [protected, inherited] |
double _ymax [protected, inherited] |
double _zmin [protected, inherited] |
double _zmax [protected, inherited] |
The documentation for this class was generated from the following files: