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 "vtkPVVTKExtensionsMiscModule.h" //needed for exports
28 #include "vtkPlane.h"
29 
31 {
32 public:
33  static vtkPVPlane* New();
34  vtkTypeMacro(vtkPVPlane, vtkPlane);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
42  vtkSetMacro(Offset, double);
43  vtkGetMacro(Offset, double);
45 
47 
50  void SetNormal(double x, double y, double z) override;
51  void SetNormal(const double* x) override;
53 
57  vtkSetMacro(AxisAligned, bool);
58  vtkGetMacro(AxisAligned, bool);
59 
64  void SetTransform(vtkAbstractTransform*) override;
65  void SetTransform(const double elements[16]) override
66  {
67  this->Superclass::SetTransform(elements);
68  }
69 
77  void EvaluateFunction(vtkDataArray* input, vtkDataArray* output) override;
78  double EvaluateFunction(double x[3]) override;
79 
86  void EvaluateGradient(double x[3], double g[3]) override;
87 
88 protected:
89  vtkPVPlane();
90  ~vtkPVPlane() override;
91 
92  double Offset;
94 
96 
97 private:
98  vtkPVPlane(const vtkPVPlane&) = delete;
99  void operator=(const vtkPVPlane&) = delete;
100 };
101 
102 #endif
virtual double EvaluateFunction(double x[3])=0
virtual void SetTransform(vtkAbstractTransform *)
virtual void SetNormal(double, double, double)
static vtkPlane * New()
double Offset
Definition: vtkPVPlane.h:92
double EvaluateFunction(double x[3])
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetTransform(const double elements[16]) override
Definition: vtkPVPlane.h:65
vtkPlane * Plane
Definition: vtkPVPlane.h:93
#define VTKPVVTKEXTENSIONSMISC_EXPORT
void EvaluateGradient(double x[3], double g[3])
extends vtkPlane to add Offset parameter.
Definition: vtkPVPlane.h:30
bool AxisAligned
Definition: vtkPVPlane.h:95
void operator=(const vtkObjectBase &)