mapHandler.h 657 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _VIZUHANDLER_H_
#define _VIZUHANDLER_H_

#include <QHash>

namespace CGoGN {
	class GenericMap;
	namespace Utils{
		class VBO;
	}
}

class VBOHandler;

15
16
class MapHandler
{
Pierre Kraemer's avatar
Pierre Kraemer committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
public:
	MapHandler(CGoGN::GenericMap* map);
	~MapHandler();

	CGoGN::GenericMap* map(){ return m_map;}

	VBOHandler* findVBO(QString name);
	VBOHandler* findFirstVBOMatching(QRegExp regexp);
	QList<VBOHandler*> findVBOsMatching(QRegExp regexp);

	bool addVBO(VBOHandler* vboH);
	VBOHandler* addNewVBO(QString vboName);

	VBOHandler* takeVBO(VBOHandler* vbo);

	int countVBO(){ return l_vbo.count();}

protected:
	CGoGN::GenericMap* m_map;
	QList<VBOHandler*> l_vbo;
};

#endif