Changeset 4078 for trunk/packages/vizservers
- Timestamp:
- Dec 17, 2013 12:17:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RendererGraphicsObjs.cpp
r3992 r4078 234 234 } 235 235 236 /**237 * \brief Set the volume slice used for mapping volumetric data238 */239 template <>240 void Renderer::setGraphicsObjectVolumeSlice<HeightMap>(const DataSetId& id, Axis axis, double ratio)241 {242 HeightMapHashmap::iterator itr;243 244 bool doAll = false;245 246 if (id.compare("all") == 0) {247 itr = _heightMaps.begin();248 if (itr == _heightMaps.end())249 return;250 doAll = true;251 } else {252 itr = _heightMaps.find(id);253 }254 255 if (itr == _heightMaps.end()) {256 ERROR("HeightMap not found: %s", id.c_str());257 return;258 }259 260 do {261 itr->second->selectVolumeSlice(axis, ratio);262 } while (doAll && ++itr != _heightMaps.end());263 264 sceneBoundsChanged();265 _needsRedraw = true;266 }267 268 236 } 269 237
Note: See TracChangeset
for help on using the changeset viewer.