Documentation


animal::octree::Frame Class Reference

#include <Frame.h>

List of all members.

Public Member Functions

 Frame ()
 Frame (const Vec3d origin, const Vec3d u, const Vec3d v, const Vec3d w)
 ~Frame ()
Vec3d getVector (unsigned int i) const
Vec3d operator[] (unsigned int i) const
void setVector (unsigned int i, Vec3d v)
Vec3d getOrigin () const
void setOrigin (Vec3d v)
HMat getMatrix () const
HMat getInvMatrix () const
Vec3d computePosition (Vec3d params, Vec3d scaling=Vec3d(1, 1, 1)) const
 Given the local coordinates params, get the position in the global frame Also give a scale value for the vectors.

Vec3d getLocalCoordinates (Vec3d Q)
 Given the global coordinates, get the local coordinates in the frame.


Protected Attributes

std::vector< Vec3d_frame
Vec3d _origin
HMat _matrix
HMat _invMatrix
bool _invMatrixComputed


Constructor & Destructor Documentation

animal::octree::Frame::Frame  ) 
 

Definition at line 11 of file Frame.cpp.

References _invMatrix, and animal::Matrix< T >::resize().

animal::octree::Frame::Frame const Vec3d  origin,
const Vec3d  u,
const Vec3d  v,
const Vec3d  w
 

Definition at line 18 of file Frame.cpp.

References _invMatrix, getOrigin(), getVector(), animal::Matrix< T >::resize(), and animal::octree::Vec3d.

animal::octree::Frame::~Frame  ) 
 

Definition at line 38 of file Frame.cpp.


Member Function Documentation

Vec3d animal::octree::Frame::computePosition Vec3d  params,
Vec3d  scaling = Vec3d(1, 1, 1)
const
 

Given the local coordinates params, get the position in the global frame Also give a scale value for the vectors.

Definition at line 67 of file Frame.cpp.

References animal::octree::Vec3d.

HMat animal::octree::Frame::getInvMatrix  )  const [inline]
 

Definition at line 37 of file Frame.h.

References _invMatrix, and animal::octree::HMat.

Vec3d animal::octree::Frame::getLocalCoordinates Vec3d  Q  ) 
 

Given the global coordinates, get the local coordinates in the frame.

Definition at line 94 of file Frame.cpp.

References animal::octree::getMatrixInverse(), animal::octree::HVec, animal::octree::HVecToVec3d(), animal::v_eq_Ab(), animal::octree::Vec3d, and animal::octree::Vec3dToHVec().

HMat animal::octree::Frame::getMatrix  )  const [inline]
 

Definition at line 36 of file Frame.h.

References animal::octree::HMat.

Vec3d animal::octree::Frame::getOrigin  )  const [inline]
 

Definition at line 33 of file Frame.h.

References _origin, and animal::octree::Vec3d.

Referenced by animal::octree::Octree::directManipulation(), and Frame().

Vec3d animal::octree::Frame::getVector unsigned int  i  )  const
 

Definition at line 57 of file Frame.cpp.

References Require, and animal::octree::Vec3d.

Referenced by animal::octree::Octree::directManipulation(), Frame(), and animal::octree::Octree::structureChangedRecLeaves().

Vec3d animal::octree::Frame::operator[] unsigned int  i  )  const
 

Definition at line 62 of file Frame.cpp.

References animal::octree::Vec3d.

void animal::octree::Frame::setOrigin Vec3d  v  ) 
 

Definition at line 49 of file Frame.cpp.

References animal::octree::Vec3d.

Referenced by animal::octree::Octree::directManipulation(), animal::octree::ConstrainedVertex::setPosition(), and animal::octree::Octree::structureChangedRecLeaves().

void animal::octree::Frame::setVector unsigned int  i,
Vec3d  v
 

Definition at line 41 of file Frame.cpp.

References animal::octree::Vec3d.

Referenced by animal::octree::Octree::directManipulation(), and animal::octree::Octree::structureChangedRecLeaves().


Member Data Documentation

std::vector<Vec3d> animal::octree::Frame::_frame [protected]
 

Definition at line 53 of file Frame.h.

HMat animal::octree::Frame::_invMatrix [protected]
 

Definition at line 57 of file Frame.h.

Referenced by Frame(), and getInvMatrix().

bool animal::octree::Frame::_invMatrixComputed [protected]
 

Definition at line 59 of file Frame.h.

HMat animal::octree::Frame::_matrix [protected]
 

Definition at line 56 of file Frame.h.

Vec3d animal::octree::Frame::_origin [protected]
 

Definition at line 54 of file Frame.h.

Referenced by getOrigin().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:32 2004 by doxygen 1.3.6