SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
pqSMTKSphereItemWidget.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 #ifndef smtk_extension_paraview_widgets_pqSMTKSphereItemWidget_h
11 #define smtk_extension_paraview_widgets_pqSMTKSphereItemWidget_h
12 
13 #include "smtk/extension/paraview/widgets/pqSMTKAttributeItemWidget.h"
14 
24 class SMTKPQWIDGETSEXT_EXPORT pqSMTKSphereItemWidget : public pqSMTKAttributeItemWidget
25 {
26  Q_OBJECT
27 public:
30  Qt::Orientation orient = Qt::Horizontal);
31  ~pqSMTKSphereItemWidget() override;
32 
33  static qtItem* createSphereItemWidget(const qtAttributeItemInfo& info);
34  bool createProxyAndWidget(vtkSMProxy*& proxy, pqInteractivePropertyWidget*& widget) override;
35 
36 protected Q_SLOTS:
37  bool updateItemFromWidgetInternal() override;
38  bool updateWidgetFromItemInternal() override;
39 
40 protected:
46  bool fetchCenterAndRadiusItems(
48  smtk::attribute::DoubleItemPtr& radiusItem);
49 };
50 
51 #endif // smtk_extension_paraview_widgets_pqSMTKSphereItemWidget_h
smtk::extension::qtItem
an abstract UI class for attribute item
Definition: qtItem.h:61
smtk::extension::qtAttributeItemInfo
Class used to generate widgets for Attribute Items.
Definition: qtAttributeItemInfo.h:39
pqSMTKAttributeItemWidget::updateItemFromWidgetInternal
virtual bool updateItemFromWidgetInternal()=0
Update smtk::attribute::Item(s) from widget, returning true if changes were made.
pqSMTKAttributeItemWidget::createProxyAndWidget
virtual bool createProxyAndWidget(vtkSMProxy *&source, pqInteractivePropertyWidget *&widget)=0
Subclasses must override this method to create the ParaView widget of their choice.
smtk::attribute::DoubleItemPtr
smtk::shared_ptr< smtk::attribute::DoubleItem > DoubleItemPtr
Definition: PublicPointerDefs.h:495
pqSMTKAttributeItemWidget
A subclass of qtItem common to all ParaView property widgets.
Definition: pqSMTKAttributeItemWidget.h:32
pqSMTKAttributeItemWidget::updateWidgetFromItemInternal
virtual bool updateWidgetFromItemInternal()=0
Update proxy properties from smtk::attribute::Item(s), returning true if changes were made.
pqSMTKSphereItemWidget
Display a 3-D sphere with draggable handles for editing a GroupItem with 1 vector and 1 scalar.
Definition: pqSMTKSphereItemWidget.h:24