source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Visualization.h @ 2889

Revision 2889, 1.4 KB checked in by mattausch, 16 years ago (diff)
RevLine 
[2767]1#ifndef __VISUALIZATION_H
2#define __VISUALIZATION_H
3
4#include "common.h"
5
6
[2776]7namespace CHCDemoEngine
[2767]8{
9
10class Bvh;
11class Camera;
12class RenderState;
13class AxisAlignedBox3;
[2796]14class GLUquadric;
[2767]15
16
17/** Abstract class implementing a scene traversal for rendering.
18*/
19class Visualization
20{
21public:
[2806]22        /** Main constructor taking a bvh, a camera, a visualization camera and the current render state
23            as parameters
24        */
[2840]25        Visualization(Bvh *bvh, Camera *camera, Camera *vizCamera, RenderState *state);
[2767]26
[2796]27        ~Visualization();
[2767]28
29        /** Renders the visualizatioin
30        */
31        void Render();
32        /** Sets the scene hierarchy.
33        */
34        void SetHierarchy(Bvh *bvh);
35        /** Sets the visualization camera.
36        */
37        void SetVizCamera(Camera *cam)  {mVizCamera = cam;}
38        /** Sets the currently used scene camera.
39        */
40        void SetCamera(Camera *cam)  {mCamera = cam;}
41        /** Sets the current render state
42        */
43        void SetRenderState(RenderState *state);
[2787]44        /** Sets the currentframe id
45        */
46        void SetFrameId(int frameId);
[2767]47
[2889]48                /** Renders a camera frustum.
[2767]49        */
50        void RenderFrustum();
51
[2889]52protected:
[2767]53
54        ////////////
55        //-- members
56
57        /// the current camera
58        Camera *mCamera;
59        /// the visualization camera
60        Camera *mVizCamera;
61        /// the root of the scene hierarchy
62        Bvh *mBvh;
63        /// the current render state
64        RenderState *mRenderState;
[2787]65        /// the current frame id
66        int mFrameId;
[2767]67};
68
69}
70
71
72
73#endif // VISUALIZATION_H
Note: See TracBrowser for help on using the repository browser.