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

Extract bottom left axis range into a property. More...

#include <pqXYChartViewBoundsPropertyWidget.h>

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

Signals

void boundsChanged ()
 Signal fired whenever the bounds are changed. 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

 pqXYChartViewBoundsPropertyWidget (vtkSMProxy *proxy, vtkSMProperty *property, QWidget *parent=nullptr)
 
 ~pqXYChartViewBoundsPropertyWidget () override
 
QList< QVariant > bounds ()
 Get/Set the chart bounds. More...
 
void setBounds (const QList< QVariant > &bounds)
 Get/Set the chart bounds. More...
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqPropertyWidget () override
 
virtual void apply ()
 
virtual void reset ()
 
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 resetBounds ()
 Extract bounds from the current pqXYChartView if any. More...
 
void onTextChanged ()
 Called when the text is changed in order to update the internally stored bounds. More...
 
void updateTextFromBounds ()
 Called when the bounds are changed externally to update the texts. More...
 
void showEvent (QShowEvent *event) override
 Initialize the bounds on the first show. More...
 
void connectToView (pqView *view)
 Called whenever the active view change Keep track of the active view and connect to pqXYChartView axis range property to manage the reset button. More...
 

Properties

QList< QVariant > bounds
 

Additional Inherited Members

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

Extract bottom left axis range into a property.

A property widget that extract bottom and left axis range from a pqXYChartView if it is the current active view into a 4 component double vector property.

A reset button is added in order to actually perform the extraction.

Definition at line 23 of file pqXYChartViewBoundsPropertyWidget.h.

Constructor & Destructor Documentation

◆ pqXYChartViewBoundsPropertyWidget()

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

◆ ~pqXYChartViewBoundsPropertyWidget()

pqXYChartViewBoundsPropertyWidget::~pqXYChartViewBoundsPropertyWidget ( )
override

Member Function Documentation

◆ bounds()

QList<QVariant> pqXYChartViewBoundsPropertyWidget::bounds ( )

Get/Set the chart bounds.

Size should always be 4.

◆ setBounds()

void pqXYChartViewBoundsPropertyWidget::setBounds ( const QList< QVariant > &  bounds)

Get/Set the chart bounds.

Size should always be 4.

◆ boundsChanged

void pqXYChartViewBoundsPropertyWidget::boundsChanged ( )
signal

Signal fired whenever the bounds are changed.

◆ resetBounds

void pqXYChartViewBoundsPropertyWidget::resetBounds ( )
protectedslot

Extract bounds from the current pqXYChartView if any.

◆ onTextChanged

void pqXYChartViewBoundsPropertyWidget::onTextChanged ( )
protectedslot

Called when the text is changed in order to update the internally stored bounds.

◆ updateTextFromBounds

void pqXYChartViewBoundsPropertyWidget::updateTextFromBounds ( )
protectedslot

Called when the bounds are changed externally to update the texts.

◆ showEvent

void pqXYChartViewBoundsPropertyWidget::showEvent ( QShowEvent *  event)
overrideprotectedslot

Initialize the bounds on the first show.

◆ connectToView

void pqXYChartViewBoundsPropertyWidget::connectToView ( pqView view)
protectedslot

Called whenever the active view change Keep track of the active view and connect to pqXYChartView axis range property to manage the reset button.

Property Documentation

◆ bounds

QList<QVariant> pqXYChartViewBoundsPropertyWidget::bounds
readwrite

Definition at line 26 of file pqXYChartViewBoundsPropertyWidget.h.


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