-
Notifications
You must be signed in to change notification settings - Fork 2
/
EntityVisitor.h
50 lines (38 loc) · 1.31 KB
/
EntityVisitor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <cassert>
#include <queue>
#include <set>
#include <map>
#include <list>
#include <deque>
#include "Geometrie.h"
#include "Feature.h"
#include <boost/signal.hpp>
class EntityVisitor
{
public:
typedef boost::signal<void(size_t, size_t)> ProgressSignal;
// ProgressSignal m_onProgress;
EntityVisitor();
virtual ~EntityVisitor();
// void setIgnoreSpaces(bool ignoreSpaces) { m_ignoreSpaces = ignoreSpaces; }
// void setIgnoreRoomGeometry(bool ignoreRoomGeometry) { m_ignoreRoomGeometry = ignoreRoomGeometry; }
// void start( const Feature * pFeature );
bool visit( Feature * pFeature );
virtual void onBegin() = 0;
virtual void onEnd() = 0;
virtual void onBeginEntity( const Feature & entity ) = 0;
virtual void onEndEntity() = 0;
virtual void onBeginGeometry() = 0;
virtual void onEndGeometry() = 0;
virtual void onFace( Polygon& face, TexCoordPolyloop* texCoords = 0, AppearanceData* appearance = 0 ) = 0;
private:
bool visit( _Geometrie * geometry );
bool visit( Polygon * face );
Features * pFeatures;
// std::deque<Feature*> m_entities;
// std::queue<_Geometrie*> m_geometries;
// std::list<_Geometrie*> m_cloned;
// bool m_ignoreSpaces;
// bool m_ignoreRoomGeometry;
};