コード例 #1
0
ファイル: glwidget.cpp プロジェクト: pstupka/PhaseVis
void GLWidget::setZRotation(int angle) {
    qNormalizeAngle(angle);
    if (angle != zRot_) {
        zRot_ = angle;
        emit zRotationChanged(angle);
        updateGL();
    }
}
コード例 #2
0
void CompasWidget::setZRotation(int angle){
	qNormalizeAngle(angle);
	if (angle != m_zRot) {
		m_zRot = angle;
		emit zRotationChanged(angle);
		update();
	}
}
コード例 #3
0
ファイル: glwidget.cpp プロジェクト: emeralddusk/umlgfxproj
void GLWidget::setZRotation( int angle )
{
        qNormalizeAngle( angle );        // Helper will fix the angle
        if (angle != zRot) {
                zRot = angle;
                emit zRotationChanged( angle );
                updateGL();              // Given to us from QGLWidget!
        }
}
コード例 #4
0
void MyGLWidget::setZRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != z_axis) {
        z_axis = angle;
        emit zRotationChanged(angle);
        updateGL();
    }
}
コード例 #5
0
void OpenGLContainer::setZRotation(double angle)
{
  normalizeAngle(angle);
  if (angle != zRot) {
    zRot = angle;
    emit zRotationChanged(angle);
    updateGL();
  }
}
void Visualizer::setZRotation(int angle)
{
    qNormalizeAngle(angle);
    if (angle != zRot) {
        zRot = angle;
        emit zRotationChanged(angle);
        updateGL();
    }
}
コード例 #7
0
void CoordSysWidget::setZRotation(int angle)
{
    normalizeAngle(&angle);
    if (angle != zRot) {
        zRot = angle;
        emit zRotationChanged(angle);
        updateGL();
    }
}
コード例 #8
0
void QCastViewGL::setZRotation(float angle)
{
   qNormalizeAngle(angle);
   if (angle != zRot) {
      zRot = angle;
      emit zRotationChanged(angle);
      updateGL();
   }
}
コード例 #9
0
void IGLWidget::setZRotation(int i_angle)
{
    qNormalizeAngle(i_angle);
    if(i_angle != m_zRot)
    {
        m_zRot = i_angle;
        emit zRotationChanged(i_angle);
        update();
    }
}
コード例 #10
0
ファイル: objectgl.cpp プロジェクト: titoluyo/makerzone
// Update the rotation around Z if necessary
void ObjectOpenGL::SetZRotation(int angle)
{
    NormalizeAngle(&angle);
    if (angle != zRot)
    {
        zRot = angle;
        emit zRotationChanged(angle);
        updateGL();
    }
}
コード例 #11
0
 void QGLFrame::setZRotation(int angle)
 {

     if (angle != zRot) {
         zRot = angle;
         emit zRotationChanged(angle);
         RenderThread.zRot = zRot;
         RenderThread.paintGL();
     }

 }
コード例 #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;
}