Revision 23248

View differences:

trunk/extensions/extAnimationGUI/src/com/iver/ai2/animationgui/gui/AnimationContol3D.java
1 1
/* 
2
 * Controles que aparacen una vez pulsado el bot?n del grupo animaci?n,"control de animaci?n". 
2
 * Controles que aparacen una vez pulsado el bot�n del grupo animaci�n,"control de animaci�n". 
3 3
 * 
4 4
 */
5 5

  
6 6
package com.iver.ai2.animationgui.gui;
7 7

  
8 8
import java.awt.Checkbox;
9
import java.awt.Component;
9 10
import java.awt.Dimension;
10 11
import java.awt.GridBagConstraints;
11 12
import java.awt.Insets;
......
27 28
import javax.swing.JTextField;
28 29

  
29 30
import org.gvsig.gui.beans.swing.GridBagLayoutPanel;
31
import org.gvsig.gvsig3d.navigation.NavigationMode;
30 32
import org.gvsig.gvsig3dgui.view.View3D;
31 33
import org.gvsig.osgvp.viewer.IViewerContainer;
32 34

  
......
343 345
			buttonIcon.setActionCommand("PLAY");
344 346
			buttonIcon.addActionListener(this);
345 347
			buttonIcon.setIcon(image);
348
		
346 349
		}
347 350
		return buttonIcon;
348 351
	}
......
398 401
			if (this.animationPlayer.getAnimationPlayerState() == AnimationPlayer.ANIMATION_PLAY) {
399 402
				image = new ImageIcon(buttonPath + "/playon.png");
400 403
				buttonIcon.setIcon(image);
404
				com.iver.andami.ui.mdiManager.IWindow view = PluginServices
405
			    .getMDIManager().getActiveWindow();
406
			  if (!(view instanceof View3D))
407
			   return;
408
			  // Casting to View3D
409
			  View3D vista3D = (View3D) view;
410
			  IViewerContainer viewer = vista3D.getCanvas3d();
411
			  viewer.getOSGViewer().setCameraManipulator(null);
401 412
				if (pauseFlag) {
402 413
					image1 = new ImageIcon(buttonPath + "/pause.png");
403 414
					buttonIcon1.setIcon(image1);
......
456 467

  
457 468
	/*
458 469
	 * @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent)
459
	 *      Events when you put the film?s seconds in the animation panel.
470
	 *      Events when you put the films seconds in the animation panel.
460 471
	 */
461 472
	public void keyReleased(KeyEvent arg0) {
462 473
		// TODO Auto-generated method stub
......
492 503
	}
493 504

  
494 505
	/*
495
	 * funci?n que seg?n la opci?n del choice ejecuta una operaci?n definida.
496
	 * esta luego no se usar? 'creo'.
506
	 * funci�n que seg�n la opci�n del choice ejecuta una operaci�n definida.
507
	 * esta luego no se usar 'creo'.
497 508
	 */
498 509
	private void setMode(int option) {
499 510
		// TODO Auto-generated method stub

Also available in: Unified diff