VTK
vtkmClip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkmClip.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
20 #ifndef vtkmClip_h
21 #define vtkmClip_h
22 
23 #include "vtkAcceleratorsVTKmModule.h" // For export macro
25 #include "vtkmlib/ImplicitFunctionConverter.h" // For ImplicitFunctionConverter
26 
27 #include <memory> // For std::shared_ptr
28 
30 
31 class VTKACCELERATORSVTKM_EXPORT vtkmClip : public vtkUnstructuredGridAlgorithm
32 {
33 public:
34  static vtkmClip* New();
36  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
37 
42  vtkGetMacro(ClipValue, double)
43  vtkSetMacro(ClipValue, double)
44 
45 
49  vtkGetMacro(ComputeScalars, bool)
50  vtkSetMacro(ComputeScalars, bool)
51 
52 
57  void SetClipFunction(vtkImplicitFunction *);
58  vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
59 
60  vtkMTimeType GetMTime() VTK_OVERRIDE;
61 
62 protected:
63  vtkmClip();
64  ~vtkmClip();
65 
66  int RequestData(vtkInformation*, vtkInformationVector**,
67  vtkInformationVector*) VTK_OVERRIDE;
68 
69  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
70 
71  double ClipValue;
72  bool ComputeScalars;
73 
74  vtkImplicitFunction *ClipFunction;
75  tovtkm::ImplicitFunctionConverter ClipFunctionConverter;
76 
77 private:
78  vtkmClip(const vtkmClip&) VTK_DELETE_FUNCTION;
79  void operator=(const vtkmClip&) VTK_DELETE_FUNCTION;
80 };
81 
82 #endif // vtkmClip_h
83 // VTK-HeaderTest-Exclude: vtkmClip.h
abstract interface for implicit functions
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkUnstructuredGridAlgorithm * New()
Clip a dataset using the accelerated vtk-m Clip filter.
Definition: vtkmClip.h:31
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.