Public Member Functions | Private Attributes
Transformation2D Class Reference

Class to describe a transformation of poses in 2D. This inplies a translation in x and y direction each and a rotation. More...

#include <Transformation2D.h>

Inheritance diagram for Transformation2D:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Transformation2D abs () const
Transformation2D inverse () const
bool operator!= (Transformation2D t) const
Transformation2D operator* (float factor) const
Transformation2Doperator*= (float factor)
Transformation2D operator+ (Transformation2D t) const
Transformation2Doperator+= (Transformation2D t)
Transformation2D operator- (Transformation2D t) const
Transformation2Doperator-= (Transformation2D t)
Transformation2D operator/ (float factor) const
Transformation2Doperator/= (float factor)
bool operator< (Transformation2D t) const
bool operator<= (Transformation2D t) const
bool operator== (Transformation2D t) const
bool operator> (Transformation2D t) const
bool operator>= (Transformation2D t) const
void set (double x, double y, double theta)
double theta () const
std::string toString () const
Point2D transform (const Point2D &point) const
std::vector< Point2D > transform (const std::vector< Point2D > &points) const
Line2D transform (const Line2D &line) const
std::vector< Line2Dtransform (const std::vector< Line2D > &lines) const
 Transformation2D (double x, double y, double theta)
 Transformation2D (const CVec2 &vec, double theta)
 Transformation2D ()
 ~Transformation2D ()

Private Attributes

double m_Theta

Detailed Description

Class to describe a transformation of poses in 2D. This inplies a translation in x and y direction each and a rotation.

Author:
Susanne Maur

Definition at line 28 of file Transformation2D.h.


Constructor & Destructor Documentation

Transformation2D::Transformation2D ( double  x,
double  y,
double  theta 
)

Constructor that initializes the members.

Parameters:
xtranslation in x direction in m
ytranslation in y direction in m
thetarotation in radiants
Transformation2D::Transformation2D ( const CVec2 vec,
double  theta 
)

Constructor that initializes the members.

Parameters:
veca vector which represents the translation in x and y direction
thetarotation in radiants

Default constructor sets all members to 0.0.

Default destructor.


Member Function Documentation

Applies abs() on every attribute.

Inverts the transformation, scales every attribute with -1.

bool Transformation2D::operator!= ( Transformation2D  t) const
Transformation2D Transformation2D::operator* ( float  factor) const

Scales a transformation by a factor

Transformation2D& Transformation2D::operator*= ( float  factor)
Transformation2D Transformation2D::operator+ ( Transformation2D  t) const

Adds two transformations.

Transformation2D& Transformation2D::operator+= ( Transformation2D  t)
Transformation2D Transformation2D::operator- ( Transformation2D  t) const

Subtracts two transformations.

Transformation2D& Transformation2D::operator-= ( Transformation2D  t)
Transformation2D Transformation2D::operator/ ( float  factor) const

Scales a transformation by a factor

Transformation2D& Transformation2D::operator/= ( float  factor)
bool Transformation2D::operator< ( Transformation2D  t) const
bool Transformation2D::operator<= ( Transformation2D  t) const

Compare transformations. (attention: algebraic signs are taken into account, if necessary use fabs())

bool Transformation2D::operator== ( Transformation2D  t) const

Test equality of transformations.

bool Transformation2D::operator> ( Transformation2D  t) const
bool Transformation2D::operator>= ( Transformation2D  t) const
void Transformation2D::set ( double  x,
double  y,
double  theta 
)

Sets the values of transformation.

Parameters:
xtranslation in x direction in mm
ytranslation in y direction in mm
thetarotation in radiants
double Transformation2D::theta ( ) const

Returns the rotation in radiants.

Returns:
rotation in radiants
std::string Transformation2D::toString ( ) const

Returns the string representation of the transformation.

Returns:
string representation of the transformation.

Reimplemented from CVec2.

Point2D Transformation2D::transform ( const Point2D &  point) const

Transformes points by first rotation, then translating.

std::vector<Point2D> Transformation2D::transform ( const std::vector< Point2D > &  points) const
Line2D Transformation2D::transform ( const Line2D line) const

Transformes lines by first rotation, then translating.

std::vector<Line2D> Transformation2D::transform ( const std::vector< Line2D > &  lines) const

Member Data Documentation

double Transformation2D::m_Theta [private]

Definition at line 140 of file Transformation2D.h.


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


robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09