4 #ifndef pqColorOpacityEditorWidget_h 5 #define pqColorOpacityEditorWidget_h 13 class pqColorMapModel;
53 Q_PROPERTY(QList<QVariant> xrgbPoints READ xrgbPoints WRITE setXrgbPoints)
54 Q_PROPERTY(QList<QVariant> xvmsPoints READ xvmsPoints WRITE setXvmsPoints)
55 Q_PROPERTY(
bool showDataHistogram READ showDataHistogram WRITE setShowDataHistogram)
56 Q_PROPERTY(
bool automaticDataHistogramComputation READ automaticDataHistogramComputation WRITE
57 setAutomaticDataHistogramComputation)
59 int dataHistogramNumberOfBins READ dataHistogramNumberOfBins WRITE setDataHistogramNumberOfBins)
60 Q_PROPERTY(
bool useLogScale READ useLogScale WRITE setUseLogScale)
61 Q_PROPERTY(
bool useLogScaleOpacity READ useLogScaleOpacity WRITE setUseLogScaleOpacity)
62 Q_PROPERTY(
bool useOpacityControlPointsFreehandDrawing READ useOpacityControlPointsFreehandDrawing
63 WRITE setUseOpacityControlPointsFreehandDrawing)
64 Q_PROPERTY(
pqSMProxy scalarOpacityFunctionProxy READ scalarOpacityFunctionProxy WRITE
65 setScalarOpacityFunctionProxy)
67 pqSMProxy transferFunction2DProxy READ transferFunction2DProxy WRITE setTransferFunction2DProxy)
68 Q_PROPERTY(QList<QVariant> transfer2DBoxes READ transfer2DBoxes WRITE setTransfer2DBoxes)
80 void updateWidget(
bool showing_advanced_properties) override;
86 QList<QVariant> xrgbPoints()
const;
92 QList<QVariant> xvmsPoints() const;
97 bool useLogScale() const;
102 bool useLogScaleOpacity() const;
107 bool useOpacityControlPointsFreehandDrawing() const;
112 bool showDataHistogram() const;
117 bool automaticDataHistogramComputation() const;
122 int dataHistogramNumberOfBins() const;
128 pqSMProxy scalarOpacityFunctionProxy() const;
133 pqSMProxy transferFunction2DProxy() const;
138 bool using2DTransferFunction() const;
144 QList<QVariant> transfer2DBoxes() const;
150 void setXvmsPoints(const QList<QVariant>&);
155 void setXrgbPoints(const QList<QVariant>&);
160 void setUseLogScale(
bool value);
165 void setUseLogScaleOpacity(
bool value);
170 void setUseOpacityControlPointsFreehandDrawing(
bool value);
175 void setShowDataHistogram(
bool value);
180 void setAutomaticDataHistogramComputation(
bool value);
185 void setDataHistogramNumberOfBins(
int value);
190 void setScalarOpacityFunctionProxy(
pqSMProxy sofProxy);
195 void setTransferFunction2DProxy(
pqSMProxy t2dProxy);
200 void resetRangeToData();
205 void resetRangeToCustom();
211 void resetRangeToDataOverTime();
217 void resetRangeToVisibleData();
222 void invertTransferFunctions();
227 void choosePreset(const
char* presetName =
nullptr);
238 void computeDataHistogram();
240 void onRangeHandlesRangeChanged(
double rangeMin,
double rangeMax);
246 void resetColorMapComboBox();
251 void setTransfer2DBoxes(const QList<QVariant>&);
256 void chooseBoxColorAlpha();
262 void xrgbPointsChanged();
267 void xvmsPointsChanged();
272 void useLogScaleChanged();
277 void useLogScaleOpacityChanged();
282 void useOpacityControlPointsFreehandDrawingChanged();
287 void showDataHistogramChanged();
292 void automaticDataHistogramComputationChanged();
297 void dataHistogramNumberOfBinsEdited();
304 void scalarOpacityFunctionProxyChanged();
309 void transferFunction2DProxyChanged();
314 void transfer2DBoxesChanged();
322 void colorCurrentChanged(vtkIdType);
327 void updateCurrentData();
332 void currentDataEdited();
337 void presetApplied();
342 void updateDefaultPresetsList();
347 void multiComponentsMappingChanged(
vtkObject*,
unsigned long,
void*,
void*);
353 void useLogScaleClicked(
bool);
359 void useLogScaleOpacityClicked(
bool);
365 void useOpacityControlPointsFreehandDrawingClicked(
bool);
373 void showDataHistogramClicked(
bool show = true);
378 void show2DHistogram(
bool show = true);
384 void automaticDataHistogramComputationClicked(
bool val);
390 void dataHistogramNumberOfBinsEdited(
int val);
395 void updateDataHistogramEnableState();
403 void representationOrViewChanged();
414 void setHistogramOutdated();
421 void realShowDataHistogram();
427 void realShow2DHistogram();
433 void transfer2DChanged();
439 void opacityFunctionModified();
444 void updateTransferFunction2DProxy();
450 void prepareRangeForLogScaling();
471 pqInternals* Internals;
#define PQAPPLICATIONCOMPONENTS_EXPORT
Defines a 2D transfer function for mapping to RGBA values for volume rendering.
proxy for a VTK object(s) on a server