11 #ifndef __BRAY_AttribList__
12 #define __BRAY_AttribList__
41 static const char *owner(AttributeOwner);
52 , myTupleSize(tuple_size)
64 bool isArray()
const {
return myIsArray; }
65 bool isDisplayColor()
const;
66 bool isDisplayOpacity()
const;
67 bool isNormal()
const;
94 void setCapacity(
int n);
101 template <
int TSIZE=-1>
104 for (
int i = 0,
n = myList.size(); i <
n; ++i)
105 if (myList[i].
name() == name &&
106 (TSIZE < 0 || TSIZE == myList[i].tupleSize()))
113 int size()
const {
return myList.size(); }
116 int tupleSize(
int i)
const {
return myList[i].myTupleSize; }
119 bool isArray(
int i)
const {
return myList[i].myIsArray; }
123 bool isNormal(
int i)
const {
return i == myNormal; }
124 bool isP(
int i)
const {
return i == myP; }
129 int getP()
const {
return myP; }
134 && owner(myNormal) == ATTRIB_DICED_POINT;
144 int myDisplayOpacity;
GA_API const char * GAstorageClass(GA_StorageClass store)
Lookup the storage name from the storage type.
bool isDicedNormal() const
getFileOption("OpenEXR:storage") storage
GA_StorageClass storageClass(int i) const
bool isArray(int i) const
Class which writes ASCII or binary JSON streams.
GA_StorageClass storageClass() const
const Attrib & attrib(int i) const
bool isNormal(int i) const
const Attrib & operator[](int i) const
Attrib(const UT_StringHolder &name, int tuple_size, AttributeOwner owner, GA_Storage store, bool is_array)
GLuint const GLchar * name
GA_Storage storage() const
GA_Storage storage(int i) const
int displayOpacity() const
AttributeOwner owner(int i) const
const UT_StringHolder & name(int i) const
GA_StorageClass myStorageClass
Each BRAY_Object can define a list of attributes that it can evaluate.
AttributeOwner owner() const
int tupleSize(int i) const
GLubyte GLubyte GLubyte GLubyte w
int getIndex(const UT_StringRef &name) const
const UT_StringHolder & name() const