summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/abstract3drenderer_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/datavisualization/engine/abstract3drenderer_p.h')
-rw-r--r--src/datavisualization/engine/abstract3drenderer_p.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/datavisualization/engine/abstract3drenderer_p.h b/src/datavisualization/engine/abstract3drenderer_p.h
index 7874a1ad..1e815463 100644
--- a/src/datavisualization/engine/abstract3drenderer_p.h
+++ b/src/datavisualization/engine/abstract3drenderer_p.h
@@ -29,8 +29,6 @@
#ifndef ABSTRACT3DRENDERER_P_H
#define ABSTRACT3DRENDERER_P_H
-//#define USE_REFLECTIONS // Bars only test version (only floor reflects)
-
#include <QtGui/QOpenGLFunctions>
#include "datavisualizationglobal_p.h"
@@ -147,21 +145,13 @@ public:
void setSelectionLabel(const QString &label);
QString &selectionLabel();
-#ifdef USE_REFLECTIONS
void drawCustomItems(RenderingState state, ShaderHelper *regularShader,
ShaderHelper *volumeShader, ShaderHelper *volumeSliceShader,
const QMatrix4x4 &viewMatrix,
const QMatrix4x4 &projectionViewMatrix,
const QMatrix4x4 &depthProjectionViewMatrix,
GLuint depthTexture, GLfloat shadowQuality, GLfloat reflection = 1.0f);
-#else
- void drawCustomItems(RenderingState state, ShaderHelper *regularShader,
- ShaderHelper *volumeShader, ShaderHelper *volumeSliceShader,
- const QMatrix4x4 &viewMatrix,
- const QMatrix4x4 &projectionViewMatrix,
- const QMatrix4x4 &depthProjectionViewMatrix,
- GLuint depthTexture, GLfloat shadowQuality);
-#endif
+
QVector4D indexToSelectionColor(GLint index);
void calculatePolarXZ(const QVector3D &dataPos, float &x, float &z) const;
@@ -285,6 +275,9 @@ protected:
QVector3D m_oldCameraTarget;
+ bool m_reflectionEnabled;
+ qreal m_reflectivity;
+
private:
friend class Abstract3DController;
};