Show
Ignore:
Timestamp:
03/21/03 23:32:01 (11 years ago)
Author:
robert
Message:

Added using namespace osg and removed osg:: from CopyOp?'s as this was
causing problems with VisualStudio?'s scoping bug.

Files:
1 modified

Legend:

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

    r1730 r1734  
    1414#include <osgUtil/Optimizer> 
    1515 
     16using namespace osg; 
     17 
    1618// Customize the CopyOp so that we add our own verbose  
    1719// output of what's being copied. 
     
    3638            writeIndent(); std::cout << "copying Referenced "<<ref<<std::endl; 
    3739            moveIn(); 
    38             osg::Referenced* ret_ref = osg::CopyOp::operator()(ref); 
     40            osg::Referenced* ret_ref = CopyOp::operator()(ref); 
    3941            moveOut(); 
    4042            return ret_ref; 
     
    4749            std::cout<<std::endl; 
    4850            moveIn(); 
    49             osg::Object* ret_obj = osg::CopyOp::operator()(obj); 
     51            osg::Object* ret_obj = CopyOp::operator()(obj); 
    5052            moveOut(); 
    5153            return ret_obj; 
     
    5860            std::cout<<std::endl; 
    5961            moveIn(); 
    60             osg::Node* ret_node = osg::CopyOp::operator()(node); 
     62            osg::Node* ret_node = CopyOp::operator()(node); 
    6163            moveOut(); 
    6264            return ret_node; 
     
    6971            std::cout<<std::endl; 
    7072            moveIn(); 
    71             osg::Drawable* ret_drawable = osg::CopyOp::operator()(drawable); 
     73            osg::Drawable* ret_drawable = CopyOp::operator()(drawable); 
    7274            moveOut(); 
    7375            return ret_drawable; 
     
    8082            std::cout<<std::endl; 
    8183            moveIn(); 
    82             osg::StateSet* ret_stateset = osg::CopyOp::operator()(stateset); 
     84            osg::StateSet* ret_stateset = CopyOp::operator()(stateset); 
    8385            moveOut(); 
    8486            return ret_stateset; 
     
    9193            std::cout<<std::endl; 
    9294            moveIn(); 
    93             osg::StateAttribute* ret_attr = osg::CopyOp::operator()(attr); 
     95            osg::StateAttribute* ret_attr = CopyOp::operator()(attr); 
    9496            moveOut(); 
    9597            return ret_attr; 
     
    102104            std::cout<<std::endl; 
    103105            moveIn(); 
    104             osg::Texture* ret_text = osg::CopyOp::operator()(text); 
     106            osg::Texture* ret_text = CopyOp::operator()(text); 
    105107            moveOut(); 
    106108            return ret_text; 
     
    113115            std::cout<<std::endl; 
    114116            moveIn(); 
    115             osg::Image* ret_image = osg::CopyOp::operator()(image); 
     117            osg::Image* ret_image = CopyOp::operator()(image); 
    116118            moveOut(); 
    117119            return ret_image;