Translation Class Reference

#include <Translation.hpp>

Inheritance diagram for Translation:

Inheritance graph
[legend]
Collaboration diagram for Translation:

Collaboration graph
[legend]

List of all members.

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< TransformgetCopy () const
 Translation (const TinyVector< 3, real_t > &t)
 Translation (const Translation &T)
 Copy constructor.
 ~Translation ()
const TransTypetype () 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


Detailed Description

Definition at line 33 of file Translation.hpp.


Constructor & Destructor Documentation

Translation::Translation ( const TinyVector< 3, real_t > &  t  ) 

Constructor

Parameters:
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

Parameters:
T given Translation

Definition at line 46 of file Translation.cpp.

00047   : Transform(t),
00048     __vect(t.__vect)
00049 {
00050   ;
00051 }

Translation::~Translation (  )  [inline]

Destructor

Definition at line 91 of file Translation.hpp.

00092   {
00093     ;
00094   }


Member Function Documentation

TinyVector< 3, real_t > Translation::operator() ( const TinyVector< 3, real_t > &  x  )  const

Applies the translation to a vector

Parameters:
x given vector
Returns:
$ x+b $

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

Parameters:
x 
Returns:
$ x-b $

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

Returns:
Translation 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

Returns:
deep copy of the Translation

Implements Transform.

Definition at line 69 of file Translation.cpp.

References Translation().

00070 {
00071   return new Translation(*this);
00072 }

Here is the call graph for this function:

const TransType& Transform::type (  )  const [inline, inherited]

Read-only access to the type of the transformation.

Returns:
__type

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

Parameters:
x given point
Returns:
$ T(x) $

virtual TinyVector<3,real_t> Transform::inverse ( const TinyVector< 3 > &  x  )  const [pure virtual, inherited]

Applies the inverse transformation to a point

Parameters:
x given point
Returns:
$ T^{-1}(x) $


Member Data Documentation

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]

Transformation type

Definition at line 52 of file Transform.hpp.

Referenced by Transform::type().


The documentation for this class was generated from the following files:

Generated on Wed Nov 19 00:16:33 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6