SLIMMER
Public Member Functions | Static Public Attributes | Protected Attributes
LinTransParam< T > Class Template Reference

Linear Transformation Parameters. More...

#include <SimpleLinTrans.h>

Inheritance diagram for LinTransParam< T >:
SimpleTVec< T, SLT_MAXPARAM > SimpleBaseTVec< T, unsigned int >

List of all members.

Public Member Functions

 LinTransParam (unsigned int np=6)
 Default Constructor and Destructor.
 LinTransParam (const LinTransParam< T > &L2)
 Copy Constructor.
LinTransParam< T > & operator= (const LinTransParam< T > &L2)
LinTransParam< T > operator+ (const LinTransParam< T > &v2) const
LinTransParam< T > operator- (const LinTransParam< T > &v2) const
void NullTrans ()
 Set Transformation to Null.
int NumParam () const
 Number of Active Parameters.
void SetNumParam (unsigned int np)
 Set Number of Active Parameters.
LinTransParam< T > & operator= (LinTransParam< T > &src)
 Assignment Operator.
SimpleTMat< float, 4, 4 > Param2Mat () const
 Return a 4x4 Homogeneous Coordinate Transformation Matrix---affine element changed.
SimpleTMat< float, 4, 4 > Param2MatOld () const
 Return a 4x4 Homogeneous Coordinate Transformation Matrix.
SimpleTVec< float, 9 > GetR () const
 Return the the elements of the rotation matrix in a vector.
SimpleTMat< float, 3, 3 > GetRmat () const
 Return the the elements of the rotation matrix.
SimpleTVec< float, 3 > GetV () const
 Return the z direction.
SimpleTVec< float, 3 > GetT () const
 Return the translation.
SimpleTVec< float, 9 > GetRderiv (int D) const
 Return the derived rotation matrix wrt. the Dth angle parameter in a vector.
SimpleTMat< float, 3, 3 > GetRmatderiv (int D) const
 Return the derived rotation matrix wrt. the Dth angle parameter.
void DecomposeMatrix (const SimpleTMat< float, 4, 4 > &m)
 Decompose 4x4 Homogeneous Coordinate Transformation Matrix.
int LoadTransParam (char *name)
 Load parameters from a DOF File.
int LoadTransParam (const string sName)
 load parameters from a DOF file (string)
int LoadMIDASTrans (char *name)
 Load Parameters from a Midas Parameter File.
bool SaveDof (char *name)
 Save Parameters to a DOF file.
void GetDof (SimpleTVec< float > &vec)
 Very Strange function needed by Kio ?
bool SaveMidas (char *name)
 Save Paremeters to Midas Transformation File.
SimpleTVec< float, 3 > InverseTransform (const SimpleTVec< float, 3 > &xyz) const
SimpleTVec< float, 3 > Transform (const SimpleTVec< float, 3 > &xyz) const
template<>
const char _versionID []

Static Public Attributes

static const char _versionID []

Protected Attributes

unsigned int _nP
 Total Number of ACTIVE Parameters: Can Change.

Detailed Description

template<typename T>
class LinTransParam< T >

Linear Transformation Parameters.

Class holding 3D Linear Transformation Parameters and Functions To Manipluate and Apply Spatial Linear Transformations

Derived from a Vector of Length 12, holds x,y,z, translations,
x,y,z rotations in degrees
x,y,z scaling factors
3 skew angles

How many of these are used are controlled by _nP, The Number of Active Parameters (defaults to 6)

Author:
Colin Studholme
Id:
SimpleLinTrans.h,v 1.36 2011/11/02 21:03:35 mads Exp

Member Function Documentation

template<typename T>
void LinTransParam< T >::DecomposeMatrix ( const SimpleTMat< float, 4, 4 > &  m) [inline]

Decompose 4x4 Homogeneous Coordinate Transformation Matrix.

================== Decompose Matrix =========================
------- Only Works for Rigid Transformation Parameters
Compatible with Derek Hills DOF parameters

template<typename T>
SimpleTMat<float,4,4> LinTransParam< T >::Param2Mat ( ) const [inline]

Return a 4x4 Homogeneous Coordinate Transformation Matrix---affine element changed.

---- Apply Skews

template<typename T>
SimpleTMat<float,4,4> LinTransParam< T >::Param2MatOld ( ) const [inline]

Return a 4x4 Homogeneous Coordinate Transformation Matrix.

---- Apply Skews

 All Classes Functions Variables Typedefs