Changeset 176 for trunk/VUT/GtpVisibilityPreprocessor/src/Exporter.h
- Timestamp:
- 07/15/05 18:21:11 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Exporter.h
r170 r176 6 6 using namespace std; 7 7 8 #include "Material.h" 9 8 10 class KdTree; 9 11 class SceneGraphNode; 10 12 class Ray; 11 13 class AxisAlignedBox3; 12 class MeshInstance;14 class Intersectable; 13 15 14 16 class Exporter … … 17 19 string mFilename; 18 20 bool wireframe; 21 bool mUseForcedMaterial; 22 Material mForcedMaterial; 19 23 20 24 public: 21 25 22 Exporter(const string filename):mFilename(filename),wireframe(false) 26 Exporter(const string filename):mFilename(filename), 27 wireframe(false), 28 mUseForcedMaterial(false) 23 29 { 24 30 } … … 34 40 35 41 virtual bool 36 ExportRays(const vector<Ray> &rays, const float length=1000) = 0; 42 ExportRays(const vector<Ray> &rays, 43 const float length=1000, 44 const RgbColor &color = RgbColor(1,1,1) 45 ) = 0; 46 37 47 38 48 virtual void 39 Export MeshInstance(MeshInstance *mesh) = 0;40 49 ExportIntersectable(Intersectable *object) = 0; 50 41 51 void SetWireframe() { wireframe = true; } 42 52 void SetFilled() { wireframe = false; } 43 53 54 void SetForcedMaterial(const Material &m) { 55 mForcedMaterial = m; 56 mUseForcedMaterial = true; 57 } 58 void ResetForcedMaterial() { 59 mUseForcedMaterial = false; 60 } 61 44 62 static Exporter * 45 63 GetExporter(const string filename);
Note: See TracChangeset
for help on using the changeset viewer.