Jafar
|
00001 /* $Id$ */ 00002 00003 #ifndef _CAMERA_CONTAINER_HPP 00004 #define _CAMERA_CONTAINER_HPP 00005 00006 #include "jmath/jblas.hpp" 00007 #include "camera/cameraHandler.hpp" 00008 #include "camera/cameraException.hpp" 00009 namespace jafar { 00010 namespace camera { 00011 typedef enum CameraType { 00012 UNKNOWN, 00013 MONO, 00014 STEREO, 00015 PANO 00016 } CameraType; 00022 class CameraContainer { 00023 PinholeCameraHandler* pinholeHandler; 00024 StereoBenchHandler* benchHandler; 00025 ParabolicBarretoCameraHandler* panoHandler; 00026 CameraType m_type; 00027 public: 00029 CameraContainer(); 00031 CameraContainer(const camera::CameraType& _type); 00033 ~CameraContainer(); 00035 void setType(const camera::CameraType& _type); 00037 CameraType type() const { return m_type; } 00039 void setHandler(PinholeCameraHandler* _handler); 00041 void setHandler(StereoBenchHandler* _handler); 00043 void setHandler(ParabolicBarretoCameraHandler* _handler); 00045 void setHandler(PinholeCameraHandler& _handler); 00047 void setHandler(StereoBenchHandler& _handler); 00049 void setHandler(ParabolicBarretoCameraHandler& _handler); 00051 AbstractCameraHandler* handler() const; 00052 }; // class CameraContainer 00053 } // namespace camera 00054 } // namespace jafar 00055 #endif
Generated on Wed Oct 15 2014 00:37:17 for Jafar by doxygen 1.7.6.1 |