VTK
vtkCellSizeFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellSizeFilter.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 =========================================================================*/
34 #ifndef vtkCellSizeFilter_h
35 #define vtkCellSizeFilter_h
36 
37 #include "vtkFiltersVerdictModule.h" // For export macro
39 
40 class vtkDataSet;
41 class vtkIdList;
42 class vtkImageData;
43 class vtkPointSet;
44 
45 class VTKFILTERSVERDICT_EXPORT vtkCellSizeFilter : public vtkPassInputTypeAlgorithm
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50  static vtkCellSizeFilter* New();
51 
53 
57  vtkSetMacro(ComputePoint, bool);
58  vtkGetMacro(ComputePoint, bool);
59  vtkBooleanMacro(ComputePoint, bool);
61 
63 
67  vtkSetMacro(ComputeLength, bool);
68  vtkGetMacro(ComputeLength, bool);
69  vtkBooleanMacro(ComputeLength, bool);
71 
73 
77  vtkSetMacro(ComputeArea, bool);
78  vtkGetMacro(ComputeArea, bool);
79  vtkBooleanMacro(ComputeArea, bool);
81 
83 
87  vtkSetMacro(ComputeVolume, bool);
88  vtkGetMacro(ComputeVolume, bool);
89  vtkBooleanMacro(ComputeVolume, bool);
91 
93 
96  vtkSetStringMacro(ArrayName);
97  vtkGetStringMacro(ArrayName);
99 
100 protected:
103 
104  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) VTK_OVERRIDE;
106 
107  void IntegrateImageData(vtkImageData* input, vtkImageData* output);
108 
109  double IntegratePolyLine(vtkDataSet* input, vtkIdList* cellPtIds);
110  double IntegratePolygon(vtkPointSet* input, vtkIdList* cellPtIds);
111  double IntegrateTriangleStrip(vtkPointSet* input, vtkIdList* cellPtIds);
112  double IntegratePixel(vtkDataSet* input, vtkIdList* cellPtIds);
113  double IntegrateVoxel(vtkDataSet* input, vtkIdList* cellPtIds);
114  double IntegrateGeneral1DCell(vtkDataSet* input, vtkIdList* cellPtIds);
115  double IntegrateGeneral2DCell(vtkPointSet* input, vtkIdList* cellPtIds);
116  double IntegrateGeneral3DCell(vtkPointSet* input, vtkIdList* cellPtIds);
117 
118 private:
119  vtkCellSizeFilter(const vtkCellSizeFilter&) VTK_DELETE_FUNCTION;
120  void operator=(const vtkCellSizeFilter&) VTK_DELETE_FUNCTION;
121 
122  void ExecuteBlock(vtkDataSet* input, vtkDataSet* output);
123 
124  bool ComputePoint;
125  bool ComputeLength;
126  bool ComputeArea;
127  bool ComputeVolume;
128 
129  char* ArrayName;
130 };
131 
132 #endif
Computes cell sizes.
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
list of point or cell ids
Definition: vtkIdList.h:36
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()