HDK
|
#include <GA_SharedLoadData.h>
Public Member Functions | |
GA_SharedLoadData () | |
virtual | ~GA_SharedLoadData () |
virtual UT_StringHolder | getSharedDataKey () const =0 |
Returns the key that is used to refer to this shared data. More... | |
Class to hold shared data during the loading process.
Some primitive types store shared data between them. This class is used as an interface to retain data during the loading/saving process. It also Facilitates the delayed loading of this shared data.
Saving:
When saving, primitives will have a "pre-save" pass. During this pass, they can add "shared" data to the GA_SaveMap. The primitive can check to see if the data is already stored in the map, if not, it can add a GA_SharedLoadData to the map (given a unique key). A single JSON will be be saved. Subsequent primitives, should detect that the data is stored so that only a single copy of the shared data is saved in the map.
When the primitive saves its local data, it can make reference to the named shared data.
Loading:
Dring loading time GA_SharedDataHandles are created to represent all the shared data. Primitives then ask the GA_LoadMap for a copy of these handles. Whenever the primitive needs the data it is requested from the shared data handle and returned as a GA_SharedLoadData
Definition at line 41 of file GA_SharedLoadData.h.
GA_SharedLoadData::GA_SharedLoadData | ( | ) |
|
virtual |
|
pure virtual |
Returns the key that is used to refer to this shared data.
Implemented in GEO_PackedNameMap::LoadContainer.