From f1fdc5d470548ce165f13fce508ef60907f4a06e Mon Sep 17 00:00:00 2001 From: Mike Taverne Date: Fri, 17 Apr 2009 16:24:19 +0200 Subject: [PATCH] added nb of colors setting --- guimainwindow.cpp | 2 +- guimainwindow.ui | 34 +++++++++++++++++++++++++++------- vertexmeshdensity.cpp | 2 +- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/guimainwindow.cpp b/guimainwindow.cpp index 5638be5..7d7a634 100644 --- a/guimainwindow.cpp +++ b/guimainwindow.cpp @@ -492,7 +492,7 @@ void GuiMainWindow::updateActors() } else { lut=vtkLookupTable::New(); - lut->SetNumberOfColors(256); + lut->SetNumberOfColors(ui.spinBox_Color->value()); lut->SetHueRange(ui.doubleSpinBox_HueMin->value(),ui.doubleSpinBox_HueMax->value()); lut->Build(); field_mapper=vtkPolyDataMapper::New(); diff --git a/guimainwindow.ui b/guimainwindow.ui index 2a90fe3..3984191 100644 --- a/guimainwindow.ui +++ b/guimainwindow.ui @@ -255,9 +255,9 @@ 0 - -125 + -161 262 - 912 + 940 @@ -574,7 +574,7 @@ - Field + Field : @@ -601,28 +601,28 @@ - DataMin + DataMin : - DataMax + DataMax : - HueMin + HueMin : - HueMax + HueMax : @@ -646,6 +646,26 @@ + + + + Nb of colors : + + + + + + + 0 + + + 1048580 + + + 65536 + + + diff --git a/vertexmeshdensity.cpp b/vertexmeshdensity.cpp index 3e2e899..00f2afe 100644 --- a/vertexmeshdensity.cpp +++ b/vertexmeshdensity.cpp @@ -20,7 +20,7 @@ bool VertexMeshDensity::operator==(const VertexMeshDensity & VMD) const /* cout<<"this->nodeset="<nodeset<