#include <Translation.hpp>


Public Member Functions | |
| TinyVector< 3, real_t > | operator() (const TinyVector< 3, real_t > &x) const |
| TinyVector< 3, real_t > | inverse (const TinyVector< 3, real_t > &x) const |
| std::string | povWrite () const |
| Prints Translation informations to a std::string. | |
| ReferenceCounting< Transform > | getCopy () const |
| Translation (const TinyVector< 3, real_t > &t) | |
| Translation (const Translation &T) | |
| Copy constructor. | |
| ~Translation () | |
| const TransType & | type () const |
| virtual TinyVector< 3, real_t > | operator() (const TinyVector< 3 > &x) const =0 |
| virtual TinyVector< 3, real_t > | inverse (const TinyVector< 3 > &x) const =0 |
Protected Attributes | |
| const TransType | __type |
Private Attributes | |
| const TinyVector< 3, real_t > | __vect |
Definition at line 33 of file Translation.hpp.
| Translation::Translation | ( | const TinyVector< 3, real_t > & | t | ) |
Constructor
| t | translation |
Definition at line 38 of file Translation.cpp.
Referenced by getCopy().
00039 : Transform(translation), 00040 __vect(v) 00041 { 00042 ; 00043 }
| Translation::Translation | ( | const Translation & | T | ) |
Copy constructor.
Copy constructor
| T | given Translation |
Definition at line 46 of file Translation.cpp.
| Translation::~Translation | ( | ) | [inline] |
| TinyVector< 3, real_t > Translation::operator() | ( | const TinyVector< 3, real_t > & | x | ) | const |
Applies the translation to a vector
| x | given vector |
Definition at line 26 of file Translation.cpp.
References __vect.
00027 { 00028 return v+__vect; 00029 }
| TinyVector< 3, real_t > Translation::inverse | ( | const TinyVector< 3, real_t > & | x | ) | const |
Applies the translation to a vector
| x |
Definition at line 32 of file Translation.cpp.
References __vect.
00033 { 00034 return v-__vect; 00035 }
| std::string Translation::povWrite | ( | ) | const [virtual] |
Prints Translation informations to a std::string.
Writes the Translation to a string
Implements Transform.
Definition at line 54 of file Translation.cpp.
References __vect.
00055 { 00056 std::stringstream povs; 00057 povs << "translation <" 00058 << __vect[0] 00059 << ", " 00060 << __vect[1] 00061 << ", " 00062 << __vect[2] 00063 << ">"; 00064 povs << std::ends; 00065 return povs.str(); 00066 }
| ReferenceCounting< Transform > Translation::getCopy | ( | ) | const [virtual] |
Gets a copy of the Translation
Implements Transform.
Definition at line 69 of file Translation.cpp.
References Translation().
00070 { 00071 return new Translation(*this); 00072 }

| const TransType& Transform::type | ( | ) | const [inline, inherited] |
Read-only access to the type of the transformation.
Definition at line 60 of file Transform.hpp.
References Transform::__type.
00061 { 00062 return __type; 00063 }
| virtual TinyVector<3,real_t> Transform::operator() | ( | const TinyVector< 3 > & | x | ) | const [pure virtual, inherited] |
Applies the transformation to a point
| x | given point |
| virtual TinyVector<3,real_t> Transform::inverse | ( | const TinyVector< 3 > & | x | ) | const [pure virtual, inherited] |
Applies the inverse transformation to a point
| x | given point |
const TinyVector<3,real_t> Translation::__vect [private] |
Translation vector
Definition at line 38 of file Translation.hpp.
Referenced by inverse(), operator()(), and povWrite().
const TransType Transform::__type [protected, inherited] |
1.5.6