Changeset 1039 for branches/Carsten_PtrWork2/Tutorials/04hiertransform.cpp
- Timestamp:
- 01/16/08 16:07:40 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Tutorials/04hiertransform.cpp
r835 r1039 22 22 23 23 // just use a single transformation that is shared 24 Transform Ptr trans;24 TransformGlobalRefPtr trans; 25 25 26 26 … … 58 58 59 59 // the connection between GLUT and OpenSG 60 GLUTWindow Ptr gwin= GLUTWindow::create();60 GLUTWindowGlobalRefPtr gwin= GLUTWindow::create(); 61 61 gwin->setGlutId(winid); 62 62 gwin->init(); … … 84 84 85 85 // use a cylinder this time 86 Geometry Ptr cyl = makeCylinderGeo( 1, .3, 8, true, true, true );86 GeometryGlobalRefPtr cyl = makeCylinderGeo( 1, .3, 8, true, true, true ); 87 87 88 88 // the single transformation Core used … … 98 98 NullFC is the generic NULL value for FieldContainer pointer. 99 99 */ 100 Node Ptr last = NullFC;100 NodeGlobalRefPtr last; 101 101 102 102 // create the copied transformations and their geometry nodes … … 104 104 { 105 105 // create the shared Geometry 106 Node Ptr geonode = Node::create();106 NodeRefPtr geonode = Node::create(); 107 107 geonode->setCore(cyl); 108 108 109 109 // add a transformation to the Geometry 110 Node Ptr transnode = Node::create();110 NodeRefPtr transnode = Node::create(); 111 111 112 112 transnode->setCore (trans); … … 120 120 } 121 121 122 Node Ptr scene = last;122 NodeGlobalRefPtr scene = last; 123 123 124 124 commitChanges(); … … 176 176 case 27: 177 177 { 178 delete mgr; 179 178 180 OSG::osgExit(); 179 181 exit(0); … … 186 188 } 187 189 break; 190 191 case 'd': 192 { 193 trans.dump(); 194 } 188 195 } 189 196 }
