OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MeshExport.h
Go to the documentation of this file.
1#pragma once
2
3#include "OldTreeIcon.h"
4
5#include <string>
6
7class Application;
8class ModelComponent;
9
11{
12public:
13 MeshExport(Application *app) : application(app) {};
15
16 std::string getFileExtensions(void);
17 void getExportFileContent(const std::string &extension, std::string &fileContent, unsigned long long &uncompressedDataLength);
18
19 bool loadMesh(ot::UID currentMeshDataID);
20 void cleanUp(void);
21
22private:
23 void ReadFileContent(const std::string &fileName, std::string &fileContent, unsigned long long &uncompressedDataLength);
24 ot::UID getGmshDataStorageID(ot::UID currentMeshDataID);
25 void loadGmshData(ot::UID gmshDataStorageID, std::vector<char> &meshContent);
26
27 Application *application;
28 std::string tmpDir;
29
30};
Definition Application.h:25
Definition MeshExport.h:11
void getExportFileContent(const std::string &extension, std::string &fileContent, unsigned long long &uncompressedDataLength)
Definition MeshExport.cpp:44
std::string getFileExtensions(void)
Definition MeshExport.cpp:19
bool loadMesh(ot::UID currentMeshDataID)
Definition MeshExport.cpp:95
void cleanUp(void)
Definition MeshExport.cpp:123
~MeshExport()
Definition MeshExport.h:14
MeshExport(Application *app)
Definition MeshExport.h:13
The app namespace contains several functions that may be used to start processes.
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27