HDK
|
#include <UT_VoxelArray.h>
Public Member Functions | |
UT_VoxelTileCompress () | |
virtual | ~UT_VoxelTileCompress () |
virtual bool | writeThrough (UT_VoxelTile< T > &tile, int x, int y, int z, T t) const =0 |
virtual T | getValue (const UT_VoxelTile< T > &tile, int x, int y, int z) const =0 |
virtual bool | tryCompress (UT_VoxelTile< T > &tile, const UT_VoxelCompressOptions &options, T min, T max) const =0 |
virtual int | getDataLength (const UT_VoxelTile< T > &tile) const =0 |
virtual bool | isLossless () const |
Returns true if the compression type is lossless. More... | |
virtual void | findMinMax (const UT_VoxelTile< T > &tile, T &min, T &max) const |
virtual bool | canSave () const |
Does this engine support saving and loading? More... | |
virtual void | save (std::ostream &os, const UT_VoxelTile< T > &tile) const |
virtual bool | save (UT_JSONWriter &w, const UT_VoxelTile< T > &tile) const |
virtual void | load (UT_IStream &is, UT_VoxelTile< T > &tile) const |
virtual bool | load (UT_JSONParser &p, UT_VoxelTile< T > &tile) const |
virtual const char * | getName ()=0 |
A compression engine for UT_VoxelTiles of a specific type. This is a verb class which is invoked from the voxeltile class.
Definition at line 136 of file UT_VoxelArray.h.
|
inline |
Definition at line 139 of file UT_VoxelArray.h.
|
inlinevirtual |
Definition at line 140 of file UT_VoxelArray.h.
|
inlinevirtual |
Does this engine support saving and loading?
Definition at line 170 of file UT_VoxelArray.h.
|
virtual |
Determines the min & max values of the tile. A default implementation uses getValue() on all voxels.
VoxelTileCompress definitions
Definition at line 73 of file UT_VoxelArray.C.
|
pure virtual |
Returns the length in bytes of the data in the tile. It must be at least one byte long.
|
pure virtual |
Returns the unique name of this compression engine so we can look up engines by name (the index of the compression engine is assigned at load time so isn't constant)
|
pure virtual |
Reads directly from the compressed data. Cannot alter the tile in any way because it must be threadsafe.
|
inlinevirtual |
Returns true if the compression type is lossless.
Definition at line 163 of file UT_VoxelArray.h.
|
inlinevirtual |
Definition at line 174 of file UT_VoxelArray.h.
|
inlinevirtual |
Definition at line 175 of file UT_VoxelArray.h.
|
inlinevirtual |
Definition at line 171 of file UT_VoxelArray.h.
|
inlinevirtual |
Definition at line 172 of file UT_VoxelArray.h.
|
pure virtual |
Attempts to compress the data according to the given tolerance. If succesful, returns true.
|
pure virtual |
Attempts to write data directly to the compressed tile. Returns false if not possible.