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 
31 #include <memory> // For std::unique_ptr
32 
34 
35 namespace tovtkm {
36 
38 
39 } // namespace tovtkm
40 
41 class VTKACCELERATORSVTKM_EXPORT vtkmClip : public vtkUnstructuredGridAlgorithm
42 {
43 public:
44  static vtkmClip* New();
46  void PrintSelf(ostream &os, vtkIndent indent) override;
47 
52  vtkGetMacro(ClipValue, double)
53  vtkSetMacro(ClipValue, double)
54 
55 
59  vtkGetMacro(ComputeScalars, bool)
60  vtkSetMacro(ComputeScalars, bool)
61 
62 
67  void SetClipFunction(vtkImplicitFunction *);
68  vtkGetObjectMacro(ClipFunction, vtkImplicitFunction);
69 
70  vtkMTimeType GetMTime() override;
71 
72 protected:
73  vtkmClip();
74  ~vtkmClip();
75 
77  vtkInformationVector*) override;
78 
80 
81  double ClipValue;
83 
85  std::unique_ptr<tovtkm::ImplicitFunctionConverter> ClipFunctionConverter;
86 
87 private:
88  vtkmClip(const vtkmClip&) = delete;
89  void operator=(const vtkmClip&) = delete;
90 };
91 
92 #endif // vtkmClip_h
93 // VTK-HeaderTest-Exclude: vtkmClip.h
vtkmClip::ComputeScalars
bool ComputeScalars
Definition: vtkmClip.h:82
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkmClip::ClipFunctionConverter
std::unique_ptr< tovtkm::ImplicitFunctionConverter > ClipFunctionConverter
Definition: vtkmClip.h:85
vtkX3D::port
Definition: vtkX3D.h:447
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkmClip::ClipValue
double ClipValue
Definition: vtkmClip.h:81
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkmClip
Clip a dataset using the accelerated vtk-m Clip filter.
Definition: vtkmClip.h:41
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
tovtkm::ImplicitFunctionConverter
Definition: ImplicitFunctionConverter.h:30
vtkmClip::ClipFunction
vtkImplicitFunction * ClipFunction
Definition: vtkmClip.h:84
tovtkm
Definition: vtkmClip.h:35
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302