LOOS  v2.3.2
loos::DensityTools::WaterFilterBlob Class Reference

Pick waters based on a grid-mask. More...

#include <internal-water-filter.hpp>

Inheritance diagram for loos::DensityTools::WaterFilterBlob:
Collaboration diagram for loos::DensityTools::WaterFilterBlob:

Public Member Functions

 WaterFilterBlob (const DensityGrid< int > &blob)
virtual std::string name (void) const
 Just states the name of the filter/picker.
virtual double volume (void)
 Calculate the volume of the region we can pick waters from...
std::vector< int > filter (const loos::AtomicGroup &, const loos::AtomicGroup &)
 Given a molecule and a set of waters, pick which waters are inside. More...
std::vector< loos::GCoordboundingBox (const loos::AtomicGroup &)
 Calculate the appropriate bounding box (given the molecule)

Additional Inherited Members

- Protected Attributes inherited from loos::DensityTools::WaterFilterBase
std::vector< loos::GCoordbdd_

Detailed Description

Pick waters based on a grid-mask.

Water coordinates are converted into grid coords. If the corresponding grid value is non-zero, then the water is deemed internal.

The bounding box is the bounding box for all non-zero grid elements.

Definition at line 186 of file internal-water-filter.hpp.

Member Function Documentation

vector< int > loos::DensityTools::WaterFilterBlob::filter ( const loos::AtomicGroup ,
const loos::AtomicGroup  

Given a molecule and a set of waters, pick which waters are inside.

The result is a map of which waters are inside (1 = inside, 0 = not)

Implements loos::DensityTools::WaterFilterBase.

Definition at line 310 of file internal-water-filter.cpp.

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