BALL::GeometricCenterProcessor Class Reference
[Geometric property processors.]

#include <BALL/STRUCTURE/geometricProperties.h>

Inheritance diagram for BALL::GeometricCenterProcessor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Processor related methods

virtual bool start ()
virtual bool finish ()
virtual Processor::Result operator() (Atom &atom)
virtual Processor::Result operator() (const Vector3 &v)
Accessors

Vector3getCenter ()

Private Attributes

Vector3 center_
Size n_

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 124 of file geometricProperties.h.


Member Function Documentation

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

finish method

Reimplemented from BALL::UnaryProcessor< Atom >.

Vector3& BALL::GeometricCenterProcessor::getCenter (  ) 

Returns the center of the object

virtual Processor::Result BALL::GeometricCenterProcessor::operator() ( const Vector3 v  )  [virtual]
virtual Processor::Result BALL::GeometricCenterProcessor::operator() ( Atom  )  [inline, virtual]

operator ()

Reimplemented from BALL::UnaryProcessor< Atom >.

Definition at line 145 of file geometricProperties.h.

virtual bool BALL::GeometricCenterProcessor::start (  )  [virtual]

start method

Reimplemented from BALL::UnaryProcessor< Atom >.


Member Data Documentation

Definition at line 167 of file geometricProperties.h.

Definition at line 168 of file geometricProperties.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3