pqCameraToolbar.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 pqCameraToolbar_h
5 #define pqCameraToolbar_h
6 
8 #include <QToolBar>
9 
10 class pqPipelineSource;
12 
18 {
19  Q_OBJECT
20  typedef QToolBar Superclass;
21 
22 public:
23  pqCameraToolbar(const QString& title, QWidget* parentObject = nullptr)
24  : Superclass(title, parentObject)
25  {
26  this->constructor();
27  }
28  pqCameraToolbar(QWidget* parentObject = nullptr)
29  : Superclass(parentObject)
30  {
31  this->constructor();
32  }
33 
34 private Q_SLOTS:
35 
36  void onSourceChanged(pqPipelineSource*);
37  void updateEnabledState();
38  void onRepresentationChanged(pqDataRepresentation*);
39 
40 private: // NOLINT(readability-redundant-access-specifiers)
41  Q_DISABLE_COPY(pqCameraToolbar)
42  void constructor();
43  QAction* ZoomToDataAction;
44  QAction* ZoomClosestToDataAction;
45 
46  // Currently bound connection to an active source, used to
47  // disable ZoomToData actions if the current source
48  // is not visible
49  QMetaObject::Connection SourceVisibilityChangedConnection;
50  // Currently bound connection to an active representation, used to
51  // disable ZoomToData actions if the current representation
52  // is not visible
53  QMetaObject::Connection RepresentationDataUpdatedConnection;
54 
60  bool isRepresentationVisible(pqDataRepresentation* repr);
61 };
62 
63 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqCameraToolbar is the toolbar that has icons for resetting camera orientations as well as zoom-to-da...
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqCameraToolbar(const QString &title, QWidget *parentObject=nullptr)
PQ representation for a vtkSMProxy that can be involved in a pipeline.
pqCameraToolbar(QWidget *parentObject=nullptr)