HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CVEX_Transform::Lookup Class Referenceabstract

Class to look-up user defined spaces. More...

#include <CVEX_Transform.h>

Public Member Functions

 Lookup ()
 
virtual ~Lookup ()
 
virtual voidallocateUserData () const
 Allocate user data for the lookup context. More...
 
virtual void freeUserData (void *) const
 Delete the user data that was allocated for the lookup context. More...
 
virtual void clearUserData (void *) const
 Reset the user data so it can be re-used later. More...
 
virtual bool lookup (const char *name, UT_Matrix4D &m, const LookupContext &context)=0
 
virtual bool lookupInverse (const char *name, UT_Matrix4D &m, const LookupContext &context)
 
virtual bool lookupToNDC (const char *name, UT_Matrix4D &m, const LookupContext &context, bool &ortho) const
 Lookup NDC space given a name. More...
 
virtual bool lookupFromNDC (const char *name, UT_Matrix4D &m, const LookupContext &context, bool &ortho) const
 
virtual bool abspath (UT_StringHolder &result, const UT_StringHolder &relpath, const LookupContext &context) const
 Path functions. More...
 
virtual int idFromPath (const UT_StringHolder &relpath, const LookupContext &context) const
 
virtual bool pathFromId (UT_StringHolder &result, int id, const LookupContext &context) const
 

Detailed Description

Class to look-up user defined spaces.

Definition at line 110 of file CVEX_Transform.h.

Constructor & Destructor Documentation

CVEX_Transform::Lookup::Lookup ( )
inline

Definition at line 113 of file CVEX_Transform.h.

virtual CVEX_Transform::Lookup::~Lookup ( )
virtual

Member Function Documentation

virtual bool CVEX_Transform::Lookup::abspath ( UT_StringHolder result,
const UT_StringHolder relpath,
const LookupContext context 
) const
virtual

Path functions.

virtual void* CVEX_Transform::Lookup::allocateUserData ( ) const
virtual

Allocate user data for the lookup context.

virtual void CVEX_Transform::Lookup::clearUserData ( void ) const
virtual

Reset the user data so it can be re-used later.

virtual void CVEX_Transform::Lookup::freeUserData ( void ) const
virtual

Delete the user data that was allocated for the lookup context.

virtual int CVEX_Transform::Lookup::idFromPath ( const UT_StringHolder relpath,
const LookupContext context 
) const
virtual
virtual bool CVEX_Transform::Lookup::lookup ( const char *  name,
UT_Matrix4D m,
const LookupContext context 
)
pure virtual

Look up a matrix which will transform the "current" space into the named space.

virtual bool CVEX_Transform::Lookup::lookupFromNDC ( const char *  name,
UT_Matrix4D m,
const LookupContext context,
bool &  ortho 
) const
virtual
virtual bool CVEX_Transform::Lookup::lookupInverse ( const char *  name,
UT_Matrix4D m,
const LookupContext context 
)
virtual

Look up a matrix which transforms the named space into "current" space. By default, this will call lookup() and compute the inverse. If you have the inverse available, you may want to make this more efficient by using it.

virtual bool CVEX_Transform::Lookup::lookupToNDC ( const char *  name,
UT_Matrix4D m,
const LookupContext context,
bool &  ortho 
) const
virtual

Lookup NDC space given a name.

virtual bool CVEX_Transform::Lookup::pathFromId ( UT_StringHolder result,
int  id,
const LookupContext context 
) const
virtual

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