pqLightsInspector.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 pqLightsInspector_h
5 #define pqLightsInspector_h
6 
7 #include "pqComponentsModule.h" // for exports
8 #include <QWidget>
9 
19 class pqView;
20 class vtkSMProxy;
21 
22 class PQCOMPONENTS_EXPORT pqLightsInspector : public QWidget
23 {
24  Q_OBJECT
25  typedef QWidget Superclass;
26 
27 public:
29  QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags(), bool autotracking = true);
30  ~pqLightsInspector() override;
31 
32 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
33  void addLight();
34  void removeLight(vtkSMProxy* = nullptr);
35  void syncLightToCamera(vtkSMProxy* = nullptr);
36  void resetLight(vtkSMProxy* = nullptr);
37  void setActiveView(pqView*);
38  void render();
39  void updateAndRender();
40 
41 private:
42  Q_DISABLE_COPY(pqLightsInspector);
43 
44  class pqInternals;
45  QScopedPointer<pqInternals> Internals;
46 };
47 
48 #endif
#define PQCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
widget to that lets user edit ParaView&#39;s lights
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140