Ignore:
Timestamp:
01/03/08 15:53:44 (17 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Camera.h

    r2176 r2575  
    99class KdTree; 
    1010class SceneGraph; 
    11  
     11class RayCaster; 
    1212 
    1313class Camera 
     
    3030    mFovy = 90.0f*(float)M_PI/180.0f; 
    3131  } 
     32 
     33  Camera(int width, int height) { 
     34    mWidth = width; 
     35    mHeight = height; 
     36    mFovy = 90.0f*(float)M_PI/180.0f; 
     37  } 
     38 
    3239   
    3340  void Precompute() { 
     
    4653  } 
    4754 
    48         void SetDirection(const Vector3 &dir) { 
     55  void SetDirection(const Vector3 &dir) { 
    4956    mDirection = dir; 
    5057    Precompute(); 
     
    5360  void LookInBox(const AxisAlignedBox3 &box) 
    5461  { 
    55     mDirection = Vector3(0,0,1);  
     62    mDirection = Vector3(0,0,1); 
    5663    mPosition = box.Center(); 
    5764    Precompute(); 
     
    6774   
    6875  bool 
    69           SnapImage(std::string filename, 
    70                         KdTree *tree, 
    71                         SceneGraph *sceneGraph 
    72                         ); 
     76  SnapImage(std::string filename, 
     77            KdTree *tree, 
     78            SceneGraph *sceneGraph 
     79            ); 
    7380 
     81  bool 
     82  SnapImage(std::string filename, 
     83            RayCaster *raycaster, 
     84            AxisAlignedBox3 &bbox, 
     85            SceneGraph *sceneGraph 
     86            ); 
     87 
     88  bool 
     89  SnapImagePacket(std::string filename, 
     90                  RayCaster *raycaster, 
     91                  AxisAlignedBox3 &bbox, 
     92                  SceneGraph *sceneGraph 
     93                  ); 
     94   
    7495  void SetupRay(Ray &ray, const int x, const int y); 
    7596 
     97  void SetupRay(SimpleRay &ray, const int x, const int y); 
    7698}; 
    7799 
Note: See TracChangeset for help on using the changeset viewer.