Wrapper around the BinaryData class that allows to interact with VTK.
More...
#include <binary_data_wrapper.h>
|
static vtkSmartPointer< vtkCell > | getPolygonVTKCell (const std::string &meshElement, const unsigned int &dimCount) |
| Find and return the good polygon fitting the mesh elements and dimensions. More...
|
|
Wrapper around the BinaryData class that allows to interact with VTK.
◆ BinaryDataWrapper()
BinaryDataWrapper::BinaryDataWrapper |
( |
const std::string & |
file | ) |
|
|
explicit |
- Parameters
-
file | Path to the res gzFile |
◆ ~BinaryDataWrapper()
BinaryDataWrapper::~BinaryDataWrapper |
( |
| ) |
|
|
default |
Empty but needed for unstructuredGrid destruction.
◆ convertFromGiD()
void BinaryDataWrapper::convertFromGiD |
( |
| ) |
|
|
private |
Read points from BinaryData values loaded with GiD (meshes)
◆ getElements()
std::set< std::string > BinaryDataWrapper::getElements |
( |
| ) |
const |
- Returns
- A set of the loaded elements
◆ getHiddenElements()
std::set< std::string > BinaryDataWrapper::getHiddenElements |
( |
| ) |
const |
- Returns
- A set of all the hidden elements
◆ getInformationList()
QStringList BinaryDataWrapper::getInformationList |
( |
| ) |
const |
- Returns
- Information about the current results as a QT usable object
◆ getPolygonVTKCell()
vtkSmartPointer< vtkCell > BinaryDataWrapper::getPolygonVTKCell |
( |
const std::string & |
meshElement, |
|
|
const unsigned int & |
dimCount |
|
) |
| |
|
staticprivate |
Find and return the good polygon fitting the mesh elements and dimensions.
- Parameters
-
meshElement | Element of the mesh |
dimCount | Number of dimensions of the count |
- Returns
- The well fitting polygon as a VTKCell object
◆ getScalars()
vtkSmartPointer< vtkFloatArray > BinaryDataWrapper::getScalars |
( |
| ) |
const |
- Returns
- Observed values of the loaded result
◆ getUnstructuredGrid()
vtkSmartPointer< vtkUnstructuredGrid > BinaryDataWrapper::getUnstructuredGrid |
( |
| ) |
const |
- Returns
- The DataSet of points of the loaded and converted GiD resource file
◆ hideElement()
void BinaryDataWrapper::hideElement |
( |
const std::string & |
element | ) |
|
Prevent an element from being plot.
- Parameters
-
element | Element to prevent from plotting |
◆ isElementHidden()
bool BinaryDataWrapper::isElementHidden |
( |
const std::string & |
element | ) |
const |
- Returns
- True if the given element is set on hidden
◆ loadMeshInformation()
void BinaryDataWrapper::loadMeshInformation |
( |
Mesh & |
mesh | ) |
|
|
private |
Read information from the mesh and write it to the informationList.
◆ loadResult()
void BinaryDataWrapper::loadResult |
( |
Result & |
result, |
|
|
const int & |
component |
|
) |
| |
Load the given component of the given result, set inner values.
- Parameters
-
result | Result to load |
component | Component to load |
◆ reload()
void BinaryDataWrapper::reload |
( |
| ) |
|
Re-read points, use to update hidden/shown elements.
◆ showAllElements()
void BinaryDataWrapper::showAllElements |
( |
| ) |
|
Set all elements to non hidden.
◆ showElement()
void BinaryDataWrapper::showElement |
( |
const std::string & |
element | ) |
|
Set a hidden element to non hidden.
- Parameters
-
◆ toggleElement()
void BinaryDataWrapper::toggleElement |
( |
const std::string & |
element | ) |
|
Set hidden element to non hidden and non hidden element to shown.
- Parameters
-
◆ elements
std::set<std::string> BinaryDataWrapper::elements |
|
private |
All elements loaded by the mesh.
◆ hiddenElements
std::set<std::string> BinaryDataWrapper::hiddenElements |
|
private |
GiD elements of the mesh that won't be shown.
◆ informationList
QStringList BinaryDataWrapper::informationList |
|
private |
Information about the current results.
◆ points
vtkSmartPointer<vtkPoints> BinaryDataWrapper::points |
|
private |
Mesh nodes as vtkPoints object.
◆ scalars
vtkSmartPointer<vtkFloatArray> BinaryDataWrapper::scalars |
|
private |
◆ unstructuredGrid
vtkSmartPointer<vtkUnstructuredGrid> BinaryDataWrapper::unstructuredGrid |
|
private |
DataSet of all the points converted from GiD representation.
The documentation for this class was generated from the following files: