VTK  9.5.20251009
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
28VTK_ABI_NAMESPACE_BEGIN
30
31class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmClip : public vtkTableBasedClipDataSet
32{
33public:
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
49protected:
51 ~vtkmClip() override;
52
54
55 bool ComputeScalars = true;
56
57 struct internals;
58
59private:
60 vtkmClip(const vtkmClip&) = delete;
61 void operator=(const vtkmClip&) = delete;
62 vtkmInitializer Initializer;
63};
64
65VTK_ABI_NAMESPACE_END
66#endif // vtkmClip_h
abstract interface for implicit functions
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Clip any dataset with a user-specified implicit function or an input scalar point data array.
Clip a dataset using the accelerated viskores Clip filter.
Definition vtkmClip.h:32
static vtkmClip * New()
~vtkmClip() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.