OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MaterialManager.h
Go to the documentation of this file.
1#pragma once
2
3#include "Properties.h"
4#include "OldTreeIcon.h"
5
6#include <list>
7#include <string>
8#include <map>
9
10class Application;
11class EntityGeometry;
12class EntityMaterial;
13
15{
16public:
17 MaterialManager(Application *app) : application(app) {};
19
20 void loadNecessaryMaterials(std::list<EntityGeometry *> geometryEntities, Properties &properties);
21 EntityMaterial *getMaterial(const std::string &name);
22
23private:
24 Application *application;
25
26 std::map<std::string, EntityMaterial*> materialMap;
27};
Definition Application.h:25
Definition MaterialManager.h:15
MaterialManager(Application *app)
Definition MaterialManager.h:17
~MaterialManager()
Definition MaterialManager.h:18
void loadNecessaryMaterials(std::list< EntityGeometry * > geometryEntities, Properties &properties)
Definition MaterialManager.cpp:16
EntityMaterial * getMaterial(const std::string &name)
Definition MaterialManager.cpp:72
Definition Properties.h:11
The app namespace contains several functions that may be used to start processes.