예제 #1
0
void PlanetViewer::tick() {
    //Update the time/date
    ut.setDJD( ut.djd() + scale*0.1 );
    pw->dateBox->setDate( ut.date() );

    updatePlanets();
}
예제 #2
0
void idle(void)
{
	mainGear.spin(orbitSpeed * 60);  // values defined allow for good interlocking and speed , obtained through trial and error
	powerGear.spin(-orbitSpeed * 200); 
	smallMiddleGear.spin(orbitSpeed * 200);
	bigPowerGear.spin(-orbitSpeed * 60);
	sideGear.spin(-orbitSpeed * 400);
	sidePole.spin(orbitSpeed * 400);
	sun.update();
	updatePlanets();

	glutPostRedisplay();
}
예제 #3
0
void PlanetViewer::slotChangeDate( const ExtDate & ) {
    if ( pw->dateBox->date().isValid() ) {
        ut.setDate( pw->dateBox->date() );
        updatePlanets();
    }
}