OpenCOVER
coLOD.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 COLOD
9#define COLOD
10
11/*
12 * LOD node for OpenCOVER
13 *
14 * This class is basically the same as osg::LOD but uses the head point
15 * instead of the viewpoint for LOD calculation, so the LOD is the same
16 * on all walls / eyes.
17 *
18 */
19
20/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
21 *
22 * This library is open source and may be redistributed and/or modified under
23 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
24 * (at your option) any later version. The full license is in LICENSE file
25 * included with this distribution, and on the openscenegraph.org website.
26 *
27 * This library is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * OpenSceneGraph Public License for more details.
31*/
32
33#include <util/coExport.h>
34#include <osg/LOD>
35#include <osg/NodeVisitor>
36
37namespace opencover
38{
39
40class PLUGIN_UTILEXPORT coLOD : public osg::LOD
41{
42public:
44 virtual ~coLOD();
45
46 virtual void traverse(osg::NodeVisitor &nv);
47
48private:
49 float getDistance(osg::NodeVisitor &nv);
50};
51}
52#endif
Definition: ARToolKit.h:33
Definition: coLOD.h:41
virtual ~coLOD()
virtual void traverse(osg::NodeVisitor &nv)