Beispiel #1
0
void GLWidget::setYRotation(int angle) {
    qNormalizeAngle(angle);
    if (angle != yRot_) {
        yRot_ = angle;
        emit yRotationChanged(angle);
        updateGL();
    }
}
void CompasWidget::setYRotation(int angle){
	qNormalizeAngle(angle);
	if (angle != m_yRot) {
		m_yRot = angle;
		emit yRotationChanged(angle);
		update();
	}
}
void MyGLWidget::setYRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != y_axis) {
        y_axis = angle;
        emit yRotationChanged(angle);
        updateGL();
    }
}
void OpenGLContainer::setYRotation(double angle)
{
  normalizeAngle(angle);
  if (angle != yRot) {
    yRot = angle;
    emit yRotationChanged(angle);
    updateGL();
  }
}
void Visualizer::setYRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != yRot) {
        yRot = angle;
        emit yRotationChanged(angle);
        updateGL();
    }
}
void CoordSysWidget::setYRotation(int angle)
{
    normalizeAngle(&angle);
    if (angle != yRot) {
        yRot = angle;
        emit yRotationChanged(angle);
        updateGL();
    }
}
void QCastViewGL::setYRotation(float angle)
{
   qNormalizeAngle(angle);
   if (angle != yRot) {
      yRot = angle;
      emit yRotationChanged(angle);
      updateGL();
   }
}
Beispiel #8
0
void GLWidget::setYRotation( int angle )
{
        qNormalizeAngle( angle );        // Helper will fix the angle
        if (angle != yRot) {
                yRot = angle;
                emit yRotationChanged( angle );
                updateGL();              // Given to us from QGLWidget!
        }

}
void IGLWidget::setYRotation(int i_angle)
{
    qNormalizeAngle(i_angle);
    if(i_angle != m_yRot)
    {
        m_yRot = i_angle;
        emit yRotationChanged(i_angle);
        update();
    }
}
Beispiel #10
0
// Upadate the rotation around Y if necessary
void ObjectOpenGL::SetYRotation(int angle)
{
    NormalizeAngle(&angle);
    if (angle != yRot)
    {
        yRot = angle;
        emit yRotationChanged(angle);
        updateGL();
    }
}
Beispiel #11
0
 void QGLFrame::setYRotation(int angle)
 {

     if (angle != yRot) {
         yRot = angle;
         emit yRotationChanged(angle);
         RenderThread.yRot = yRot;
         RenderThread.paintGL();
     }
 }
int InputView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGLWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: xRotationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: yRotationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: zRotationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: setXRotation((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: setYRotation((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: setZRotation((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 6;
    }
    return _id;
}