Changeset 2262 for trunk/packages
- Timestamp:
- May 26, 2011, 11:38:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp
r2261 r2262 2287 2287 TRACE("Set Volume color map: %s for dataset %s", colorMapId.c_str(), 2288 2288 itr->second->getDataSet()->getName().c_str()); 2289 #ifdef notdef2290 // Make a copy of the generic colormap lookup table, so2291 // data range can be set in the copy table to match the2292 // dataset being plotted2293 vtkSmartPointer<vtkLookupTable> lut = vtkSmartPointer<vtkLookupTable>::New();2294 lut->DeepCopy(cmap->getLookupTable());2295 2289 2296 2290 if (_useCumulativeRange) { 2297 lut->SetRange(_cumulativeDataRange);2291 itr->second->setColorMap(cmap, _cumulativeDataRange); 2298 2292 } else { 2299 if (itr->second->getDataSet() != NULL) { 2300 double range[2]; 2301 itr->second->getDataSet()->getDataRange(range); 2302 lut->SetRange(range); 2303 } 2304 } 2305 #endif 2306 itr->second->setColorMap(cmap); 2293 itr->second->setColorMap(cmap); 2294 } 2307 2295 } while (doAll && ++itr != _volumes.end()); 2308 2296
Note: See TracChangeset
for help on using the changeset viewer.