17 : QDialog(parent),
Ui::GBLSensorProjectDialog() {
43 rotationOrderComboBox->setCurrentIndex(0);
45 rotationOrderComboBox->setCurrentIndex(1);
53 const float* mat = rot.
data();
54 x1rot->setText(QString::number(mat[0],
'f', precision));
55 y1rot->setText(QString::number(mat[1],
'f', precision));
56 z1rot->setText(QString::number(mat[2],
'f', precision));
58 x2rot->setText(QString::number(mat[4],
'f', precision));
59 y2rot->setText(QString::number(mat[5],
'f', precision));
60 z2rot->setText(QString::number(mat[6],
'f', precision));
62 x3rot->setText(QString::number(mat[8],
'f', precision));
63 y3rot->setText(QString::number(mat[9],
'f', precision));
64 z3rot->setText(QString::number(mat[10],
'f', precision));
69 posXEdit->setText(QString::number(C[0],
'f', precision));
70 posYEdit->setText(QString::number(C[1],
'f', precision));
71 posZEdit->setText(QString::number(C[2],
'f', precision));
77 pitchStepSpinBox->setValue(
80 yawStepSpinBox->setValue(
99 (rotationOrderComboBox->currentIndex() == 0
110 float* mat = rot.
data();
111 mat[0] = x1rot->text().toFloat();
112 mat[1] = y1rot->text().toFloat();
113 mat[2] = z1rot->text().toFloat();
115 mat[4] = x2rot->text().toFloat();
116 mat[5] = y2rot->text().toFloat();
117 mat[6] = z2rot->text().toFloat();
119 mat[8] = x3rot->text().toFloat();
120 mat[9] = y3rot->text().toFloat();
121 mat[10] = z3rot->text().toFloat();
148 static_cast<ScalarType
>(maxRangeDoubleSpinBox->value()));
152 static_cast<ScalarType
>(uncertaintyDoubleSpinBox->value()));
float PointCoordinateType
Type of the coordinates of a (N-D) point.
ccGBLSensorProjectionDlg(QWidget *parent=0)
Default constructor.
void initWithGBLSensor(const ccGBLSensor *sensor)
void updateGBLSensor(ccGBLSensor *sensor)
Ground-based Laser sensor.
void setRotationOrder(ROTATION_ORDER rotOrder)
Sets the sensor internal rotations order.
ROTATION_ORDER
The order of inner-rotations of the sensor (body/mirrors)
PointCoordinateType getSensorRange() const
Returns the sensor max. range.
void setUncertainty(PointCoordinateType u)
Sets the Z-buffer uncertainty on depth values.
PointCoordinateType getUncertainty() const
Returns the Z-buffer uncertainty on depth values.
void setSensorRange(PointCoordinateType range)
Sets the sensor max. range.
PointCoordinateType getPitchStep() const
Returns the lateral pitch step (in radians)
void setYawStep(PointCoordinateType dTheta)
Sets the yaw step.
ROTATION_ORDER getRotationOrder() const
Returns the sensor internal rotations order.
PointCoordinateType getYawStep() const
Returns the yaw step (in radians)
void setPitchStep(PointCoordinateType dPhi)
Sets the pitch step.
T * getTranslation()
Retruns a pointer to internal translation.
T * data()
Returns a pointer to internal data.
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Float version of ccGLMatrixTpl.
virtual ccGLMatrix & getRigidTransformation()
virtual void setRigidTransformation(const ccGLMatrix &mat)
float RadiansToDegrees(int radians)
Convert radians to degrees.
float DegreesToRadians(int degrees)
Convert degrees to radians.