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