VTK-m  2.2
CylindricalCoordinateTransform.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_CylindricalCoordinateTransform_h
12 #define vtk_m_filter_field_transform_CylindricalCoordinateTransform_h
13 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace field_transform
22 {
23 
33  : public vtkm::filter::Filter
34 {
35 public:
37 
39  VTKM_CONT void SetCartesianToCylindrical() { CartesianToCylindrical = true; }
41  VTKM_CONT void SetCylindricalToCartesian() { CartesianToCylindrical = false; }
42 
43 private:
44  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
45 
46  bool CartesianToCylindrical = true;
47 };
48 } // namespace field_transform
49 } // namespace filter
50 } // namespace vtkm
51 
52 #endif //vtk_m_filter_field_transform_CylindricalCoordinateTransform_h
vtkm::filter::field_transform::CylindricalCoordinateTransform::SetCartesianToCylindrical
void SetCartesianToCylindrical()
Establish a transformation from Cartesian to cylindrical coordinates.
Definition: CylindricalCoordinateTransform.h:39
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::field_transform::CylindricalCoordinateTransform::SetCylindricalToCartesian
void SetCylindricalToCartesian()
Establish a transformation from cylindrical to Cartesian coordiantes.
Definition: CylindricalCoordinateTransform.h:41
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm_filter_field_transform_export.h
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::field_transform::CylindricalCoordinateTransform
Transform coordinates between Cartesian and cylindrical.
Definition: CylindricalCoordinateTransform.h:32
VTKM_FILTER_FIELD_TRANSFORM_EXPORT
#define VTKM_FILTER_FIELD_TRANSFORM_EXPORT
Definition: vtkm_filter_field_transform_export.h:44
Filter.h