BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members
BALL::GeometricCenterProcessor Class Reference

#include <BALL/STRUCTURE/geometricProperties.h>

Inheritance diagram for BALL::GeometricCenterProcessor:
BALL::ConstUnaryProcessor< Atom > BALL::UnaryFunctor< Atom, Processor::Result >

Public Member Functions

Processor related methods
virtual bool start ()
 
virtual bool finish ()
 
virtual Processor::Result operator() (const Atom &atom)
 
virtual Processor::Result operator() (const Vector3 &v)
 
Accessors
Vector3getCenter ()
 
- Public Member Functions inherited from BALL::ConstUnaryProcessor< Atom >
virtual ~ConstUnaryProcessor ()
 

Additional Inherited Members

- Public Types inherited from BALL::UnaryFunctor< Atom, Processor::Result >
typedef Processor::Result result_type
 
typedef Atom argument_type
 
typedef Atomargument_reference
 
typedef const Atomconst_argument_reference
 
typedef Atomargument_pointer
 
typedef const Atomconst_argument_pointer
 

Detailed Description

Calculates the geometric center of a given Composite object. This processor calculates the geometric center of the atom coordinates of a given molecular object.

The geometric center is calculated as follows:
[ {C} = {1}{N} {i}{N} {r_i} ] Where ${r_i}$ represents the coordinates of the ith atom.

Definition at line 133 of file geometricProperties.h.

Member Function Documentation

virtual bool BALL::GeometricCenterProcessor::finish ( )
virtual

Reimplemented from BALL::ConstUnaryProcessor< Atom >.

Vector3& BALL::GeometricCenterProcessor::getCenter ( )

Returns the center of the object

virtual Processor::Result BALL::GeometricCenterProcessor::operator() ( const Atom atom)
inlinevirtual

Reimplemented from BALL::ConstUnaryProcessor< Atom >.

Definition at line 154 of file geometricProperties.h.

virtual Processor::Result BALL::GeometricCenterProcessor::operator() ( const Vector3 v)
virtual
virtual bool BALL::GeometricCenterProcessor::start ( )
virtual

Reimplemented from BALL::ConstUnaryProcessor< Atom >.