Changeset 2262 for trunk/packages


Ignore:
Timestamp:
May 26, 2011, 11:38:41 PM (13 years ago)
Author:
ldelgass
Message:

Fix for setting new volume color map when using cumulative data range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpVtkRenderer.cpp

    r2261 r2262  
    22872287        TRACE("Set Volume color map: %s for dataset %s", colorMapId.c_str(),
    22882288              itr->second->getDataSet()->getName().c_str());
    2289 #ifdef notdef
    2290         // Make a copy of the generic colormap lookup table, so
    2291         // data range can be set in the copy table to match the
    2292         // dataset being plotted
    2293         vtkSmartPointer<vtkLookupTable> lut = vtkSmartPointer<vtkLookupTable>::New();
    2294         lut->DeepCopy(cmap->getLookupTable());
    22952289
    22962290        if (_useCumulativeRange) {
    2297             lut->SetRange(_cumulativeDataRange);
     2291            itr->second->setColorMap(cmap, _cumulativeDataRange);
    22982292        } 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        }
    23072295    } while (doAll && ++itr != _volumes.end());
    23082296
Note: See TracChangeset for help on using the changeset viewer.