VMTK
Loading...
Searching...
No Matches
vtkvmtkCellDimensionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16 Note: this class was contributed by
17 Tangui Morvan
18 Kalkulo AS
19 Simula Research Laboratory
20=========================================================================*/
33
34#ifndef __vtkvmtkCellDimensionFilter_h
35#define __vtkvmtkCellDimensionFilter_h
36
37#include "vtkUnstructuredGridAlgorithm.h"
38#include "vtkvmtkWin32Header.h"
39
40class vtkUnstructuredGrid;
41class vtkThreshold;
42
43
44class VTK_VMTK_CONTRIB_EXPORT vtkvmtkCellDimensionFilter : public vtkUnstructuredGridAlgorithm
45{
46 public:
47 vtkTypeMacro(vtkvmtkCellDimensionFilter,vtkUnstructuredGridAlgorithm);
48 void PrintSelf(std::ostream& os, vtkIndent indent) override;
49
51
55 void ThresholdByLower(int lower);
56
60 void ThresholdByUpper(int upper);
61
66 void ThresholdBetween(int lower, int upper);
67
69
72 virtual int GetUpperThreshold();
73 virtual int GetLowerThreshold();
75
76 protected:
79
80 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
81
82 virtual int FillInputPortInformation(int port, vtkInformation *info) override;
83
84 vtkThreshold *Threshold;
85
86 private:
88 void operator=(const vtkvmtkCellDimensionFilter&); // Not implemented.
89};
90
91#endif
void ThresholdBetween(int lower, int upper)
virtual int FillInputPortInformation(int port, vtkInformation *info) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
static vtkvmtkCellDimensionFilter * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override