HDK
|
Go to the source code of this file.
Classes | |
class | io_ReadHandle |
class | io_WriteHandle |
Macros | |
#define | __GA_IO__ |
Functions | |
virtual bool | readFile (GA_Detail &g, const char *filename, const GA_LoadOptions *opts, UT_StringArray *errors) const |
Class which defines an I/O interface to save/load geometry. More... | |
virtual bool | readStream (GA_Detail &g, UT_IStream &is, const GA_LoadOptions *opts, UT_StringArray *errors) const =0 |
Load geometry from an input stream. More... | |
virtual bool | writeFile (const GA_Detail &g, const char *filename, const GA_SaveOptions *opts, UT_StringArray *errors) const |
virtual bool | writeStream (const GA_Detail &g, std::ostream &os, bool binary, const GA_SaveOptions *opts, UT_StringArray *errors) const =0 |
Write geometry to an output stream. More... | |
virtual bool | readCheckStdin () const |
virtual bool | readCheckCompressed () const =0 |
virtual bool | writeCheckStdout () const |
bool | isStdout (const char *filename) const |
bool | setLoadCounts (GA_Detail &gdp, GA_Size npoints, GA_Size nvertex, GA_Size nprimitive, GA_LoadMap &loadmap) const |
bool | rebuildTopology (GA_Detail &gdp, bool create_attributes=false) const |
bool | jsonSavePointReference (const GA_Detail &gdp, UT_JSONWriter &w, const GA_SaveMap &savemap) const |
bool | jsonLoadPointReference (GA_Detail &gdp, UT_JSONParser &p, const GA_LoadMap &loadmap) const |
|
protected |
|
protected |
Save and load the vertex point-reference array using JSON
|
protected |
Save and load the vertex point-reference array using JSON
|
protectedpure virtual |
If the io_ReadHandle should scan for filenames ending with extensions that indicate it is compressed then this method should return true
|
protectedvirtual |
If the io_ReadHandle should scan for filenames starting with "stdin", this method should return true.
|
virtual |
Class which defines an I/O interface to save/load geometry.
Loading a GA_Detail from a disk file goes through the following process
Loading a GA_Detail from a stream goes through a similar process
Saving geometry works similarly:
|
pure virtual |
Load geometry from an input stream.
|
protected |
After the geometry has been loaded, the sub-class may need to call the method to rebuild the topology attributes on the detail. The caller may also request that full topology attributes are created after load.
If the method fails, it's because the geometry failed the sanity check on topology. In this case, the geometry is cleared. The user should probably add an error in this case.
|
protected |
Provide access to private portions of the GA_Detail class for loading Tell the detail that the loading will be adding npoints
, nvertex
and nprimitive
primitives. This will adjust the load map so that the proper index/offset mappings can be created. It also adjusts the index maps. The method will return false if there was an error.
|
protectedvirtual |
If the io_WriteHandle should scan for filenames starting with "stdout", this method should return true.
|
virtual |
Save geometry to a disk file. The default behaviour for this method is:
|
pure virtual |
Write geometry to an output stream.