Ignore:
Timestamp:
07/15/05 18:21:11 (19 years ago)
Author:
bittner
Message:

cosine sampling bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Exporter.h

    r170 r176  
    66using namespace std; 
    77 
     8#include "Material.h" 
     9 
    810class KdTree; 
    911class SceneGraphNode; 
    1012class Ray; 
    1113class AxisAlignedBox3; 
    12 class MeshInstance; 
     14class Intersectable; 
    1315 
    1416class Exporter 
     
    1719  string mFilename; 
    1820  bool wireframe; 
     21  bool mUseForcedMaterial; 
     22  Material mForcedMaterial; 
    1923 
    2024public: 
    2125   
    22   Exporter(const string filename):mFilename(filename),wireframe(false) 
     26  Exporter(const string filename):mFilename(filename), 
     27                                  wireframe(false), 
     28                                  mUseForcedMaterial(false) 
    2329  { 
    2430  } 
     
    3440 
    3541  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   
    3747 
    3848  virtual void 
    39   ExportMeshInstance(MeshInstance *mesh) = 0; 
    40    
     49  ExportIntersectable(Intersectable *object) = 0; 
     50 
    4151  void SetWireframe() { wireframe = true; } 
    4252  void SetFilled() { wireframe = false; } 
    4353 
     54  void SetForcedMaterial(const Material &m) { 
     55    mForcedMaterial = m; 
     56    mUseForcedMaterial = true; 
     57  } 
     58  void ResetForcedMaterial() { 
     59    mUseForcedMaterial = false; 
     60  } 
     61     
    4462  static Exporter * 
    4563  GetExporter(const string filename); 
Note: See TracChangeset for help on using the changeset viewer.