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::Matrix3d& modelviewITM,
66 const eq::Matrix4f& invRotationM,
67 const eq::Vector4f& taintColor,
68 const int normalsQuality );
70 void setPrecision(
const uint32_t precision ){ _precision = precision; }
71 void setOrtho(
const uint32_t ortho ) { _ortho = ortho; }
73 const GLEWContext* glewGetContext() {
return _glewContext; }
77 void _putVolumeDataToShader(
const VolumeInfo& volumeInfo,
78 const float sliceDistance,
79 const eq::Matrix4f& invRotationM,
80 const eq::Vector4f& taintColor,
81 const int normalsQuality );
88 const GLEWContext* _glewContext;
95 #endif // EVOLVE_RAW_VOL_MODEL_RENDERER_H
Contain overal volume proportions relatively [-1,-1,-1]..[1,1,1] cube.