HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CVEX_Transform Class Reference

#include <CVEX_Transform.h>

Classes

class  Lookup
 Class to look-up user defined spaces. More...
 
class  LookupContext
 

Public Member Functions

 CVEX_Transform ()
 
 ~CVEX_Transform ()
 
void clear ()
 
UT_OpCalleropCaller () const
 
fpreal time () const
 
int cwdId () const
 
int worldId () const
 
void getInputXform (int input, UT_Matrix4D &xform) const
 
int getInputXformId (int input) const
 
void setOpCaller (UT_OpCaller *c)
 
void setTime (fpreal t)
 
void setCwdId (int id)
 
void setWorldId (int id)
 
void setInputXform (int id, const UT_Matrix4D &xform)
 
void setInputXformId (int id, int nodeid)
 

Static Public Member Functions

static void setLookup (const UT_SharedPtr< Lookup > &lookup)
 Set the lookup object for arbitrary spaces. More...
 

Friends

template<VEX_Precision ALLPREC>
class CVEX_ContextT
 

Detailed Description

Each VEX shader can have a transform bound to it. This transform is used by the ptransform(), ntransform(), etc. functions to look up "world" or "object" space.

Variables in the shader are defined to be in "current" space. The CVEX context allows you to specify various transforms from the current space to another space. The other spaces are defined by the built-in VEX spaces:

  • "space:world": Transform current space to "world" space
  • "space:camera": Transform current to "camera" space
  • "space:object": Transform current to "object" space
  • "space:light": Transform current to "light" space

It's also possible to specify a "lookup" helper class which can be used to look up user defined spaces.

Definition at line 43 of file CVEX_Transform.h.

Constructor & Destructor Documentation

CVEX_Transform::CVEX_Transform ( )
CVEX_Transform::~CVEX_Transform ( )

Member Function Documentation

void CVEX_Transform::clear ( )

Resets the transform so it can be re-used by different contexts.

int CVEX_Transform::cwdId ( ) const
inline

Get information about the context

Definition at line 170 of file CVEX_Transform.h.

void CVEX_Transform::getInputXform ( int  input,
UT_Matrix4D xform 
) const
inline

Get information about the context

Definition at line 172 of file CVEX_Transform.h.

int CVEX_Transform::getInputXformId ( int  input) const
inline

Get information about the context

Definition at line 173 of file CVEX_Transform.h.

UT_OpCaller* CVEX_Transform::opCaller ( ) const
inline

Get information about the context

Definition at line 168 of file CVEX_Transform.h.

void CVEX_Transform::setCwdId ( int  id)
inline

Set information about the context

Definition at line 180 of file CVEX_Transform.h.

void CVEX_Transform::setInputXform ( int  id,
const UT_Matrix4D xform 
)
inline

Set information about the context

Definition at line 182 of file CVEX_Transform.h.

void CVEX_Transform::setInputXformId ( int  id,
int  nodeid 
)
inline

Set information about the context

Definition at line 183 of file CVEX_Transform.h.

static void CVEX_Transform::setLookup ( const UT_SharedPtr< Lookup > &  lookup)
static

Set the lookup object for arbitrary spaces.

void CVEX_Transform::setOpCaller ( UT_OpCaller c)
inline

Set information about the context

Definition at line 178 of file CVEX_Transform.h.

void CVEX_Transform::setTime ( fpreal  t)
inline

Set information about the context

Definition at line 179 of file CVEX_Transform.h.

void CVEX_Transform::setWorldId ( int  id)
inline

Set information about the context

Definition at line 181 of file CVEX_Transform.h.

fpreal CVEX_Transform::time ( ) const
inline

Get information about the context

Definition at line 169 of file CVEX_Transform.h.

int CVEX_Transform::worldId ( ) const
inline

Get information about the context

Definition at line 171 of file CVEX_Transform.h.

Friends And Related Function Documentation

template<VEX_Precision ALLPREC>
friend class CVEX_ContextT
friend

Definition at line 195 of file CVEX_Transform.h.


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