source: GTP/trunk/Lib/Vis/Preprocessing/src/Containers.h @ 2609

Revision 2609, 1.9 KB checked in by mattausch, 17 years ago (diff)
Line 
1#ifndef _Container_H__
2#define _Container_H__
3
4#include <vector>
5#include <queue>
6#include <map>
7
8using std::vector;
9
10namespace GtpVisibilityPreprocessor {
11
12class TransformedMeshInstance;
13class ViewCell;
14class HierarchyNode;
15class SceneGraphNode;
16class Intersectable;
17class Polygon3;
18class Ray;
19class Mesh;
20class KdLeaf;
21class Vector3;
22
23struct IndexedBoundingBox;
24struct VisibilityPoint;
25
26
27/** Container storing polygons used during BSP tree construction.
28*/
29typedef vector<Polygon3 *> PolygonContainer;
30
31/** Container storing a bundle of rays.
32*/
33typedef vector<Ray *> RayContainer;
34
35/** Container for Mesh pointers primarily for the use within the kDTree and
36    BSP hierarchies
37*/
38typedef vector<Intersectable *> ObjectContainer;
39
40/** Container for ViewCell pointers primarily for the use within the kDTree and
41    BSP hierarchies
42*/
43typedef vector<ViewCell *> ViewCellContainer;
44
45/** Container for HierarchyNodes pointers primarily for the use within the kDTree and
46    BSP hierarchies
47*/
48typedef vector<HierarchyNode *> NodeContainer;
49
50typedef vector<SceneGraphNode *> SceneGraphNodeContainer;
51
52typedef vector<Mesh *> MeshContainer;
53
54/** Container storing visibility points, i.e. locations in space storing from point visibility
55        information.
56*/
57typedef vector<VisibilityPoint *> VisibilityPointsContainer;
58
59typedef vector<IndexedBoundingBox> IndexedBoundingBoxContainer;
60
61/** Container for ViewCell pointers primarily for the use within the kDTree and
62    BSP hierarchies
63*/
64typedef vector<KdLeaf *> KdLeafContainer;
65
66typedef std::map<int, Intersectable *> ObjectMap;
67
68/// default vertex container for Mesh
69typedef std::vector<Vector3> VertexContainer;
70
71/// vertex index container
72typedef std::vector<int> VertexIndexContainer;
73
74/// a container for dynamic objects
75typedef std::vector<TransformedMeshInstance *> DynamicObjectsContainer;
76
77
78}
79
80#endif // _Container_H__
Note: See TracBrowser for help on using the repository browser.