Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/Camera.h
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Camera.h
r2176 r2575 9 9 class KdTree; 10 10 class SceneGraph; 11 11 class RayCaster; 12 12 13 13 class Camera … … 30 30 mFovy = 90.0f*(float)M_PI/180.0f; 31 31 } 32 33 Camera(int width, int height) { 34 mWidth = width; 35 mHeight = height; 36 mFovy = 90.0f*(float)M_PI/180.0f; 37 } 38 32 39 33 40 void Precompute() { … … 46 53 } 47 54 48 55 void SetDirection(const Vector3 &dir) { 49 56 mDirection = dir; 50 57 Precompute(); … … 53 60 void LookInBox(const AxisAlignedBox3 &box) 54 61 { 55 mDirection = Vector3(0,0,1); 62 mDirection = Vector3(0,0,1); 56 63 mPosition = box.Center(); 57 64 Precompute(); … … 67 74 68 75 bool 69 70 71 72 76 SnapImage(std::string filename, 77 KdTree *tree, 78 SceneGraph *sceneGraph 79 ); 73 80 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 74 95 void SetupRay(Ray &ray, const int x, const int y); 75 96 97 void SetupRay(SimpleRay &ray, const int x, const int y); 76 98 }; 77 99
Note: See TracChangeset
for help on using the changeset viewer.