VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkMatrixMathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkObject.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 =========================================================================*/
27 #ifndef __vtkMatrixMathFilter_h
28 #define __vtkMatrixMathFilter_h
29 
30 #include "vtkFiltersVerdictModule.h" // For export macro
31 #include "vtkDataSetAlgorithm.h"
32 
33 class vtkCell;
34 class vtkDataArray;
35 
36 class VTKFILTERSVERDICT_EXPORT vtkMatrixMathFilter : public vtkDataSetAlgorithm
37 {
38  //BTX
39  enum
40  {
41  NONE = 0,
42  DETERMINANT,
43  EIGENVALUE,
44  EIGENVECTOR,
45  INVERSE
46  };
47  enum
48  {
49  POINT_QUALITY = 0,
50  CELL_QUALITY
51  };
52  //ETX
53 
54 public:
55  void PrintSelf (ostream&, vtkIndent);
56  vtkTypeMacro(vtkMatrixMathFilter, vtkDataSetAlgorithm);
57  static vtkMatrixMathFilter* New ();
58 
60 
62  vtkSetMacro(Operation, int)
63  vtkGetMacro(Operation, int)
64  void SetOperationToDeterminant ()
65  {
66  this->SetOperation(DETERMINANT);
67  }
69  {
70  this->SetOperation(EIGENVALUE);
71  }
73  {
74  this->SetOperation(EIGENVECTOR);
75  }
77  {
78  this->SetOperation(INVERSE);
79  }
81 
82 protected:
85 
86  virtual int RequestData
87  (vtkInformation*, vtkInformationVector**, vtkInformationVector*);
88 
89  int Operation;
90 
91 private:
92  vtkMatrixMathFilter(const vtkMatrixMathFilter&); // Not implemented
93  void operator=(const vtkMatrixMathFilter&); // Not implemented
94 };
95 
96 #endif // __vtkMatrixMathFilter_h
Calculate functions of quality of the elements of a mesh.