37 #include "QColorDialog"
39 #include "vtkLookupTable.h"
40 #include "vtkScalarBarActor.h"
42 #include "vtkTextProperty.h"
43 #include "vtkRenderer.h"
44 #include "vtkRendererCollection.h"
45 #include "vtkRenderWindow.h"
54 this->
Renderer = vtkSmartPointer< vtkRenderer >::New();
56 vtkRenderWindow *renwin = this->
QvtkWidget->GetRenderWindow();
59 this->
LUTActor = vtkSmartPointer< vtkScalarBarActor >::New();
61 this->
LUTActor->SetOrientationToHorizontal();
64 this->
LUTActor->SetPosition(0.1, 0.1);
95 if ( dlg.
exec() == QDialog::Accepted )
113 LUTDialog->
resize(321, 183);
139 std::vector< std::string > lut_names =
143 for (; k < lut_names.size(); k++ )
171 | QDialogButtonBox::Ok);
180 LUTDialog, SLOT(
accept() ) );
182 LUTDialog, SLOT(
reject() ) );
196 if ( ( idx >= N ) || ( idx < 0 ) )
198 qWarning() <<
"QGoLUTDialog idx is out of range";
211 hsv[0] = color.
hueF();
218 hsv[0] = color.
hueF();
231 this->
QvtkWidget->GetRenderWindow()->Render();