10 #ifndef ATILACALCULATORSOFTWARE_BINARY_DATA_WRAPPER_H 11 #define ATILACALCULATORSOFTWARE_BINARY_DATA_WRAPPER_H 17 #include <QStringList> 21 #include <vtkCellArray.h> 22 #include <vtkFloatArray.h> 23 #include <vtkHexahedron.h> 25 #include <vtkPointData.h> 26 #include <vtkPoints.h> 27 #include <vtkPolygon.h> 28 #include <vtkPolyhedron.h> 29 #include <vtkPyramid.h> 31 #include <vtkQuadraticPyramid.h> 32 #include <vtkQuadraticTriangle.h> 33 #include <vtkSmartPointer.h> 34 #include <vtkUnstructuredGrid.h> 95 vtkSmartPointer<vtkFloatArray>
getScalars()
const;
134 static vtkSmartPointer<vtkCell>
getPolygonVTKCell(
const std::string& meshElement,
135 const unsigned int& dimCount);
168 #endif // ATILACALCULATORSOFTWARE_BINARY_DATA_WRAPPER_H void hideElement(const std::string &element)
Prevent an element from being plot.
Definition: binary_data_wrapper.cpp:28
void toggleElement(const std::string &element)
Set hidden element to non hidden and non hidden element to shown.
Definition: binary_data_wrapper.cpp:36
QStringList getInformationList() const
Definition: binary_data_wrapper.cpp:64
vtkSmartPointer< vtkFloatArray > getScalars() const
Definition: binary_data_wrapper.cpp:54
std::set< std::string > elements
All elements loaded by the mesh.
Definition: binary_data_wrapper.h:155
~BinaryDataWrapper()
Empty but needed for unstructuredGrid destruction.
Representation of a mesh, all of its nodes and elements.
Definition: mesh.h:99
vtkSmartPointer< vtkFloatArray > scalars
Observed values.
Definition: binary_data_wrapper.h:150
Wrapper around the BinaryData class that allows to interact with VTK.
Definition: binary_data_wrapper.h:40
void reload()
Re-read points, use to update hidden/shown elements.
Definition: binary_data_wrapper.cpp:98
void showElement(const std::string &element)
Set a hidden element to non hidden.
Definition: binary_data_wrapper.cpp:32
BinaryDataWrapper(const std::string &file)
Definition: binary_data_wrapper.cpp:16
Representation of all the results and their components read from a res file.
Definition: result.h:28
std::set< std::string > getHiddenElements() const
Definition: binary_data_wrapper.cpp:58
std::set< std::string > hiddenElements
GiD elements of the mesh that won't be shown.
Definition: binary_data_wrapper.h:160
std::set< std::string > getElements() const
Definition: binary_data_wrapper.cpp:56
vtkSmartPointer< vtkPoints > points
Mesh nodes as vtkPoints object.
Definition: binary_data_wrapper.h:145
void showAllElements()
Set all elements to non hidden.
Definition: binary_data_wrapper.cpp:44
QStringList informationList
Information about the current results.
Definition: binary_data_wrapper.h:165
vtkSmartPointer< vtkUnstructuredGrid > unstructuredGrid
DataSet of all the points converted from GiD representation.
Definition: binary_data_wrapper.h:140
void loadMeshInformation(Mesh &mesh)
Read information from the mesh and write it to the informationList.
Definition: binary_data_wrapper.cpp:108
void loadResult(Result &result, const int &component)
Load the given component of the given result, set inner values.
Definition: binary_data_wrapper.cpp:70
static vtkSmartPointer< vtkCell > getPolygonVTKCell(const std::string &meshElement, const unsigned int &dimCount)
Find and return the good polygon fitting the mesh elements and dimensions.
Definition: binary_data_wrapper.cpp:170
void convertFromGiD()
Read points from BinaryData values loaded with GiD (meshes)
Definition: binary_data_wrapper.cpp:119
vtkSmartPointer< vtkUnstructuredGrid > getUnstructuredGrid() const
Definition: binary_data_wrapper.cpp:50
Load the resources file and allow to read meshes and results from it.
Definition: binary_data.h:31
gzFile file
Opened res gzFile.
Definition: binary_data.h:80
bool isElementHidden(const std::string &element) const
Definition: binary_data_wrapper.cpp:60