Changeset 116 for osgVisual/src/dataIO
- Timestamp:
- Aug 19, 2010, 8:58:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/dataIO/visual_dataIO.cpp
r88 r116 248 248 } 249 249 250 voidvisual_dataIO::setSlotData(std::string variableName_, osgVisual::dataIO_slot::dataDirection direction_, std::string sValue_ )250 osgVisual::dataIO_slot* visual_dataIO::setSlotData(std::string variableName_, osgVisual::dataIO_slot::dataDirection direction_, std::string sValue_ ) 251 251 { 252 252 bool slotFound = false; … … 260 260 dataSlots[i].sValue = sValue_; 261 261 slotFound = true; 262 return &(dataSlots[i]); 262 263 } 263 264 … … 275 276 dataSlots.push_back( newSlot ); 276 277 } 277 } 278 279 void visual_dataIO::setSlotData(std::string variableName_, osgVisual::dataIO_slot::dataDirection direction_, double value_ ) 278 279 return NULL; 280 } 281 282 osgVisual::dataIO_slot* visual_dataIO::setSlotData(std::string variableName_, osgVisual::dataIO_slot::dataDirection direction_, double value_ ) 280 283 { 281 284 // iterate through slotlist. If found, return pointer, else add slot to list … … 290 293 dataSlots[i].value = value_; 291 294 slotFound = true; 295 return &(dataSlots[i]); 292 296 } 293 297 } … … 304 308 dataSlots.push_back( newSlot ); 305 309 } 310 311 return NULL; 306 312 } 307 313
Note: See TracChangeset
for help on using the changeset viewer.