vtkPVCylinder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPVCylinder_h
11 #define vtkPVCylinder_h
12 
13 #include "vtkCylinder.h"
14 #include "vtkPVVTKExtensionsMiscModule.h" //needed for exports
15 
17 {
18 public:
19  static vtkPVCylinder* New();
20 
21  vtkTypeMacro(vtkPVCylinder, vtkCylinder);
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25 
28  void SetOrientedAxis(double x, double y, double z);
29  void SetOrientedAxis(const double axis[3]);
30  vtkGetVector3Macro(OrientedAxis, double);
32 
33  // Reimplemented to update transform on change:
34  void SetCenter(double x, double y, double z) override;
35  void SetCenter(const double xyz[3]) override;
36 
37 protected:
38  vtkPVCylinder();
39  ~vtkPVCylinder() override;
40 
41  void UpdateTransform();
42 
43  double OrientedAxis[3];
44 
45 private:
46  vtkPVCylinder(const vtkPVCylinder&) = delete;
47  void operator=(const vtkPVCylinder&) = delete;
48 };
49 
50 inline void vtkPVCylinder::SetOrientedAxis(double x, double y, double z)
51 {
52  double axis[3] = { x, y, z };
53  this->SetOrientedAxis(axis);
54 }
55 
56 #endif
virtual void SetCenter(double, double, double)
#define VTKPVVTKEXTENSIONSMISC_EXPORT
void SetOrientedAxis(double x, double y, double z)
Get/Set the vector defining the direction of the cylinder.
Definition: vtkPVCylinder.h:50
static vtkCylinder * New()
extends vtkCylinder to add ParaView specific API.
Definition: vtkPVCylinder.h:16
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)