avtVolumeVariableLegend::avtVolumeVariableLegend() : avtVariableLegend(1) { sBar = vtkVisItScalarBarWithOpacityActor::New(); sBar->SetShadow(0); sBar->SetLookupTable(lut); size[0] = 0.08; size[1] = 0.26; sBar->SetPosition2(size[0], size[1]); sBar->SetType(vtkVisItScalarBarActor::VTK_CONTINUOUS); barVisibility = 1; rangeVisibility = 1; // // Set the legend to also point to sBar, so the base methods will work // without us re-defining them. // legend = sBar; legend->Register(NULL); // // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // See note of Thu Nov 15 16:13:12 PST 2007 above. // SetLegendPosition(0.05, 0.72); }
avtCurveLegend::avtCurveLegend() { lineLegend = vtkLineLegend::New(); lineLegend->SetShadow(0); scale[0] = 1.; scale[1] = 1.; size[0] = 0.08; size[1] = 0.26; titleVisibility = true; lineLegend->SetPosition2(size[0], size[1]); SetLegendPosition(0.05, 0.72); legend = lineLegend; legend->Register(NULL); }
avtLevelsLegend::avtLevelsLegend() { min = 0.; max = 1.; scale[0] = scale[1] = 1.; maxScale = 1.; setMaxScale = true; nLevels = 0; lut = NULL; sBar = vtkVisItScalarBarActor::New(); sBar->SetShadow(0); sBar->SetType(vtkVisItScalarBarActor::VTK_DISCRETE); size[0] = 0.08; size[1] = 0.26; sBar->SetPosition2(size[0], size[1]); barVisibility = 1; rangeVisibility = 1; labelVisibility = 1; minmaxVisibility = true; titleVisibility = true; // // Set the legend to also point to sBar, so the base methods will work // without us re-defining them. // legend = sBar; legend->Register(NULL); // // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // See note of Thu Nov 15 16:13:12 PST 2007 above. // SetLegendPosition(0.05, 0.72); }
avtVariableLegend::avtVariableLegend() { min = 0.; max = 1.; lut = NULL; sBar = vtkVisItScalarBarActor::New(); sBar->SetShadow(0); scale[0] = 1.; scale[1] = 1.; size[0] = 0.08; size[1] = 0.26; sBar->SetPosition2(size[0], size[1]); sBar->SetType(vtkVisItScalarBarActor::VTK_CONTINUOUS); barVisibility = 1; rangeVisibility = 1; titleVisibility = true; labelVisibility = 1; minmaxVisibility = true; numTicks = 5; // // Set the legend to also point to sBar, so the base methods will work // without us re-defining them. // legend = sBar; legend->Register(NULL); // // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // WARNING: DO NOT INITIALIZE avtLevelsLegend STATE VARIABLES BELOW HERE // See note of Fri Sep 7 10:18:38 PDT 2007 above // SetLegendPosition(0.05, 0.72); }