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

#include <BALL/STRUCTURE/geometricProperties.h>

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

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 ()
 
- Public Member Functions inherited from BALL::UnaryProcessor< Atom >
 UnaryProcessor ()
 
 UnaryProcessor (const UnaryProcessor &)
 
virtual ~UnaryProcessor ()
 

Private Attributes

Vector3 center_
 
Size n_
 

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 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() ( Atom )
inlinevirtual

operator ()

Reimplemented from BALL::UnaryProcessor< Atom >.

Definition at line 145 of file geometricProperties.h.

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

start method

Reimplemented from BALL::UnaryProcessor< Atom >.

Member Data Documentation

Vector3 BALL::GeometricCenterProcessor::center_
private

Definition at line 167 of file geometricProperties.h.

Size BALL::GeometricCenterProcessor::n_
private

Definition at line 168 of file geometricProperties.h.