BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
geometricTransformations.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H
6 #define BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H
7 
8 #ifndef BALL_COMMON_H
9 # include <BALL/common.h>
10 #endif
11 
12 #ifndef BALL_KERNEL_ATOM_H
13 # include <BALL/KERNEL/atom.h>
14 #endif
15 
16 #ifndef BALL_MATHS_VECTOR3_H
17 # include <BALL/MATHS/vector3.h>
18 #endif
19 
20 #ifndef BALL_MATHS_MATRIX44_H
21 # include <BALL/MATHS/matrix44.h>
22 #endif
23 
24 #ifndef BALL_CONCEPT_PROCESSOR_H
25 # include <BALL/CONCEPT/processor.h>
26 #endif
27 
28 namespace BALL
29 {
33 
42  : public UnaryProcessor<Atom>
43  {
44  public:
45 
51 
57  TranslationProcessor(const Vector3& translation);
58 
62  void setTranslation(const Vector3& translation);
63 
67  const Vector3& getTranslation() const;
68 
70  virtual Processor::Result operator()(Atom& atom);
71 
72 
73  private:
74 
76  };
77 
78 
88  :public UnaryProcessor<Atom>
89  {
90  public:
91 
106 
112  TransformationProcessor(const Matrix4x4& transformation);
113 
117  void setTransformation(const Matrix4x4& transformation);
118 
122  const Matrix4x4& getTransformation() const;
123 
125  virtual Processor::Result operator()(Atom& atom);
126 
127 
128  protected:
129 
131  };
132 
133 
135 
136 } // namespace BALL
137 
138 #endif // BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H