VTK
vtkSphericalTransform.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSphericalTransform.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 #ifndef vtkSphericalTransform_h
36 #define vtkSphericalTransform_h
37 
38 #include "vtkCommonTransformsModule.h" // For export macro
39 #include "vtkWarpTransform.h"
40 
41 class VTKCOMMONTRANSFORMS_EXPORT vtkSphericalTransform : public vtkWarpTransform
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52 
53 protected:
56 
60  void InternalDeepCopy(vtkAbstractTransform *transform) override;
61 
63 
66  void ForwardTransformPoint(const float in[3], float out[3]) override;
67  void ForwardTransformPoint(const double in[3], double out[3]) override;
69 
70  void ForwardTransformDerivative(const float in[3], float out[3],
71  float derivative[3][3]) override;
72  void ForwardTransformDerivative(const double in[3], double out[3],
73  double derivative[3][3]) override;
74 
75  void InverseTransformPoint(const float in[3], float out[3]) override;
76  void InverseTransformPoint(const double in[3], double out[3]) override;
77 
78  void InverseTransformDerivative(const float in[3], float out[3],
79  float derivative[3][3]) override;
80  void InverseTransformDerivative(const double in[3], double out[3],
81  double derivative[3][3]) override;
82 
83 private:
85  void operator=(const vtkSphericalTransform&) = delete;
86 };
87 
88 #endif
89 
vtkSphericalTransform::InverseTransformDerivative
void InverseTransformDerivative(const float in[3], float out[3], float derivative[3][3]) override
Calculate the inverse transform as well as the derivative of the forward transform (that's correct: t...
vtkSphericalTransform::vtkSphericalTransform
vtkSphericalTransform()
vtkSphericalTransform::ForwardTransformDerivative
void ForwardTransformDerivative(const double in[3], double out[3], double derivative[3][3]) override
vtkSphericalTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:51
vtkSphericalTransform::InverseTransformPoint
void InverseTransformPoint(const float in[3], float out[3]) override
If the InverseFlag is set to 1, then a call to InternalTransformPoint results in a call to InverseTra...
vtkSphericalTransform::InverseTransformPoint
void InverseTransformPoint(const double in[3], double out[3]) override
vtkSphericalTransform
spherical to rectangular coords and back
Definition: vtkSphericalTransform.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSphericalTransform::ForwardTransformDerivative
void ForwardTransformDerivative(const float in[3], float out[3], float derivative[3][3]) override
Calculate the forward transform as well as the derivative.
vtkSphericalTransform::~vtkSphericalTransform
~vtkSphericalTransform() override
vtkWarpTransform.h
vtkSphericalTransform::ForwardTransformPoint
void ForwardTransformPoint(const float in[3], float out[3]) override
Internal functions for calculating the transformation.
vtkSphericalTransform::InternalDeepCopy
void InternalDeepCopy(vtkAbstractTransform *transform) override
Copy this transform from another of the same type.
vtkSphericalTransform::ForwardTransformPoint
void ForwardTransformPoint(const double in[3], double out[3]) override
vtkSphericalTransform::New
static vtkSphericalTransform * New()
vtkSphericalTransform::InverseTransformDerivative
void InverseTransformDerivative(const double in[3], double out[3], double derivative[3][3]) override
vtkSphericalTransform::MakeTransform
vtkAbstractTransform * MakeTransform() override
Make another transform of the same type.
vtkWarpTransform
superclass for nonlinear geometric transformations
Definition: vtkWarpTransform.h:32