Changeset 1201
- Timestamp:
- 05/05/08 08:52:05 (1 week ago)
- Files:
-
- trunk/Source/Contrib/VTK/testVTKCluster.cpp (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/Contrib/VTK/testVTKCluster.cpp
r1194 r1201 110 110 delete ract; 111 111 112 root = N ullFC;113 cam_trans = N ullFC;114 cam = N ullFC;115 clusterWindow = N ullFC;116 clientWindow = N ullFC;112 root = NULL; 113 cam_trans = NULL; 114 cam = NULL; 115 clusterWindow = NULL; 116 clientWindow = NULL; 117 117 #ifdef HAVE_SORT 118 sortfirst = N ullFC;119 sortlast = N ullFC;118 sortfirst = NULL; 119 sortlast = NULL; 120 120 #endif 121 121 #ifdef FRAMEINTERLEAVE 122 frameinterleave = N ullFC;122 frameinterleave = NULL; 123 123 #endif 124 multidisplay = N ullFC;125 polygonChunk = N ullFC;126 bkgnd = N ullFC;124 multidisplay = NULL; 125 polygonChunk = NULL; 126 bkgnd = NULL; 127 127 128 128 osgExit(); … … 205 205 } 206 206 207 void prepareSceneGraph( const NodePtr &node)207 void prepareSceneGraph(Node * const node) 208 208 { 209 209 TriangleIterator f; … … 215 215 } 216 216 217 NodeCore Ptrcore =node->getCore();218 if(core != N ullFC)219 { 220 Geometry Ptr geo = dynamic_cast<GeometryPtr>(core);221 if(geo != N ullFC)217 NodeCore *core =node->getCore(); 218 if(core != NULL) 219 { 220 Geometry *geo = dynamic_cast<Geometry *>(core); 221 if(geo != NULL) 222 222 { 223 Material Ptrmat = geo->getMaterial();224 if(mat != N ullFC)223 Material *mat = geo->getMaterial(); 224 if(mat != NULL) 225 225 { 226 ChunkMaterial Ptr cmat = dynamic_cast<ChunkMaterialPtr>(mat);227 228 if(cmat->find(PolygonChunk::getClassType()) == N ullFC)226 ChunkMaterial *cmat = dynamic_cast<ChunkMaterial *>(mat); 227 228 if(cmat->find(PolygonChunk::getClassType()) == NULL) 229 229 { 230 230 cmat->addChunk(polygonChunk); … … 232 232 } 233 233 // get num positions 234 GeoVectorProperty PtrpositionsPtr=geo->getPositions();235 if(positionsPtr != N ullFC)234 GeoVectorProperty *positionsPtr=geo->getPositions(); 235 if(positionsPtr != NULL) 236 236 sum_positions += positionsPtr->getSize(); 237 237 // get num triangles … … 243 243 else 244 244 { 245 MaterialGroup Ptr matGrp = dynamic_cast<MaterialGroupPtr>(core);246 if(matGrp != N ullFC)245 MaterialGroup *matGrp = dynamic_cast<MaterialGroup *>(core); 246 if(matGrp != NULL) 247 247 { 248 Material Ptrmat = matGrp->getMaterial();249 if(mat != N ullFC)248 Material *mat = matGrp->getMaterial(); 249 if(mat != NULL) 250 250 { 251 ChunkMaterial Ptrcmat =252 dynamic_cast<ChunkMaterial Ptr>(mat);253 254 if(cmat->find(PolygonChunk::getClassType()) == N ullFC)251 ChunkMaterial *cmat = 252 dynamic_cast<ChunkMaterial *>(mat); 253 254 if(cmat->find(PolygonChunk::getClassType()) == NULL) 255 255 { 256 256 cmat->addChunk(polygonChunk); … … 260 260 else 261 261 { 262 ProxyGroup Ptr proxy = dynamic_cast<ProxyGroupPtr>(core);263 if(proxy != N ullFC)262 ProxyGroup *proxy = dynamic_cast<ProxyGroup *>(core); 263 if(proxy != NULL) 264 264 { 265 265 sum_triangles += proxy->getTriangles(); … … 451 451 static char str[1024]; 452 452 453 NameUnrecPtr parameters = dynamic_cast<Name Ptr>(clusterWindow->findAttachment(Name::getClassType()));454 455 if(parameters == N ullFC)453 NameUnrecPtr parameters = dynamic_cast<Name *>(clusterWindow->findAttachment(Name::getClassType())); 454 455 if(parameters == NULL) 456 456 { 457 457 parameters = Name::create(); … … 545 545 #ifdef HAVE_SORT 546 546 case 'j': 547 if(sortfirst!=N ullFC)547 if(sortfirst!=NULL) 548 548 { 549 549 sortfirst->setCompression("JPEG"); … … 551 551 break; 552 552 case 'r': 553 if(sortfirst!=N ullFC)553 if(sortfirst!=NULL) 554 554 { 555 555 sortfirst->setCompression("RLE"); … … 557 557 break; 558 558 case 'n': 559 if(sortfirst!=N ullFC)559 if(sortfirst!=NULL) 560 560 { 561 561 sortfirst->getCompression().erase(); … … 632 632 } 633 633 634 void addActor(OSG::Node PtrpRoot,635 vtkActor *pActor)634 void addActor(OSG::Node *pRoot, 635 vtkActor *pActor) 636 636 { 637 637 OSG::NodeUnrecPtr pTmpNode = OSG::Node ::create(); … … 647 647 OSG::NodeTransitPtr initVTK(void) 648 648 { 649 OSG::NodeUnrecPtr returnValue = OSGNullFC;649 OSG::NodeUnrecPtr returnValue = NULL; 650 650 651 651 Char8 *szDataRoot = getenv("VTK_DATA_ROOT"); … … 1180 1180 { 1181 1181 file = SceneFileHandler::the()->read(filenames[i].c_str(),0); 1182 if(file != N ullFC)1182 if(file != NULL) 1183 1183 scene->addChild(file); 1184 1184 else … … 1429 1429 1430 1430 std::string composerType=""; 1431 ImageComposer Ptr composer=NullFC;1431 ImageComposer *composer=NULL; 1432 1432 std::string autostart; 1433 1433 … … 1660 1660 _dynamic<ImageComposerPtr>(fcPtr); 1661 1661 1662 if(icPtr != N ullFC)1662 if(icPtr != NULL) 1663 1663 { 1664 1664 /* 1665 if(PipelineComposerPtr::dcast(icPtr) != N ullFC)1665 if(PipelineComposerPtr::dcast(icPtr) != NULL) 1666 1666 PipelineComposerPtr::dcast(icPtr)->setTileSize(subtilesize); 1667 if(BinarySwapComposerPtr::dcast(icPtr) != N ullFC)1667 if(BinarySwapComposerPtr::dcast(icPtr) != NULL) 1668 1668 BinarySwapComposerPtr::dcast(icPtr)->setTileSize(subtilesize); 1669 1669 */
