VTK  9.5.20251008
vtkmCoordinateSystemTransform.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3// SPDX-FileCopyrightText: Copyright 2012 Sandia Corporation.
4// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
14#ifndef vtkmCoordinateSystemTransform_h
15#define vtkmCoordinateSystemTransform_h
16
17#include "vtkAcceleratorsVTKmFiltersModule.h" // required for correct export
19#include "vtkmAlgorithm.h" // For vtkmAlgorithm
20#include "vtkmlib/vtkmInitializer.h" // Need for initializing viskores
21
22#ifndef __VTK_WRAP__
23#define vtkPointSetAlgorithm vtkmAlgorithm<vtkPointSetAlgorithm>
24#endif
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmCoordinateSystemTransform : public vtkPointSetAlgorithm
28{
29 enum struct TransformTypes
30 {
31 None,
32 CarToCyl,
33 CylToCar,
34 CarToSph,
35 SphToCar
36 };
37
38public:
40#ifndef __VTK_WRAP__
41#undef vtkPointSetAlgorithm
42#endif
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
48
51
52 int FillInputPortInformation(int port, vtkInformation* info) override;
53
54protected:
57
59 vtkInformationVector* outputVector) override;
61
62private:
64 void operator=(const vtkmCoordinateSystemTransform&) = delete;
65
66 TransformTypes TransformType;
67 vtkmInitializer Initializer;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif // vtkmCoordinateSystemTransform_h
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
transform a coordinate system between Cartesian&Cylindrical and Cartesian&Spherical
~vtkmCoordinateSystemTransform() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkmCoordinateSystemTransform * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
@ None
!< For HCURL