Changeset 4783 for vtkvis/branches/1.7/RendererGraphicsObjs.cpp
- Timestamp:
- Nov 23, 2014, 7:40:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/branches/1.7/RendererGraphicsObjs.cpp
r4604 r4783 2400 2400 } 2401 2401 2402 void Renderer::setImageSlicePlane(const DataSetId& id, double normal[3], double origin[3]) 2403 { 2404 ImageHashmap::iterator itr; 2405 2406 bool doAll = false; 2407 2408 if (id.compare("all") == 0) { 2409 itr = _images.begin(); 2410 if (itr == _images.end()) 2411 return; 2412 doAll = true; 2413 } else { 2414 itr = _images.find(id); 2415 } 2416 if (itr == _images.end()) { 2417 ERROR("Image not found: %s", id.c_str()); 2418 return; 2419 } 2420 2421 do { 2422 itr->second->setSlicePlane(normal, origin); 2423 } while (doAll && ++itr != _images.end()); 2424 2425 _needsRedraw = true; 2426 } 2427 2428 void Renderer::setImageSliceFollowsCamera(const DataSetId& id, bool state) 2429 { 2430 ImageHashmap::iterator itr; 2431 2432 bool doAll = false; 2433 2434 if (id.compare("all") == 0) { 2435 itr = _images.begin(); 2436 if (itr == _images.end()) 2437 return; 2438 doAll = true; 2439 } else { 2440 itr = _images.find(id); 2441 } 2442 if (itr == _images.end()) { 2443 ERROR("Image not found: %s", id.c_str()); 2444 return; 2445 } 2446 2447 do { 2448 itr->second->setSliceFollowsCamera(state); 2449 } while (doAll && ++itr != _images.end()); 2450 2451 _needsRedraw = true; 2452 } 2453 2402 2454 void Renderer::setImageZSlice(const DataSetId& id, int z) 2403 2455 {
Note: See TracChangeset
for help on using the changeset viewer.