9 #ifndef __PDG_ATTRIBUTE_Geometry_H__
10 #define __PDG_ATTRIBUTE_Geometry_H__
62 Data geometry()
const;
63 void setGeometry(
Data geometry);
68 return (myGeometry !=
nullptr);
76 inline bool valid(
int component)
const
78 return (component == 0);
81 inline bool value(
Data& geometry,
int component)
const
86 geometry = myGeometry;
92 setGeometry(geometry);
void swap(UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &a, UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &b)
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
virtual bool compare(const PDG_AttributeData *) const =0
Compares this data object with another data object.
std::size_t SYS_HashType
Define the type for hash values.
Class which writes ASCII or binary JSON streams.
bool valid(int component) const
A single PDG_ApplicationShim::Geometry instance.
virtual bool loadData(const UT_JSONValue &)=0
Loads data from a JSON value.
virtual PDG_AttributeMergeError merge(PDG_AttributeMergeOp merge_op, int stride)=0
Applies a merge op to the data in this attribute.
GLint GLenum GLboolean GLsizei stride
virtual bool saveData(UT_JSONWriter &) const =0
Serializes the data to a JSON writer.
PDG_AttributeType
Enumeration of possible attribute types.
void swap(PDG_AttributeGeometry *other)
PDG_AttributeMergeOp
Enumeration of different ways that attributes can be combined.
bool value(Data &geometry, int component) const
virtual bool hash(SYS_HashType &hash_value, UT_WorkBuffer &errors) const =0
Return a hash value derived from the attribute data.
virtual int64 getMemoryUsage(bool inclusive) const =0
Returns the memory usage of the attribute and its data.
void setValue(Data geometry, int index)
Class to store JSON objects as C++ objects.
PDG_AttributeMergeError
Enumerations of errors that can occur when merging attributes.
size_t hash_value(const CH_ChannelRef &ref)
virtual PDG_AttributeData * clone() const =0
Deep copies this attribute.