vtkPVMetaSliceDataSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPVMetaSliceDataSet_h
11 #define vtkPVMetaSliceDataSet_h
12 
14 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
15 #include "vtkParaViewDeprecation.h" // for PARAVIEW_DEPRECATED_IN_5_12_0
16 #include "vtkSmartPointer.h"
17 
19 class vtkInformation;
22 
25 {
26 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30  static vtkPVMetaSliceDataSet* New();
31 
32  static const unsigned METASLICE_DATASET = 0;
33  static const unsigned METASLICE_HYPERTREEGRID = 1;
34 
38  void PreserveInputCells(int keepCellAsIs);
39 
43  vtkAlgorithm* SetActiveFilter(int index) override;
44 
45  void SetImplicitFunction(vtkImplicitFunction* func);
46 
50  void SetDataSetCutFunction(vtkImplicitFunction* func);
51 
55  void SetHyperTreeGridCutFunction(vtkImplicitFunction* func);
56 
57  // Only available for cut -------------
58 
62  void SetCutFunction(vtkImplicitFunction* func) { this->SetImplicitFunction(func); };
63 
67  void SetNumberOfContours(int nbContours);
68 
72  void SetValue(int index, double value);
73 
77  void SetGenerateTriangles(int status);
78 
87  "Use `vtkPVMetaSliceDataSet::SetLocator(vtkIncrementalPointLocator*)` instead")
88  void SetMergePoints(bool status);
89 
93  void SetDual(bool dual);
94 
96 
98 
101  void SetLocator(vtkIncrementalPointLocator* locator);
102  vtkIncrementalPointLocator* GetLocator();
104 
105 protected:
107  ~vtkPVMetaSliceDataSet() override;
108 
109  vtkImplicitFunction* ImplicitFunctions[2];
110 
111 private:
113  void operator=(const vtkPVMetaSliceDataSet&) = delete;
114 
115  class vtkInternals;
116  vtkInternals* Internal;
118 };
119 
120 #endif
void SetValue(vtkIdType valueIdx, ValueType value)
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
Meta class for slice filter that will allow the user to switch between a regular cutter filter or an ...
static vtkPVDataSetAlgorithmSelectorFilter * New()
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector)
is a generic vtkAlgorithm that allow the user to register several vtkAlgorithm to it and be able to s...
virtual vtkAlgorithm * SetActiveFilter(int index)
Set the active filter based on the given index of the filters registration queue. ...
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
value
index
void SetCutFunction(vtkImplicitFunction *func)
Expose method from vtkPVCutter.