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

Revision 191, 1.0 KB checked in by bittner, 19 years ago (diff)

basic sampling strategies

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"
11
12class SceneGraphNode;
13class Mesh;
[176]14class Intersectable;
15class MeshInstance;
[162]16
17class X3dExporter : public Exporter
18{
19  std::ofstream stream;
20
21public:
22
23  X3dExporter(const string filename);
24
25  ~X3dExporter();
26
27
28  bool
[176]29  ExportRays(const vector<Ray> &rays,
30             const float length=1000,
31             const RgbColor &color = RgbColor(1,1,1));
[162]32
33  bool
34  ExportKdTree(const KdTree &tree);
35 
36  bool
37  ExportScene(SceneGraphNode *root)
38  {
39    ExportSceneNode(root);
40    return true;
41  }
42 
[176]43  virtual bool
[162]44  ExportBox(const AxisAlignedBox3 &box);
45
46  virtual void
47  ExportMeshInstance(MeshInstance *mi);
48
[176]49  virtual void
50  ExportIntersectable(Intersectable *object);
51
52  virtual void
[162]53  ExportMesh(Mesh *mesh);
54
[176]55
[162]56protected:
[176]57  virtual void
[162]58  ExportSceneNode(SceneGraphNode *node);
59
[191]60  bool
61  ExportKdTreeRayDensity(const KdTree &tree);
62
[162]63 
64};
65 
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.