vtkPVFrustum.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVFrustum_h
12 #define vtkPVFrustum_h
13 
14 #include "vtkFrustum.h"
15 #include "vtkPVVTKExtensionsMiscModule.h" //needed for exports
16 #include "vtkVector.h" // For vtkVector3d
17 
19 {
20 public:
21  static vtkPVFrustum* New();
22 
23  vtkTypeMacro(vtkPVFrustum, vtkFrustum);
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
27 
30  void SetOrientation(double x, double y, double z);
31  void SetOrientation(const double xyz[3]);
32  void SetOrientation(const vtkVector3d& xyz);
33  double* GetOrientation();
34  void GetOrientation(double& x, double& y, double& z);
35  void GetOrientation(double xyz[3]);
37 
39 
42  void SetOrigin(double x, double y, double z);
43  void SetOrigin(const double xyz[3]);
44  void SetOrigin(const vtkVector3d& xyz);
45  double* GetOrigin();
46  void GetOrigin(double& x, double& y, double& z);
47  void GetOrigin(double xyz[3]);
49 
50 private:
51  vtkPVFrustum() = default;
52  ~vtkPVFrustum() override = default;
53 
54  vtkPVFrustum(const vtkPVFrustum&) = delete;
55  void operator=(const vtkPVFrustum&) = delete;
56 
57  // Compute and set transform according to orienation and origin. Used in setters.
58  void UpdateTransform();
59 
60  vtkVector3d Orientation = { 0, 0, 0 };
61  vtkVector3d Origin = { 0, 0, 0 };
62 };
63 
64 #endif
extends vtkFrustum to add ParaView specific API.
Definition: vtkPVFrustum.h:18
#define VTKPVVTKEXTENSIONSMISC_EXPORT