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

Expose molecule mapper parameters to the user. More...

#include <pqMoleculePropertyWidget.h>

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

Public Member Functions

 pqMoleculePropertyWidget (vtkSMProxy *smproxy, vtkSMPropertyGroup *smgroup, QWidget *parentObject=nullptr)
 
 ~pqMoleculePropertyWidget () override=default
 
void updateWidget (bool showing_advanced_properties) override
 Override to show/hide relevant widgets depending on the advanced properties status. More...
 
- Public Member Functions inherited from pqPropertyGroupWidget
 pqPropertyGroupWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smGroup, QWidget *parent=nullptr)
 
vtkSMPropertyGrouppropertyGroup () const
 
void addPropertyLink (QComboBox *cb, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QLineEdit *edit, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QCheckBox *button, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QToolButton *button, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QGroupBox *groupBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QDoubleSpinBox *spinBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QSpinBox *spinBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (pqColorChooserButton *color, const char *propertyName, int smindex=-1)
 
void addPropertyLink (pqDoubleSliderWidget *slider, const char *propertyName, int smindex=-1)
 
char * panelVisibility () const override
 Overwrite pqPropertyWidget to forward calls to vtkSMPropertyGroup. More...
 
void setPanelVisibility (const char *vis) override
 
- 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 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 onPresetChanged (int)
 Apply selected preset to the proxy. More...
 
void resetPreset ()
 Reset the preset widget. More...
 
void updateBondWidgetsVisibility ()
 Show/hide widgets depending on the states of other widgets. More...
 
void updateAtomWidgetsVisibility ()
 Show/hide widgets depending on the states of other widgets. More...
 
void updateAtomicRadiusWidgetsVisibility ()
 Show/hide widgets depending on the states of other widgets. More...
 
void updateBondColorWidgetVisibility ()
 Show/hide widgets depending on the states of other widgets. More...
 
void onScaleAtomFactorChanged (double scale)
 Update the atom/bond radius sliders bounds. More...
 
void onResetAtomFactorToggled ()
 Update the atom/bond radius sliders bounds. More...
 
void onScaleBondRadiusChanged (double scale)
 Update the atom/bond radius sliders bounds. More...
 
void onResetBondRadiusToggled ()
 Update the atom/bond radius sliders bounds. More...
 

Protected Member Functions

void setDocumentationAsTooltip (vtkSMProperty *prop, QWidget *widget)
 Set property documentation as widget tooltip. 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...
 

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...
 
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

Expose molecule mapper parameters to the user.

Some presets are defined for an easiest configuration.

Definition at line 19 of file pqMoleculePropertyWidget.h.

Constructor & Destructor Documentation

◆ pqMoleculePropertyWidget()

pqMoleculePropertyWidget::pqMoleculePropertyWidget ( vtkSMProxy smproxy,
vtkSMPropertyGroup smgroup,
QWidget *  parentObject = nullptr 
)

◆ ~pqMoleculePropertyWidget()

pqMoleculePropertyWidget::~pqMoleculePropertyWidget ( )
overridedefault

Member Function Documentation

◆ updateWidget()

void pqMoleculePropertyWidget::updateWidget ( bool  showing_advanced_properties)
overridevirtual

Override to show/hide relevant widgets depending on the advanced properties status.

Reimplemented from pqPropertyWidget.

◆ updateBondWidgetsVisibility

void pqMoleculePropertyWidget::updateBondWidgetsVisibility ( )
protectedslot

Show/hide widgets depending on the states of other widgets.

Handle advanced proprerties visibility.

◆ updateAtomWidgetsVisibility

void pqMoleculePropertyWidget::updateAtomWidgetsVisibility ( )
protectedslot

Show/hide widgets depending on the states of other widgets.

Handle advanced proprerties visibility.

◆ updateAtomicRadiusWidgetsVisibility

void pqMoleculePropertyWidget::updateAtomicRadiusWidgetsVisibility ( )
protectedslot

Show/hide widgets depending on the states of other widgets.

Handle advanced proprerties visibility.

◆ updateBondColorWidgetVisibility

void pqMoleculePropertyWidget::updateBondColorWidgetVisibility ( )
protectedslot

Show/hide widgets depending on the states of other widgets.

Handle advanced proprerties visibility.

◆ onPresetChanged

void pqMoleculePropertyWidget::onPresetChanged ( int  )
protectedslot

Apply selected preset to the proxy.

◆ resetPreset

void pqMoleculePropertyWidget::resetPreset ( )
protectedslot

Reset the preset widget.

If a property has changed, preset widget should display '(no preset)'.

◆ onScaleAtomFactorChanged

void pqMoleculePropertyWidget::onScaleAtomFactorChanged ( double  scale)
protectedslot

Update the atom/bond radius sliders bounds.

◆ onResetAtomFactorToggled

void pqMoleculePropertyWidget::onResetAtomFactorToggled ( )
protectedslot

Update the atom/bond radius sliders bounds.

◆ onScaleBondRadiusChanged

void pqMoleculePropertyWidget::onScaleBondRadiusChanged ( double  scale)
protectedslot

Update the atom/bond radius sliders bounds.

◆ onResetBondRadiusToggled

void pqMoleculePropertyWidget::onResetBondRadiusToggled ( )
protectedslot

Update the atom/bond radius sliders bounds.

◆ setDocumentationAsTooltip()

void pqMoleculePropertyWidget::setDocumentationAsTooltip ( vtkSMProperty prop,
QWidget *  widget 
)
protected

Set property documentation as widget tooltip.


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