00001 00033 #ifndef __CAMERA_BRIDGE_FACTORY__ 00034 #define __CAMERA_BRIDGE_FACTORY__ 00035 00036 #include "CameraBridge.h" 00037 #include <string> 00038 00039 class CameraBridgeFactory 00040 { 00041 public: 00042 // Returns the camera parameters of a predefined camera. 00043 // If no model is given, a bw rectified camera is assumed 00044 static CameraBridge Create(const std::string& model = ""); 00045 00046 // Returns if the given camera is valid (or empty) 00047 static bool IsValid(const std::string& model); 00048 00049 protected: 00050 // Supported camera names 00051 static const int NCameras = 8; 00052 static const std::string m_camera_names[NCameras]; 00053 }; 00054 00055 #endif 00056