pqModelTransformSupportBehavior.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 pqModelTransformSupportBehavior_h
5 #define pqModelTransformSupportBehavior_h
6 
8 #include "vtkTuple.h"
9 #include <QObject>
10 
11 class pqView;
12 class vtkSMSourceProxy;
13 
20 {
21  Q_OBJECT
22  typedef QObject Superclass;
23 
24 public:
25  pqModelTransformSupportBehavior(QObject* parent = nullptr);
27 
28  static vtkTuple<double, 16> getChangeOfBasisMatrix(
29  vtkSMSourceProxy*, int outputPort = 0, bool* isvalid = nullptr);
30  static vtkTuple<double, 6> getBoundingBoxInModelCoordinates(
31  vtkSMSourceProxy*, int outputPort = 0, bool* isvalid = nullptr);
32  static vtkTuple<std::string, 3> getAxisTitles(
33  vtkSMSourceProxy*, int outputPort = 0, bool* isvalid = nullptr);
34 
35 protected Q_SLOTS:
36  virtual void viewAdded(pqView*);
37  virtual void viewUpdated();
38 
39 protected: // NOLINT(readability-redundant-access-specifiers)
40  virtual void enableModelTransform(pqView*, vtkSMSourceProxy*);
41  virtual void disableModelTransform(pqView*);
42 
43 private:
44  Q_DISABLE_COPY(pqModelTransformSupportBehavior)
45 };
46 
47 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
proxy for a VTK source on a server
pqModelTransformSupportBehavior is designed for supporting ChangeOfBasis matrix for MantId...