VTK  9.7.1
vtkmClip.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3 // SPDX-FileCopyrightText: Copyright 2012 Sandia Corporation.
4 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
14 #ifndef vtkmClip_h
15 #define vtkmClip_h
16 
17 #include "vtkAcceleratorsVTKmFiltersModule.h" // For export macro
19 #include "vtkmAlgorithm.h" // For vtkmAlgorithm
20 #include "vtkmlib/vtkmInitializer.h" // Need for initializing viskores
21 
22 #include <memory> // For std::unique_ptr
23 
24 #ifndef __VTK_WRAP__
25 #define vtkTableBasedClipDataSet vtkmAlgorithm<vtkTableBasedClipDataSet>
26 #endif
27 
28 VTK_ABI_NAMESPACE_BEGIN
30 
31 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmClip : public vtkTableBasedClipDataSet
32 {
33 public:
34  static vtkmClip* New();
36 #ifndef __VTK_WRAP__
37 #undef vtkTableBasedClipDataSet
38 #endif
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  vtkGetMacro(ComputeScalars, bool);
46  vtkSetMacro(ComputeScalars, bool);
47  vtkBooleanMacro(ComputeScalars, bool);
48 
49 protected:
50  vtkmClip();
51  ~vtkmClip() override;
52 
54 
55  bool ComputeScalars = true;
56 
57  struct internals;
58 
59 private:
60  vtkmClip(const vtkmClip&) = delete;
61  void operator=(const vtkmClip&) = delete;
62  vtkmInitializer Initializer;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif // vtkmClip_h
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
static vtkTableBasedClipDataSet * New()
Create an instance with a user-specified implicit function, turning off IVARs InsideOut and GenerateC...
Clip a dataset using the accelerated viskores Clip filter.
Definition: vtkmClip.h:31
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Clip any dataset with a user-specified implicit function or an input scalar point data array...
Store zero or more vtkInformation instances.