ParaView
vtkPVPlane.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 =========================================================================*/
24 #ifndef vtkPVPlane_h
25 #define vtkPVPlane_h
26 
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkPlane.h"
29 
30 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVPlane : public vtkPlane
31 {
32 public:
33  static vtkPVPlane* New();
34  vtkTypeMacro(vtkPVPlane, vtkPlane);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
42  vtkSetMacro(Offset, double);
43  vtkGetMacro(Offset, double);
45 
50  virtual void SetTransform(vtkAbstractTransform*);
51  virtual void SetTransform(const double elements[16]) { this->Superclass::SetTransform(elements); }
52 
59  virtual double EvaluateFunction(double x[3]);
60  double EvaluateFunction(double x, double y, double z)
61  {
62  return this->Superclass::EvaluateFunction(x, y, z);
63  }
64 
71  virtual void EvaluateGradient(double x[3], double g[3]);
72 
73 protected:
74  vtkPVPlane();
75  ~vtkPVPlane();
76 
77  double Offset;
78  vtkPlane* Plane;
79 
80 private:
81  vtkPVPlane(const vtkPVPlane&) VTK_DELETE_FUNCTION;
82  void operator=(const vtkPVPlane&) VTK_DELETE_FUNCTION;
83 };
84 
85 #endif
double Offset
Definition: vtkPVPlane.h:77
vtkPlane * Plane
Definition: vtkPVPlane.h:78
extends vtkPlane to add Offset parameter.
Definition: vtkPVPlane.h:30
double EvaluateFunction(double x, double y, double z)
Definition: vtkPVPlane.h:60
virtual void SetTransform(const double elements[16])
Definition: vtkPVPlane.h:51