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

#include <VOP_CodeGenContext.h>

Public Member Functions

 VOP_CodeGenContext (VOP_ContextType context_type=VOP_CONTEXT_TYPE_INVALID, const char *context_name=NULL, VEX_CodeGenFlags cg_flags=VEX_CG_DEFAULT, VOP_CodeVarMapperContext *var_mapper_ctx=NULL, bool should_output_parm_defaults=true)
 
VOP_ContextType shaderContextType () const
 
const UT_StringHoldershaderContextName () const
 
VEX_CodeGenFlags codeGenFlags () const
 
VOP_CodeVarMapperContextvarMapperCtx () const
 
bool shouldOutputParmDefaults () const
 
void setForceParmExport (bool force)
 
bool isForceParmExport () const
 
void setSetParentShaderGlobals (bool set)
 
bool shouldSetParentShaderGlobals () const
 
void setShaderSpace (const VOP_ShaderSpaceInfo *space)
 
const VOP_ShaderSpaceInfogetShaderSpace () const
 
void setExtraVarRequests (const VOP_ExtraVarRequests *requests)
 
const VOP_ExtraVarRequestsgetExtraVarRequests () const
 
bool matchesAnyShaderContextName (const UT_StringArray &context_names) const
 Returns true if the context accepts any of the given names. More...
 

Static Public Member Functions

static bool isOpPrefixContext (const char *opprefixpath)
 
static bool isRelativeOpPrefixContext (const char *opprefixpath)
 
static UT_StringHolder buildOpPrefixContext (const char *node_path, const char *context_name)
 
static void parseOpPrefixContext (const char *opprefixpath, UT_StringHolder &node_path, UT_StringHolder &context_name)
 

Detailed Description

Examples:
VOP/VOP_Switch.C, and VOP/VOP_Switch.h.

Definition at line 26 of file VOP_CodeGenContext.h.

Constructor & Destructor Documentation

VOP_CodeGenContext::VOP_CodeGenContext ( VOP_ContextType  context_type = VOP_CONTEXT_TYPE_INVALID,
const char *  context_name = NULL,
VEX_CodeGenFlags  cg_flags = VEX_CG_DEFAULT,
VOP_CodeVarMapperContext var_mapper_ctx = NULL,
bool  should_output_parm_defaults = true 
)
inline

Definition at line 29 of file VOP_CodeGenContext.h.

Member Function Documentation

static UT_StringHolder VOP_CodeGenContext::buildOpPrefixContext ( const char *  node_path,
const char *  context_name 
)
static

Utility functions for manipulating shader context name that involves shader node path along with the traditional context name.

VEX_CodeGenFlags VOP_CodeGenContext::codeGenFlags ( ) const
inline

Definition at line 49 of file VOP_CodeGenContext.h.

const VOP_ExtraVarRequests* VOP_CodeGenContext::getExtraVarRequests ( ) const
inline

Definition at line 74 of file VOP_CodeGenContext.h.

const VOP_ShaderSpaceInfo* VOP_CodeGenContext::getShaderSpace ( ) const
inline

Definition at line 68 of file VOP_CodeGenContext.h.

bool VOP_CodeGenContext::isForceParmExport ( ) const
inline

Definition at line 58 of file VOP_CodeGenContext.h.

static bool VOP_CodeGenContext::isOpPrefixContext ( const char *  opprefixpath)
static

Utility functions for manipulating shader context name that involves shader node path along with the traditional context name.

static bool VOP_CodeGenContext::isRelativeOpPrefixContext ( const char *  opprefixpath)
static

Utility functions for manipulating shader context name that involves shader node path along with the traditional context name.

bool VOP_CodeGenContext::matchesAnyShaderContextName ( const UT_StringArray context_names) const

Returns true if the context accepts any of the given names.

static void VOP_CodeGenContext::parseOpPrefixContext ( const char *  opprefixpath,
UT_StringHolder node_path,
UT_StringHolder context_name 
)
static

Utility functions for manipulating shader context name that involves shader node path along with the traditional context name.

void VOP_CodeGenContext::setExtraVarRequests ( const VOP_ExtraVarRequests requests)
inline

Definition at line 71 of file VOP_CodeGenContext.h.

void VOP_CodeGenContext::setForceParmExport ( bool  force)
inline

Definition at line 56 of file VOP_CodeGenContext.h.

void VOP_CodeGenContext::setSetParentShaderGlobals ( bool  set)
inline

Definition at line 61 of file VOP_CodeGenContext.h.

void VOP_CodeGenContext::setShaderSpace ( const VOP_ShaderSpaceInfo space)
inline

Definition at line 66 of file VOP_CodeGenContext.h.

const UT_StringHolder& VOP_CodeGenContext::shaderContextName ( ) const
inline

Definition at line 47 of file VOP_CodeGenContext.h.

VOP_ContextType VOP_CodeGenContext::shaderContextType ( ) const
inline

Definition at line 45 of file VOP_CodeGenContext.h.

bool VOP_CodeGenContext::shouldOutputParmDefaults ( ) const
inline

Definition at line 53 of file VOP_CodeGenContext.h.

bool VOP_CodeGenContext::shouldSetParentShaderGlobals ( ) const
inline

Definition at line 63 of file VOP_CodeGenContext.h.

VOP_CodeVarMapperContext* VOP_CodeGenContext::varMapperCtx ( ) const
inline

Definition at line 51 of file VOP_CodeGenContext.h.


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