29 #ifndef EVOLVE_RAW_VOL_MODEL_RENDERER_H
30 #define EVOLVE_RAW_VOL_MODEL_RENDERER_H
32 #include "rawVolModel.h"
33 #include "sliceClipping.h"
34 #include "glslShaders.h"
44 const uint32_t precision = 1 );
46 bool loadHeader(
const float brightness,
const float alpha )
48 return _rawModel.loadHeader( brightness, alpha );
53 return _rawModel.getVolumeScaling();
56 void glewSetContext(
const GLEWContext* context )
58 _glewContext = context;
59 _rawModel.glewSetContext( context );
63 bool render(
const eq::Range& range,
64 const eq::Matrix4d& modelviewM,
65 const eq::Matrix4f& invRotationM,
66 const eq::Vector4f& taintColor,
67 const int normalsQuality );
69 void setPrecision(
const uint32_t precision ){ _precision = precision; }
70 void setOrtho(
const uint32_t ortho ) { _ortho = ortho; }
72 const GLEWContext* glewGetContext() {
return _glewContext; }
76 void _putVolumeDataToShader(
const VolumeInfo& volumeInfo,
77 const float sliceDistance,
78 const eq::Matrix4f& invRotationM,
79 const eq::Vector4f& taintColor,
80 const int normalsQuality );
87 const GLEWContext* _glewContext;
94 #endif // EVOLVE_RAW_VOL_MODEL_RENDERER_H
Contain overall volume proportions relatively [-1,-1,-1]..[1,1,1] cube.