26 #ifndef MESH_QUALITY_H
27 #define MESH_QUALITY_H
34 #include <QTableWidget>
37 #include <vtkDoubleArray.h>
81 QFrame* informationFrame;
84 QLabel* informationLabel;
87 QTableWidget* qualityInfo;
90 QComboBox* elementsComboBox;
93 QComboBox* qualityMeasureComboBox;
96 QLabel* elementInfoLabel;
102 QString currentMeshName;
105 std::map<unsigned char, std::vector<vtkIdType> > elementsMap;
126 double getQualityColor(
double val,
double minAR,
double maxAR,
double minNR,
double maxNR);
137 void updateTableWidget(vtkSmartPointer<vtkDoubleArray> qualityArray);
139 void updateMeshColor(vtkSmartPointer< vtkDoubleArray > qualityArray);
142 static QStringList trisFuncList;
143 static QStringList quadsFuncList;
144 static QStringList hexasFuncList;
145 static QStringList tetrasFuncList;
148 vtkSmartPointer<vtkDoubleArray> computeTrisQuality(
camitk::MeshComponent* meshComponent,
int qualityTest);
149 vtkSmartPointer<vtkDoubleArray> computeTetrasQuality(
camitk::MeshComponent* meshComponent,
int qualityTest);
150 vtkSmartPointer<vtkDoubleArray> computeHexasQuality(
camitk::MeshComponent* meshComponent,
int qualityTest);
151 vtkSmartPointer<vtkDoubleArray> computeQuadsQuality(
camitk::MeshComponent* meshComponent,
int qualityTest);
Display mesures of mesh quality listed by element types.
Definition: MeshQuality.h:57
void computeMeasure(int i)
method called when the selected item in qualityMeasureComboBox is changed
Definition: MeshQuality.cpp:180
virtual QWidget * getWidget() override
method called when the action when the action is triggered (i.e. started)
Definition: MeshQuality.cpp:71
virtual camitk::Action::ApplyStatus apply() override
method called when the action is applied
Definition: MeshQuality.cpp:112
MeshQuality(camitk::ActionExtension *)
the constructor
Definition: MeshQuality.cpp:56
virtual ~MeshQuality()=default
the destructor
void updateComboBox(int i)
method called when the selected item in elementsComboBox is changed
Definition: MeshQuality.cpp:245
This class describes what is a generic Action extension.
Definition: ActionExtension.h:57
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:209
ApplyStatus
describes what happened during the application of an algorithm (i.e. results of the apply method)
Definition: Action.h:225
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53