Public Member Functions | Protected Slots | List of all members
pqDoubleRangeSliderPropertyWidget Class Reference

pqDoubleRangeSliderPropertyWidget is a widget used for properties such as the "ThresholdRange" property on the IsoVolume filter's panel. More...

#include <pqDoubleRangeSliderPropertyWidget.h>

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

Public Member Functions

 pqDoubleRangeSliderPropertyWidget (vtkSMProxy *proxy, vtkSMProperty *property, QWidget *parent=nullptr)
 
 ~pqDoubleRangeSliderPropertyWidget () override
 
void apply () override
 
void reset () override
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqPropertyWidget () override
 
virtual void updateWidget (bool showing_advanced_properties)
 
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...
 
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 highlightResetButton (bool highlight=true)
 
void resetClicked ()
 

Additional Inherited Members

- Public Slots inherited from pqPropertyWidget
virtual void setView (pqView *)
 called to set the active view. 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...
 
- 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...
 
- 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...
 

Detailed Description

pqDoubleRangeSliderPropertyWidget is a widget used for properties such as the "ThresholdRange" property on the IsoVolume filter's panel.

It provides two double sliders, one for min and one for max and has logic to ensure that the min <= max.

The appearance of this widget can be modified by hints in the property XML definition. If a hint element named "HideResetButton" is present, the range reset button will be hidden. If a hint element named "MinimumLabel" is present with a "text" attribute, that text attribute will be used as the label text instead of "Minimum". Similarly, the default "Maximum" label can be replaced with a "MaximumLabel" element with a "text" attribute.

Definition at line 51 of file pqDoubleRangeSliderPropertyWidget.h.

Constructor & Destructor Documentation

◆ pqDoubleRangeSliderPropertyWidget()

pqDoubleRangeSliderPropertyWidget::pqDoubleRangeSliderPropertyWidget ( vtkSMProxy proxy,
vtkSMProperty property,
QWidget *  parent = nullptr 
)

◆ ~pqDoubleRangeSliderPropertyWidget()

pqDoubleRangeSliderPropertyWidget::~pqDoubleRangeSliderPropertyWidget ( )
override

Member Function Documentation

◆ apply()

void pqDoubleRangeSliderPropertyWidget::apply ( )
overridevirtual

Reimplemented from pqPropertyWidget.

◆ reset()

void pqDoubleRangeSliderPropertyWidget::reset ( )
overridevirtual

Reimplemented from pqPropertyWidget.

◆ highlightResetButton

void pqDoubleRangeSliderPropertyWidget::highlightResetButton ( bool  highlight = true)
protectedslot

◆ resetClicked

void pqDoubleRangeSliderPropertyWidget::resetClicked ( )
protectedslot

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