9 #ifndef GlobeEngine_VolumeRenderer_h
10 #define GlobeEngine_VolumeRenderer_h
12 #include "OpenGL_Includes.h"
17 #include <vmmlib/vmmlib.hpp>
28 void create(std::string _shaderpath, vmml::Vector2d _viewport, vmml::Vector3d _scale, vmml::Vector3d _position);
29 void draw(std::shared_ptr<ge::Camera> _cam);
31 , vmml::Vector2d _camViewport);
41 void setLMIP(
float _lmipThreshold);
56 std::shared_ptr<ge::Cube> volumeBoundCube;
57 std::shared_ptr<ge::Shader> programForCubes;
58 std::shared_ptr<ge::Shader> programForEmissionAbsorption;
59 std::shared_ptr<ge::Shader> programForMaximumIntensityProjection;
60 std::shared_ptr<ge::Shader> programForMean;
61 std::shared_ptr<ge::Shader> programForFirstLocalMaximum;
63 std::shared_ptr<geFlow::VolumeComposition> volumeComposition;
65 std::shared_ptr<ge::Texture1Drgba> transferFunctionTexture;
71 bool rayMarchingActive;
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: VolumeRenderer.cpp:56
void setFramebufferStandardIDs(int _id)
Definition: VolumeRenderer.cpp:184
void updateCompositions(vmml::Vector2d _viewport, vmml::Vector2d _camViewport)
Definition: VolumeRenderer.cpp:84
Definition: VolumeRenderer.h:21
Definition: ArrowField.h:16
const ge::FrameBufferObject & getFrontFaceBuffer() const
Definition: VolumeRenderer.cpp:111
void selectRayMarchingMethod(int _rayMarching)
Definition: VolumeRenderer.cpp:131
void clear()
Definition: VolumeRenderer.cpp:14
Definition: FrameBufferObject.h:20
void updateTransferfunction()
Definition: VolumeRenderer.cpp:191
void setTransferFunctionTextureData(unsigned char *_tfdata)
Definition: VolumeRenderer.cpp:164
void create(std::string _shaderpath, vmml::Vector2d _viewport, vmml::Vector3d _scale, vmml::Vector3d _position)
Definition: VolumeRenderer.cpp:18
GLuint getVolumeCompositionHandleForLayer(int _idx, int _timestep) const
Definition: VolumeRenderer.cpp:174
const ge::FrameBufferObject & getVolumeBuffer() const
Definition: VolumeRenderer.cpp:106
const ge::FrameBufferObject & getBackFaceBuffer() const
Definition: VolumeRenderer.cpp:116
VolumeRenderer()
Definition: VolumeRenderer.cpp:5
std::shared_ptr< geFlow::VolumeComposition > getVolumeComposition() const
Definition: VolumeRenderer.cpp:169
int getVolumeCompositionSize() const
Definition: VolumeRenderer.cpp:179
void updateTextureSelection(int _directory, int _timestep)
Definition: VolumeRenderer.cpp:159
void setLMIP(float _lmipThreshold)
Definition: VolumeRenderer.cpp:149
void setStepSize(float _stepsize)
Definition: VolumeRenderer.cpp:154
Definition: SceneStateSet.h:41
bool isEnabled() const
Definition: VolumeRenderer.cpp:126
~VolumeRenderer()
Definition: VolumeRenderer.cpp:10