21 #ifndef __ctkVTKScalarsToColorsComboBox_h 22 #define __ctkVTKScalarsToColorsComboBox_h 26 #include "ctkVisualizationVTKWidgetsExport.h" 29 #include <vtkSmartPointer.h> 31 class ctkVTKScalarsToColorsComboBoxPrivate;
32 class vtkScalarsToColors;
46 Q_PROPERTY(vtkScalarsToColors* currentScalarsToColors
47 READ currentScalarsToColors WRITE setCurrentScalarsToColors
48 NOTIFY currentScalarsToColorsChanged);
58 int addScalarsToColors(vtkScalarsToColors*
function,
const QString& text =
60 vtkScalarsToColors* getScalarsToColors(
int index)
const;
64 int findScalarsToColors(vtkScalarsToColors* scalarsToColors)
const;
66 void removeScalarsToColors(vtkScalarsToColors* scalarsToColors);
70 vtkScalarsToColors* currentScalarsToColors()
const;
74 void setCurrentScalarsToColors(vtkScalarsToColors* scalarsToColors);
78 void currentScalarsToColorsChanged(vtkScalarsToColors*);
81 void onCurrentIndexChanged(
int);
82 void onRowsAboutToBeRemoved(
const QModelIndex& parent,
int first,
int last);
85 QScopedPointer<ctkVTKScalarsToColorsComboBoxPrivate>
d_ptr;
ctkComboBox is an advanced QComboBox. It adds multiple features:
QScopedPointer< ctkVTKScalarsToColorsComboBoxPrivate > d_ptr