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

This is a custom widget for YoungsMaterialInterface filter. More...

#include <pqYoungsMaterialPropertyWidget.h>

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

Signals

void orderingArraysChanged ()
 Emitted when the ordering arrays change, linked ot the SMProperty. More...
 
void normalArraysChanged ()
 Emitted when the normal arrays change, linked ot the SMProperty. 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

 pqYoungsMaterialPropertyWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *group, QWidget *parent=nullptr)
 
 ~pqYoungsMaterialPropertyWidget () override
 
void setOrderingArrays (const QList< QVariant > &)
 Get/Set the ordering arrays, linked to the SMProperty. More...
 
QList< QVariant > orderingArrays () const
 Get/Set the ordering arrays, linked to the SMProperty. More...
 
void setNormalArrays (const QList< QVariant > &)
 Get/Set the normal arrays, linked to the SMProperty. More...
 
QList< QVariant > normalArrays () const
 Get/Set the normal arrays, linked to the SMProperty. More...
 
- Public Member Functions inherited from pqStringVectorPropertyWidget
 pqStringVectorPropertyWidget (vtkSMProperty *property, vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqStringVectorPropertyWidget () override
 
- 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 onOrderingArraysChanged ()
 Called when the ordering array is changed. More...
 
void onNormalArraysChanged ()
 Called when the normal array is changed. More...
 
void updateComboBoxes ()
 Called to initialize/update the combobox according to the current item. More...
 

Protected Member Functions

QStandardItem * currentItem ()
 Recover the currently selecticted item in the VolumeFractionArrays 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...
 

Properties

QList< QVariant > orderingArrays
 
QList< QVariant > normalArrays
 

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 pqStringVectorPropertyWidget
static pqPropertyWidgetcreateWidget (vtkSMStringVectorProperty *smproperty, vtkSMProxy *smproxy, QWidget *parent=nullptr)
 Factory method to instantiate a hard-coded type of pqPropertyWidget subclass for t he vtkSMStringVectorProperty. More...
 
static void processFileChooserHints (vtkPVXMLElement *hints, bool &directoryMode, bool &anyFile, QString &filter, bool &browseLocalFileSystem)
 Method to process file-choice related hints. 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...
 

Detailed Description

This is a custom widget for YoungsMaterialInterface filter.

We use a custom widget since this filter has unusual requirements when it comes to setting OrderingArrays and NormalArrays properties.

Definition at line 48 of file pqYoungsMaterialPropertyWidget.h.

Constructor & Destructor Documentation

◆ pqYoungsMaterialPropertyWidget()

pqYoungsMaterialPropertyWidget::pqYoungsMaterialPropertyWidget ( vtkSMProxy proxy,
vtkSMPropertyGroup group,
QWidget *  parent = nullptr 
)

◆ ~pqYoungsMaterialPropertyWidget()

pqYoungsMaterialPropertyWidget::~pqYoungsMaterialPropertyWidget ( )
override

Member Function Documentation

◆ setOrderingArrays()

void pqYoungsMaterialPropertyWidget::setOrderingArrays ( const QList< QVariant > &  )

Get/Set the ordering arrays, linked to the SMProperty.

◆ orderingArrays()

QList<QVariant> pqYoungsMaterialPropertyWidget::orderingArrays ( ) const

Get/Set the ordering arrays, linked to the SMProperty.

◆ setNormalArrays()

void pqYoungsMaterialPropertyWidget::setNormalArrays ( const QList< QVariant > &  )

Get/Set the normal arrays, linked to the SMProperty.

◆ normalArrays()

QList<QVariant> pqYoungsMaterialPropertyWidget::normalArrays ( ) const

Get/Set the normal arrays, linked to the SMProperty.

◆ orderingArraysChanged

void pqYoungsMaterialPropertyWidget::orderingArraysChanged ( )
signal

Emitted when the ordering arrays change, linked ot the SMProperty.

◆ normalArraysChanged

void pqYoungsMaterialPropertyWidget::normalArraysChanged ( )
signal

Emitted when the normal arrays change, linked ot the SMProperty.

◆ currentItem()

QStandardItem* pqYoungsMaterialPropertyWidget::currentItem ( )
protected

Recover the currently selecticted item in the VolumeFractionArrays widget.

◆ onOrderingArraysChanged

void pqYoungsMaterialPropertyWidget::onOrderingArraysChanged ( )
protectedslot

Called when the ordering array is changed.

◆ onNormalArraysChanged

void pqYoungsMaterialPropertyWidget::onNormalArraysChanged ( )
protectedslot

Called when the normal array is changed.

◆ updateComboBoxes

void pqYoungsMaterialPropertyWidget::updateComboBoxes ( )
protectedslot

Called to initialize/update the combobox according to the current item.

Property Documentation

◆ orderingArrays

QList<QVariant> pqYoungsMaterialPropertyWidget::orderingArrays
readwrite

Definition at line 54 of file pqYoungsMaterialPropertyWidget.h.

◆ normalArrays

QList<QVariant> pqYoungsMaterialPropertyWidget::normalArrays
readwrite

Definition at line 54 of file pqYoungsMaterialPropertyWidget.h.


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