VTK-m  2.0
SphericalCoordinateTransform.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_filter_field_transform_SphericalCoordinateTransform_h
12 #define vtk_m_filter_field_transform_SphericalCoordinateTransform_h
13 
15 #include <vtkm/filter/field_transform/vtkm_filter_field_transform_export.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace field_transform
22 {
23 
24 class VTKM_FILTER_FIELD_TRANSFORM_EXPORT SphericalCoordinateTransform
26 {
27 public:
29 
30  VTKM_CONT void SetCartesianToSpherical() { CartesianToSpherical = true; }
31  VTKM_CONT void SetSphericalToCartesian() { CartesianToSpherical = false; }
32 
33 private:
34  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
35 
36  bool CartesianToSpherical = true;
37 };
38 } // namespace field_transform
39 } // namespace filter
40 } // namespace vtkm
41 
42 #endif // vtk_m_filter_field_transform_SphericalCoordinateTransform_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::field_transform::SphericalCoordinateTransform::SetCartesianToSpherical
VTKM_CONT void SetCartesianToSpherical()
Definition: SphericalCoordinateTransform.h:30
vtkm::filter::field_transform::SphericalCoordinateTransform::SetSphericalToCartesian
VTKM_CONT void SetSphericalToCartesian()
Definition: SphericalCoordinateTransform.h:31
vtkm::cont::DataSet
Definition: DataSet.h:34
FilterField.h
vtkm::filter::FilterField
Definition: FilterField.h:21
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::field_transform::SphericalCoordinateTransform
Definition: SphericalCoordinateTransform.h:24