ParaView
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 "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
27 
28 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVCylinder : public vtkCylinder
29 {
30 public:
31  static vtkPVCylinder* New();
32  vtkTypeMacro(vtkPVCylinder, vtkCylinder) void PrintSelf(ostream& os, vtkIndent indent);
33 
35 
38  void SetAxis(double x, double y, double z);
39  void SetAxis(const double axis[3]);
40  vtkGetVector3Macro(Axis, double)
42 
43  // Reimplemented to update transform on change:
44  virtual void SetCenter(double x, double y, double z);
45  virtual void SetCenter(double xyz[3]);
46 
47 protected:
48  vtkPVCylinder();
49  ~vtkPVCylinder();
50 
51  void UpdateTransform();
52 
53  double Axis[3];
54 
55 private:
56  vtkPVCylinder(const vtkPVCylinder&) VTK_DELETE_FUNCTION;
57  void operator=(const vtkPVCylinder&) VTK_DELETE_FUNCTION;
58 };
59 
60 inline void vtkPVCylinder::SetAxis(double x, double y, double z)
61 {
62  double axis[3] = { x, y, z };
63  this->SetAxis(axis);
64 }
65 
66 #endif
void SetAxis(double x, double y, double z)
Get/Set the vector defining the direction of the cylinder.
Definition: vtkPVCylinder.h:60
extends vtkCylinder to add ParaView specific API.
Definition: vtkPVCylinder.h:28