Revision 162,
814 bytes
checked in by bittner, 19 years ago
(diff) |
functional raycasting version
|
Line | |
---|
1 | #ifndef __X3DEXPORTER_H
|
---|
2 | #define __X3DEXPORTER_H
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | using std::string;
|
---|
6 |
|
---|
7 | #include <iostream>
|
---|
8 | #include <fstream>
|
---|
9 |
|
---|
10 | #include "Exporter.h"
|
---|
11 |
|
---|
12 | class SceneGraphNode;
|
---|
13 | class Mesh;
|
---|
14 |
|
---|
15 |
|
---|
16 |
|
---|
17 | class X3dExporter : public Exporter
|
---|
18 | {
|
---|
19 | std::ofstream stream;
|
---|
20 |
|
---|
21 | public:
|
---|
22 |
|
---|
23 | X3dExporter(const string filename);
|
---|
24 |
|
---|
25 | ~X3dExporter();
|
---|
26 |
|
---|
27 |
|
---|
28 | bool
|
---|
29 | ExportRays(const vector<Ray> &rays, const float length=1000);
|
---|
30 |
|
---|
31 | bool
|
---|
32 | ExportKdTree(const KdTree &tree);
|
---|
33 |
|
---|
34 | bool
|
---|
35 | ExportScene(SceneGraphNode *root)
|
---|
36 | {
|
---|
37 | ExportSceneNode(root);
|
---|
38 | return true;
|
---|
39 | }
|
---|
40 |
|
---|
41 | bool
|
---|
42 | ExportBox(const AxisAlignedBox3 &box);
|
---|
43 |
|
---|
44 | virtual void
|
---|
45 | ExportMeshInstance(MeshInstance *mi);
|
---|
46 |
|
---|
47 | void
|
---|
48 | ExportMesh(Mesh *mesh);
|
---|
49 |
|
---|
50 | protected:
|
---|
51 | void
|
---|
52 | ExportSceneNode(SceneGraphNode *node);
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 | };
|
---|
57 |
|
---|
58 |
|
---|
59 |
|
---|
60 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.