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 ()
 
- Public Member Functions inherited from SOP_NodeCacheOptions
 SOP_NodeCacheOptions ()
 
 ~SOP_NodeCacheOptions () override
 
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
 
void evalString (UT_StringHolder &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
 
void evalStringInst (const char *parm, const int *instance, UT_StringHolder &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 OP_NodeCache
 OP_NodeCache ()
 
virtual ~OP_NodeCache ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 

Protected Member Functions

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 verifyAttribsExist (UT_ValArray< GA_Attribute * > &attribs, GA_AttributeOwner owner)
 
void setupOpFN ()
 
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 ()
 
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 Member Functions inherited from OP_NodeCache
 OP_NodeCache (const OP_NodeCache &)=default
 
OP_NodeCacheoperator= (const OP_NodeCache &)=default
 

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...
 

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 108 of file SOP_AttribComposite.h.

Constructor & Destructor Documentation

SOP_AttribCompositeCache::SOP_AttribCompositeCache ( )

Member Function Documentation

void SOP_AttribCompositeCache::ALPHAATTRIB ( UT_String str)
inlineprotected

Definition at line 183 of file SOP_AttribComposite.h.

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

Definition at line 180 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 185 of file SOP_AttribComposite.h.

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 148 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::DETAILATTRIBS ( UT_String str)
inlineprotected

Definition at line 150 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::MATCHPATTRIB ( )
inlineprotected

Definition at line 176 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::NBLENDS ( )
inlineprotected

Definition at line 178 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 155 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::PRIMATTRIBS ( UT_String str)
inlineprotected

Definition at line 157 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::PTATTRIBCOMP ( )
inlineprotected

Definition at line 162 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::PTATTRIBS ( UT_String str)
inlineprotected

Definition at line 164 of file SOP_AttribComposite.h.

int SOP_AttribCompositeCache::SELECTIONIDX ( )
inlineprotected

Definition at line 146 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 ( )
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 ( )
protected
int SOP_AttribCompositeCache::VTXATTRIBCOMP ( )
inlineprotected

Definition at line 169 of file SOP_AttribComposite.h.

void SOP_AttribCompositeCache::VTXATTRIBS ( UT_String str)
inlineprotected

Definition at line 171 of file SOP_AttribComposite.h.

Member Data Documentation

exint SOP_AttribCompositeCache::myGdpIdx
protected

Definition at line 188 of file SOP_AttribComposite.h.

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

Definition at line 191 of file SOP_AttribComposite.h.

bool SOP_AttribCompositeCache::myOverUnder
protected

Definition at line 192 of file SOP_AttribComposite.h.

UT_Array<const GA_Attribute *> SOP_AttribCompositeCache::mySrcAttributes
protected

Definition at line 190 of file SOP_AttribComposite.h.

UT_Array<const GU_Detail *> SOP_AttribCompositeCache::mySrcGdps
protected

Definition at line 189 of file SOP_AttribComposite.h.

UT_FloatArray SOP_AttribCompositeCache::myWeights
protected

Definition at line 193 of file SOP_AttribComposite.h.


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