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

pqSplinePropertyWidget is a custom property widget that uses "SplineWidgetRepresentation" to help users interactively set points that form a spline. More...

#include <pqSplinePropertyWidget.h>

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

Public Types

enum  ModeTypes { SPLINE = 0, POLYLINE = 1 }
 

Public Slots

void setLineColor (const QColor &)
 Set the color to use for the spline. More...
 
- Public Slots inherited from pqInteractivePropertyWidget
void setWidgetVisible (bool val)
 Toggle the interactive widget's visibility. More...
 
void setDataSource (vtkSMProxy *dataSource)
 DataSource is used by interactive widgets to determine now to place the widget in the view e.g. More...
 
- Public Slots inherited from pqPropertyWidget

Signals

void pointsChanged ()
 Signal fired whenever the points are changed. More...
 
void currentRowChanged ()
 Signal fired when the current row selected in the widget is changed. More...
 
- Signals inherited from pqInteractivePropertyWidget
void widgetVisibilityToggled (bool)
 Fired whenever setWidgetVisible() changes the widget's visibility. More...
 
void widgetVisibilityUpdated (bool)
 Fired whenever the widgets visibility is updated for whatever reason, be it because the panel was selected/deselected or the view changed, etc. More...
 
void startInteraction ()
 Signals fired when the interactive widget proxy fires the corresponding events. More...
 
void interaction ()
 
void endInteraction ()
 
void dummySignal ()
 
- 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

 pqSplinePropertyWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smgroup, ModeTypes mode=SPLINE, QWidget *parent=0)
 
 ~pqSplinePropertyWidget () override
 
QList< QVariant > points () const
 Get/Set the points that form the spline. More...
 
void setPoints (const QList< QVariant > &points)
 Get/Set the points that form the spline. More...
 
int currentRow () const
 
void setCurrentRow (int idx)
 
- Public Member Functions inherited from pqInteractivePropertyWidget
 pqInteractivePropertyWidget (const char *widget_smgroup, const char *widget_smname, vtkSMProxy *proxy, vtkSMPropertyGroup *smgroup, QWidget *parent=0)
 
 ~pqInteractivePropertyWidget () override
 
void reset () override
 Overridden to call this->render() to ensure that the widget is redrawn. More...
 
vtkSMNewWidgetRepresentationProxywidgetProxy () const
 Returns the proxy for the interactive widget. More...
 
void setView (pqView *view) override
 Overridden to show the widget proxy in the new view. More...
 
bool isWidgetVisible () const
 Returns the interactive widget's visibility. More...
 
vtkSMProxydataSource () const
 Returns the data source. More...
 
void select () override
 In these methods, we show/hide the widget since the interactive widget is not supposed to be visible except when the panel is "active" or "selected". More...
 
void deselect () override
 
vtkBoundingBox dataBounds () const
 Returns bounds from the dataSource, if possible. More...
 
vtkSMPropertyGrouppropertyGroup () const
 Returns the vtkSMPropertyGroup pass to the constructor. More...
 
void hideEvent (QHideEvent *) override
 Overriden in order to hide the VTK widget. More...
 
void showEvent (QShowEvent *) override
 Overriden in order to show the VTK widget. More...
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=0)
 
 ~pqPropertyWidget () override
 
virtual void apply ()
 
bool isSelected () const
 
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)
 
bool showLabel () const
 
const QList< QPointer< pqPropertyWidgetDecorator > > & decorators () const
 Provides access to the decorators for this widget. More...
 
void setProperty (vtkSMProperty *property)
 

Protected Slots

void placeWidget () override
 
- Protected Slots inherited from pqInteractivePropertyWidget
virtual void placeWidget ()=0
 Places the interactive widget using current data source information. More...
 
void render ()
 Safe call render on the view. More...
 

Properties

QList< QVariant > points
 
int currentRow
 
- Properties inherited from pqInteractivePropertyWidget
pqSMProxy dataSource
 

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...
 
- 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...
 
- Protected Attributes inherited from pqInteractivePropertyWidget
bool VisibleState = true
 

Detailed Description

pqSplinePropertyWidget is a custom property widget that uses "SplineWidgetRepresentation" to help users interactively set points that form a spline.

To use this widget for a property group (vtkSMPropertyGroup), use "InteractiveSpline" as the "panel_widget" in the XML configuration. The property group can have properties for following functions:

Definition at line 56 of file pqSplinePropertyWidget.h.

Member Enumeration Documentation

◆ ModeTypes

Enumerator
SPLINE 
POLYLINE 

Definition at line 64 of file pqSplinePropertyWidget.h.

Constructor & Destructor Documentation

◆ pqSplinePropertyWidget()

pqSplinePropertyWidget::pqSplinePropertyWidget ( vtkSMProxy proxy,
vtkSMPropertyGroup smgroup,
ModeTypes  mode = SPLINE,
QWidget *  parent = 0 
)

◆ ~pqSplinePropertyWidget()

pqSplinePropertyWidget::~pqSplinePropertyWidget ( )
override

Member Function Documentation

◆ points()

QList<QVariant> pqSplinePropertyWidget::points ( ) const

Get/Set the points that form the spline.

◆ setPoints()

void pqSplinePropertyWidget::setPoints ( const QList< QVariant > &  points)

Get/Set the points that form the spline.

◆ currentRow()

int pqSplinePropertyWidget::currentRow ( ) const

◆ setCurrentRow()

void pqSplinePropertyWidget::setCurrentRow ( int  idx)

◆ pointsChanged

void pqSplinePropertyWidget::pointsChanged ( )
signal

Signal fired whenever the points are changed.

◆ currentRowChanged

void pqSplinePropertyWidget::currentRowChanged ( )
signal

Signal fired when the current row selected in the widget is changed.

◆ setLineColor

void pqSplinePropertyWidget::setLineColor ( const QColor &  )
slot

Set the color to use for the spline.

◆ placeWidget

void pqSplinePropertyWidget::placeWidget ( )
overrideprotectedslot

Property Documentation

◆ points

QList<QVariant> pqSplinePropertyWidget::points
readwrite

Definition at line 58 of file pqSplinePropertyWidget.h.

◆ currentRow

int pqSplinePropertyWidget::currentRow
readwrite

Definition at line 59 of file pqSplinePropertyWidget.h.


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