Changeset 1201

Show
Ignore:
Timestamp:
05/05/08 08:52:05 (1 week ago)
Author:
vossg
Message:

changed: missing update for the interface changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Contrib/VTK/testVTKCluster.cpp

    r1194 r1201  
    110110    delete ract; 
    111111 
    112     root = NullFC
    113     cam_trans = NullFC
    114     cam = NullFC
    115     clusterWindow = NullFC
    116     clientWindow = NullFC
     112    root = NULL
     113    cam_trans = NULL
     114    cam = NULL
     115    clusterWindow = NULL
     116    clientWindow = NULL
    117117#ifdef HAVE_SORT 
    118     sortfirst = NullFC
    119     sortlast = NullFC
     118    sortfirst = NULL
     119    sortlast = NULL
    120120 #endif 
    121121#ifdef FRAMEINTERLEAVE 
    122     frameinterleave = NullFC
     122    frameinterleave = NULL
    123123#endif 
    124     multidisplay = NullFC
    125     polygonChunk = NullFC
    126     bkgnd = NullFC
     124    multidisplay = NULL
     125    polygonChunk = NULL
     126    bkgnd = NULL
    127127 
    128128    osgExit();  
     
    205205} 
    206206 
    207 void prepareSceneGraph(const NodePtr &node) 
     207void prepareSceneGraph(Node * const node) 
    208208{ 
    209209    TriangleIterator f; 
     
    215215    } 
    216216 
    217     NodeCorePtr core  =node->getCore(); 
    218     if(core != NullFC
    219     { 
    220         GeometryPtr geo   = dynamic_cast<GeometryPtr>(core); 
    221         if(geo != NullFC
     217    NodeCore *core  =node->getCore(); 
     218    if(core != NULL
     219    { 
     220        Geometry *geo   = dynamic_cast<Geometry *>(core); 
     221        if(geo != NULL
    222222        { 
    223             MaterialPtr mat = geo->getMaterial(); 
    224             if(mat != NullFC
     223            Material *mat = geo->getMaterial(); 
     224            if(mat != NULL
    225225            { 
    226                 ChunkMaterialPtr cmat = dynamic_cast<ChunkMaterialPtr>(mat); 
    227  
    228                 if(cmat->find(PolygonChunk::getClassType()) == NullFC
     226                ChunkMaterial *cmat = dynamic_cast<ChunkMaterial *>(mat); 
     227 
     228                if(cmat->find(PolygonChunk::getClassType()) == NULL
    229229                { 
    230230                    cmat->addChunk(polygonChunk); 
     
    232232            } 
    233233            // get num positions 
    234             GeoVectorPropertyPtr positionsPtr=geo->getPositions(); 
    235             if(positionsPtr != NullFC
     234            GeoVectorProperty *positionsPtr=geo->getPositions(); 
     235            if(positionsPtr != NULL
    236236                sum_positions += positionsPtr->getSize(); 
    237237            // get num triangles 
     
    243243        else 
    244244        { 
    245             MaterialGroupPtr matGrp = dynamic_cast<MaterialGroupPtr>(core); 
    246             if(matGrp != NullFC
     245            MaterialGroup *matGrp = dynamic_cast<MaterialGroup *>(core); 
     246            if(matGrp != NULL
    247247            { 
    248                 MaterialPtr mat = matGrp->getMaterial(); 
    249                 if(mat != NullFC
     248                Material *mat = matGrp->getMaterial(); 
     249                if(mat != NULL
    250250                { 
    251                     ChunkMaterialPtr cmat =  
    252                         dynamic_cast<ChunkMaterialPtr>(mat); 
    253  
    254                     if(cmat->find(PolygonChunk::getClassType()) == NullFC
     251                    ChunkMaterial *cmat =  
     252                        dynamic_cast<ChunkMaterial *>(mat); 
     253 
     254                    if(cmat->find(PolygonChunk::getClassType()) == NULL
    255255                    { 
    256256                        cmat->addChunk(polygonChunk); 
     
    260260            else 
    261261            { 
    262                 ProxyGroupPtr proxy = dynamic_cast<ProxyGroupPtr>(core); 
    263                 if(proxy != NullFC
     262                ProxyGroup *proxy = dynamic_cast<ProxyGroup *>(core); 
     263                if(proxy != NULL
    264264                { 
    265265                    sum_triangles += proxy->getTriangles(); 
     
    451451    static char str[1024]; 
    452452     
    453     NameUnrecPtr parameters = dynamic_cast<NamePtr>(clusterWindow->findAttachment(Name::getClassType())); 
    454  
    455     if(parameters == NullFC
     453    NameUnrecPtr parameters = dynamic_cast<Name *>(clusterWindow->findAttachment(Name::getClassType())); 
     454 
     455    if(parameters == NULL
    456456    { 
    457457        parameters = Name::create(); 
     
    545545#ifdef HAVE_SORT 
    546546        case 'j': 
    547             if(sortfirst!=NullFC
     547            if(sortfirst!=NULL
    548548            { 
    549549                sortfirst->setCompression("JPEG"); 
     
    551551            break; 
    552552        case 'r': 
    553             if(sortfirst!=NullFC
     553            if(sortfirst!=NULL
    554554            { 
    555555                sortfirst->setCompression("RLE"); 
     
    557557            break; 
    558558        case 'n': 
    559             if(sortfirst!=NullFC
     559            if(sortfirst!=NULL
    560560            { 
    561561                sortfirst->getCompression().erase(); 
     
    632632} 
    633633 
    634 void addActor(OSG::NodePtr pRoot, 
    635               vtkActor    *pActor) 
     634void addActor(OSG::Node *pRoot, 
     635              vtkActor  *pActor) 
    636636{ 
    637637    OSG::NodeUnrecPtr      pTmpNode   = OSG::Node     ::create(); 
     
    647647OSG::NodeTransitPtr initVTK(void) 
    648648{ 
    649     OSG::NodeUnrecPtr returnValue = OSGNullFC
     649    OSG::NodeUnrecPtr returnValue = NULL
    650650 
    651651    Char8 *szDataRoot = getenv("VTK_DATA_ROOT"); 
     
    11801180    { 
    11811181        file = SceneFileHandler::the()->read(filenames[i].c_str(),0); 
    1182         if(file != NullFC
     1182        if(file != NULL
    11831183            scene->addChild(file); 
    11841184        else 
     
    14291429 
    14301430    std::string              composerType=""; 
    1431     ImageComposerPtr         composer=NullFC
     1431    ImageComposer           *composer=NULL
    14321432    std::string              autostart; 
    14331433     
     
    16601660                    _dynamic<ImageComposerPtr>(fcPtr); 
    16611661                 
    1662                 if(icPtr != NullFC
     1662                if(icPtr != NULL
    16631663                { 
    16641664/* 
    1665   if(PipelineComposerPtr::dcast(icPtr) != NullFC
     1665  if(PipelineComposerPtr::dcast(icPtr) != NULL
    16661666  PipelineComposerPtr::dcast(icPtr)->setTileSize(subtilesize); 
    1667   if(BinarySwapComposerPtr::dcast(icPtr) != NullFC
     1667  if(BinarySwapComposerPtr::dcast(icPtr) != NULL
    16681668  BinarySwapComposerPtr::dcast(icPtr)->setTileSize(subtilesize); 
    16691669 */