29 #ifndef EVOLVE_RAW_VOL_MODEL_H
30 #define EVOLVE_RAW_VOL_MODEL_H
88 bool loadHeader(
const float brightness,
const float alpha );
90 bool getVolumeInfo(
VolumeInfo& info,
const eq::Range& range );
92 void releaseVolumeInfo(
const eq::Range& range );
94 const std::string& getFileName()
const {
return _filename; }
95 uint32_t getResolution()
const {
return _resolution; }
96 const VolumeScaling& getVolumeScaling()
const {
return _volScaling; }
98 void glewSetContext(
const GLEWContext* context )
99 { _glewContext = context; }
101 const GLEWContext* glewGetContext()
const {
return _glewContext; }
107 const eq::Range& range );
110 bool _lFailed(
char* msg )
111 { LBERROR << msg << std::endl;
return false; }
119 stde::hash_map< int32_t, VolumePart > _volumeHash;
122 std::string _filename;
132 uint32_t _resolution;
136 std::vector< uint8_t > _TF;
138 bool _hasDerivatives;
140 const GLEWContext* _glewContext;
145 #endif // EVOLVE_RAW_VOL_MODEL_H
VolumeScaling voxelSize
Relative volume size (0..1].
GLuint volume
3D texture ID
bool _createVolumeTexture(GLuint &volume, DataInTextureDimensions &TD, const eq::Range &range)
Reading requested part of volume and derivatives from data file.
GLuint preint
preintegration table texture
float D
Depth of data in texture (0..1].
float Do
Depth offset (start of range)
DataInTextureDimensions TD
Data dimensions within volume texture.
Contain overall volume proportions relatively [-1,-1,-1]..[1,1,1] cube.
float Db
Depth border (necessary for preintegration)
float W
Width of data in texture (0..1].
VolumeScaling volScaling
Proportions of volume.
float H
Height of data in texture (0..1].
Structure that contain actual dimensions of data that is stored in volume texture.