Viskores  1.0
Contour.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_contour_Contour_h
20 #define viskores_filter_contour_Contour_h
21 
24 
25 namespace viskores
26 {
27 namespace filter
28 {
29 namespace contour
30 {
31 
43 class VISKORES_FILTER_CONTOUR_EXPORT Contour : public viskores::filter::contour::AbstractContour
44 {
45 public:
46  VISKORES_DEPRECATED(2.1, "Use SetComputeFastNormals.")
47  VISKORES_CONT void SetComputeFastNormalsForStructured(bool on)
48  {
49  this->SetComputeFastNormals(on);
50  }
51  VISKORES_DEPRECATED(2.1, "Use GetComputeFastNormals.")
52  VISKORES_CONT bool GetComputeFastNormalsForStructured() const
53  {
54  return this->GetComputeFastNormals();
55  }
56 
57  VISKORES_DEPRECATED(2.1, "Use SetComputeFastNormals.")
58  VISKORES_CONT void SetComputeFastNormalsForUnstructured(bool on)
59  {
60  this->SetComputeFastNormals(on);
61  }
62  VISKORES_DEPRECATED(2.1, "Use GetComputeFastNormals.")
63  VISKORES_CONT bool GetComputeFastNormalsForUnstructured() const
64  {
65  return this->GetComputeFastNormals();
66  }
67 
68 protected:
69  // Needed by the subclass Slice
70  viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& result) override;
71 };
72 } // namespace contour
73 } // namespace filter
74 } // namespace viskores
75 
76 #endif // viskores_filter_contour_Contour_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::contour::AbstractContour
Contour filter interface.
Definition: AbstractContour.h:38
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
VISKORES_DEPRECATED
#define VISKORES_DEPRECATED(...)
Definition: Deprecated.h:156
viskores_filter_contour_export.h
AbstractContour.h
viskores::filter::contour::Contour
Generate contours or isosurfaces from a region of space.
Definition: Contour.h:43