Changeset 1734 for OpenSceneGraph/trunk/examples/osgcopy/osgcopy.cpp
- Timestamp:
- 03/21/03 23:32:01 (10 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgcopy/osgcopy.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgcopy/osgcopy.cpp
r1730 r1734 14 14 #include <osgUtil/Optimizer> 15 15 16 using namespace osg; 17 16 18 // Customize the CopyOp so that we add our own verbose 17 19 // output of what's being copied. … … 36 38 writeIndent(); std::cout << "copying Referenced "<<ref<<std::endl; 37 39 moveIn(); 38 osg::Referenced* ret_ref = osg::CopyOp::operator()(ref);40 osg::Referenced* ret_ref = CopyOp::operator()(ref); 39 41 moveOut(); 40 42 return ret_ref; … … 47 49 std::cout<<std::endl; 48 50 moveIn(); 49 osg::Object* ret_obj = osg::CopyOp::operator()(obj);51 osg::Object* ret_obj = CopyOp::operator()(obj); 50 52 moveOut(); 51 53 return ret_obj; … … 58 60 std::cout<<std::endl; 59 61 moveIn(); 60 osg::Node* ret_node = osg::CopyOp::operator()(node);62 osg::Node* ret_node = CopyOp::operator()(node); 61 63 moveOut(); 62 64 return ret_node; … … 69 71 std::cout<<std::endl; 70 72 moveIn(); 71 osg::Drawable* ret_drawable = osg::CopyOp::operator()(drawable);73 osg::Drawable* ret_drawable = CopyOp::operator()(drawable); 72 74 moveOut(); 73 75 return ret_drawable; … … 80 82 std::cout<<std::endl; 81 83 moveIn(); 82 osg::StateSet* ret_stateset = osg::CopyOp::operator()(stateset);84 osg::StateSet* ret_stateset = CopyOp::operator()(stateset); 83 85 moveOut(); 84 86 return ret_stateset; … … 91 93 std::cout<<std::endl; 92 94 moveIn(); 93 osg::StateAttribute* ret_attr = osg::CopyOp::operator()(attr);95 osg::StateAttribute* ret_attr = CopyOp::operator()(attr); 94 96 moveOut(); 95 97 return ret_attr; … … 102 104 std::cout<<std::endl; 103 105 moveIn(); 104 osg::Texture* ret_text = osg::CopyOp::operator()(text);106 osg::Texture* ret_text = CopyOp::operator()(text); 105 107 moveOut(); 106 108 return ret_text; … … 113 115 std::cout<<std::endl; 114 116 moveIn(); 115 osg::Image* ret_image = osg::CopyOp::operator()(image);117 osg::Image* ret_image = CopyOp::operator()(image); 116 118 moveOut(); 117 119 return ret_image;
