|
| GA_AIFIndexPair () |
|
virtual | ~GA_AIFIndexPair () |
|
virtual int | getDataTupleSize (const GA_Attribute *attrib) const =0 |
|
virtual bool | setDataTupleSize (GA_Attribute *attrib, int size) const =0 |
|
virtual GA_Storage | getDataStorage (const GA_Attribute *attrib) const =0 |
|
virtual bool | removeIndex (GA_Attribute *attrib, int index) const =0 |
|
virtual void | resetEntriesToDefaults (GA_Attribute *attrib, GA_Offset ai, int start_entry=0) const =0 |
|
|
virtual int | getObjectSetCount (const GA_Attribute *attrib) const =0 |
|
virtual void | setObjectSetCount (GA_Attribute *attrib, int n) const =0 |
|
|
virtual const
GA_AIFIndexPairObjects * | getObjects (const GA_Attribute *attrib, int s=0) const =0 |
|
virtual GA_AIFIndexPairObjects * | getObjects (GA_Attribute *attrib, int s=0) const =0 |
|
virtual bool | hasSameProperties (const GA_Attribute *attrib, const GA_Attribute *sattrib) const =0 |
|
virtual bool | copyProperties (GA_Attribute *attrib, const GA_Attribute *sattrib) const =0 |
|
virtual bool | mergeObjectValues (GA_Attribute *attrib, const GA_Attribute *sattrib, UT_IntArray &new_indices) const =0 |
|
|
virtual int | getEntries (const GA_Attribute *attrib) const =0 |
|
virtual bool | setEntries (GA_Attribute *attrib, int n) const =0 |
|
|
virtual bool | getIndex (const GA_Attribute *attrib, GA_Offset ai, int entry, int32 &index) const =0 |
|
virtual bool | getData (const GA_Attribute *attrib, GA_Offset ai, int entry, fpreal32 &data, int data_component=0) const =0 |
|
virtual bool | getData (const GA_Attribute *attrib, GA_Offset ai, int entry, fpreal64 &data, int data_component=0) const =0 |
|
virtual bool | getData (const GA_Attribute *attrib, GA_Offset ai, int entry, int32 &data, int data_component=0) const =0 |
|
virtual bool | getData (const GA_Attribute *attrib, GA_Offset ai, int entry, int64 &data, int data_component=0) const =0 |
|
|
virtual bool | setIndex (GA_Attribute *attrib, GA_Offset ai, int entry, int32 index) const =0 |
|
virtual bool | setData (GA_Attribute *attrib, GA_Offset ai, int entry, fpreal32 data, int data_component=0) const =0 |
|
virtual bool | setData (GA_Attribute *attrib, GA_Offset ai, int entry, fpreal64 data, int data_component=0) const =0 |
|
virtual bool | setData (GA_Attribute *attrib, GA_Offset ai, int entry, int32 data, int data_component=0) const =0 |
|
virtual bool | setData (GA_Attribute *attrib, GA_Offset ai, int entry, int64 data, int data_component=0) const =0 |
|
Generic Attribute Interface class to get/set data as index pairs.
This class provides an interface to access attribute data. Each attribute type may provide this interface if it makes sense.
Index pair data can also contain a set of primary objects corresponding to the indices. These objects should be used to hold information about the capture region for the associated index. If the object contains a string property, it should be unique (eg. capture path). Use s=0 to manipulate primary objects. For example:
aif->setObjectSetCount(attrib, 1);
for(int i = 0; i < 16; ++i)
fdef.
append((i % 5 == 0) ? 1.0 : 0.0);
Index pair data can also contain a secondary set of objects for holding multiple bits of subdata per index. These objects should be used to hold supplimentary data about objects such as the individual metaballs that make up a muscle. These secondary objects should also contain an integer property identifying the index of the primary object. Use s>0 to manipulate secondary objects.
- Examples:
- SOP/SOP_BouncyAgent.C.
Definition at line 121 of file GA_AIFIndexPair.h.