HDK
|
Each BRAY_Object can define a list of attributes that it can evaluate. More...
#include <BRAY_AttribList.h>
Classes | |
struct | Attrib |
Public Types | |
enum | AttributeOwner { ATTRIB_INVALID = -1, ATTRIB_VERTEX = GA_ATTRIB_VERTEX, ATTRIB_POINT = GA_ATTRIB_POINT, ATTRIB_UNIFORM = GA_ATTRIB_PRIMITIVE, ATTRIB_CONSTANT = GA_ATTRIB_DETAIL, ATTRIB_DICED_POINT, ATTRIB_INSTANCE, MAX_ATTRIB_TYPE } |
Public Member Functions | |
BRAY_AttribList () | |
BRAY_AttribList (const Attrib *list, uint list_size, bool volume) | |
~BRAY_AttribList () | |
void | setCapacity (int n) |
int | addAttribute (const UT_StringHolder &name, int tuple_size, AttributeOwner owner, GA_Storage storage, bool isarray) |
template<int TSIZE = -1> | |
int | getIndex (const UT_StringRef &name) const |
int | size () const |
bool | forVolume () const |
GA_Storage | storage (int i) const |
int | tupleSize (int i) const |
AttributeOwner | owner (int i) const |
GA_StorageClass | storageClass (int i) const |
bool | isArray (int i) const |
const UT_StringHolder & | name (int i) const |
const Attrib & | attrib (int i) const |
const Attrib & | operator[] (int i) const |
bool | isNormal (int i) const |
bool | isP (int i) const |
int | displayColor () const |
int | displayOpacity () const |
int | normal () const |
int | getP () const |
bool | isDicedNormal () const |
void | dump () const |
void | dump (UT_JSONWriter &w) const |
Static Public Member Functions | |
static const char * | owner (AttributeOwner) |
static const BRAY_AttribList * | findList (const Attrib *list, int list_size, bool for_volume) |
static const BRAY_AttribList * | findList (const BRAY_AttribList &src) |
Each BRAY_Object can define a list of attributes that it can evaluate.
Definition at line 24 of file BRAY_AttribList.h.
Enumerator | |
---|---|
ATTRIB_INVALID | |
ATTRIB_VERTEX | |
ATTRIB_POINT | |
ATTRIB_UNIFORM | |
ATTRIB_CONSTANT | |
ATTRIB_DICED_POINT | |
ATTRIB_INSTANCE | |
MAX_ATTRIB_TYPE |
Definition at line 28 of file BRAY_AttribList.h.
BRAY_AttribList::BRAY_AttribList | ( | ) |
BRAY_AttribList::~BRAY_AttribList | ( | ) |
int BRAY_AttribList::addAttribute | ( | const UT_StringHolder & | name, |
int | tuple_size, | ||
AttributeOwner | owner, | ||
GA_Storage | storage, | ||
bool | isarray | ||
) |
Definition at line 121 of file BRAY_AttribList.h.
|
inline |
Definition at line 126 of file BRAY_AttribList.h.
|
inline |
Definition at line 127 of file BRAY_AttribList.h.
void BRAY_AttribList::dump | ( | ) | const |
void BRAY_AttribList::dump | ( | UT_JSONWriter & | w | ) | const |
|
static |
Look up a list of attributes in a shared table. If different BRAY_Objects share the same attribute list, then it's possible they will be shaded in batch. Using the shared table can improve rendering performance.
|
static |
|
inline |
Definition at line 114 of file BRAY_AttribList.h.
|
inline |
Definition at line 102 of file BRAY_AttribList.h.
|
inline |
Definition at line 129 of file BRAY_AttribList.h.
|
inline |
Definition at line 119 of file BRAY_AttribList.h.
|
inline |
Definition at line 131 of file BRAY_AttribList.h.
|
inline |
Definition at line 123 of file BRAY_AttribList.h.
|
inline |
Definition at line 124 of file BRAY_AttribList.h.
|
inline |
Definition at line 120 of file BRAY_AttribList.h.
|
inline |
Definition at line 128 of file BRAY_AttribList.h.
Definition at line 122 of file BRAY_AttribList.h.
|
static |
|
inline |
Definition at line 117 of file BRAY_AttribList.h.
|
inline |
Definition at line 113 of file BRAY_AttribList.h.
|
inline |
Definition at line 115 of file BRAY_AttribList.h.
|
inline |
Definition at line 118 of file BRAY_AttribList.h.
Definition at line 116 of file BRAY_AttribList.h.