Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

BoundingBoxProcessor Class Reference
[Geometric property processors.]

Bounding box creating processor. More...

#include <geometricProperties.h>

Inheritance diagram for BoundingBoxProcessor:

UnaryProcessor< Atom > UnaryFunctor< Atom, Processor::Result > List of all members.

Public Member Functions

Processor related methods.
virtual bool start () throw ()
 start method
virtual bool finish () throw ()
 finish method
virtual Processor::Result operator() (Atom &atom) throw ()
 operator ()
virtual Processor::Result operator() (const Vector3 &v) throw ()
Accessors
SimpleBox3 getBox () const throw ()
 Return the bounding box.
const Vector3getLower () const throw ()
 Returns the lower corner of the bounding box.
const Vector3getUpper () const throw ()
 Returns the upper corner of the bounding box.

Detailed Description

Bounding box creating processor.

This class iterates over all atoms of a given molecular object and determines the lowest and the highest coordinates occuring. It returns two coordinates ( getLower , getUpper ) describing the smallest cuboid (whose sides are parallel to the planes defined by the corrdinate axes) enclosing all atoms of the molecular object.

This processor is useful to determine the extent of a molecular object if you want to define a THashGrid or alike objects.
The coordinates returned by getLower and getUpper are only valid, if the processor has been applied to a molecular object containing atoms.