vtkPVMetaSliceDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPVMetaSliceDataSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkPVMetaSliceDataSet_h
22 #define vtkPVMetaSliceDataSet_h
23 
25 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
26 
27 #include <iostream>
28 
30 class vtkInformation;
32 
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40  static vtkPVMetaSliceDataSet* New();
41 
42  static const unsigned METASLICE_DATASET = 0;
43  static const unsigned METASLICE_HYPERTREEGRID = 1;
44 
48  void PreserveInputCells(int keepCellAsIs);
49 
53  vtkAlgorithm* SetActiveFilter(int index) override;
54 
55  void SetImplicitFunction(vtkImplicitFunction* func);
56 
60  void SetDataSetCutFunction(vtkImplicitFunction* func);
61 
65  void SetHyperTreeGridCutFunction(vtkImplicitFunction* func);
66 
67  // Only available for cut -------------
68 
72  void SetCutFunction(vtkImplicitFunction* func) { this->SetImplicitFunction(func); };
73 
77  void SetNumberOfContours(int nbContours);
78 
82  void SetValue(int index, double value);
83 
87  void SetGenerateTriangles(int status);
88 
92  void SetMergePoints(bool status);
93 
97  void SetDual(bool dual);
98 
99  virtual int RequestDataObject(
101 
102 protected:
104  ~vtkPVMetaSliceDataSet() override;
105 
106  bool AxisCut;
107 
108  vtkImplicitFunction* ImplicitFunctions[2];
109 
110 private:
112  void operator=(const vtkPVMetaSliceDataSet&) = delete;
113 
114  class vtkInternals;
115  vtkInternals* Internal;
116 };
117 
118 #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.