Changeset 13041 for OpenSceneGraph/trunk/include/osgUtil/TriStripVisitor
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgUtil/TriStripVisitor
r8651 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 */ … … 33 33 34 34 /// default to traversing all children. 35 TriStripVisitor(Optimizer* optimizer=0) : 36 BaseOptimizerVisitor( optimizer, Optimizer::TRISTRIP_GEOMETRY), 35 TriStripVisitor(Optimizer* optimizer=0) : 36 BaseOptimizerVisitor( optimizer, Optimizer::TRISTRIP_GEOMETRY), 37 37 _cacheSize( 16 ), 38 38 _minStripSize( 2 ), … … 56 56 _cacheSize = size; 57 57 } 58 58 59 59 inline unsigned int getCacheSize() const 60 60 { 61 61 return _cacheSize; 62 62 } 63 63 64 64 inline void setMinStripSize( unsigned int size ) 65 65 { 66 66 _minStripSize = size; 67 67 } 68 68 69 69 inline unsigned int getMinStripSize() const 70 70 { 71 71 return _minStripSize; 72 72 } 73 74 73 74 75 75 void setGenerateFourPointPrimitivesQuads(bool flag) { _generateFourPointPrimitivesQuads = flag; } 76 76 bool getGenerateFourPointPrimitivesQuads() const { return _generateFourPointPrimitivesQuads; } 77 77 78 78 79 79 private: 80 80 81 81 typedef std::set<osg::Geometry*> GeometryList; 82 82
