HDK
|
#include <CVEX_Data.h>
Public Member Functions | |
CVEX_DataRetriever (const CVEX_Data &data) | |
Creates a retriever object for obtaining data from the buffers. More... | |
virtual | ~CVEX_DataRetriever () |
bool | isVarying (const UT_StringRef &name) const |
bool | retrieveData (const CVEX_ValueT< PREC > &value) |
bool | retrieveData (const UT_StringRef &data_name) |
Protected Member Functions | |
virtual DECLARE_CVEX_DATA_TYPES bool | takeData (const UT_Array< Int > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Float > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< String > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Dict > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Vec2 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Vec3 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Vec4 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Mat2 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Mat3 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_Array< Mat4 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Int > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Float > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< String > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Dict > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Vec2 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Vec3 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Vec4 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Mat2 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Mat3 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
virtual bool | takeData (const UT_PackedArrayOfArrays< Mat4 > &data, const UT_StringRef &data_name) |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals. More... | |
A helper class for retrieving data from CVEX buffers to custom destination. It abstracts the buffer management by allowing to override virtual methods for the particular data types.
For example:
Definition at line 409 of file CVEX_Data.h.
CVEX_DataRetriever< PREC >::CVEX_DataRetriever | ( | const CVEX_Data & | data | ) |
Creates a retriever object for obtaining data from the buffers.
|
virtual |
|
inline |
Utility method for checking if the value is varying (and the associated buffer size is large as specified in the constructor
Definition at line 427 of file CVEX_Data.h.
bool CVEX_DataRetriever< PREC >::retrieveData | ( | const CVEX_ValueT< PREC > & | value | ) |
Looks for a data buffer given the CVEX value or a name, and calls the virtuals to retrieve the data from the bufer.
bool CVEX_DataRetriever< PREC >::retrieveData | ( | const UT_StringRef & | data_name | ) |
Looks for a data buffer given the CVEX value or a name, and calls the virtuals to retrieve the data from the bufer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.
|
protectedvirtual |
Precision-dependent data types (Int, Float, Vec2, ...) used in virtuals.
Virtuals intended to be overriden by the subclasses. Their purpose is to take the value given in the parameter and transfer it to the intended destination. The data
represents a data buffer on which the CVEX program was run. The name
is the name of the data buffer.