Viskores  1.0
CylindricalCoordinateTransform.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 
19 #ifndef viskores_filter_field_transform_CylindricalCoordinateTransform_h
20 #define viskores_filter_field_transform_CylindricalCoordinateTransform_h
21 
22 #include <viskores/filter/Filter.h>
24 
25 namespace viskores
26 {
27 namespace filter
28 {
29 namespace field_transform
30 {
31 
40 class VISKORES_FILTER_FIELD_TRANSFORM_EXPORT CylindricalCoordinateTransform
42 {
43 public:
45 
47  VISKORES_CONT void SetCartesianToCylindrical() { CartesianToCylindrical = true; }
49  VISKORES_CONT void SetCylindricalToCartesian() { CartesianToCylindrical = false; }
50 
51 private:
52  VISKORES_CONT viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& input) override;
53 
54  bool CartesianToCylindrical = true;
55 };
56 } // namespace field_transform
57 } // namespace filter
58 } // namespace viskores
59 
60 #endif //viskores_filter_field_transform_CylindricalCoordinateTransform_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::field_transform::CylindricalCoordinateTransform::SetCartesianToCylindrical
void SetCartesianToCylindrical()
Establish a transformation from Cartesian to cylindrical coordinates.
Definition: CylindricalCoordinateTransform.h:47
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
viskores::filter::field_transform::CylindricalCoordinateTransform
Transform coordinates between Cartesian and cylindrical.
Definition: CylindricalCoordinateTransform.h:40
viskores::filter::field_transform::CylindricalCoordinateTransform::SetCylindricalToCartesian
void SetCylindricalToCartesian()
Establish a transformation from cylindrical to Cartesian coordiantes.
Definition: CylindricalCoordinateTransform.h:49
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores_filter_field_transform_export.h
Filter.h