void CompasWidget::setXRotation(int angle){ qNormalizeAngle(angle); if (angle != m_xRot) { m_xRot = angle; emit xRotationChanged(angle); update(); } }
void GLWidget::setXRotation(int angle) { qNormalizeAngle(angle); if (angle != xRot_) { xRot_ = angle; emit xRotationChanged(angle); updateGL(); } }
void Scene3D::setXRotation(int angle) { qNormalizeAngle(angle); if (angle != xRot) { xRot = angle; emit xRotationChanged(angle); updateGL(); } }
/* * 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! } }
void MyGLWidget::setXRotation(int angle) { qNormalizeAngle(angle); if (angle != x_axis) { x_axis = angle; emit xRotationChanged(angle); updateGL(); } }
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(); } }
void QCastViewGL::setXRotation(float angle) { qNormalizeAngle(angle); if (angle != xRot) { xRot = angle; emit xRotationChanged(angle); updateGL(); } }
void QGLFrame::setXRotation(int angle) { if (angle != xRot) { xRot = angle; emit xRotationChanged(angle); RenderThread.xRot = xRot; RenderThread.paintGL(); } }
void IGLWidget::setXRotation(int i_angle) { qNormalizeAngle(i_angle); if(i_angle != m_xRot) { m_xRot = i_angle; emit xRotationChanged(i_angle); update(); } }
// Update the rotation around X if necessary void ObjectOpenGL::SetXRotation(int angle) { NormalizeAngle(&angle); if (angle != xRot) { xRot = angle; emit xRotationChanged(angle); updateGL(); } }
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; }