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;
63 void chartsExtent(
double extent[4])
const;
66 void setVolumeProperty(vtkVolumeProperty* volumeProperty);
71 void moveAllPoints(
double xOffset,
double yOffset = 0.,
72 bool dontSpreadFirstAndLast =
false);
79 void spreadAllPoints(
double factor = 1.,
80 bool dontSpreadFirstAndLast =
false);
82 void setThresholdEnabled(
bool enable);
85 void thresholdEnabledChanged(
bool enable);
86 void chartsExtentChanged();
89 void updateFromVolumeProperty();
92 void setInterpolationMode(
int mode);
94 void setAmbient(
double value);
95 void setDiffuse(
double value);
96 void setSpecular(
double value);
97 void setSpecularPower(
double value);
99 void onThresholdOpacityToggled(
bool);
102 void onAxesModified();
105 QScopedPointer<ctkVTKVolumePropertyWidgetPrivate>
d_ptr;
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...