My Project
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
i
l
m
n
o
r
s
t
u
v
w
~
+
Variables
_
a
b
c
f
h
i
l
n
o
p
r
s
t
v
x
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
h
i
m
p
r
s
t
u
w
Functions
Variables
Enumerations
Enumerator
Macros
•
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
F:
University
Git
lego
lego
model
loader.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
composite.h
"
15
#include "
exception.h
"
16
23
class
Loader
24
{
25
public
:
29
Loader
();
30
35
Loader
(
char
* filename);
36
40
~Loader
();
41
47
Brick
*
load
(
Composite
* obj);
48
49
private
:
53
void
openFile();
54
58
void
closeFile();
59
64
Vertex
readVertex();
65
70
Face
readFace();
71
76
GVector
readNormal();
77
78
char
* filename;
79
FILE* file;
81
double
maxX, minX;
82
double
maxY, minY;
83
double
maxZ, minZ;
84
};
Composite
Contains loaded bricks.
Definition:
composite.h:23
Vertex
Define vertex consisting 3 double coordinates.
Definition:
vertex.h:24
Face
Define face consisting 3 links to vetices.
Definition:
face.h:25
GVector
Define geometric vector.
Definition:
gvector.h:26
Brick
Brick archetecture.
Definition:
brick.h:25
Loader::load
Brick * load(Composite *obj)
Definition:
loader.cpp:92
composite.h
Composite class.
Loader::Loader
Loader()
Definition:
loader.cpp:5
Loader::~Loader
~Loader()
Definition:
loader.cpp:21
exception.h
Loader
Load model from file.
Definition:
loader.h:23
Generated by
1.8.12