|
NAMEvpStoreRawVolume, vpStoreMinMaxOctree, vpStoreClassifiedVolume, vpStoreContext - store volume data structures to a fileSYNOPSIS#include <volpack.h>vpResult vpStoreRawVolume(vpc, fd)
vpResult vpStoreMinMaxOctree(vpc, fd)
vpResult vpStoreClassifiedVolume(vpc, fd)
vpResult vpStoreContext(vpc, fd)
ARGUMENTS
DESCRIPTIONThese functions are used to store volume data structures from a rendering context into files in the format read by the VolPack file reading routines (see vpLoadRawVolume(3)).vpStoreRawVolume creates a 3D voxel array file. The file includes information about the size of the volume and the layout of the voxels as well as the volume data itself. vpStoreMinMaxOctree creates a min-max octree file. The file includes information about the size of the volume and the layout of the voxels as well as the octree itself. vpStoreClassifiedVolume creates a preclassified volume data file. The file includes information about the size of the volume and the layout of the voxels as well as the volume data itself. vpStoreContext creates a rendering context file. The file includes all rendering parameters except volume data and callback functions. The contents of any lookup tables for shading and classification are also stored. The function used to write data to the files can be set by calling vpSetCallback with the VP_WRITE_FUNC option. This could be used to implement a file-compression system, for example. STATE VARIABLESThe current file I/O parameters can be retrieved with the following state variable codes (see vpGeti(3)): VP_WRITE_FUNC.ERRORSThe normal return value is VP_OK. The following error return values are possible:
SEE ALSOVolPack(3), vpCreateContext(3), vpLoadRawVolume(3)
Visit the GSP FreeBSD Man Page Interface. |