BALL
1.4.79
|
#include <BALL/STRUCTURE/geometricProperties.h>
Public Member Functions | |
Constructors and Destructors | |
FragmentDistanceCollector () | |
FragmentDistanceCollector (const Composite &composite) | |
FragmentDistanceCollector (const Composite &composite, float distance) | |
virtual | ~FragmentDistanceCollector () |
Processor related methods | |
virtual bool | start () |
virtual bool | finish () |
virtual Processor::Result | operator() (const Composite &composite) |
Accessors | |
Size | getNumberOfFragments () |
void | setComposite (const Composite &composite) |
const Composite * | getComposite () const |
float | getDistance () const |
void | setDistance (float distance) |
Public Member Functions inherited from BALL::ConstUnaryProcessor< Composite > | |
virtual | ~ConstUnaryProcessor () |
Public Attributes | |
std::vector< const Fragment * > | fragments |
Protected Attributes | |
std::vector< const Fragment * > | all_fragments_ |
const Composite * | reference_composite_ |
float | squared_distance_ |
Additional Inherited Members | |
Public Types inherited from BALL::UnaryFunctor< Composite, Processor::Result > | |
typedef Processor::Result | result_type |
typedef Composite | argument_type |
typedef Composite & | argument_reference |
typedef const Composite & | const_argument_reference |
typedef Composite * | argument_pointer |
typedef const Composite * | const_argument_pointer |
Collects all MolecularFragments that are close enough to another molecular fragment. This processor examines the distances between every atom of a given fragment (further referred to as the reference fragment) and all other atoms in a molecular object he is applied to. If any atom of a fragment is closer to any atom of the reference fragment, the whole fragment is collected in an array.
Definition at line 198 of file geometricProperties.h.
BALL::FragmentDistanceCollector::FragmentDistanceCollector | ( | ) |
Default constructor
BALL::FragmentDistanceCollector::FragmentDistanceCollector | ( | const Composite & | composite | ) |
Constructor. Creates a new collector and sets the reference composite
composite | the reference composite |
BALL::FragmentDistanceCollector::FragmentDistanceCollector | ( | const Composite & | composite, |
float | distance | ||
) |
Constructor. Creates a new collector and sets the reference composite and the distance.
composite | the reference composite |
distance | the maximum distance between any two atoms |
|
inlinevirtual |
Definition at line 227 of file geometricProperties.h.
|
virtual |
Reimplemented from BALL::ConstUnaryProcessor< Composite >.
const Composite* BALL::FragmentDistanceCollector::getComposite | ( | ) | const |
Gets the reference composite
float BALL::FragmentDistanceCollector::getDistance | ( | ) | const |
Gets the maximum distance
Size BALL::FragmentDistanceCollector::getNumberOfFragments | ( | ) |
Returns the number of molecular fragments found
|
virtual |
Reimplemented from BALL::ConstUnaryProcessor< Composite >.
void BALL::FragmentDistanceCollector::setComposite | ( | const Composite & | composite | ) |
Sets the reference composite
composite | the new reference composite |
void BALL::FragmentDistanceCollector::setDistance | ( | float | distance | ) |
Sets the maximum distance
distance | the new maximum distance |
|
virtual |
Reimplemented from BALL::ConstUnaryProcessor< Composite >.
|
protected |
Definition at line 294 of file geometricProperties.h.
std::vector<const Fragment*> BALL::FragmentDistanceCollector::fragments |
The array containing all molecular fragments collected
Definition at line 289 of file geometricProperties.h.
|
protected |
Definition at line 295 of file geometricProperties.h.
|
protected |
Definition at line 296 of file geometricProperties.h.