BrickedVolumeWriter Class Reference
This writer writes a bricked volume into a single file. More...
#include <brickedvolumewriter.h>
Inheritance diagram for BrickedVolumeWriter:
Public Member Functions | |
| BrickedVolumeWriter (BrickingInformation &brickingInformation) | |
| virtual VolumeWriter * | create (IOProgress *progress=0) const |
| Virtual constructor. | |
| void | setBrickingInformation (BrickingInformation &brickingInformation) |
| bool | openFile (std::string filename) |
| Opens the files to which the bricks and the volume information (dimensions etc) will be written. | |
| void | writeBviFile () |
| void | writeVolume (VolumeHandle *volumeHandle) |
| Creates all levels of detail of the given volume and writes them to the end of the currently open file, including the information whether or not all voxels are equal in the volume. | |
| void | closeFile () |
| Closes the currently open file. | |
| virtual void | write (const std::string &filename, VolumeHandle *volumeHandle) throw (tgt::IOException) |
| This function is inherited from VolumeWriter, but won't be used. | |
Protected Attributes | |
| BrickingInformation & | brickingInformation_ |
| In here are all the neccessary informations, like VolumeDimensions, the bricks, etc. | |
| std::fstream * | bviout_ |
| std::fstream * | bvout_ |
| std::fstream * | bpiout_ |
| FILE * | bvFile_ |
| std::string | bviname_ |
| std::string | bvname_ |
| std::string | bpiname_ |
| uint64_t | bvPosition_ |
| int | sizeOfUint64_ |
| uint64_t * | positionArray_ |
| char * | allVoxelsEqualArray_ |
| float * | errorArray_ |
| uint64_t | currentBrick_ |
| uint64_t | errorArrayPosition_ |
Detailed Description
This writer writes a bricked volume into a single file.
That way bricks can be read with a BrickedVolumeReader directly from the file, together with information of the brick contains an empty volume.
Definition at line 41 of file brickedvolumewriter.h.