Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Pages
src
Commander.h
1
#ifndef _COMMANDER_H_
2
#define _COMMANDER_H_
3
4
#include "Scene.h"
5
#include "Mesh.h"
6
#include "SceneNode.h"
7
#include <unordered_map>
8
#include <string>
9
10
using namespace
std;
11
15
class
Commander
16
{
17
public
:
21
Commander
(
Scene
* scene);
22
~
Commander
();
23
28
Mesh
* loadModel(
const
string
& fileName);
33
SceneNode
* addInstanceToScene(
Mesh
* mesh);
34
38
void
saveScene(
const
string
& fileName);
39
43
void
loadScene(
const
string
& fileName);
44
48
const
string
& getMeshName(
Mesh
* mesh);
49
50
private
:
51
Scene
* _scene;
52
unordered_map<string, Mesh*> _meshes;
53
unordered_map<Mesh*, string> _meshNames;
54
55
static
const
string
EMPTY_STRING;
56
};
57
58
#endif
Generated on Mon Jun 10 2013 17:20:10 for Cutout Vis2012 by
1.8.4