void frmPtz:n_btnPtzUp_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.0;
y = 0.1;
z = 0.0;
moveRelative();
} else {
y = 0.1;
moveAbsolute();
}
}
void frmPtz:n_btnPtzDown_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.0;
y = -0.1;
z = 0.0;
moveRelative();
} else {
y = -0.0;
moveAbsolute();
}
}
void frmPtz:n_btnPtzLeft_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = -0.1;
y = 0.0;
z = 0.0;
moveRelative();
} else {
x = 0.0;
moveAbsolute();
}
}
void frmPtz:n_btnPtzRight_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.1;
y = 0.0;
z = 0.0;
moveRelative();
} else {
x = 0.1;
moveAbsolute();
}
}
void frmPtz:n_btnPtzLeftUp_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = -0.1;
y = 0.1;
z = 0.0;
moveRelative();
} else {
x = 0.0;
y = 0.0;
moveAbsolute();
}
}
void frmPtz:n_btnPtzLeftDown_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = -0.1;
y = -0.1;
z = 0.0;
moveRelative();
} else {
x = 0.1;
y = 0.1;
moveAbsolute();
}
}
void frmPtz:n_btnPtzRightUp_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.1;
y = 0.1;
z = 0.0;
moveRelative();
} else {
x = 0.0;
y = 0.0;
moveAbsolute();
}
}
void frmPtz:n_btnPtzRightDown_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.1;
y = -0.1;
z = 0.0;
moveRelative();
} else {
x = 0.1;
y = 0.1;
moveAbsolute();
}
}
void frmPtz:n_btnPtzZoomIn_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.0;
y = 0.0;
z = 0.01;
moveRelative();
} else {
z = 0.01;
moveAbsolute();
}
}
void frmPtz:n_btnPtzZoomOut_clicked()
{
if (ui->rbtnMoveRelative->isChecked()) {
x = 0.0;
y = 0.0;
z = -0.01;
moveRelative();
} else {
z = 0.0;
moveAbsolute();
}
}