OpenCOVER
coVRSceneView.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef coVRSceneView_H
9#define coVRSceneView_H
10#include <osg/Version>
24/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
25 *
26 * This library is open source and may be redistributed and/or modified under
27 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
28 * (at your option) any later version. The full license is in LICENSE file
29 * included with this distribution, and on the openscenegraph.org website.
30 *
31 * This library is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 * OpenSceneGraph Public License for more details.
35 */
36
37#include <util/coExport.h>
38#include <osgUtil/SceneView>
39
40namespace opencover
41{
42
48class COVEREXPORT coVRSceneView : public osgUtil::SceneView
49{
50public:
52 coVRSceneView(osg::DisplaySettings *ds = NULL, int channel = -1);
53 void createUniforms(osg::StateSet *stateset);
54 static void destroyUniforms();
55 static osg::Uniform *coEnvCorrectMatrixUniform;
56 static osg::Uniform *coInvEnvCorrectMatrixUniform;
57
58protected:
59 virtual ~coVRSceneView();
60
61
63 virtual bool cullStage(const osg::Matrixd &projection, const osg::Matrixd &modelview, osgUtil::CullVisitor *cullVisitor,
64 osgUtil::StateGraph *stategraph, osgUtil::RenderStage *renderStage,
65 osg::Viewport *viewport);
66 int screen;
67};
68}
69#endif
Definition: ARToolKit.h:33
Definition: coVRSceneView.h:49
static void destroyUniforms()
int screen
Definition: coVRSceneView.h:66
virtual bool cullStage(const osg::Matrixd &projection, const osg::Matrixd &modelview, osgUtil::CullVisitor *cullVisitor, osgUtil::StateGraph *stategraph, osgUtil::RenderStage *renderStage, osg::Viewport *viewport)
void createUniforms(osg::StateSet *stateset)
coVRSceneView(osg::DisplaySettings *ds=NULL, int channel=-1)
static osg::Uniform * coInvEnvCorrectMatrixUniform
Definition: coVRSceneView.h:56
static osg::Uniform * coEnvCorrectMatrixUniform
Definition: coVRSceneView.h:55