00001 #ifndef PHPLAYERPTZ_H 00002 #define PHPLAYERPTZ_H 00003 00004 #include <phPlayerDevice.h> 00005 //#include <phPtzData.h> 00006 00007 typedef struct ph_player_ptz_t *ph_player_ptz; 00008 00009 /* ------------------------------------------------------------------------ */ 00010 class phPlayerPtz : public phPlayerDevice 00011 { 00012 private: 00013 ph_player_ptz m_ptz; 00014 00015 double m_pan_speed; 00016 double m_tilt_speed; 00017 00018 double m_last_pan; 00019 double m_last_tilt; 00020 double m_last_zoom; 00021 double m_last_pan_speed; 00022 double m_last_tilt_speed; 00023 00024 //phPtzData *m_data; 00025 00026 int resetLastVars(); 00027 00028 public: 00029 phPlayerPtz ( ); 00030 phPlayerPtz ( int index, phPlayerClient *client ); 00031 ~phPlayerPtz ( ); 00032 00033 int set ( int index, phPlayerClient *client ); 00034 00035 int subscribe ( int access, int index, phPlayerClient *client); 00036 int subscribe ( int access = phMODE_ALL ); 00037 int unsubscribe (); 00038 00039 int setPtz (double pan, double tilt, double zoom, 00040 double pan_speed, 00041 double tilt_speed ); 00042 int panTiltZoomSpeed(double pan, double tilt, double zoom, 00043 double pan_speed = -1.0, 00044 double tilt_speed = -1.0); 00045 int panTiltZoom (double pan, double tilt, double zoom); 00046 int panTilt (double pan, double tilt); 00047 int pan (double pan ); 00048 int tilt (double tilt ); 00049 int zoom (double zoom ); 00050 int home (); 00051 int panSpeed (double pan_speed ); 00052 int tiltSpeed (double tilt_speed ); 00053 00054 int get (double *pan, double *tilt, double *zoom); 00055 double getPan (); 00056 double getTilt (); 00057 double getZoom (); 00058 00059 void *getId(); 00060 int updateData(); 00061 }; 00062 00063 #endif /* PHPLAYERPTZ_H */
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |