//=========================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
//
//  This software is distributed WITHOUT ANY WARRANTY; without even
//  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
//  PURPOSE.  See the above copyright notice for more information.
//=========================================================================
#ifndef smtk_extension_paraview_widgets_pqConePropertyWidget_h
#define smtk_extension_paraview_widgets_pqConePropertyWidget_h

#include "pqInteractivePropertyWidget.h"
#include "smtk/extension/paraview/widgets/Exports.h"

class SMTKPQWIDGETSEXT_EXPORT pqConePropertyWidget : public pqInteractivePropertyWidget
{
  Q_OBJECT
  using Superclass = pqInteractivePropertyWidget;

public:
  pqConePropertyWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = nullptr);
  ~pqConePropertyWidget() override;

public slots:
  void pick(double, double, double);
  void pickPoint1(double, double, double);
  void pickPoint2(double, double, double);
  /// Force the widget to accept a single, positive radius (when true).
  void setCylindrical(bool);
  /// The same as setCylindrical, but also hide the checkbox that
  /// allows user control of whether the cone is a cylinder (when true).
  void setForceCylindrical(bool);

protected slots:
  void updateInformationLabels();
  void placeWidget() override;

protected:
  class Internals;
  Internals* m_p;

private:
  Q_DISABLE_COPY(pqConePropertyWidget);
};

#endif // smtk_extension_paraview_widgets_pqConePropertyWidget_h
