55 * \copyright http://opensource.org/licenses/GPL-3.0
66 * \remarks Please use clangformat to format the code. See more code style on
77 * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8- */
8+ */
99
1010#ifndef SLRAYTRACER_H
1111#define SLRAYTRACER_H
@@ -51,9 +51,10 @@ SLRaytracer implements the methods render, eyeToPixel, trace and shade for
5151classic Whitted style Ray Tracing. This class is a friend class of SLScene and
5252can access via the pointer _s all members of SLScene. The scene traversal for
5353the ray intersection tests is done within the intersection method of all nodes.
54+ The result is written into an image of an SLGLTexture and that then is rendered
55+ with OpenGL in a orthographic projection.
5456*/
5557class SLRaytracer : public SLGLTexture
56- , public SLEventHandler
5758{
5859public:
5960 SLRaytracer ();
@@ -133,7 +134,7 @@ class SLRaytracer : public SLGLTexture
133134
134135protected:
135136 function<void (bool , SLuint)> renderSlicesAsync;
136- function<void (bool , SLuint)> sampleAAPixelsAsync;
137+ function<void (bool , SLuint)> sampleAAPixelsAsync;
137138
138139 SLSceneView* _sv; // !< Parent sceneview
139140 SLRTState _state; // !< RT state;
@@ -147,14 +148,14 @@ class SLRaytracer : public SLGLTexture
147148 SLfloat _renderSec; // !< Rendering time in seconds
148149 AvgFloat _raysPerMS; // !< Averaged rays per ms
149150
150- SLfloat _pxSize; // !< Pixel size
151- SLVec3f _eye; // !< Camera position
152- SLVec3f _la, _lu, _lr; // !< Camera lookat, lookup, lookright
153- SLVec3f _bl; // !< Bottom left vector
154- SLint _nextLine; // !< next line index to render RT in a thread
155- SLVPixel _aaPixels; // !< Vector for antialiasing pixels
156- SLfloat _gamma; // !< gamma correction value
157- SLfloat _oneOverGamma; // !< one over gamma correction value
151+ SLfloat _pxSize; // !< Pixel size
152+ SLVec3f _eye; // !< Camera position
153+ SLVec3f _la, _lu, _lr; // !< Camera lookat, lookup, lookright
154+ SLVec3f _bl; // !< Bottom left vector
155+ SLint _nextLine; // !< next line index to render RT in a thread
156+ SLVPixel _aaPixels; // !< Vector for antialiasing pixels
157+ SLfloat _gamma; // !< gamma correction value
158+ SLfloat _oneOverGamma; // !< one over gamma correction value
158159
159160 // variables for distributed ray tracing
160161 SLfloat _aaThreshold; // !< threshold for anti aliasing
0 commit comments