#include <GU_SubDivPacking.h>
Public Member Functions | |
| GU_SubDivPacking () | |
| Default constructor. | |
| GU_SubDivPacking (const GB_AttributeDict &dict) | |
| Constructor which builds all float attributes for a dictionary. | |
| GU_SubDivPacking (const GU_SubDivPacking &src) | |
| Copy constructor. | |
| ~GU_SubDivPacking () | |
| Destructor. | |
| GU_SubDivPacking & | operator= (const GU_SubDivPacking &src) |
| Assignment operator. | |
| void | clear () |
| Clear the packing tables. | |
| void | addFloatAttributes (const GB_AttributeDict &dict) |
| Add all float attributes from the given dictionary. | |
| void | addAttribute (const GB_Attribute *atr, const GB_AttributeRef &handle, bool check_dups) |
| Add a single attribute. | |
| void | packFloats (fpreal32 *data, const GB_AttributeElem &obj) const |
| Pack floats from an object's attributes into a packed buffer. | |
| void | packFloats (fpreal64 *data, const GB_AttributeElem &obj) const |
| void | unpackFloats (GB_AttributeElem &obj, const fpreal32 *data) const |
| Unpack data in the buffer into the object's attributes. | |
| void | unpackFloats (GB_AttributeElem &obj, const fpreal64 *data) const |
| int | entries () const |
| Number of attributes. | |
| int | getCount () const |
| Number of floats required for the packed array. | |
| const UT_RefArray < GB_AttributeRef > & | getHandles () const |
| Attribute references for lookup. | |
| const UT_IntArray & | getOffsets () const |
| const UT_IntArray & | getSizes () const |
| Number of floats for each attribute (in floats, not bytes). | |
| int | getPackedOffset (const GB_AttributeRef &ref) const |
| Get the attribute offset (i.e. offset into the packed data). | |
Definition at line 33 of file GU_SubDivPacking.h.
| GU_SubDivPacking::GU_SubDivPacking | ( | ) |
Default constructor.
| GU_SubDivPacking::GU_SubDivPacking | ( | const GB_AttributeDict & | dict | ) |
Constructor which builds all float attributes for a dictionary.
| GU_SubDivPacking::GU_SubDivPacking | ( | const GU_SubDivPacking & | src | ) |
Copy constructor.
| GU_SubDivPacking::~GU_SubDivPacking | ( | ) |
Destructor.
| void GU_SubDivPacking::addAttribute | ( | const GB_Attribute * | atr, | |
| const GB_AttributeRef & | handle, | |||
| bool | check_dups | |||
| ) |
Add a single attribute.
| void GU_SubDivPacking::addFloatAttributes | ( | const GB_AttributeDict & | dict | ) |
Add all float attributes from the given dictionary.
| void GU_SubDivPacking::clear | ( | ) |
Clear the packing tables.
| int GU_SubDivPacking::entries | ( | void | ) | const [inline] |
| int GU_SubDivPacking::getCount | ( | ) | const [inline] |
| const UT_RefArray<GB_AttributeRef>& GU_SubDivPacking::getHandles | ( | ) | const [inline] |
| const UT_IntArray& GU_SubDivPacking::getOffsets | ( | ) | const [inline] |
Offset array into the packed array. This is the offset (not the byte-count)
Definition at line 76 of file GU_SubDivPacking.h.
| int GU_SubDivPacking::getPackedOffset | ( | const GB_AttributeRef & | ref | ) | const |
Get the attribute offset (i.e. offset into the packed data).
| const UT_IntArray& GU_SubDivPacking::getSizes | ( | ) | const [inline] |
Number of floats for each attribute (in floats, not bytes).
Definition at line 79 of file GU_SubDivPacking.h.
| GU_SubDivPacking& GU_SubDivPacking::operator= | ( | const GU_SubDivPacking & | src | ) |
Assignment operator.
| void GU_SubDivPacking::packFloats | ( | fpreal64 * | data, | |
| const GB_AttributeElem & | obj | |||
| ) | const |
| void GU_SubDivPacking::packFloats | ( | fpreal32 * | data, | |
| const GB_AttributeElem & | obj | |||
| ) | const |
Pack floats from an object's attributes into a packed buffer.
| void GU_SubDivPacking::unpackFloats | ( | GB_AttributeElem & | obj, | |
| const fpreal64 * | data | |||
| ) | const |
| void GU_SubDivPacking::unpackFloats | ( | GB_AttributeElem & | obj, | |
| const fpreal32 * | data | |||
| ) | const |
Unpack data in the buffer into the object's attributes.
1.5.9