ParaView
vtkPVBox.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 vtkPVBox_h
23 #define vtkPVBox_h
24 
25 #include "vtkBox.h"
26 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
27 
28 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVBox : public vtkBox
29 {
30 public:
31  static vtkPVBox* New();
32  vtkTypeMacro(vtkPVBox, vtkBox);
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
36 
39  void SetPosition(double x, double y, double z)
40  {
41  double pos[3] = { x, y, z };
42  this->SetPosition(pos);
43  }
44  void SetPosition(const double pos[3]);
45  vtkGetVector3Macro(Position, double);
47 
49 
52  void SetRotation(double x, double y, double z)
53  {
54  double pos[3] = { x, y, z };
55  this->SetRotation(pos);
56  }
57  void SetRotation(const double pos[3]);
58  vtkGetVector3Macro(Rotation, double);
60 
62 
65  void SetScale(double x, double y, double z)
66  {
67  double pos[3] = { x, y, z };
68  this->SetScale(pos);
69  }
70  void SetScale(const double pos[3]);
71  vtkGetVector3Macro(Scale, double);
73 
74 protected:
75  vtkPVBox();
76  ~vtkPVBox();
77  void UpdateTransform();
78 
79  double Position[3];
80  double Rotation[3];
81  double Scale[3];
82 
83 private:
84  vtkPVBox(const vtkPVBox&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkPVBox&) VTK_DELETE_FUNCTION;
86 };
87 
88 #endif
extends vtkBox to add ParaView specific API.
Definition: vtkPVBox.h:28
void SetRotation(double x, double y, double z)
Get/Set Rotation for the box.
Definition: vtkPVBox.h:52
void SetPosition(double x, double y, double z)
Get/Set Position of the box.
Definition: vtkPVBox.h:39
void SetScale(double x, double y, double z)
Get/Set Scale for the box.
Definition: vtkPVBox.h:65