VTK
vtkmClip.h
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // Copyright (c) Kitware, Inc.
4 // All rights reserved.
5 // See LICENSE.txt for details.
6 //
7 // This software is distributed WITHOUT ANY WARRANTY; without even
8 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 // PURPOSE. See the above copyright notice for more information.
10 //
11 // Copyright 2012 Sandia Corporation.
12 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13 // the U.S. Government retains certain rights in this software.
14 //
15 //=============================================================================
25 #ifndef vtkmClip_h
26 #define vtkmClip_h
27 
28 #include "vtkAcceleratorsVTKmModule.h" // For export macro
30 #include "vtkmlib/ImplicitFunctionConverter.h" // For ImplicitFunctionConverter
31 
32 #include <memory> // For std::shared_ptr
33 
35 
36 class VTKACCELERATORSVTKM_EXPORT vtkmClip : public vtkUnstructuredGridAlgorithm
37 {
38 public:
39  static vtkmClip* New();
41  void PrintSelf(ostream &os, vtkIndent indent) override;
42 
47  vtkGetMacro(ClipValue, double)
48  vtkSetMacro(ClipValue, double)
49 
50 
54  vtkGetMacro(ComputeScalars, bool)
55  vtkSetMacro(ComputeScalars, bool)
56 
57 
62  void SetClipFunction(vtkImplicitFunction *);
63  vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
64 
65  vtkMTimeType GetMTime() override;
66 
67 protected:
68  vtkmClip();
69  ~vtkmClip();
70 
72  vtkInformationVector*) override;
73 
75 
76  double ClipValue;
78 
81 
82 private:
83  vtkmClip(const vtkmClip&) = delete;
84  void operator=(const vtkmClip&) = delete;
85 };
86 
87 #endif // vtkmClip_h
88 // VTK-HeaderTest-Exclude: vtkmClip.h
abstract interface for implicit functions
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkUnstructuredGridAlgorithm * New()
double ClipValue
Definition: vtkmClip.h:76
tovtkm::ImplicitFunctionConverter ClipFunctionConverter
Definition: vtkmClip.h:80
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Clip a dataset using the accelerated vtk-m Clip filter.
Definition: vtkmClip.h:36
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:39
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.
vtkImplicitFunction * ClipFunction
Definition: vtkmClip.h:79
Store zero or more vtkInformation instances.
bool ComputeScalars
Definition: vtkmClip.h:77