21 #ifndef __ctkVTKVolumePropertyWidget_h 22 #define __ctkVTKVolumePropertyWidget_h 29 #include "ctkVisualizationVTKWidgetsExport.h" 30 class ctkVTKVolumePropertyWidgetPrivate;
33 class vtkVolumeProperty;
44 Q_PROPERTY(
bool thresholdEnabled READ isThresholdEnabled WRITE setThresholdEnabled NOTIFY thresholdEnabledChanged)
47 Q_PROPERTY(
bool thresholdToggleVisibility READ isThresholdToggleVisible WRITE setThresholdToggleVisible)
55 vtkVolumeProperty* volumeProperty()
const;
57 bool isThresholdEnabled()
const;
59 bool isThresholdToggleVisible()
const;
60 void setThresholdToggleVisible(
bool showToggle);
62 void chartsBounds(
double bounds[4])
const;
64 void chartsExtent(
double extent[4])
const;
68 void setVolumeProperty(vtkVolumeProperty* volumeProperty);
73 void moveAllPoints(
double xOffset,
double yOffset = 0.,
74 bool dontSpreadFirstAndLast =
false);
81 void spreadAllPoints(
double factor = 1.,
82 bool dontSpreadFirstAndLast =
false);
84 void setThresholdEnabled(
bool enable);
87 void setChartsExtent(
double extent[2]);
88 void setChartsExtent(
double min,
double max);
91 void thresholdEnabledChanged(
bool enable);
92 void chartsExtentChanged();
95 void updateFromVolumeProperty();
98 void setInterpolationMode(
int mode);
100 void setAmbient(
double value);
101 void setDiffuse(
double value);
102 void setSpecular(
double value);
103 void setSpecularPower(
double value);
105 void onThresholdOpacityToggled(
bool);
108 void onAxesModified();
111 QScopedPointer<ctkVTKVolumePropertyWidgetPrivate>
d_ptr;
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...