VTK
vtkUnstructuredGridQuadricDecimation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridQuadricDecimation.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  Copyright 2007, 2008 by University of Utah.
15 
16 =========================================================================*/
17 
62 #ifndef vtkUnstructuredGridQuadricDecimation_h
63 #define vtkUnstructuredGridQuadricDecimation_h
64 
65 #include "vtkFiltersCoreModule.h" // For export macro
67 
69 {
70 public:
72  void PrintSelf(ostream& os, vtkIndent indent) override;
74 
75  // The following 3 parameters will control the process of simplification in
76  // the priority:
77  // NumberOfEdgesToDecimate, NumberOfTetsOutput, TargetReduction.
78  // If NumberOfEdgesToDecimate is 0, NumberOfTetsOutput will be considered. If
79  // NumbersOfTetsOutput is also 0, then TargetReduction will control the
80  // output.
81 
83 
87  vtkSetMacro(TargetReduction, double);
88  vtkGetMacro(TargetReduction, double);
90 
92 
95  vtkSetMacro(NumberOfTetsOutput, int);
96  vtkGetMacro(NumberOfTetsOutput, int);
98 
100 
103  vtkSetMacro(NumberOfEdgesToDecimate, int);
104  vtkGetMacro(NumberOfEdgesToDecimate, int);
106 
108 
113  vtkSetMacro(NumberOfCandidates, int);
114  vtkGetMacro(NumberOfCandidates, int);
116 
118 
127  vtkSetMacro(AutoAddCandidates, int);
128  vtkGetMacro(AutoAddCandidates, int);
130 
132 
136  vtkSetMacro(AutoAddCandidatesThreshold, double);
137  vtkGetMacro(AutoAddCandidatesThreshold, double);
139 
141 
145  vtkSetMacro(BoundaryWeight, double);
146  vtkGetMacro(BoundaryWeight, double);
148 
150 
153  vtkSetStringMacro(ScalarsName);
154  vtkGetStringMacro(ScalarsName);
156 
157  enum
158  {
159  NO_ERROR=0,
160  NON_TETRAHEDRA=1,
161  NO_SCALARS=2,
162  NO_CELLS=3
163  };
164 
165 protected:
168 
169  void ReportError(int err);
171 
176 
180  char *ScalarsName;
181 
182 private:
184  void operator=(const vtkUnstructuredGridQuadricDecimation&) = delete;
185 
186 };
187 
188 #endif
vtkUnstructuredGridQuadricDecimation::ScalarsName
char * ScalarsName
Definition: vtkUnstructuredGridQuadricDecimation.h:180
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkUnstructuredGridQuadricDecimation::NumberOfCandidates
int NumberOfCandidates
Definition: vtkUnstructuredGridQuadricDecimation.h:174
vtkUnstructuredGridQuadricDecimation::NumberOfEdgesToDecimate
int NumberOfEdgesToDecimate
Definition: vtkUnstructuredGridQuadricDecimation.h:173
vtkUnstructuredGridQuadricDecimation::NumberOfTetsOutput
int NumberOfTetsOutput
Definition: vtkUnstructuredGridQuadricDecimation.h:172
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkUnstructuredGridQuadricDecimation::AutoAddCandidates
int AutoAddCandidates
Definition: vtkUnstructuredGridQuadricDecimation.h:175
vtkUnstructuredGridQuadricDecimation::BoundaryWeight
double BoundaryWeight
Definition: vtkUnstructuredGridQuadricDecimation.h:179
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridQuadricDecimation::AutoAddCandidatesThreshold
double AutoAddCandidatesThreshold
Definition: vtkUnstructuredGridQuadricDecimation.h:178
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGridQuadricDecimation
reduce the number of tetrahedra in a mesh
Definition: vtkUnstructuredGridQuadricDecimation.h:68
vtkUnstructuredGridQuadricDecimation::TargetReduction
double TargetReduction
Definition: vtkUnstructuredGridQuadricDecimation.h:177