Show
Ignore:
Timestamp:
12/09/03 15:07:44 (10 years ago)
Author:
robert
Message:

Removed osg::Transform::ComputeTransformCallback? from osg::Transform.

Updated various dependant files to reimplemt callbacks as Transform subclasses.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcallback/osgcallback.cpp

    r1844 r2517  
    4545            std::cout<<"draw call back - post drawImplementation"<<drawable<<std::endl; 
    4646        } 
    47 }; 
    48  
    49 struct TransformCallback : public osg::Transform::ComputeTransformCallback 
    50 { 
    51     /** Get the transformation matrix which moves from local coords to world coords.*/ 
    52     virtual bool computeLocalToWorldMatrix(osg::Matrix& matrix,const osg::Transform* transform, osg::NodeVisitor* nv) const 
    53     { 
    54         std::cout<<"computeLocalToWorldMatrix - pre transform->computeLocalToWorldMatrix"<<std::endl; 
    55         bool result = transform->computeLocalToWorldMatrix(matrix,nv); 
    56         std::cout<<"computeLocalToWorldMatrix - post transform->computeLocalToWorldMatrix"<<std::endl; 
    57         return result; 
    58     } 
    59  
    60     /** Get the transformation matrix which moves from world coords to local coords.*/ 
    61     virtual bool computeWorldToLocalMatrix(osg::Matrix& matrix,const osg::Transform* transform, osg::NodeVisitor* nv) const  
    62     { 
    63         std::cout<<"computeWorldToLocalMatrix - pre transform->computeWorldToLocalMatrix"<<std::endl; 
    64         bool result = transform->computeWorldToLocalMatrix(matrix,nv); 
    65         std::cout<<"computeWorldToLocalMatrix - post transform->computeWorldToLocalMatrix"<<std::endl; 
    66         return result; 
    67     } 
    6847}; 
    6948 
     
    122101        virtual void apply(osg::Transform& node) 
    123102        { 
    124             node.setComputeTransformCallback(new TransformCallback()); 
    125103            apply((osg::Node&)node); 
    126104        }