-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
vtkmCoordinateSystemTransform.h
66 lines (54 loc) · 2.32 KB
/
vtkmCoordinateSystemTransform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
// Copyright 2012 Sandia Corporation.
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this software.
//
//=============================================================================
/**
* @class vtkmCoordinateSystemTransform
* @brief transform a coordinate system between Cartesian&Cylindrical and
* Cartesian&Spherical
*
* vtkmCoordinateSystemTransform is a filter that transforms a coordinate system
* between Cartesian&Cylindrical and Cartesian&Spherical.
*/
#ifndef vtkmCoordinateSystemTransform_h
#define vtkmCoordinateSystemTransform_h
#include "vtkPointSetAlgorithm.h"
#include "vtkAcceleratorsVTKmModule.h" // required for correct export
class VTKACCELERATORSVTKM_EXPORT vtkmCoordinateSystemTransform : public vtkPointSetAlgorithm
{
enum struct TransformTypes {None, CarToCyl, CylToCar, CarToSph, SphToCar};
public:
vtkTypeMacro(vtkmCoordinateSystemTransform, vtkPointSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
static vtkmCoordinateSystemTransform* New();
void SetCartesianToCylindrical();
void SetCylindricalToCartesian();
void SetCartesianToSpherical();
void SetSphericalToCartesian();
int FillInputPortInformation(int port, vtkInformation* info) override;
protected:
vtkmCoordinateSystemTransform();
~vtkmCoordinateSystemTransform();
int RequestDataObject(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector) override;
int RequestData(vtkInformation* , vtkInformationVector**,
vtkInformationVector*) override;
private:
vtkmCoordinateSystemTransform(const vtkmCoordinateSystemTransform&) = delete;
void operator=(const vtkmCoordinateSystemTransform&) = delete;
TransformTypes TransformType;
};
#endif // vtkmCoordinateSystemTransform_h
// VTK-HeaderTest-Exclude: vtkmCoordinateSystemTransform.h