- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgSim/InsertImpostorsVisitor
r9377 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 29 29 /** Default to traversing all children. */ 30 30 InsertImpostorsVisitor(); 31 31 32 32 META_NodeVisitor("osgSim","InsertImpostorsVisitor") 33 33 … … 38 38 unsigned int getMaximumNumberOfNestedImpostors() const { return _maximumNumNestedImpostors; } 39 39 40 /** Empty visitor, make it ready for next traversal. */ 40 /** Empty visitor, make it ready for next traversal. */ 41 41 void reset(); 42 42 … … 49 49 /* Insert the required impostors into the scene graph. */ 50 50 void insertImpostors(); 51 51 52 52 protected: 53 53 54 54 typedef std::vector< osg::Group* > GroupList; 55 55 typedef std::vector< osg::LOD* > LODList; 56 56 57 57 GroupList _groupList; 58 LODList _lodList; 58 LODList _lodList; 59 59 60 60 float _impostorThresholdRatio;
