Changeset 2124 for GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.h
- Timestamp:
- 02/19/07 02:51:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.h
r1404 r2124 29 29 class X3dExporter : public Exporter 30 30 { 31 31 std::ofstream stream; 32 32 33 33 public: 34 34 35 35 X3dExporter(const string filename); 36 36 37 37 ~X3dExporter(); 38 38 39 bool 40 ExportKdTree(const KdTree &tree, const bool exportGeometry = false); 39 41 40 // bool 41 // ExportRays(const vector<Ray> &rays, 42 // const float length=1000, 43 // const RgbColor &color = RgbColor(1,1,1)); 42 bool 43 ExportVssTree(const VssTree &tree); 44 44 45 bool 46 ExportVssTree2(const VssTree &tree, 47 const Vector3 direction); 45 48 46 bool 47 ExportKdTree(const KdTree &tree, const bool exportGeometry = false); 49 virtual bool 50 ExportRssTree2(const RssTree &tree, 51 const Vector3 direction); 48 52 49 bool 50 ExportVssTree(const VssTree &tree); 53 bool ExportBspTree(const BspTree &tree); 51 54 52 bool 53 ExportVssTree2(const VssTree &tree, 54 const Vector3 direction 55 ); 55 bool 56 ExportScene(SceneGraphNode *root) 57 { 58 ExportSceneNode(root); 59 return true; 60 } 56 61 57 virtual bool 58 ExportRssTree2(const RssTree &tree, 59 const Vector3 direction 60 ); 62 virtual void 63 ExportPolygon(Polygon3 *poly); 61 64 62 // bool ExportOspTree(const OspTree &tree); 65 virtual void 66 ExportPolygons(const PolygonContainer &polys); 63 67 64 bool ExportBspTree(const BspTree &tree); 68 virtual bool 69 ExportBox(const AxisAlignedBox3 &box); 65 70 66 bool 67 ExportScene(SceneGraphNode *root) 68 { 69 ExportSceneNode(root); 70 return true; 71 } 71 virtual void 72 ExportMesh(Mesh *mesh); 72 73 73 74 ExportPolygon(Polygon3 *poly);74 virtual void 75 ExportViewCell(ViewCell *viewCell); 75 76 76 virtual void 77 ExportPolygons(const PolygonContainer &polys); 77 bool 78 ExportRays(const RayContainer &rays, 79 const float length=1000, 80 const RgbColor &color = RgbColor(1,1,1)); 78 81 79 virtual bool 80 ExportBox(const AxisAlignedBox3 &box); 82 bool 83 ExportRays(const VssRayContainer &rays, 84 const RgbColor &color = RgbColor(1,1,1)); 81 85 82 83 ExportMesh(Mesh *mesh);86 virtual void 87 ExportBspSplitPlanes(const BspTree &tree); 84 88 85 86 ExportViewCell(ViewCell *viewCell);89 virtual void 90 ExportBspSplits(const BspTree &tree, const bool exportDepth); 87 91 88 bool 89 ExportRays(const RayContainer &rays, 90 const float length=1000, 91 const RgbColor &color = RgbColor(1,1,1)); 92 virtual void 93 ExportLeavesGeometry(const BspTree &tree, const vector<BspLeaf *> &leaves); 92 94 93 bool 94 ExportRays(const VssRayContainer &rays, 95 const RgbColor &color = RgbColor(1,1,1)); 95 virtual void ExportBspLeaves(const BspTree &tree, const int maxPvs = 0); 96 96 97 virtual void 98 ExportBspSplitPlanes(const BspTree &tree); 97 virtual void ExportBspSplits(const VspBspTree &tree, const bool exportDepth); 99 98 100 virtual void 101 ExportBspSplits(const BspTree &tree, const bool exportDepth); 99 virtual void ExportBeam(const Beam &beam, const AxisAlignedBox3 &box); 102 100 103 virtual void 104 ExportLeavesGeometry(const BspTree &tree, const vector<BspLeaf *> &leaves);101 bool ExportRaySets(const vector<VssRayContainer> &rays, 102 const RgbColor &color); 105 103 106 virtual void107 ExportBspLeaves(const BspTree &tree, const int maxPvs = 0);108 109 virtual void110 ExportBspSplits(const VspBspTree &tree, const bool exportDepth);111 112 virtual void ExportBeam(const Beam &beam, const AxisAlignedBox3 &box);113 114 bool115 ExportRaySets(const vector<VssRayContainer> &rays,116 const RgbColor &color);117 104 118 105 protected: 119 106 120 virtual void 121 ExportSceneNode(SceneGraphNode *node); 107 virtual void ExportSceneNode(SceneGraphNode *node); 122 108 123 bool 124 ExportKdTreeRayDensity(const KdTree &tree); 109 bool ExportKdTreeRayDensity(const KdTree &tree); 125 110 126 bool 127 ExportBspTreeRayDensity(const BspTree &tree); 111 bool ExportBspTreeRayDensity(const BspTree &tree); 128 112 129 130 131 132 113 void ExportBspNodeSplits(BspNode *root, 114 const AxisAlignedBox3 &box, 115 const bool exportDepth, 116 const bool epsilon); 133 117 134 135 void ExportViewpoint(const Vector3 &point, const Vector3 &direction); 136 118 void ExportViewpoint(const Vector3 &point, const Vector3 &direction); 137 119 }; 138 120
Note: See TracChangeset
for help on using the changeset viewer.