BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Private Attributes
BALL::GeometricCenterProcessor Class Reference

#include <BALL/STRUCTURE/geometricProperties.h>

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

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

finish method

Reimplemented from BALL::UnaryProcessor< Atom >.

Returns the center of the object

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

operator ()

Reimplemented from BALL::UnaryProcessor< Atom >.

Definition at line 145 of file geometricProperties.h.

virtual Processor::Result BALL::GeometricCenterProcessor::operator() ( const Vector3 v) [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