Exemplo n.º 1
0
void CompasWidget::setXRotation(int angle){
	qNormalizeAngle(angle);
	if (angle != m_xRot) {
		m_xRot = angle;
		emit xRotationChanged(angle);
		update();
	}
}
Exemplo n.º 2
0
void GLWidget::setXRotation(int angle) {
    qNormalizeAngle(angle);
    if (angle != xRot_) {
        xRot_ = angle;
        emit xRotationChanged(angle);
        updateGL();
    }
}
Exemplo n.º 3
0
void Scene3D::setXRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != xRot) {
        xRot = angle;
        emit xRotationChanged(angle);
        updateGL();
    }
}
Exemplo n.º 4
0
/*
 * These are our SLOTS, so they will be run each time a GUI widget
 * attached to them is changed.
 * EX: Moving a slider widget updates an integer and sends it as
 *     "angle" to these functions, which then mutate the scene.
 */
void GLWidget::setXRotation( int angle )
{
        qNormalizeAngle( angle );        // Helper will fix the angle
        if (angle != xRot) {
                xRot = angle;
                emit xRotationChanged( angle );
                updateGL();              // Given to us from QGLWidget!
        }
}
Exemplo n.º 5
0
void MyGLWidget::setXRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != x_axis) {
        x_axis = angle;
        emit xRotationChanged(angle);
        updateGL();
    }
}
Exemplo n.º 6
0
void OpenGLContainer::setXRotation(double angle)
{
  normalizeAngle(angle);
  if (angle != xRot) {
    xRot = angle;
    emit xRotationChanged(angle);
    updateGL();
  }
}
void CoordSysWidget::setXRotation(int angle)
{
    normalizeAngle(&angle);
    if (angle != xRot) {
        xRot = angle;
        emit xRotationChanged(angle);
        updateGL();
    }
}
Exemplo n.º 8
0
void QCastViewGL::setXRotation(float angle)
{
   qNormalizeAngle(angle);
   if (angle != xRot) {
      xRot = angle;
      emit xRotationChanged(angle);
      updateGL();
   }
}
Exemplo n.º 9
0
void QGLFrame::setXRotation(int angle)
 {
     if (angle != xRot) {
         xRot = angle;
         emit xRotationChanged(angle);
         RenderThread.xRot = xRot;
         RenderThread.paintGL();
     }
 }
Exemplo n.º 10
0
void IGLWidget::setXRotation(int i_angle)
{
    qNormalizeAngle(i_angle);
    if(i_angle != m_xRot)
    {
        m_xRot = i_angle;
        emit xRotationChanged(i_angle);
        update();
    }
}
Exemplo n.º 11
0
// Update the rotation around X if necessary
void ObjectOpenGL::SetXRotation(int angle)
{
    NormalizeAngle(&angle);
    if (angle != xRot)
    {
        xRot = angle;
        emit xRotationChanged(angle);
        updateGL();
    }
}
Exemplo n.º 12
0
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;
}