FDH14::RotInfo Class Reference

#include <FDH14.h>

List of all members.

Public Member Functions

 RotInfo ()
 RotInfo (const float trMat[4][4])
 RotInfo (const Matrix4f &trMat)
 RotInfo (const Vector3 &direction)
virtual ~RotInfo ()
void recompute (const float trMat[4][4])
void recompute (const Matrix4f &trMat)
void recompute (const Vector3 &direction)
FDH_Precomp get (int index) const
RotInfoclone (void) const
Matrix4 getMat (void) const

Static Public Member Functions

static float fast_lp (const FDH_Precomp &r, const float origFDH[])

Protected Member Functions

void fdh_precomp (FDH_Precomp *r, const float c[])

Protected Attributes

FDH_Precompr
 array of precomp. values (2 or 14 values)
float mat [4][4]
 actual rotation or directional matrix
int rotation
 Vvalues of rotation or extent.

Static Protected Attributes

static const int _SgnCtrl [8][4]
 aux matrix

Friends

class FDH14

Classes

struct  FDH_Precomp


Detailed Description

Precomputed informations for FDH14 rotation

Definition at line 109 of file FDH14.h.


Constructor & Destructor Documentation

RotInfo  ) 
 

Constructor - sets the transformation matrix to initial

Definition at line 385 of file FDH14.cc.

References FDH14::RotInfo::r, FDH14::RotInfo::recompute(), and FDH14::RotInfo::rotation.

Referenced by FDH14::RotInfo::clone().

RotInfo const float  trMat[4][4]  ) 
 

Constructor

Parameters:
trMat transformation matrix

Definition at line 394 of file FDH14.cc.

References FDH14::RotInfo::r, FDH14::RotInfo::recompute(), and FDH14::RotInfo::rotation.

RotInfo const Matrix4f &  trMat  ) 
 

Constructor

Parameters:
trMat transformation matrix

Definition at line 401 of file FDH14.cc.

References FDH14::RotInfo::r, FDH14::RotInfo::recompute(), and FDH14::RotInfo::rotation.

RotInfo const Vector3 direction  ) 
 

Constructor for one direction

Parameters:
direction direction

Definition at line 408 of file FDH14.cc.

References FDH14::RotInfo::r, FDH14::RotInfo::recompute(), and FDH14::RotInfo::rotation.

virtual ~RotInfo  )  [inline, virtual]
 

Destructor

Definition at line 168 of file FDH14.h.

References FDH14::RotInfo::r.


Member Function Documentation

FDH14::RotInfo * clone void   )  const
 

Returns:
duplicate

Definition at line 529 of file FDH14.cc.

References FDH14::RotInfo::mat, FDH14::RotInfo::r, FDH14::RotInfo::rotation, FDH14::RotInfo::RotInfo(), and FDH14::SIZE.

static float fast_lp const FDH_Precomp r,
const float  origFDH[]
[inline, static]
 

Computes new FDH value for rotated FDH

Parameters:
r precomputed values for FDH
origDH original (non-transformed) FDH
Returns:
rotated FDH value (extent)

Definition at line 177 of file FDH14.h.

References FDH14::RotInfo::FDH_Precomp::p, FDH14::RotInfo::r, FDH14::RotInfo::FDH_Precomp::tau, FDH14::RotInfo::FDH_Precomp::v1, and FDH14::RotInfo::FDH_Precomp::v2.

Referenced by FDH14::_rotate(), FDH14::_rotateX(), FDH14::_rotateY(), FDH14::_rotateZ(), FDH14::_transform(), and FDH14::extent().

void fdh_precomp FDH_Precomp r,
const float  c[]
[inline, protected]
 

Definition at line 308 of file FDH14.cc.

FDH_Precomp get int  index  )  const [inline]
 

Returns:
precomputed value for i-th direction
Parameters:
index direction index

Definition at line 217 of file FDH14.h.

References FDH14::RotInfo::r.

Referenced by FDH14::_rotate(), FDH14::_rotateX(), FDH14::_rotateY(), FDH14::_rotateZ(), FDH14::_transform(), and FDH14::extent().

Matrix4 getMat void   )  const
 

Returns:
actual transformation matrix

Definition at line 553 of file FDH14.cc.

References FDH14::RotInfo::mat.

void recompute const Vector3 direction  ) 
 

Recomputes rotation informations for given direction

Parameters:
direction direction

Definition at line 494 of file FDH14.cc.

References for(), FDH14::RotInfo::mat, and FDH14::RotInfo::rotation.

void recompute const Matrix4f &  trMat  ) 
 

Recomputes rotation informations for given transformation matrix

Parameters:
trMat transformation matrix

Definition at line 454 of file FDH14.cc.

References FDH14::FDHMat, FDH14::RotInfo::mat, FDH14::RotInfo::r, FDH14::RotInfo::rotation, and FDH14::SIZE.

void recompute const float  trMat[4][4]  ) 
 

Recomputes rotation informations for given transformation matrix

Parameters:
trMat transformation matrix

Definition at line 415 of file FDH14.cc.

References FDH14::FDHMat, FDH14::RotInfo::mat, FDH14::RotInfo::r, FDH14::RotInfo::rotation, and FDH14::SIZE.

Referenced by FDH14::RotInfo::RotInfo().


Friends And Related Function Documentation

friend class FDH14 [friend]
 

Definition at line 110 of file FDH14.h.


Member Data Documentation

const int _SgnCtrl [static, protected]
 

Initial value:

{
     {10, 12, 11, 13},
     {12, 10,  6,  4},
     {11,  6, 10,  5},
     { 6, 11, 12,  3},
     {13,  4,  5, 10},
     { 4, 13,  3, 12},
     { 5,  3, 13, 11},
     { 3,  5,  4,  6}
}
aux matrix

Definition at line 127 of file FDH14.h.

float mat[4][4] [protected]
 

actual rotation or directional matrix

Definition at line 130 of file FDH14.h.

Referenced by FDH14::RotInfo::clone(), FDH14::RotInfo::getMat(), and FDH14::RotInfo::recompute().

FDH_Precomp* r [protected]
 

array of precomp. values (2 or 14 values)

Definition at line 129 of file FDH14.h.

Referenced by FDH14::RotInfo::clone(), FDH14::RotInfo::fast_lp(), FDH14::RotInfo::get(), FDH14::RotInfo::recompute(), FDH14::RotInfo::RotInfo(), and FDH14::RotInfo::~RotInfo().

int rotation [protected]
 

Vvalues of rotation or extent.

Definition at line 131 of file FDH14.h.

Referenced by FDH14::RotInfo::clone(), FDH14::RotInfo::recompute(), and FDH14::RotInfo::RotInfo().


The documentation for this class was generated from the following files:
Generated on Wed Jun 28 12:24:34 2006 for esg by  doxygen 1.4.6