Changeset 69 for osgVisual/include/cluster
- Timestamp:
- Jul 20, 2010, 10:44:13 AM (14 years ago)
- Location:
- osgVisual/include/cluster
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/include/cluster/dataIO_cluster.h
r67 r69 16 16 */ 17 17 18 #include "osg/referenced" 18 #include <osg/referenced> 19 #include <osgViewer/Viewer> 19 20 20 21 #include "dataIO_slot.h" … … 59 60 * 60 61 */ 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; 62 63 64 void enableHardSync(bool hardSync_){hardSync=hardSync_;}; 65 66 bool isHardSyncEnabled(){return hardSync;}; 63 67 64 68 virtual void shutdown() = 0; … … 117 121 118 122 protected: 119 osgVisual::dataIO_cluster::clustermode clusterMode; // This variable only mirrors the variable of dataIO. will be set during initialize.123 osgVisual::dataIO_cluster::clustermode clusterMode; // This variable only mirrors the variable of dataIO. will be set during initialize. 120 124 bool initialized; 121 125 int port; 126 bool hardSync; 122 127 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; 124 135 }; 125 136 -
osgVisual/include/cluster/dataIO_clusterENet.h
r67 r69 18 18 #include <osg/notify> 19 19 #include <osg/ArgumentParser> 20 #include <osgDB/Registry> 21 #include <osgDB/ReaderWriter> 22 #include <iostream> 20 23 21 24 #include <dataIO_cluster.h> … … 39 42 virtual ~dataIO_clusterENet(void); 40 43 41 void init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ );44 void init( osg::ArgumentParser& arguments_, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ ); 42 45 void shutdown(); 43 46 … … 54 57 std::string serverToConnect; 55 58 osgVisual::dataIO_cluster::clustermode clusterMode; 59 std::string receivedTransportContainer; 60 61 osg::ref_ptr<osgDB::Options> readOptions; 62 osg::ref_ptr<osgDB::Options> writeOptions; 63 osg::ref_ptr<osgDB::ReaderWriter> rw; 56 64 }; 57 65 -
osgVisual/include/cluster/dataIO_clusterENet_implementation.h
r68 r69 29 29 { 30 30 public: 31 dataIO_clusterENet_implementation( );31 dataIO_clusterENet_implementation(std::string& receivedTransportContainer_); 32 32 ~dataIO_clusterENet_implementation(); 33 33 … … 54 54 std::vector<ENetPeer*> peerList; // client: only one peer to server, Server: multiple peers for all clients 55 55 ENetEvent event; 56 std::string& receivedTransportContainer; 56 57 }; 57 58
Note: See TracChangeset
for help on using the changeset viewer.