Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
pqColorOpacityEditorWidget Class Reference

pqColorOpacityEditorWidget provides an in-line editor widget for editing the color and opacity transfer functions. More...

#include <pqColorOpacityEditorWidget.h>

Inheritance diagram for pqColorOpacityEditorWidget:
Inheritance graph
[legend]
Collaboration diagram for pqColorOpacityEditorWidget:
Collaboration graph
[legend]

Public Slots

void setXvmsPoints (const QList< QVariant > &)
 Sets the xvmsPoints that control the opacity transfer function. More...
 
void setXrgbPoints (const QList< QVariant > &)
 Sets the xrgbPoints that control the color transfer function. More...
 
void setUseLogScale (bool value)
 Set whether to use-log scale. More...
 
void setUseLogScaleOpacity (bool value)
 Set whether to use-log scale. More...
 
void setUseOpacityControlPointsFreehandDrawing (bool value)
 Set whether to use freehand drawing for positioning opacity control points. More...
 
void setShowDataHistogram (bool value)
 Set whether to show data histogram. More...
 
void setAutomaticDataHistogramComputation (bool value)
 Set whether to automatically compute data histogram. More...
 
void setDataHistogramNumberOfBins (int value)
 Set the number of bins to use for the data histogram. More...
 
void setScalarOpacityFunctionProxy (pqSMProxy sofProxy)
 Set the scalar opacity function (or PiecewiseFunction) proxy to use. More...
 
void setTransferFunction2DProxy (pqSMProxy t2dProxy)
 Set the 2D transfer function (or vtkImageData) proxy to use. More...
 
void resetRangeToData ()
 Reset the transfer function ranges to active data source. More...
 
void resetRangeToCustom ()
 Reset the transfer function ranges to custom values. More...
 
void resetRangeToDataOverTime ()
 Reset the transfer function ranges to temporal range for active data source. More...
 
void resetRangeToVisibleData ()
 Reset the transfer function ranges to visible range for active data source. More...
 
void invertTransferFunctions ()
 Inverts the transfer functions. More...
 
void choosePreset (const char *presetName=nullptr)
 pick a preset. More...
 
void saveAsPreset ()
 save current transfer function as preset. More...
 
void computeDataHistogram ()
 Compute the data histogram 1D or 2D. More...
 
void onRangeHandlesRangeChanged (double rangeMin, double rangeMax)
 
void resetColorMapComboBox ()
 Resets the color map combo box by setting its index to -1 which sets its text to an empty string. More...
 
void setTransfer2DBoxes (const QList< QVariant > &)
 Sets the box items that control the 2D transfer function. More...
 
void chooseBoxColorAlpha ()
 Choose a color and alpha for the currently active 2D transfer function box. More...
 
- Public Slots inherited from pqPropertyWidget
virtual void setView (pqView *)
 called to set the active view. More...
 

Signals

void xrgbPointsChanged ()
 Signal fired when the xrgbPoints change. More...
 
void xvmsPointsChanged ()
 Signal fired when the xvmsPoints change. More...
 
void useLogScaleChanged ()
 Signal fired when useLogScale changes. More...
 
void useLogScaleOpacityChanged ()
 Signal fired when useLogScaleOpacity changes. More...
 
void useOpacityControlPointsFreehandDrawingChanged ()
 Signal fired when useOpacityControlPointsFreehandDrawing changes. More...
 
void showDataHistogramChanged ()
 Signal fired when showDataHistogram changes. More...
 
void automaticDataHistogramComputationChanged ()
 Signal fired when automaticDataHistogramComputation changes. More...
 
void dataHistogramNumberOfBinsEdited ()
 Signal fired when dataHistogramNumberOfBins changes. More...
 
void scalarOpacityFunctionProxyChanged ()
 This signal is never really fired since this widget doesn't have any UI to allow users to changes the ScalarOpacityFunction proxy used. More...
 
void transferFunction2DProxyChanged ()
 Signal fired when the transfer function 2D proxy is changed. More...
 
void transfer2DBoxesChanged ()
 Signal fired when the transfer function 2d boxes change. More...
 
- Signals inherited from pqPropertyWidget
void viewChanged (pqView *view)
 This signal is emitted when the current view changes. More...
 
void changeAvailable ()
 This signal is fired as soon as the user starts editing in the widget. More...
 
void changeFinished ()
 This signal is fired as soon as the user is done with making an atomic change. More...
 
void restartRequired ()
 Indicates that a restart of the program is required for the setting to take effect. More...
 

Public Member Functions

 pqColorOpacityEditorWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smgroup, QWidget *parent=nullptr)
 
 ~pqColorOpacityEditorWidget () override
 
void updateWidget (bool showing_advanced_properties) override
 updates the panel to show/hide advanced settings More...
 
QList< QVariant > xrgbPoints () const
 Returns the current list of control points for the color transfer function. More...
 
QList< QVariant > xvmsPoints () const
 Returns the current list of control points for the opacity function. More...
 
bool useLogScale () const
 Returns the value for use-log-scale. More...
 
bool useLogScaleOpacity () const
 Returns the value for use-log-scale. More...
 
bool useOpacityControlPointsFreehandDrawing () const
 Returns the value for the use of freehand drawing when positioning opacity control points. More...
 
bool showDataHistogram () const
 Returns the value for showDataHistogram. More...
 
bool automaticDataHistogramComputation () const
 Returns the value for automaticDataHistogramComputation. More...
 
int dataHistogramNumberOfBins () const
 Returns the value for dataHistogramNumberOfBins. More...
 
pqSMProxy scalarOpacityFunctionProxy () const
 Returns the scalar opacity function (i.e. More...
 
pqSMProxy transferFunction2DProxy () const
 Returns the 2D transfer function (i.e. More...
 
bool using2DTransferFunction () const
 Returns the value for Using2DTransferFunction internal server-manager property. More...
 
QList< QVariant > transfer2DBoxes () const
 Returns the current list of boxes for the 2D transfer function. More...
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqPropertyWidget () override
 
virtual void apply ()
 
virtual void reset ()
 
pqViewview () const
 
vtkSMProxyproxy () const
 
vtkSMPropertyproperty () const
 
virtual char * panelVisibility () const
 Forward calls to vtkSMProperty. More...
 
virtual void setPanelVisibility (const char *vis)
 
virtual bool isSingleRowItem () const
 Determines if the PropertyWidget must be constructed using a single row. More...
 
bool showLabel () const
 
const QList< QPointer< pqPropertyWidgetDecorator > > & decorators () const
 Provides access to the decorators for this widget. More...
 
virtual void setReadOnly (bool readOnly)
 Set widget in read-only mode. More...
 
void setProperty (vtkSMProperty *property)
 
virtual void select ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void selectPort (int portIndex)
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void deselect ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
bool isSelected () const
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 

Protected Slots

void opacityCurrentChanged (vtkIdType)
 slots called when the current point changes on the two internal pqTransferFunctionWidget widgets. More...
 
void colorCurrentChanged (vtkIdType)
 
void updateCurrentData ()
 updates the text shown in the "current data" input. More...
 
void currentDataEdited ()
 update the transfer function with the text in CurrentDataValue text field. More...
 
void presetApplied ()
 called when a preset is applied. More...
 
void updateDefaultPresetsList ()
 Updates the default presets combo box when the list changes. More...
 
void multiComponentsMappingChanged (vtkObject *, unsigned long, void *, void *)
 called when "MultiComponentsMappingChanged" checkbox is modified. More...
 
void useLogScaleClicked (bool)
 called when the use-log-scale checkbox is clicked by the user. More...
 
void useLogScaleOpacityClicked (bool)
 called when the use-log-scale checkbox is clicked by the user. More...
 
void useOpacityControlPointsFreehandDrawingClicked (bool)
 Called when UseOpacityControlPointsFreehandDrawing checkbox is clicked by the user. More...
 
void showDataHistogramClicked (bool show=true)
 Called when the showDataHistogram checkbox is clicked by the user. More...
 
void show2DHistogram (bool show=true)
 Called when the use2DTransferFunction checkbox is clicked by the user. More...
 
void automaticDataHistogramComputationClicked (bool val)
 Called when the automaticDataHistogramComputation checkbox is clicked by the user. More...
 
void dataHistogramNumberOfBinsEdited (int val)
 Called when the dataHistogramNumberOfBins is changed by the user. More...
 
void updateDataHistogramEnableState ()
 Update the enable state of different data histogram related widgets. More...
 
void representationOrViewChanged ()
 called when the active representation or view changes. More...
 
void setHistogramOutdated ()
 Called when the histogram should be considered outdated, which includes : When the range of the transfer function is changed, either from a custom range or from an updated range When the vector mode or vector component is changed When the visibility of a consumer is changed When the number of bins is changed When the 2D transfer function arrays are changed. More...
 
void realShowDataHistogram ()
 Slot called by a timer which is triggered in showDataHistogramClicked This method actually setup the histogram but should not be used directly. More...
 
void realShow2DHistogram ()
 Slot called by a timer which is triggered in show2DHistogram This method actually sets up the 2D histogram. More...
 
void transfer2DChanged ()
 Slot to update active representation when the 2D transfer function has changed with the internal pqTransferFunction2DWidget class. More...
 
void opacityFunctionModified ()
 Slot to update active representation when the piecewise function for opacity is modified. More...
 
void updateTransferFunction2DProxy ()
 Slot to update the 2D transfer function proxy when the Y axis scalar array is changed. More...
 

Protected Member Functions

void prepareRangeForLogScaling ()
 Validate and adjust the current range before converting to a log range. More...
 
void initializeOpacityEditor (vtkPiecewiseFunction *pwf)
 Initialize the opacity editor. More...
 
void initializeTransfer2DEditor (vtkPVTransferFunction2D *tf2d)
 Initialize the 2D transfer function editor. More...
 
void observeRepresentationModified (vtkSMProxy *reprProxy, vtkPiecewiseFunction *pwf)
 When representation has changed, gotta reconnect some internal observers. More...
 
- Protected Member Functions inherited from pqPropertyWidget
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void setShowLabel (bool show)
 
void setChangeAvailableAsChangeFinished (bool status)
 For most pqPropertyWidget subclasses a changeAvailable() signal, corresponds to a changeFinished() signal. More...
 
void addDecorator (pqPropertyWidgetDecorator *)
 Register a decorator. More...
 
void removeDecorator (pqPropertyWidgetDecorator *)
 Unregisters a decorator. More...
 
pqPropertyLinkslinks ()
 Provides access to the pqPropertyLinks instance. More...
 

Properties

QList< QVariant > xrgbPoints
 
QList< QVariant > xvmsPoints
 
bool showDataHistogram
 
bool automaticDataHistogramComputation
 
int dataHistogramNumberOfBins
 
bool useLogScale
 
bool useLogScaleOpacity
 
bool useOpacityControlPointsFreehandDrawing
 
pqSMProxy scalarOpacityFunctionProxy
 
pqSMProxy transferFunction2DProxy
 
QList< QVariant > transfer2DBoxes
 

Additional Inherited Members

- Static Public Member Functions inherited from pqPropertyWidget
template<class T >
static QString getXMLName (T *object)
 Description: This static utility method returns the XML name for an object as a QString. More...
 
static QString getTooltip (vtkSMProperty *property)
 Returns the tooltip to use for the property. More...
 
static int hintsWidgetHeightNumberOfRows (vtkPVXMLElement *hints, int defaultValue=10)
 Helper method to return value from WidgetHeight XML hint, if any. More...
 
static std::vector< std::stringparseComponentLabels (vtkPVXMLElement *hints, unsigned int elemCount=0)
 Parse a XML element as a list of label to use for this widget. More...
 

Detailed Description

pqColorOpacityEditorWidget provides an in-line editor widget for editing the color and opacity transfer functions.

The property group is expected to have properties with the following functions. If any of the optional properties are missing, then the corresponding widgets are hidden.

Definition at line 50 of file pqColorOpacityEditorWidget.h.

Constructor & Destructor Documentation

◆ pqColorOpacityEditorWidget()

pqColorOpacityEditorWidget::pqColorOpacityEditorWidget ( vtkSMProxy proxy,
vtkSMPropertyGroup smgroup,
QWidget *  parent = nullptr 
)

◆ ~pqColorOpacityEditorWidget()

pqColorOpacityEditorWidget::~pqColorOpacityEditorWidget ( )
override

Member Function Documentation

◆ updateWidget()

void pqColorOpacityEditorWidget::updateWidget ( bool  showing_advanced_properties)
overridevirtual

updates the panel to show/hide advanced settings

Reimplemented from pqPropertyWidget.

◆ xrgbPoints()

QList<QVariant> pqColorOpacityEditorWidget::xrgbPoints ( ) const

Returns the current list of control points for the color transfer function.

This a list of 4-tuples.

◆ xvmsPoints()

QList<QVariant> pqColorOpacityEditorWidget::xvmsPoints ( ) const

Returns the current list of control points for the opacity function.

This a list of 4-tuples.

◆ useLogScale()

bool pqColorOpacityEditorWidget::useLogScale ( ) const

Returns the value for use-log-scale.

◆ useLogScaleOpacity()

bool pqColorOpacityEditorWidget::useLogScaleOpacity ( ) const

Returns the value for use-log-scale.

◆ useOpacityControlPointsFreehandDrawing()

bool pqColorOpacityEditorWidget::useOpacityControlPointsFreehandDrawing ( ) const

Returns the value for the use of freehand drawing when positioning opacity control points.

◆ showDataHistogram()

bool pqColorOpacityEditorWidget::showDataHistogram ( ) const

Returns the value for showDataHistogram.

◆ automaticDataHistogramComputation()

bool pqColorOpacityEditorWidget::automaticDataHistogramComputation ( ) const

Returns the value for automaticDataHistogramComputation.

◆ dataHistogramNumberOfBins()

int pqColorOpacityEditorWidget::dataHistogramNumberOfBins ( ) const

Returns the value for dataHistogramNumberOfBins.

◆ scalarOpacityFunctionProxy()

pqSMProxy pqColorOpacityEditorWidget::scalarOpacityFunctionProxy ( ) const

Returns the scalar opacity function (i.e.

PiecewiseFunction) proxy used, if any.

◆ transferFunction2DProxy()

pqSMProxy pqColorOpacityEditorWidget::transferFunction2DProxy ( ) const

Returns the 2D transfer function (i.e.

vtkImageData) proxy used, if any.

◆ using2DTransferFunction()

bool pqColorOpacityEditorWidget::using2DTransferFunction ( ) const

Returns the value for Using2DTransferFunction internal server-manager property.

◆ transfer2DBoxes()

QList<QVariant> pqColorOpacityEditorWidget::transfer2DBoxes ( ) const

Returns the current list of boxes for the 2D transfer function.

This a list of 8-tuples - [x0, y0, width, height, r, g, b, opacity].

◆ setXvmsPoints

void pqColorOpacityEditorWidget::setXvmsPoints ( const QList< QVariant > &  )
slot

Sets the xvmsPoints that control the opacity transfer function.

◆ setXrgbPoints

void pqColorOpacityEditorWidget::setXrgbPoints ( const QList< QVariant > &  )
slot

Sets the xrgbPoints that control the color transfer function.

◆ setUseLogScale

void pqColorOpacityEditorWidget::setUseLogScale ( bool  value)
slot

Set whether to use-log scale.

◆ setUseLogScaleOpacity

void pqColorOpacityEditorWidget::setUseLogScaleOpacity ( bool  value)
slot

Set whether to use-log scale.

◆ setUseOpacityControlPointsFreehandDrawing

void pqColorOpacityEditorWidget::setUseOpacityControlPointsFreehandDrawing ( bool  value)
slot

Set whether to use freehand drawing for positioning opacity control points.

◆ setShowDataHistogram

void pqColorOpacityEditorWidget::setShowDataHistogram ( bool  value)
slot

Set whether to show data histogram.

◆ setAutomaticDataHistogramComputation

void pqColorOpacityEditorWidget::setAutomaticDataHistogramComputation ( bool  value)
slot

Set whether to automatically compute data histogram.

◆ setDataHistogramNumberOfBins

void pqColorOpacityEditorWidget::setDataHistogramNumberOfBins ( int  value)
slot

Set the number of bins to use for the data histogram.

◆ setScalarOpacityFunctionProxy

void pqColorOpacityEditorWidget::setScalarOpacityFunctionProxy ( pqSMProxy  sofProxy)
slot

Set the scalar opacity function (or PiecewiseFunction) proxy to use.

◆ setTransferFunction2DProxy

void pqColorOpacityEditorWidget::setTransferFunction2DProxy ( pqSMProxy  t2dProxy)
slot

Set the 2D transfer function (or vtkImageData) proxy to use.

◆ resetRangeToData

void pqColorOpacityEditorWidget::resetRangeToData ( )
slot

Reset the transfer function ranges to active data source.

◆ resetRangeToCustom

void pqColorOpacityEditorWidget::resetRangeToCustom ( )
slot

Reset the transfer function ranges to custom values.

◆ resetRangeToDataOverTime

void pqColorOpacityEditorWidget::resetRangeToDataOverTime ( )
slot

Reset the transfer function ranges to temporal range for active data source.

◆ resetRangeToVisibleData

void pqColorOpacityEditorWidget::resetRangeToVisibleData ( )
slot

Reset the transfer function ranges to visible range for active data source.

◆ invertTransferFunctions

void pqColorOpacityEditorWidget::invertTransferFunctions ( )
slot

Inverts the transfer functions.

◆ choosePreset

void pqColorOpacityEditorWidget::choosePreset ( const char *  presetName = nullptr)
slot

pick a preset.

◆ saveAsPreset

void pqColorOpacityEditorWidget::saveAsPreset ( )
slot

save current transfer function as preset.

◆ computeDataHistogram

void pqColorOpacityEditorWidget::computeDataHistogram ( )
slot

Compute the data histogram 1D or 2D.

Depends on the "Using2DTransferFunction" internal property.

◆ onRangeHandlesRangeChanged

void pqColorOpacityEditorWidget::onRangeHandlesRangeChanged ( double  rangeMin,
double  rangeMax 
)
slot

◆ resetColorMapComboBox

void pqColorOpacityEditorWidget::resetColorMapComboBox ( )
slot

Resets the color map combo box by setting its index to -1 which sets its text to an empty string.

◆ setTransfer2DBoxes

void pqColorOpacityEditorWidget::setTransfer2DBoxes ( const QList< QVariant > &  )
slot

Sets the box items that control the 2D transfer function.

◆ chooseBoxColorAlpha

void pqColorOpacityEditorWidget::chooseBoxColorAlpha ( )
slot

Choose a color and alpha for the currently active 2D transfer function box.

◆ xrgbPointsChanged

void pqColorOpacityEditorWidget::xrgbPointsChanged ( )
signal

Signal fired when the xrgbPoints change.

◆ xvmsPointsChanged

void pqColorOpacityEditorWidget::xvmsPointsChanged ( )
signal

Signal fired when the xvmsPoints change.

◆ useLogScaleChanged

void pqColorOpacityEditorWidget::useLogScaleChanged ( )
signal

Signal fired when useLogScale changes.

◆ useLogScaleOpacityChanged

void pqColorOpacityEditorWidget::useLogScaleOpacityChanged ( )
signal

Signal fired when useLogScaleOpacity changes.

◆ useOpacityControlPointsFreehandDrawingChanged

void pqColorOpacityEditorWidget::useOpacityControlPointsFreehandDrawingChanged ( )
signal

Signal fired when useOpacityControlPointsFreehandDrawing changes.

◆ showDataHistogramChanged

void pqColorOpacityEditorWidget::showDataHistogramChanged ( )
signal

Signal fired when showDataHistogram changes.

◆ automaticDataHistogramComputationChanged

void pqColorOpacityEditorWidget::automaticDataHistogramComputationChanged ( )
signal

Signal fired when automaticDataHistogramComputation changes.

◆ dataHistogramNumberOfBinsEdited [1/2]

void pqColorOpacityEditorWidget::dataHistogramNumberOfBinsEdited ( )
signal

Signal fired when dataHistogramNumberOfBins changes.

◆ scalarOpacityFunctionProxyChanged

void pqColorOpacityEditorWidget::scalarOpacityFunctionProxyChanged ( )
signal

This signal is never really fired since this widget doesn't have any UI to allow users to changes the ScalarOpacityFunction proxy used.

◆ transferFunction2DProxyChanged

void pqColorOpacityEditorWidget::transferFunction2DProxyChanged ( )
signal

Signal fired when the transfer function 2D proxy is changed.

◆ transfer2DBoxesChanged

void pqColorOpacityEditorWidget::transfer2DBoxesChanged ( )
signal

Signal fired when the transfer function 2d boxes change.

◆ opacityCurrentChanged

void pqColorOpacityEditorWidget::opacityCurrentChanged ( vtkIdType  )
protectedslot

slots called when the current point changes on the two internal pqTransferFunctionWidget widgets.

◆ colorCurrentChanged

void pqColorOpacityEditorWidget::colorCurrentChanged ( vtkIdType  )
protectedslot

◆ updateCurrentData

void pqColorOpacityEditorWidget::updateCurrentData ( )
protectedslot

updates the text shown in the "current data" input.

◆ currentDataEdited

void pqColorOpacityEditorWidget::currentDataEdited ( )
protectedslot

update the transfer function with the text in CurrentDataValue text field.

◆ presetApplied

void pqColorOpacityEditorWidget::presetApplied ( )
protectedslot

called when a preset is applied.

◆ updateDefaultPresetsList

void pqColorOpacityEditorWidget::updateDefaultPresetsList ( )
protectedslot

Updates the default presets combo box when the list changes.

◆ multiComponentsMappingChanged

void pqColorOpacityEditorWidget::multiComponentsMappingChanged ( vtkObject ,
unsigned  long,
void *  ,
void *   
)
protectedslot

called when "MultiComponentsMappingChanged" checkbox is modified.

◆ useLogScaleClicked

void pqColorOpacityEditorWidget::useLogScaleClicked ( bool  )
protectedslot

called when the use-log-scale checkbox is clicked by the user.

We then add extra logic to valid ranges convert the color map to log/linear space.

◆ useLogScaleOpacityClicked

void pqColorOpacityEditorWidget::useLogScaleOpacityClicked ( bool  )
protectedslot

called when the use-log-scale checkbox is clicked by the user.

We then add extra logic to valid ranges convert the color map to log/linear space.

◆ useOpacityControlPointsFreehandDrawingClicked

void pqColorOpacityEditorWidget::useOpacityControlPointsFreehandDrawingClicked ( bool  )
protectedslot

Called when UseOpacityControlPointsFreehandDrawing checkbox is clicked by the user.

We transfer the call to the pqTransferFunctionEditor.

◆ showDataHistogramClicked

void pqColorOpacityEditorWidget::showDataHistogramClicked ( bool  show = true)
protectedslot

Called when the showDataHistogram checkbox is clicked by the user.

We then add extra logic to compute and update the histogram and enable to update histogram button. This uses the histogram table cache if it is up to date. This can be called manually to show/hide the histogram

◆ show2DHistogram

void pqColorOpacityEditorWidget::show2DHistogram ( bool  show = true)
protectedslot

Called when the use2DTransferFunction checkbox is clicked by the user.

◆ automaticDataHistogramComputationClicked

void pqColorOpacityEditorWidget::automaticDataHistogramComputationClicked ( bool  val)
protectedslot

Called when the automaticDataHistogramComputation checkbox is clicked by the user.

We then add extra logic to show the histogram and update the UI.

◆ dataHistogramNumberOfBinsEdited [2/2]

void pqColorOpacityEditorWidget::dataHistogramNumberOfBinsEdited ( int  val)
protectedslot

Called when the dataHistogramNumberOfBins is changed by the user.

We then add extra logic to set the histogram outdated

◆ updateDataHistogramEnableState

void pqColorOpacityEditorWidget::updateDataHistogramEnableState ( )
protectedslot

Update the enable state of different data histogram related widgets.

◆ representationOrViewChanged

void pqColorOpacityEditorWidget::representationOrViewChanged ( )
protectedslot

called when the active representation or view changes.

We then change the enabled/disabled state of the buttons. Some actions require a valid representation or view, so disable them if there isn't one. We also update the opacity editor.

◆ setHistogramOutdated

void pqColorOpacityEditorWidget::setHistogramOutdated ( )
protectedslot

Called when the histogram should be considered outdated, which includes : When the range of the transfer function is changed, either from a custom range or from an updated range When the vector mode or vector component is changed When the visibility of a consumer is changed When the number of bins is changed When the 2D transfer function arrays are changed.

◆ realShowDataHistogram

void pqColorOpacityEditorWidget::realShowDataHistogram ( )
protectedslot

Slot called by a timer which is triggered in showDataHistogramClicked This method actually setup the histogram but should not be used directly.

◆ realShow2DHistogram

void pqColorOpacityEditorWidget::realShow2DHistogram ( )
protectedslot

Slot called by a timer which is triggered in show2DHistogram This method actually sets up the 2D histogram.

◆ transfer2DChanged

void pqColorOpacityEditorWidget::transfer2DChanged ( )
protectedslot

Slot to update active representation when the 2D transfer function has changed with the internal pqTransferFunction2DWidget class.

◆ opacityFunctionModified

void pqColorOpacityEditorWidget::opacityFunctionModified ( )
protectedslot

Slot to update active representation when the piecewise function for opacity is modified.

For ex, editing the midpoint, sharpness around a piecewise control point modifies the function.

◆ updateTransferFunction2DProxy

void pqColorOpacityEditorWidget::updateTransferFunction2DProxy ( )
protectedslot

Slot to update the 2D transfer function proxy when the Y axis scalar array is changed.

◆ prepareRangeForLogScaling()

void pqColorOpacityEditorWidget::prepareRangeForLogScaling ( )
protected

Validate and adjust the current range before converting to a log range.

◆ initializeOpacityEditor()

void pqColorOpacityEditorWidget::initializeOpacityEditor ( vtkPiecewiseFunction pwf)
protected

Initialize the opacity editor.

◆ initializeTransfer2DEditor()

void pqColorOpacityEditorWidget::initializeTransfer2DEditor ( vtkPVTransferFunction2D tf2d)
protected

Initialize the 2D transfer function editor.

◆ observeRepresentationModified()

void pqColorOpacityEditorWidget::observeRepresentationModified ( vtkSMProxy reprProxy,
vtkPiecewiseFunction pwf 
)
protected

When representation has changed, gotta reconnect some internal observers.

Property Documentation

◆ xrgbPoints

QList<QVariant> pqColorOpacityEditorWidget::xrgbPoints
readwrite

Definition at line 53 of file pqColorOpacityEditorWidget.h.

◆ xvmsPoints

QList<QVariant> pqColorOpacityEditorWidget::xvmsPoints
readwrite

Definition at line 54 of file pqColorOpacityEditorWidget.h.

◆ showDataHistogram

bool pqColorOpacityEditorWidget::showDataHistogram
readwrite

Definition at line 55 of file pqColorOpacityEditorWidget.h.

◆ automaticDataHistogramComputation

bool pqColorOpacityEditorWidget::automaticDataHistogramComputation
readwrite

Definition at line 57 of file pqColorOpacityEditorWidget.h.

◆ dataHistogramNumberOfBins

int pqColorOpacityEditorWidget::dataHistogramNumberOfBins
readwrite

Definition at line 59 of file pqColorOpacityEditorWidget.h.

◆ useLogScale

bool pqColorOpacityEditorWidget::useLogScale
readwrite

Definition at line 60 of file pqColorOpacityEditorWidget.h.

◆ useLogScaleOpacity

bool pqColorOpacityEditorWidget::useLogScaleOpacity
readwrite

Definition at line 61 of file pqColorOpacityEditorWidget.h.

◆ useOpacityControlPointsFreehandDrawing

bool pqColorOpacityEditorWidget::useOpacityControlPointsFreehandDrawing
readwrite

Definition at line 63 of file pqColorOpacityEditorWidget.h.

◆ scalarOpacityFunctionProxy

pqSMProxy pqColorOpacityEditorWidget::scalarOpacityFunctionProxy
readwrite

Definition at line 65 of file pqColorOpacityEditorWidget.h.

◆ transferFunction2DProxy

pqSMProxy pqColorOpacityEditorWidget::transferFunction2DProxy
readwrite

Definition at line 67 of file pqColorOpacityEditorWidget.h.

◆ transfer2DBoxes

QList<QVariant> pqColorOpacityEditorWidget::transfer2DBoxes
readwrite

Definition at line 68 of file pqColorOpacityEditorWidget.h.


The documentation for this class was generated from the following file: