source: trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.h @ 360

Revision 360, 1.9 KB checked in by mattausch, 19 years ago (diff)

added findneighbours method

RevLine 
[162]1#ifndef __X3DEXPORTER_H
2#define __X3DEXPORTER_H
3
4#include <string>
5using std::string;
6
7#include <iostream>
8#include <fstream>
9
10#include "Exporter.h"
[261]11#include "Containers.h"
[162]12
13class SceneGraphNode;
14class Mesh;
[176]15class Intersectable;
16class MeshInstance;
[242]17class Polygon3;
18class ViewCell;
19class BspTree;
[162]20
21class X3dExporter : public Exporter
22{
23  std::ofstream stream;
24
25public:
26
27  X3dExporter(const string filename);
28
29  ~X3dExporter();
30
31
32  bool
[176]33  ExportRays(const vector<Ray> &rays,
34             const float length=1000,
35             const RgbColor &color = RgbColor(1,1,1));
[162]36
37  bool
38  ExportKdTree(const KdTree &tree);
39 
[242]40  bool ExportBspTree(const BspTree &tree);
41
[162]42  bool
43  ExportScene(SceneGraphNode *root)
44  {
45    ExportSceneNode(root);
46    return true;
47  }
48 
[242]49  virtual void
[260]50  ExportPolygon(Polygon3 *poly);
[242]51
[313]52  virtual void ExportPolygons(const PolygonContainer &polys);
[263]53
[176]54  virtual bool
[162]55  ExportBox(const AxisAlignedBox3 &box);
56
57  virtual void
58  ExportMeshInstance(MeshInstance *mi);
59
[176]60  virtual void
61  ExportIntersectable(Intersectable *object);
62
63  virtual void
[162]64  ExportMesh(Mesh *mesh);
65
[260]66  virtual void
67  ExportViewCell(ViewCell *viewCell);
[176]68
[261]69  virtual void
[313]70  ExportViewCells(const ViewCellContainer &viewCells);
[312]71
[313]72  virtual void
73  ExportBspSplitPlanes(const BspTree &tree);
74 
75  virtual void
76  ExportBspSplits(const BspTree &tree);
[312]77
[360]78  virtual void
79  ExportLeavesGeometry(const BspTree &tree, const vector<BspLeaf *> &leaves);
80
[349]81  bool
82  ExportRays(const RayContainer &rays,
83                         const float length=1000,
84                         const RgbColor &color = RgbColor(1,1,1));
85
[312]86  static ViewCellContainer foundViewCells; // todo: remove this
[162]87protected:
[329]88
[176]89  virtual void
[162]90  ExportSceneNode(SceneGraphNode *node);
91
[191]92  bool
93  ExportKdTreeRayDensity(const KdTree &tree);
94
[263]95  bool
96  ExportBspTreeRayDensity(const BspTree &tree); 
[162]97};
98 
99
100
101#endif
Note: See TracBrowser for help on using the repository browser.