HDK
|
Class to load shared data. More...
#include <GA_PrimitiveDefinition.h>
Public Member Functions | |
SharedDataLoader () | |
virtual | ~SharedDataLoader () |
virtual GA_SharedLoadData * | load (UT_JSONParser &p, GA_LoadMap *load_map, GA_Primitive *random_prim) const =0 |
virtual GA_SharedLoadDataStat * | stat (UT_JSONParser &parser) const |
Class to load shared data.
Definition at line 112 of file GA_PrimitiveDefinition.h.
|
inline |
Definition at line 115 of file GA_PrimitiveDefinition.h.
|
inlinevirtual |
Definition at line 116 of file GA_PrimitiveDefinition.h.
|
pure virtual |
Loads shared data from the parser given returning the shared load data object
The loader also takes one of two things:
It takes these things when it really should not because volume shared data was designed poorly and some of the data that should be shared is kept with the primitive and is needed to load the shared data. (Examples: Size, Border of voxel array, there may be more)
IF YOU ARE WRITING A NEW SHARED DATA LOADER DO NOT USE THE SECOND TWO PARAMETERS!!
|
inlinevirtual |
Stats the shared data from the parser given returning a shared load data stat object The default implementation for stat is to return a NULL pointer because most shared data does not have stat. (mostly used for packed geometry) This should only be called when delayed loading
Definition at line 141 of file GA_PrimitiveDefinition.h.