Revision 191,
1.0 KB
checked in by bittner, 19 years ago
(diff) |
basic sampling strategies
|
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 | class Intersectable;
|
---|
15 | class MeshInstance;
|
---|
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,
|
---|
30 | const float length=1000,
|
---|
31 | const RgbColor &color = RgbColor(1,1,1));
|
---|
32 |
|
---|
33 | bool
|
---|
34 | ExportKdTree(const KdTree &tree);
|
---|
35 |
|
---|
36 | bool
|
---|
37 | ExportScene(SceneGraphNode *root)
|
---|
38 | {
|
---|
39 | ExportSceneNode(root);
|
---|
40 | return true;
|
---|
41 | }
|
---|
42 |
|
---|
43 | virtual bool
|
---|
44 | ExportBox(const AxisAlignedBox3 &box);
|
---|
45 |
|
---|
46 | virtual void
|
---|
47 | ExportMeshInstance(MeshInstance *mi);
|
---|
48 |
|
---|
49 | virtual void
|
---|
50 | ExportIntersectable(Intersectable *object);
|
---|
51 |
|
---|
52 | virtual void
|
---|
53 | ExportMesh(Mesh *mesh);
|
---|
54 |
|
---|
55 |
|
---|
56 | protected:
|
---|
57 | virtual void
|
---|
58 | ExportSceneNode(SceneGraphNode *node);
|
---|
59 |
|
---|
60 | bool
|
---|
61 | ExportKdTreeRayDensity(const KdTree &tree);
|
---|
62 |
|
---|
63 |
|
---|
64 | };
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.