pqObjectPickingBehavior.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 pqObjectPickingBehavior_h
5 #define pqObjectPickingBehavior_h
6 
8 #include <QObject>
9 #include <QPoint>
10 
11 class pqView;
12 class pqOutputPort;
13 
21 {
22  Q_OBJECT
23  typedef QObject Superclass;
24 
25 public:
26  pqObjectPickingBehavior(QObject* parent = nullptr);
27  ~pqObjectPickingBehavior() override;
28 
29 protected:
33  bool eventFilter(QObject* caller, QEvent* e) override;
34 
35 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
40  void onViewAdded(pqView*);
41 
42 private:
43  Q_DISABLE_COPY(pqObjectPickingBehavior)
44  QPoint Position;
45 };
46 
47 #endif
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item...
Definition: pqOutputPort.h:29
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
pqObjectPickingBehavior is used to add support for picking "source" by clicking on it in a view...