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

#include <SOP_AttribComposite.h>

+ Inheritance diagram for SOP_AttribCompositeCache:

Public Member Functions

 SOP_AttribCompositeCache ()
 
virtual ~SOP_AttribCompositeCache ()
 
- Public Member Functions inherited from SOP_NodeCacheOptions
 SOP_NodeCacheOptions ()
 
virtual ~SOP_NodeCacheOptions ()
 
void doCook (const SOP_NodeVerb *verb, const SOP_NodeVerb::CookParms &cookparms)
 
fpreal evalFloat (const char *parm, int vi, fpreal time) const
 
exint evalInt (const char *parm, int vi, fpreal time) const
 
void evalString (UT_String &value, const char *parm, int vi, fpreal time) const
 
fpreal evalFloatInst (const char *parm, const int *instance, int vi, fpreal time, int nestlevel=1) const
 
exint evalIntInst (const char *parm, const int *instance, int vi, fpreal time, int nestlevel=1) const
 
void evalStringInst (const char *parm, const int *instance, UT_String &val, int vi, fpreal time, int nestlevel=1) const
 
exint nInputs () const
 
bool hasInput (exint idx) const
 
const GU_DetailinputGeo (exint idx, const OP_Context &context) const
 
const GU_DetailinputGeo (exint idx) const
 
OP_ERROR error ()
 
void addError (int code, const char *msg=0)
 
void addWarning (int code, const char *msg=0)
 
void addMessage (int code, const char *msg=0)
 
void addTransformError (const OP_Node &node, const char *label=0) const
 
void notifyGroupParmListeners (int groupparm_idx, int grouptype_idx, const GU_Detail *parm_gdp, const GA_Group *parm_group) const
 
void select (GA_GroupType gtype=GA_GROUP_PRIMITIVE)
 
void select (GU_SelectionHandle selection, bool add_to_sel=false)
 
void select (const GA_Group &group, bool use_gtype=true, bool add_to_sel=false)
 
void select (const GEO_Primitive &prim, bool sel_prim=true, bool add_to_sel=false)
 
void selectPoint (GA_Offset ptoff, bool point_sel=true, bool add_to_sel=false)
 
void selectFrom (const GEO_Primitive &prim, bool sel_prim=true, bool add_to_sel=false)
 
void selectPointsFrom (GA_Offset ptoff, bool point_sel=true, bool add_to_sel=false)
 
void select (const GA_Range &range, bool use_rtype=true, bool add_to_sel=false)
 
void selectInputGroup (const GA_Group *group, GA_GroupType grouptype)
 
void clearSelection ()
 
void clearSelection (GA_GroupType gtype)
 
bool destroySelection ()
 
bool selectionEnabled () const
 
void addExtraInput (OP_Node *op, OP_InterestType type)
 
- Public Member Functions inherited from SOP_NodeCache
 SOP_NodeCache ()
 
virtual ~SOP_NodeCache ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 
CVEX_ContextgetVexContext (const char *vexpression)
 
CVEX_ContextbuildVexContext (const char *vexpression)
 
void setVexFunction (const CVEX_Function &function)
 
void clearVexContext ()
 

Protected Member Functions

virtual OP_ERROR cook (OP_Context &context) override
 
void parseMySop (UT_ValArray< GA_Attribute * > &detailattribs, UT_ValArray< GA_Attribute * > &primattribs, UT_ValArray< GA_Attribute * > &pointattribs, UT_ValArray< GA_Attribute * > &vertexattribs)
 
bool verifyGeometries (void)
 
void verifyAttribsExist (UT_ValArray< GA_Attribute * > &attribs, GA_AttributeOwner owner)
 
void setupOpFN (void)
 
void setupWeights (int numWeights, fpreal t)
 
void setAlphaAttrib (GA_AttributeOwner owner, UT_Array< GA_ROHandleR > &alphaattribs, const UT_String &alpha)
 
GA_AttributecreateAttrib (GA_Attribute *destattrib, UT_ValArray< UT_IntArray * > &new_indices)
 
void compAttrib (GA_AttributeOwner owner, GA_Attribute *destattrib, const UT_Array< GA_ROHandleR > &alphaattribs, const UT_ValArray< UT_IntArray * > &new_indices, const UT_Array< GA_Offset > &arrsrcoffsets, GA_Offset destoffset, int compop)
 
void compGrpAttribs (UT_ValArray< GA_Attribute * > &detailattribs, UT_ValArray< GA_Attribute * > &primattribs, UT_ValArray< GA_Attribute * > &pointattribs, UT_ValArray< GA_Attribute * > &vertexattribs)
 
int SELECTIONIDX (void)
 
int DETAILATTRIBCOMP ()
 
void DETAILATTRIBS (UT_String &str)
 
int PRIMATTRIBCOMP ()
 
void PRIMATTRIBS (UT_String &str)
 
int PTATTRIBCOMP ()
 
void PTATTRIBS (UT_String &str)
 
int VTXATTRIBCOMP ()
 
void VTXATTRIBS (UT_String &str)
 
int MATCHPATTRIB ()
 
int NBLENDS ()
 
float BLEND (int i, fpreal t)
 
void ALPHAATTRIB (UT_String &str)
 
int COMPOP ()
 
- Protected Member Functions inherited from SOP_NodeCacheOptions
const SOP_NodeVerb::CookParmscookparms () const
 

Protected Attributes

exint myGdpIdx
 
UT_Array< const GU_Detail * > mySrcGdps
 
UT_Array< const GA_Attribute * > mySrcAttributes
 
void(* myOpFN )(fpreal, fpreal *, fpreal)
 
bool myOverUnder
 
UT_FloatArray myWeights
 
- Protected Attributes inherited from SOP_NodeCacheOptions
GU_Detailgdp
 These are transitory for the duration of the cook. More...
 
- Protected Attributes inherited from SOP_NodeCache
CVEX_ContextmyVexContext
 
CVEX_FunctionmyVexFunction
 
UT_StringHolder myVEXpression
 
UT_Array< SOP_CVEXDataBackingmyReadBacking
 
UT_Array< SOP_CVEXDataBackingmyWriteBacking
 

Additional Inherited Members

- Public Types inherited from SOP_NodeCacheOptions
typedef GOP_Manager::GroupCreator GroupCreator
 Typedef to help make use of GroupCreator less verbose. More...
 

Detailed Description

Definition at line 109 of file SOP_AttribComposite.h.

Constructor & Destructor Documentation

SOP_AttribCompositeCache::SOP_AttribCompositeCache ( )
virtual SOP_AttribCompositeCache::~SOP_AttribCompositeCache ( )
virtual

Member Function Documentation

void SOP_AttribCompositeCache::ALPHAATTRIB ( UT_String str)
inlineprotected

Definition at line 185 of file SOP_AttribComposite.h.

float SOP_AttribCompositeCache::BLEND ( int  i,
fpreal  t 
)
inlineprotected

Definition at line 182 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::compAttrib ( GA_AttributeOwner  owner,
GA_Attribute destattrib,
const UT_Array< GA_ROHandleR > &  alphaattribs,
const UT_ValArray< UT_IntArray * > &  new_indices,
const UT_Array< GA_Offset > &  arrsrcoffsets,
GA_Offset  destoffset,
int  compop 
)
protected
void SOP_AttribCompositeCache::compGrpAttribs ( UT_ValArray< GA_Attribute * > &  detailattribs,
UT_ValArray< GA_Attribute * > &  primattribs,
UT_ValArray< GA_Attribute * > &  pointattribs,
UT_ValArray< GA_Attribute * > &  vertexattribs 
)
protected
int SOP_AttribCompositeCache::COMPOP ( )
inlineprotected

Definition at line 187 of file SOP_AttribComposite.h.

virtual OP_ERROR SOP_AttribCompositeCache::cook ( OP_Context context)
overrideprotectedvirtual

Implements SOP_NodeCacheOptions.

GA_Attribute* SOP_AttribCompositeCache::createAttrib ( GA_Attribute destattrib,
UT_ValArray< UT_IntArray * > &  new_indices 
)
protected
int SOP_AttribCompositeCache::DETAILATTRIBCOMP ( )
inlineprotected

Definition at line 150 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::DETAILATTRIBS ( UT_String str)
inlineprotected

Definition at line 152 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::MATCHPATTRIB ( )
inlineprotected

Definition at line 178 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::NBLENDS ( )
inlineprotected

Definition at line 180 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::parseMySop ( UT_ValArray< GA_Attribute * > &  detailattribs,
UT_ValArray< GA_Attribute * > &  primattribs,
UT_ValArray< GA_Attribute * > &  pointattribs,
UT_ValArray< GA_Attribute * > &  vertexattribs 
)
protected
int SOP_AttribCompositeCache::PRIMATTRIBCOMP ( )
inlineprotected

Definition at line 157 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::PRIMATTRIBS ( UT_String str)
inlineprotected

Definition at line 159 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::PTATTRIBCOMP ( )
inlineprotected

Definition at line 164 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::PTATTRIBS ( UT_String str)
inlineprotected

Definition at line 166 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::SELECTIONIDX ( void  )
inlineprotected

Definition at line 148 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::setAlphaAttrib ( GA_AttributeOwner  owner,
UT_Array< GA_ROHandleR > &  alphaattribs,
const UT_String alpha 
)
protected
void SOP_AttribCompositeCache::setupOpFN ( void  )
protected
void SOP_AttribCompositeCache::setupWeights ( int  numWeights,
fpreal  t 
)
protected
void SOP_AttribCompositeCache::verifyAttribsExist ( UT_ValArray< GA_Attribute * > &  attribs,
GA_AttributeOwner  owner 
)
protected
bool SOP_AttribCompositeCache::verifyGeometries ( void  )
protected
int SOP_AttribCompositeCache::VTXATTRIBCOMP ( )
inlineprotected

Definition at line 171 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::VTXATTRIBS ( UT_String str)
inlineprotected

Definition at line 173 of file SOP_AttribComposite.h.

Member Data Documentation

exint SOP_AttribCompositeCache::myGdpIdx
protected

Definition at line 190 of file SOP_AttribComposite.h.

void(* SOP_AttribCompositeCache::myOpFN)(fpreal, fpreal *, fpreal)
protected

Definition at line 193 of file SOP_AttribComposite.h.

bool SOP_AttribCompositeCache::myOverUnder
protected

Definition at line 194 of file SOP_AttribComposite.h.

UT_Array<const GA_Attribute *> SOP_AttribCompositeCache::mySrcAttributes
protected

Definition at line 192 of file SOP_AttribComposite.h.

UT_Array<const GU_Detail *> SOP_AttribCompositeCache::mySrcGdps
protected

Definition at line 191 of file SOP_AttribComposite.h.

UT_FloatArray SOP_AttribCompositeCache::myWeights
protected

Definition at line 195 of file SOP_AttribComposite.h.


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