Changeset 185 for osgVisual/trunk/include
- Timestamp:
- Jan 7, 2011, 6:01:08 PM (14 years ago)
- Location:
- osgVisual/trunk/include
- Files:
-
- 2 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;};
Note: See TracChangeset
for help on using the changeset viewer.