VTK  9.2.6
vtkCoordinateFrame.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCoordinateFrame.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm 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=========================================================================*/
35
36#ifndef vtkCoordinateFrame_h
37#define vtkCoordinateFrame_h
38
39#include "vtkCommonDataModelModule.h" // For export macro
40#include "vtkImplicitFunction.h"
41
42class vtkPlane;
43class vtkDataArray;
44
45class VTKCOMMONDATAMODEL_EXPORT vtkCoordinateFrame : public vtkImplicitFunction
46{
47public:
49
54 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
63 double EvaluateFunction(double x[3]) override;
65
71 void EvaluateGradient(double x[3], double n[3]) override;
72
74
77 vtkSetVector3Macro(Origin, double);
78 vtkGetVector3Macro(Origin, double);
80
82
85 vtkSetVector3Macro(XAxis, double);
86 vtkGetVector3Macro(XAxis, double);
87 vtkSetVector3Macro(YAxis, double);
88 vtkGetVector3Macro(YAxis, double);
89 vtkSetVector3Macro(ZAxis, double);
90 vtkGetVector3Macro(ZAxis, double);
92
93protected:
94 vtkCoordinateFrame() = default;
95 ~vtkCoordinateFrame() override = default;
96
97 double Origin[3] = { 0, 0, 0 };
98 double XAxis[3] = { 1, 0, 0 };
99 double YAxis[3] = { 0, 1, 0 };
100 double ZAxis[3] = { 0, 0, 1 };
101
102private:
103 vtkCoordinateFrame(const vtkCoordinateFrame&) = delete;
104 void operator=(const vtkCoordinateFrame&) = delete;
105};
106
107#endif
implicit function for a right-handed coordinate system
~vtkCoordinateFrame() override=default
vtkCoordinateFrame()=default
static vtkCoordinateFrame * New()
Standard methods for instantiation, type information, and printing.
double EvaluateFunction(double x[3]) override
Evaluate plane equations.
void EvaluateGradient(double x[3], double n[3]) override
Evaluate coordinate frame gradient.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
Definition vtkIndent.h:34
perform various plane computations
Definition vtkPlane.h:34
#define vtkDataArray