VTK
9.2.6
Accelerators
Vtkm
Filters
vtkmCoordinateSystemTransform.h
Go to the documentation of this file.
1
//=============================================================================
2
//
3
// Copyright (c) Kitware, Inc.
4
// All rights reserved.
5
// See LICENSE.txt for details.
6
//
7
// This software is distributed WITHOUT ANY WARRANTY; without even
8
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9
// PURPOSE. See the above copyright notice for more information.
10
//
11
// Copyright 2012 Sandia Corporation.
12
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13
// the U.S. Government retains certain rights in this software.
14
//
15
//=============================================================================
24
25
#ifndef vtkmCoordinateSystemTransform_h
26
#define vtkmCoordinateSystemTransform_h
27
28
#include "vtkAcceleratorsVTKmFiltersModule.h"
// required for correct export
29
#include "
vtkPointSetAlgorithm.h
"
30
31
class
VTKACCELERATORSVTKMFILTERS_EXPORT
vtkmCoordinateSystemTransform
:
public
vtkPointSetAlgorithm
32
{
33
enum struct
TransformTypes
34
{
35
None,
36
CarToCyl,
37
CylToCar,
38
CarToSph,
39
SphToCar
40
};
41
42
public
:
43
vtkTypeMacro(
vtkmCoordinateSystemTransform
,
vtkPointSetAlgorithm
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
45
46
static
vtkmCoordinateSystemTransform
*
New
();
47
48
void
SetCartesianToCylindrical
();
49
void
SetCylindricalToCartesian
();
50
51
void
SetCartesianToSpherical
();
52
void
SetSphericalToCartesian
();
53
54
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
55
56
protected
:
57
vtkmCoordinateSystemTransform
();
58
~vtkmCoordinateSystemTransform
()
override
;
59
60
int
RequestDataObject
(
vtkInformation
* request,
vtkInformationVector
** inputVector,
61
vtkInformationVector
* outputVector)
override
;
62
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
63
64
private
:
65
vtkmCoordinateSystemTransform
(
const
vtkmCoordinateSystemTransform
&) =
delete
;
66
void
operator=(
const
vtkmCoordinateSystemTransform
&) =
delete
;
67
68
TransformTypes TransformType;
69
};
70
71
#endif
// vtkmCoordinateSystemTransform_h
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkPointSetAlgorithm::vtkPointSetAlgorithm
vtkPointSetAlgorithm()
vtkmCoordinateSystemTransform::~vtkmCoordinateSystemTransform
~vtkmCoordinateSystemTransform() override
vtkmCoordinateSystemTransform::SetCartesianToCylindrical
void SetCartesianToCylindrical()
vtkmCoordinateSystemTransform::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkmCoordinateSystemTransform::SetSphericalToCartesian
void SetSphericalToCartesian()
vtkmCoordinateSystemTransform::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkmCoordinateSystemTransform::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkmCoordinateSystemTransform::New
static vtkmCoordinateSystemTransform * New()
vtkmCoordinateSystemTransform::vtkmCoordinateSystemTransform
vtkmCoordinateSystemTransform()
vtkmCoordinateSystemTransform::SetCylindricalToCartesian
void SetCylindricalToCartesian()
vtkmCoordinateSystemTransform::SetCartesianToSpherical
void SetCartesianToSpherical()
vtkmCoordinateSystemTransform::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPointSetAlgorithm.h
Generated on Thu Feb 13 2025 00:00:00 for VTK by
1.13.2