RenderTools::TransformNode Class Reference

#include <TransformNode.h>

Inheritance diagram for RenderTools::TransformNode:

RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface RenderTools::Camera RenderTools::RelationalNode RenderTools::Rendernode RenderTools::AbstractCurve RenderTools::Circle RenderTools::Plane RenderTools::Quadric RenderTools::TextNode RenderTools::Curve< T > RenderTools::Ellipsoid

List of all members.

Public Member Functions

 TransformNode (void)
virtual void createProperties (void)
virtual const string getTypeName (bool ofComponent=false) const
void transform (const Mat4 &global=Mat4())
virtual void onTransform (const Mat4 &global)
void setLocal (const Mat4 &matrix)
 set the current local transform
const Mat4getLocal (void) const
 get the current (const) local transform
Mat4getLocal (void)
 get the current (non-const) local transform
const Mat4getGlobal (void) const
 get the current (const) global transform
Mat4getGlobal (void)
 get the current (non-const) global transform
virtual const Mat4 getGlobal (const RelationalNodePtr root) const
void setPreviousLocal (const Mat4 &matrix)
 set the previous local transform
const Mat4getPreviousLocal (void) const
 get the previous (const) local transform
Mat4getPreviousLocal (void)
 get the previous (non-const) local transform
const Mat4getPreviousGlobal (void) const
 get the previous (const) global transform
Mat4getPreviousGlobal (void)
 get the previous (non-const) global transform
void setMovement (const Vec3 &v, const Quat &q=Quat(), bool relative=true, bool push=true)
 move and rotate, either relative or absolute
void setMovement (const Mat4 &matrix, bool relative=true, bool push=true)
Vec3 getMovement (const Vec3 &global=Vec3(), bool fromPrevious=false) const
Vec3 warpVector (const Vec3 &p) const
bool needsWarping (const Vec3 &p) const
void warp (void)
void warp (const Vec3 &p)
void setWarping (bool state, const Vec3 &halfExtent=Vec3())
const NAABBgetNAABB (void) const
const AABBgetAABB (void) const
void setNAABB (const NAABB &box, bool send=true)
void setAABB (const AABB &box, bool send=true)

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())

Protected Attributes

Mat4 m_local
Mat4 m_global
Mat4 m_previousLocal
Mat4 m_previousGlobal
bool m_warp
Vec3 m_warpVector
NAABB m_naabb
AABB m_aabb


Detailed Description

Definition at line 10 of file TransformNode.h.


Constructor & Destructor Documentation

RenderTools::TransformNode::TransformNode ( void   ) 

Definition at line 7 of file TransformNode.cpp.


Member Function Documentation

static PropertyPtr RenderTools::TransformNode::create ( const XMLNodePtr xml = XMLNodePtr()  )  [static]

void RenderTools::TransformNode::createProperties ( void   )  [virtual]

const AABB & RenderTools::TransformNode::getAABB ( void   )  const

Definition at line 232 of file TransformNode.cpp.

const Mat4 RenderTools::TransformNode::getGlobal ( const RelationalNodePtr  root  )  const [virtual]

Definition at line 36 of file TransformNode.cpp.

Mat4 & RenderTools::TransformNode::getGlobal ( void   ) 

get the current (non-const) global transform

Definition at line 62 of file TransformNode.cpp.

const Mat4 & RenderTools::TransformNode::getGlobal ( void   )  const

get the current (const) global transform

Definition at line 57 of file TransformNode.cpp.

Mat4 & RenderTools::TransformNode::getLocal ( void   ) 

get the current (non-const) local transform

Definition at line 73 of file TransformNode.cpp.

const Mat4 & RenderTools::TransformNode::getLocal ( void   )  const

get the current (const) local transform

Definition at line 68 of file TransformNode.cpp.

Vec3 RenderTools::TransformNode::getMovement ( const Vec3 global = Vec3(),
bool  fromPrevious = false 
) const

Definition at line 151 of file TransformNode.cpp.

const NAABB & RenderTools::TransformNode::getNAABB ( void   )  const

Definition at line 228 of file TransformNode.cpp.

Mat4 & RenderTools::TransformNode::getPreviousGlobal ( void   ) 

get the previous (non-const) global transform

Definition at line 88 of file TransformNode.cpp.

const Mat4 & RenderTools::TransformNode::getPreviousGlobal ( void   )  const

get the previous (const) global transform

Definition at line 93 of file TransformNode.cpp.

Mat4 & RenderTools::TransformNode::getPreviousLocal ( void   ) 

get the previous (non-const) local transform

Definition at line 98 of file TransformNode.cpp.

const Mat4 & RenderTools::TransformNode::getPreviousLocal ( void   )  const

get the previous (const) local transform

Definition at line 83 of file TransformNode.cpp.

const string RenderTools::TransformNode::getTypeName ( bool  ofComponent = false  )  const [virtual]

bool RenderTools::TransformNode::needsWarping ( const Vec3 p  )  const

Definition at line 183 of file TransformNode.cpp.

void RenderTools::TransformNode::onTransform ( const Mat4 global  )  [virtual]

Reimplemented in RenderTools::RelationalNode.

Definition at line 26 of file TransformNode.cpp.

void RenderTools::TransformNode::setAABB ( const AABB box,
bool  send = true 
)

Definition at line 241 of file TransformNode.cpp.

void RenderTools::TransformNode::setLocal ( const Mat4 matrix  ) 

set the current local transform

Definition at line 78 of file TransformNode.cpp.

void RenderTools::TransformNode::setMovement ( const Mat4 matrix,
bool  relative = true,
bool  push = true 
)

Definition at line 133 of file TransformNode.cpp.

void RenderTools::TransformNode::setMovement ( const Vec3 v,
const Quat q = Quat(),
bool  relative = true,
bool  push = true 
)

move and rotate, either relative or absolute

Definition at line 108 of file TransformNode.cpp.

void RenderTools::TransformNode::setNAABB ( const NAABB box,
bool  send = true 
)

Definition at line 236 of file TransformNode.cpp.

void RenderTools::TransformNode::setPreviousLocal ( const Mat4 matrix  ) 

set the previous local transform

Definition at line 103 of file TransformNode.cpp.

void RenderTools::TransformNode::setWarping ( bool  state,
const Vec3 halfExtent = Vec3() 
)

Definition at line 223 of file TransformNode.cpp.

void RenderTools::TransformNode::transform ( const Mat4 global = Mat4()  ) 

Definition at line 22 of file TransformNode.cpp.

void RenderTools::TransformNode::warp ( const Vec3 p  ) 

Definition at line 196 of file TransformNode.cpp.

void RenderTools::TransformNode::warp ( void   ) 

Definition at line 208 of file TransformNode.cpp.

Vec3 RenderTools::TransformNode::warpVector ( const Vec3 p  )  const

Definition at line 168 of file TransformNode.cpp.


Member Data Documentation

Definition at line 53 of file TransformNode.h.

Definition at line 47 of file TransformNode.h.

Definition at line 46 of file TransformNode.h.

Definition at line 52 of file TransformNode.h.

Definition at line 49 of file TransformNode.h.

Definition at line 48 of file TransformNode.h.

Definition at line 50 of file TransformNode.h.

Definition at line 51 of file TransformNode.h.


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

Generated on Wed Jan 26 00:15:37 2011 for RenderTools by  doxygen 1.5.8