Changeset 157 for osgVisual/src


Ignore:
Timestamp:
Nov 14, 2010, 5:13:41 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/dataIO/visual_dataIO.cpp

    r144 r157  
    2424
    2525        initialized = false;
     26        clusterMode = osgVisual::dataIO_cluster::STANDALONE;
     27        // Create Transport-Container:
     28        slotContainer = new osgVisual::dataIO_transportContainer();
    2629}
    2730
     
    5154        viewer = viewer_;
    5255
     56        // Process XML configuration
     57        if(!processXMLConfiguration())
     58                OSG_FATAL << "ERROR: visual_dataIO::init() - Failed to initialize dataIO!";
     59
    5360        // Parse operating Mode
    5461    if (arguments_.read("-m"))
     
    5663                OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as MASTER" << std::endl;
    5764                clusterMode = osgVisual::dataIO_cluster::MASTER;
    58                 // Create Container:
    59                 slotContainer = new osgVisual::dataIO_transportContainer();
    6065        }
    6166        else if (arguments_.read("-s"))
     
    6368                OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as SLAVE" << std::endl;
    6469                clusterMode = osgVisual::dataIO_cluster::SLAVE;
    65                 slotContainer = NULL;   // Slave only recieves container, therefor set this Pointer null.
     70                slotContainer = NULL;   // Slave only recieves container, therefor set this Pointer NULL (created instance will be deleted because it is an auto pointer).
    6671        }
    6772        else
     
    6974                OSG_NOTIFY( osg::ALWAYS ) << "Configure osgVisual as STANDALONE" << std::endl;
    7075                clusterMode = osgVisual::dataIO_cluster::STANDALONE;
    71                 // Create Container:
    72                 slotContainer = new osgVisual::dataIO_transportContainer();
    7376        }
    7477
     
    110113}
    111114
     115bool visual_dataIO::processXMLConfiguration()
     116{
     117
     118        return true;
     119}
     120
    112121void visual_dataIO::shutdown()
    113122{
Note: See TracChangeset for help on using the changeset viewer.