- Timestamp:
- Jan 7, 2011, 6:01:08 PM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/include/cluster/dataIO_cluster.h
r183 r185 68 68 virtual bool init( xmlNode* configurationNode, osgViewer::Viewer* viewer_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool asAscii_) = 0; 69 69 70 /** 71 * \brief Pure virtual function for initialization. Must be implemented in derived class. 72 * 73 */ 70 74 virtual bool processXMLConfiguration(xmlNode* clusterConfig_) = 0; 71 75 76 /** 77 * \brief Acess function to retrieve whether hardSync is enabled. 78 * 79 * @return : True if hardsync is enabled 80 */ 72 81 bool isHardSyncEnabled(){return hardSync;}; 73 82 83 /** 84 * \brief Pure virtual function for initialization. Must be implemented in derived class. 85 * 86 */ 74 87 virtual void shutdown() = 0; 75 88 … … 128 141 129 142 protected: 130 osgVisual::dataIO_cluster::clustermode clusterMode; // This variable only mirrors the variable of dataIO. will be set during initialize. 143 /** 144 * This variable only mirrors the variable of dataIO. will be set during initialize. 145 */ 146 osgVisual::dataIO_cluster::clustermode clusterMode; 147 148 /** 149 * Flag to indicate the cluster's initialization status 150 */ 131 151 bool initialized; 152 153 /** 154 * Port to use for the cluster network traffic 155 */ 132 156 int port; 157 158 /** 159 * Flag if hardSync is enabled 160 */ 133 161 bool hardSync; 134 bool compressionEnabled; // to indicate if OSGs compression alorithm should be used. 162 163 /** 164 * // Flag if OSGs compression alorithm should be used. 165 */ 166 bool compressionEnabled; 135 167 136 168 /** … … 139 171 osg::ref_ptr<osgViewer::Viewer> viewer; 140 172 141 osg::ref_ptr<osgVisual::dataIO_transportContainer> sendContainer; // Points to the send container of dataIO. 173 /** 174 * Pointerto the send container of dataIO. 175 */ 176 osg::ref_ptr<osgVisual::dataIO_transportContainer> sendContainer; 177 178 /** 179 * Temporary buffer to store the data into which was recieved via cluster. 180 */ 142 181 std::string receivedTransportContainer; 143 182 }; -
osgVisual/trunk/include/dataIO/visual_dataIO.h
r183 r185 208 208 static visual_dataIO* getInstance(); 209 209 210 void init(osgViewer::Viewer* viewer_, osg::ArgumentParser& arguments_,std::string configFileName);210 void init(osgViewer::Viewer* viewer_, std::string configFileName); 211 211 void shutdown(); 212 212 bool isMaster(){if (clusterMode==osgVisual::dataIO_cluster::MASTER) return true; else return false;}; -
osgVisual/trunk/src/cluster/dataIO_clusterENet.cpp
r183 r185 119 119 if(attr_value != "enet") 120 120 { 121 OSG_NOTIFY( osg::ALWAYS ) << "WARNING: Cluster configuration does not match the 'enet' implementation, falling back to clusterDummy" << std::endl;121 OSG_NOTIFY( osg::ALWAYS ) << "WARNING: Cluster configuration does not match the currently used 'enet' implementation, falling back to clusterDummy" << std::endl; 122 122 return false; 123 123 } -
osgVisual/trunk/src/core/visual_core.cpp
r184 r185 86 86 87 87 // Initialize DataIO interface 88 visual_dataIO::getInstance()->init(viewer, arguments,configFilename);88 visual_dataIO::getInstance()->init(viewer, configFilename); 89 89 90 90 // Add manipulators for user interaction - after dataIO to be able to skip it in slaves rendering machines. -
osgVisual/trunk/src/dataIO/visual_dataIO.cpp
r183 r185 47 47 }; 48 48 49 void visual_dataIO::init(osgViewer::Viewer* viewer_, osg::ArgumentParser& arguments_,std::string configFileName)49 void visual_dataIO::init(osgViewer::Viewer* viewer_, std::string configFileName) 50 50 { 51 51 OSG_NOTIFY( osg::ALWAYS ) << "visual_dataIO initialize..";
Note: See TracChangeset
for help on using the changeset viewer.