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

Class used to keep track of inheritance of intrinsic attribute evaluation. More...

#include <GA_IntrinsicEval.h>

Public Member Functions

 GA_IntrinsicEval (const GA_IntrinsicManager &manager, GA_LocalIntrinsic local_handle)
 Evaluating a global intrinsic attribute. More...
 
 ~GA_IntrinsicEval ()
 Destructor. More...
 
int getUserId (const GA_IntrinsicDef &def) const
 

Detailed Description

Class used to keep track of inheritance of intrinsic attribute evaluation.

Definition at line 21 of file GA_IntrinsicEval.h.

Constructor & Destructor Documentation

GA_IntrinsicEval::GA_IntrinsicEval ( const GA_IntrinsicManager manager,
GA_LocalIntrinsic  local_handle 
)

Evaluating a global intrinsic attribute.

GA_IntrinsicEval::~GA_IntrinsicEval ( )

Destructor.

Member Function Documentation

int GA_IntrinsicEval::getUserId ( const GA_IntrinsicDef def) const

Return the user id for the given set of intrinsic attributes. This method is used during evaluation of intrinsic attributes. The IntrinsicDef object should have been initialized during the definition of the user attributes. Example code might be:

static GA_IntrinsicDef theIntrinsicDef;
int
MyClass::localIntrinsicTupleSize(const GA_IntrinsicEval &eval)
{
switch (eval.getUserId(theIntrinsicDef))
{
case 0:
return INTRINSIC_ATTRIBUTE_0_TUPLE_SIZE;
case 1:
return INTRINSIC_ATTRIBUTE_1_TUPLE_SIZE;
default:
break;
}
return MyBaseClass::localIntrinsicTupleSize(eval);
}
See Also
GA_IntrinsicManager

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