Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
plyFileInterface.h
Go to the documentation of this file.
1
// C++ wrapper for PLY polygonal file interface
2
// Petri Fast, 2001
3
//
4
5
#include <string.h>
6
// AP #include "Overture.h"
7
#include "
OvertureTypes.h
"
8
#include "A++.h"
9
#include "aString.H"
10
11
enum
PlyFileReadWriteFlag
{
READ_PLY_FILE
,
WRITE_PLY_FILE
};
12
enum
PlyFileType
{
ASCII_PLY_FILE
=1,
13
BE_BINARY_PLY_FILE
=2,
// big-endian
14
LE_BINARY_PLY_FILE
=3};
// little-endian
15
16
// forward definitions
17
struct
PlyFile
;
18
struct
PlyProperty
;
19
20
class
PlyFileInterface
21
{
22
public
:
23
PlyFileInterface
();
24
~PlyFileInterface
();
25
26
int
openFile
(
const
aString
&fname,
27
PlyFileReadWriteFlag
readWrite=
READ_PLY_FILE
);
28
void
closeFile
();
29
30
void
readFile
(intArray &elems, intArray &tags,
realArray
&xyz,
31
int
&nnode00,
int
&nelem00,
int
&ddim00,
int
&rdim00);
32
33
void
writeFile
();
// - " -
34
35
PlyFile
*
ply
;
36
PlyFileType
fileType
;
37
38
int
rdim
;
39
int
ddim
;
40
int
nnode
,
nelem
;
41
int
nemax
;
42
43
private
:
44
int
nelems;
45
char
**elist;
46
float
version;
47
48
49
PlyProperty
**plist;
50
int
nprops;
51
int
num_elems;
52
53
int
num_comments;
54
char
**comments;
55
int
num_obj_info;
56
char
**obj_info;
57
58
//char *elem_name;
59
};
60
Generated on Fri Jan 4 2013 10:17:58 for Overture by
1.8.3