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() override=default
void onResetAtomFactorToggled()
Update the atom/bond radius sliders bounds.
Expose molecule mapper parameters to the user.
void updateAtomWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
pqPropertyGroupWidget is a (custom) widget created for a PropertyGroup.
void updateWidget(bool showing_advanced_properties) override
Override to show/hide relevant widgets depending on the advanced properties status.
void updateBondColorWidgetVisibility()
Show/hide widgets depending on the states of other widgets.
superclass for all SM properties
void resetPreset()
Reset the preset widget.
void updateAtomicRadiusWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
void onScaleBondRadiusChanged(double scale)
Update the atom/bond radius sliders bounds.
void setDocumentationAsTooltip(vtkSMProperty *prop, QWidget *widget)
Set property documentation as widget tooltip.
void onResetBondRadiusToggled()
Update the atom/bond radius sliders bounds.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
pqMoleculePropertyWidget(vtkSMProxy *smproxy, vtkSMPropertyGroup *smgroup, QWidget *parentObject=nullptr)
void updateBondWidgetsVisibility()
Show/hide widgets depending on the states of other widgets.
void onPresetChanged(int)
Apply selected preset to the proxy.
void onScaleAtomFactorChanged(double scale)
Update the atom/bond radius sliders bounds.
scale