Show
Ignore:
Timestamp:
03/18/05 03:44:08 (9 years ago)
Author:
robert
Message:

Added support for a new IsOperationPermissibleForObjectCallback? in osgUtil::Optimizer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgUtil/TriStripVisitor

    r3526 r3918  
    2828  * The current implemention is based upon Tanguy Fautre's triangulation code. 
    2929  */ 
    30 class OSGUTIL_EXPORT TriStripVisitor : public osg::NodeVisitor 
     30class OSGUTIL_EXPORT TriStripVisitor : public Optimizer::BaseOptimizerVisitor 
    3131{ 
    3232    public: 
    3333 
    3434        /// default to traversing all children. 
    35         TriStripVisitor(Optimizer* =0) :  
    36                 osg::NodeVisitor( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN ),  
     35        TriStripVisitor(Optimizer* optimizer=0) :  
     36                Optimizer::BaseOptimizerVisitor( optimizer, Optimizer::TRISTRIP_GEOMETRY),  
    3737                _cacheSize( 16 ), 
    3838                _minStripSize( 2 ), 
     
    8282        } 
    8383         
    84         inline bool isOperationPermissibleForObject(const osg::Object* object) const 
    85         { 
    86             return _optimizer ? _optimizer->isOperationPermissibleForObject(object,osgUtil::Optimizer::TRISTRIP_GEOMETRY) : true;  
    87         } 
    8884         
    8985        void setGenerateFourPointPrimitivesQuads(bool flag) { _generateFourPointPrimitivesQuads = flag; } 
     
    9591        typedef std::set<osg::Geometry*> GeometryList; 
    9692 
    97         Optimizer*   _optimizer; 
    9893        unsigned int _cacheSize; 
    9994        unsigned int _minStripSize;