VTK  9.4.20250102
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
20#include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
21
22#include <memory> // For std::unique_ptr
23
24VTK_ABI_NAMESPACE_BEGIN
26
27class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmClip : public vtkTableBasedClipDataSet
28{
29public:
30 static vtkmClip* New();
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
38 vtkGetMacro(ComputeScalars, bool);
39 vtkSetMacro(ComputeScalars, bool);
40 vtkBooleanMacro(ComputeScalars, bool);
41
43
49 vtkGetMacro(ForceVTKm, vtkTypeBool);
50 vtkSetMacro(ForceVTKm, vtkTypeBool);
51 vtkBooleanMacro(ForceVTKm, vtkTypeBool);
53
54protected:
56 ~vtkmClip() override;
57
59
60 vtkTypeBool ForceVTKm = false;
61 bool ComputeScalars = true;
62
63 struct internals;
64
65private:
66 vtkmClip(const vtkmClip&) = delete;
67 void operator=(const vtkmClip&) = delete;
68 vtkmInitializer Initializer;
69};
70
71VTK_ABI_NAMESPACE_END
72#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 vtk-m Clip filter.
Definition vtkmClip.h:28
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.
int vtkTypeBool
Definition vtkABI.h:64