vtkPVCylinder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCylinder
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkPVCylinder_h
23 #define vtkPVCylinder_h
24 
25 #include "vtkCylinder.h"
26 #include "vtkPVVTKExtensionsMiscModule.h" //needed for exports
27 
29 {
30 public:
31  static vtkPVCylinder* New();
32 
33  vtkTypeMacro(vtkPVCylinder, vtkCylinder);
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  void SetOrientedAxis(double x, double y, double z);
41  void SetOrientedAxis(const double axis[3]);
42  vtkGetVector3Macro(OrientedAxis, double);
44 
45  // Reimplemented to update transform on change:
46  void SetCenter(double x, double y, double z) override;
47  void SetCenter(const double xyz[3]) override;
48 
49 protected:
50  vtkPVCylinder();
51  ~vtkPVCylinder() override;
52 
53  void UpdateTransform();
54 
55  double OrientedAxis[3];
56 
57 private:
58  vtkPVCylinder(const vtkPVCylinder&) = delete;
59  void operator=(const vtkPVCylinder&) = delete;
60 };
61 
62 inline void vtkPVCylinder::SetOrientedAxis(double x, double y, double z)
63 {
64  double axis[3] = { x, y, z };
65  this->SetOrientedAxis(axis);
66 }
67 
68 #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:62
static vtkCylinder * New()
extends vtkCylinder to add ParaView specific API.
Definition: vtkPVCylinder.h:28
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)