Ignore:
Timestamp:
Jul 20, 2010, 10:44:13 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Network sync:
now works:

  • serialization of transport container
  • transport via ENet UDP
  • de-serialization of the transport container.
  • transport of viewmatrix and framenumber to the slave.

ToDo?: apply viewmatrix on slave still do not work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/cluster/dataIO_cluster.h

    r67 r69  
    1616*/
    1717
    18 #include "osg/referenced"
     18#include <osg/referenced>
     19#include <osgViewer/Viewer>
    1920
    2021#include "dataIO_slot.h"
     
    5960         *
    6061         */
    61         virtual void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) = 0;
     62        virtual void init( osg::ArgumentParser& arguments_, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ) = 0;
    6263
     64        void enableHardSync(bool hardSync_){hardSync=hardSync_;};
     65       
     66        bool isHardSyncEnabled(){return hardSync;};
    6367
    6468        virtual void shutdown() = 0;
     
    117121
    118122protected:
    119         osgVisual::dataIO_cluster::clustermode clusterMode;     // This variable only mirrors the variable of dataIO. willbe set during initialize.
     123        osgVisual::dataIO_cluster::clustermode clusterMode;     // This variable only mirrors the variable of dataIO. will be set during initialize.
    120124        bool initialized;
    121125        int port;
     126        bool hardSync;
    122127
    123         osg::ref_ptr<osgVisual::dataIO_transportContainer> sendContainer;
     128        /**
     129         * Referenced Pointer to the applications viewer.
     130         */
     131        osg::ref_ptr<osgViewer::Viewer> viewer;
     132
     133        osg::ref_ptr<osgVisual::dataIO_transportContainer> sendContainer;       // Points to the send container of dataIO.
     134        std::string receivedTransportContainer;
    124135};
    125136
Note: See TracChangeset for help on using the changeset viewer.