00001
00002
00003 #ifndef _REC_ROBOTINO_COM_CAMERA_H_
00004 #define _REC_ROBOTINO_COM_CAMERA_H_
00005
00006 #include "rec/robotino/com/Actor.h"
00007
00008 namespace rec
00009 {
00010 namespace robotino
00011 {
00012 namespace com
00013 {
00017 class
00018 #ifdef WIN32
00019 # ifdef rec_robotino_com_EXPORTS
00020 __declspec(dllexport)
00021 #endif
00022 # ifdef rec_robotino_com2_EXPORTS
00023 __declspec(dllexport)
00024 #endif
00025 # ifdef rec_robotino_com3_EXPORTS
00026 __declspec(dllexport)
00027 #endif
00028 #endif
00029 Camera : public Actor
00030 {
00031 public:
00032 Camera();
00033 ~Camera();
00034
00042 void setStreaming( bool streaming );
00043
00050 bool isStreaming() const;
00051
00059 void setResolution( unsigned int width, unsigned int height );
00060
00068 void resolution( unsigned int* width, unsigned int* height ) const;
00069
00084 virtual void imageReceivedEvent( const unsigned char* data,
00085 unsigned int dataSize,
00086 unsigned int width,
00087 unsigned int height,
00088 unsigned int numChannels,
00089 unsigned int bitsPerChannel,
00090 unsigned int step );
00091 };
00092 }
00093 }
00094 }
00095
00096 #endif