-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOFile.h
More file actions
68 lines (46 loc) · 2.33 KB
/
Copy pathIOFile.h
File metadata and controls
68 lines (46 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*************************************************************************
IOFile - description
-------------------
authors : CAO Alexandre, Laurent Francioli
copyright : Institut universitaire romand de Sante au Travail
University of Geneva (UniGe)
*************************************************************************/
//---------- Class Interface of <IOFile> (fichier IOFile.h) ----------
#if ! defined ( IOFILE_H )
#define IOFILE_H
//-------------------------------------------------------- Used Interfaces
#include <common/meshmodel.h>
#include <common/interfaces.h>
#include <wrap/io_trimesh/io_ply.h>
using std::vector;
//-------------------------------------------------------------- Constants
//------------------------------------------------------------------ Types
//------------------------------------------------------------------------
// Aim of the class <IOFile>
// This class is used to do IO operation with a 3D file.
// Since it uses VCG/Meshlab sources, the available format are the same as
// Meshlab, which is open source.
// It also does IO operation on text files used as map for the hemispherical
// sources.
//
//------------------------------------------------------------------------
class IOFile
{
//----------------------------------------------------------------- PUBLIC
public:
//--------------------------------------------------------- Public Methods
static MeshModel* loadFromFile(const char* fileName, MeshDocument *doc);
static void saveToFile(const char* fileName, MeshModel* mesh, int mask = 0);
static vector<float>* loadIntensityMap(const char* fileName);
static void saveIntensityMap(const char* fileName, vector<float>* intensityMap);
//--------------------------------------------------- Operator Overloading
//---------------------------------------------- Constructors - destructor
IOFile ( );
virtual ~IOFile ( );
//---------------------------------------------------------------- PRIVATE
protected:
//------------------------------------------------------ Protected Methods
//--------------------------------------------------- Protected Attributes
};
//------------------------------ Other Depending Definitions of <IOFile>
#endif // IOFILE_H