PlayerCc::PtzProxy Class Reference
[Proxies]
The PtzProxy
class is used to control a ptz device.
More...
#include <playerc++.h>
Public Member Functions | |
PtzProxy (PlayerClient *aPc, uint aIndex=0) | |
constructor | |
void | SetCam (double aPan, double aTilt, double aZoom) |
Change the camera state. | |
void | SetSpeed (double aPanSpeed=0, double aTiltSpeed=0, double aZoomSpeed=0) |
Specify new target velocities. | |
void | SelectControlMode (uint aMode) |
Select new control mode. | |
double | GetPan () const |
Return Pan (rad). | |
double | GetTilt () const |
Return Tilt (rad). | |
double | GetZoom () const |
Return Zoom. |
Detailed Description
ThePtzProxy
class is used to control a ptz device.
The state of the camera can be read from the pan, tilt, zoom attributes and changed using the SetCam() method.
Member Function Documentation
void PlayerCc::PtzProxy::SelectControlMode | ( | uint | aMode | ) |
Select new control mode.
Use either PLAYER_PTZ_POSITION_CONTROL or PLAYER_PTZ_VELOCITY_CONTROL.
void PlayerCc::PtzProxy::SetCam | ( | double | aPan, | |
double | aTilt, | |||
double | aZoom | |||
) |
Change the camera state.
Specify the new pan
, tilt
, and zoom
values (all degrees).
The documentation for this class was generated from the following file: