#include <openbabel/grid.h>

Public Member Functions | |
| OBGrid () | |
| 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 > *) |
| template<class T> | |
| T * | CastAndClear (bool clear=true) |
Generic data handling methods (via OBGenericData) | |
| 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) |
| unsigned int | 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 | |
| double | _xmin |
| double | _xmax |
| double | _ymin |
| double | _ymax |
| double | _zmin |
| double | _zmax |
| std::vector< OBGenericData * > | _vdata |
| OBGrid | ( | ) | [inline] |
| void Init | ( | OBMol & | box | ) | [virtual] |
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.
Referenced by OBFloatGrid::Init(), and OBProxGrid::Setup().
| double GetXmin | ( | ) | const [inline] |
| double GetYmin | ( | ) | const [inline] |
| double GetZmin | ( | ) | const [inline] |
| double GetXmax | ( | ) | const [inline] |
| double GetYmax | ( | ) | const [inline] |
| double GetZmax | ( | ) | const [inline] |
| bool PointIsInBox | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [inline] |
| bool PointIsInBox | ( | double * | c | ) | [inline] |
| bool PointIsInBox | ( | vector3 | v | ) | [inline] |
| bool Clear | ( | void | ) | [virtual, inherited] |
Clear any and all data associated with this object.
This method can be called by OBConversion::Read() before reading data. Derived classes should be sure to call OBBase::Clear() to remove inherited generic data.
Reimplemented in OBAtom, OBMol, and OBResidue.
Referenced by OBResidue::Clear(), OBMol::Clear(), and OBAtom::Clear().
| virtual OBBase* DoTransformations | ( | const std::map< std::string, std::string > * | ) | [inline, virtual, inherited] |
Perform a set of transformations specified by the user
Typically these are program options to filter or modify an object For example, see OBMol::DoTransformations() and OBMol::ClassDescription()
Reimplemented in OBMol.
| static const char* ClassDescription | ( | ) | [inline, static, inherited] |
Reimplemented in OBMol, and OBReaction.
| T* CastAndClear | ( | bool | clear = true |
) | [inline, inherited] |
By default clears the object. Called from ReadMolecule of most format classes.
| bool HasData | ( | const std::string & | s | ) | [inherited] |
Referenced by OBMol::AddAtom(), OBMol::FindAngles(), OBMol::FindSSSR(), OBMol::FindTorsions(), OBForceField::GetConformers(), OBForceField::GetCoordinates(), OBMol::GetEnergies(), OBMol::GetEnergy(), OBMol::GetSSSR(), OBBase::HasData(), OBDescriptor::MatchPairData(), OBMol::NewAtom(), OBMol::operator=(), and OBMol::SetEnergies().
| bool HasData | ( | const char * | s | ) | [inherited] |
| bool HasData | ( | const unsigned int | type | ) | [inherited] |
| void DeleteData | ( | unsigned int | type | ) | [inherited] |
Delete any data matching the given OBGenericDataType.
Referenced by OBMol::AddAtom(), OBMol::BeginModify(), OBBuilder::CorrectStereoBonds(), OBDescriptor::DeleteProperties(), OBMol::FindSSSR(), OBMol::NewAtom(), and OBForceField::Setup().
| void DeleteData | ( | OBGenericData * | gd | ) | [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.
| void SetData | ( | OBGenericData * | d | ) | [inline, inherited] |
Adds a data object; does nothing if d==NULL.
Referenced by OBMol::AddBond(), OBGastChrg::AssignPartialCharges(), OpenBabel::CalcSignedVolume(), OBMol::DoTransformations(), OBAtom::Duplicate(), OBMol::FindAngles(), OBMol::FindSSSR(), OBMol::FindTorsions(), OBForceField::GetConformers(), OBForceField::GetCoordinates(), OBMol::GetEnergies(), OBMol::GetEnergy(), OBMol::GetFormula(), OBMol::GetNextFragment(), OBMol::GetSSSR(), OBMoleculeFormat::MakeCombinedMolecule(), OBMol::operator=(), OBDescriptor::PredictAndSave(), OBMol::SetEnergies(), and OBMol::SetFormula().
| void CloneData | ( | OBGenericData * | d | ) | [inherited] |
Adds a copy of a data object; does nothing if d == NULL
| unsigned int DataSize | ( | ) | const [inline, inherited] |
| OBGenericData * GetData | ( | const unsigned int | type | ) | [inherited] |
Referenced by OpenBabel::CalcSignedVolume(), OpenBabel::CorrectChirality(), OBDescriptor::FilterCompare(), OBForceField::GetConformers(), OBForceField::GetCoordinates(), OBMol::GetNextFragment(), OBDescriptor::GetValues(), OBMoleculeFormat::MakeCombinedMolecule(), OBMolAngleIter::OBMolAngleIter(), OBMolRingIter::OBMolRingIter(), OBMolTorsionIter::OBMolTorsionIter(), OBMol::operator=(), and OBDescriptor::PredictAndSave().
| OBGenericData * GetData | ( | const std::string & | s | ) | [inherited] |
the value given an attribute name
| OBGenericData * GetData | ( | const char * | s | ) | [inherited] |
the value given an attribute name
| std::vector<OBGenericData*>& GetData | ( | ) | [inline, inherited] |
Referenced by OBMol::BeginModify(), OBMol::DoTransformations(), OBMol::FindSSSR(), OBBase::GetData(), OBMol::GetEnergies(), OBMol::GetEnergy(), OBMol::GetFormula(), OBMol::GetSSSR(), OBMol::SetEnergies(), and OBMol::SetFormula().
| std::vector< OBGenericData * > GetData | ( | DataOrigin | source | ) | [inherited] |
| std::vector< OBGenericData * > GetAllData | ( | const unsigned int | type | ) | [inherited] |
| OBDataIterator BeginData | ( | ) | [inline, inherited] |
Referenced by OBMol::AddAtom(), OBAtom::Duplicate(), OBMoleculeFormat::MakeCombinedMolecule(), OBMol::NewAtom(), and OBMol::operator=().
| OBDataIterator EndData | ( | ) | [inline, inherited] |
Referenced by OBMol::AddAtom(), OBAtom::Duplicate(), OBMoleculeFormat::MakeCombinedMolecule(), OBMol::NewAtom(), and OBMol::operator=().
double _xmin [protected] |
Referenced by OBFloatGrid::CoordsToIndex(), OBProxGrid::GetProxVector(), OBFloatGrid::IndexToCoords(), OBFloatGrid::Init(), OBGrid::Init(), OBFloatGrid::Interpolate(), OBFloatGrid::InterpolateDerivatives(), OpenBabel::operator<<(), OpenBabel::operator>>(), OBFloatGrid::SetLimits(), and OBProxGrid::Setup().
double _xmax [protected] |
double _ymin [protected] |
Referenced by OBFloatGrid::CoordsToIndex(), OBProxGrid::GetProxVector(), OBFloatGrid::IndexToCoords(), OBFloatGrid::Init(), OBGrid::Init(), OBFloatGrid::Interpolate(), OBFloatGrid::InterpolateDerivatives(), OpenBabel::operator<<(), OpenBabel::operator>>(), OBFloatGrid::SetLimits(), and OBProxGrid::Setup().
double _ymax [protected] |
double _zmin [protected] |
Referenced by OBFloatGrid::CoordsToIndex(), OBProxGrid::GetProxVector(), OBFloatGrid::IndexToCoords(), OBFloatGrid::Init(), OBGrid::Init(), OBFloatGrid::Interpolate(), OBFloatGrid::InterpolateDerivatives(), OpenBabel::operator<<(), OpenBabel::operator>>(), OBFloatGrid::SetLimits(), and OBProxGrid::Setup().
double _zmax [protected] |
the min/max axes in XYZ axes (i.e., the box)
Referenced by OBProxGrid::GetProxVector(), OBFloatGrid::Init(), OBGrid::Init(), OBFloatGrid::Inject(), OBFloatGrid::Interpolate(), OBFloatGrid::InterpolateDerivatives(), OpenBabel::operator<<(), OpenBabel::operator>>(), OBFloatGrid::SetLimits(), and OBProxGrid::Setup().
std::vector<OBGenericData*> _vdata [protected, inherited] |
Custom data.
Referenced by OBBase::Clear(), OBBase::CloneData(), OBBase::DeleteData(), OBAtom::Duplicate(), OBBase::GetAllData(), OBBase::GetData(), OBBase::HasData(), OBBond::OBBond(), OBMol::OBMol(), and OBResidue::OBResidue().