pqMoleculePropertyWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqMoleculePropertyWidget_h
5 #define pqMoleculePropertyWidget_h
6 
8 
9 struct MapperParameters;
10 class vtkSMPropertyGroup;
11 class QWidget;
12 
20 {
21  Q_OBJECT
23 
24 public:
26  vtkSMProxy* smproxy, vtkSMPropertyGroup* smgroup, QWidget* parentObject = nullptr);
27  ~pqMoleculePropertyWidget() override = default;
28 
32  void updateWidget(bool showing_advanced_properties) override;
33 
34 protected Q_SLOTS:
36 
45 
49  void onPresetChanged(int);
50 
55  void resetPreset();
56 
58 
61  void onScaleAtomFactorChanged(double scale);
63  void onScaleBondRadiusChanged(double scale);
66 
67 protected: // NOLINT(readability-redundant-access-specifiers)
71  void setDocumentationAsTooltip(vtkSMProperty* prop, QWidget* widget);
72 
73 private:
74  Q_DISABLE_COPY(pqMoleculePropertyWidget)
75 
76  class pqInternals;
77  pqInternals* Internals;
78 };
79 
80 #endif
pqMoleculePropertyWidget::onPresetChanged
void onPresetChanged(int)
Apply selected preset to the proxy.
pqMoleculePropertyWidget::updateWidget
void updateWidget(bool showing_advanced_properties) override
Override to show/hide relevant widgets depending on the advanced properties status.
pqPropertyGroupWidget.h
pqMoleculePropertyWidget::~pqMoleculePropertyWidget
~pqMoleculePropertyWidget() override=default
scale
scale
pqMoleculePropertyWidget::onResetAtomFactorToggled
void onResetAtomFactorToggled()
Update the atom/bond radius sliders bounds.
pqMoleculePropertyWidget::updateBondWidgetsVisibility
void updateBondWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
pqPropertyGroupWidget
pqPropertyGroupWidget is a (custom) widget created for a PropertyGroup.
Definition: pqPropertyGroupWidget.h:29
pqMoleculePropertyWidget::pqMoleculePropertyWidget
pqMoleculePropertyWidget(vtkSMProxy *smproxy, vtkSMPropertyGroup *smgroup, QWidget *parentObject=nullptr)
pqMoleculePropertyWidget::updateAtomWidgetsVisibility
void updateAtomWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
pqMoleculePropertyWidget
Expose molecule mapper parameters to the user.
Definition: pqMoleculePropertyWidget.h:19
pqMoleculePropertyWidget::onScaleAtomFactorChanged
void onScaleAtomFactorChanged(double scale)
Update the atom/bond radius sliders bounds.
vtkSMProperty
superclass for all SM properties
Definition: vtkSMProperty.h:144
vtkSMProxy
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqMoleculePropertyWidget::onScaleBondRadiusChanged
void onScaleBondRadiusChanged(double scale)
Update the atom/bond radius sliders bounds.
vtkSMPropertyGroup
Definition: vtkSMPropertyGroup.h:16
pqMoleculePropertyWidget::setDocumentationAsTooltip
void setDocumentationAsTooltip(vtkSMProperty *prop, QWidget *widget)
Set property documentation as widget tooltip.
pqMoleculePropertyWidget::updateBondColorWidgetVisibility
void updateBondColorWidgetVisibility()
Show/hide widgets depending on the states of other widgets.
pqMoleculePropertyWidget::updateAtomicRadiusWidgetsVisibility
void updateAtomicRadiusWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
pqMoleculePropertyWidget::onResetBondRadiusToggled
void onResetBondRadiusToggled()
Update the atom/bond radius sliders bounds.
pqMoleculePropertyWidget::resetPreset
void resetPreset()
Reset the preset widget.