MCPcopy Create free account
hub / github.com/Kitware/VTK / Build

Method Build

Common/Core/vtkLookupTable.cxx:297–310  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Generate lookup table from hue, saturation, value, alpha min/max values. Table is built from linear ramp of each value.

Source from the content-addressed store, hash-verified

295// Generate lookup table from hue, saturation, value, alpha min/max values.
296// Table is built from linear ramp of each value.
297void vtkLookupTable::Build()
298{
299 vtkMTimeType mtime = this->GetMTime();
300
301 if ((mtime > this->BuildTime && this->InsertTime <= this->BuildTime) ||
302 this->Table->GetNumberOfTuples() < 1)
303 {
304 this->ForceBuild();
305 }
306 else if (mtime > this->SpecialColorsBuildTime)
307 {
308 this->BuildSpecialColors();
309 }
310}
311
312//------------------------------------------------------------------------------
313void vtkLookupTable::BuildSpecialColors()

Callers 15

runMethod · 0.95
UpdateCacheMethod · 0.45
SetColumnColorMethod · 0.45
SetInputDataMethod · 0.45
SetColorsMethod · 0.45
testLinePlotMethod · 0.45
testLinePlotMethod · 0.45
testLinePlotMethod · 0.45
TestScalarsToColorsFunction · 0.45
TestChartDoubleColorsFunction · 0.45

Calls 4

ForceBuildMethod · 0.95
BuildSpecialColorsMethod · 0.95
GetMTimeMethod · 0.45
GetNumberOfTuplesMethod · 0.45

Tested by 15

testLinePlotMethod · 0.36
testLinePlotMethod · 0.36
testLinePlotMethod · 0.36
TestScalarsToColorsFunction · 0.36
TestChartDoubleColorsFunction · 0.36
TestBoxPlot2Function · 0.36
TestBoxPlotFunction · 0.36
TestHistogram2DComponentFunction · 0.36
TestHistogram2DMagnitudeFunction · 0.36
TestFunctionalBagPlotFunction · 0.36