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 "vtkSmartPointer.h"
16 
18 class vtkInformation;
21 
24 {
25 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  static vtkPVMetaSliceDataSet* New();
30 
31  static const unsigned METASLICE_DATASET = 0;
32  static const unsigned METASLICE_HYPERTREEGRID = 1;
33 
37  void PreserveInputCells(int keepCellAsIs);
38 
42  vtkAlgorithm* SetActiveFilter(int index) override;
43 
44  void SetImplicitFunction(vtkImplicitFunction* func);
45 
49  void SetDataSetCutFunction(vtkImplicitFunction* func);
50 
54  void SetHyperTreeGridCutFunction(vtkImplicitFunction* func);
55 
56  // Only available for cut -------------
57 
61  void SetCutFunction(vtkImplicitFunction* func) { this->SetImplicitFunction(func); };
62 
66  void SetNumberOfContours(int nbContours);
67 
71  void SetValue(int index, double value);
72 
76  void SetGenerateTriangles(int status);
77 
81  void SetDual(bool dual);
82 
84 
86 
89  void SetLocator(vtkIncrementalPointLocator* locator);
90  vtkIncrementalPointLocator* GetLocator();
92 
93 protected:
95  ~vtkPVMetaSliceDataSet() override;
96 
97  vtkImplicitFunction* ImplicitFunctions[2];
98 
99 private:
101  void operator=(const vtkPVMetaSliceDataSet&) = delete;
102 
103  class vtkInternals;
104  vtkInternals* Internal;
106 };
107 
108 #endif
void SetValue(vtkIdType valueIdx, ValueType value)
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.