vtkPVClipDataSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkPVClipDataSet_h
13 #define vtkPVClipDataSet_h
14 
15 #include "vtkNew.h" // for vtkNew
16 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
18 
19 #include <memory> // for unique_ptr
20 
22 class vtkDataObjectMeshCache;
23 class vtkDataObjectTree;
24 
26 {
27 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
31  static vtkPVClipDataSet* New();
32 
34 
38  vtkSetMacro(UseAMRDualClipForAMR, bool);
39  vtkGetMacro(UseAMRDualClipForAMR, bool);
40  vtkBooleanMacro(UseAMRDualClipForAMR, bool);
42 
44 
47  vtkSetMacro(ExactBoxClip, bool);
48  vtkGetMacro(ExactBoxClip, bool);
49  vtkBooleanMacro(ExactBoxClip, bool);
51 
53 
66  vtkSetMacro(UseMeshCache, bool);
67  vtkGetMacro(UseMeshCache, bool);
68  vtkBooleanMacro(UseMeshCache, bool);
70 
71 protected:
73  ~vtkPVClipDataSet() override;
74 
76 
77  int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
78 
79  int FillInputPortInformation(int, vtkInformation* info) override;
80  int FillOutputPortInformation(int, vtkInformation* info) override;
81 
88  int ClipUsingSuperclass(vtkInformation* request, vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector);
90 
94  int ClipUsingThreshold(vtkInformation* request, vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector);
96 
99 
100 private:
101  vtkPVClipDataSet(const vtkPVClipDataSet&) = delete;
102  void operator=(const vtkPVClipDataSet&) = delete;
103 
104  bool ClipDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
106  void InitializeOutput(vtkDataObjectTree* input, vtkDataObjectTree* output);
107 
108  bool UseMeshCache = true;
109  std::unique_ptr<vtkEdgesCacheInternal> EdgesCache;
111 };
112 
113 #endif
void PrintSelf(ostream &os, vtkIndent indent)
static vtkTableBasedClipDataSet * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Cache edges informations for interpolation purpose.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
void operator=(const vtkObjectBase &)
Clip filter.