camera3d.gui
Class ViewportsEventHandler

java.lang.Object
  extended bycamera3d.gui.ViewportsEventHandler
All Implemented Interfaces:
SelectionChangeListener

public class ViewportsEventHandler
extends java.lang.Object
implements SelectionChangeListener

Version:
1.0
Author:
Fábio Roberto de Miranda, Carlos da Silva dos Santos

Field Summary
static int IDLE
          Indicates that the handler is in idle state, when picking is enabled and no manipulation of objects can be performed.
static int TRANSFORMING
          Indicates that the handler is in transforming state, when picking is disabled and the currently selected object can be manipulated.
 
Constructor Summary
ViewportsEventHandler()
           
ViewportsEventHandler(GUIControl guiControl)
           
 
Method Summary
 void addViewportFrame(ViewportFrame vpFrame)
           
 ViewportsEventHandler getViewportEventsHandler(GUIControl guiControl)
          Desperate singleton
 void selectionChanged(SelectionChangedEvent event)
          Informs this object of changes made to the list of selected objects.
 void setSelectedManipulationAction(TransformType type)
           
 void setSelectedManipulationMode(TransformMode mode)
           
 void setSelectedManipulationScope(TransformScope scope)
           
 void setViewportWindowManager(ViewportWindowManager manager)
          Needed to disable/enable picking of objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSFORMING

public static final int TRANSFORMING
Indicates that the handler is in transforming state, when picking is disabled and the currently selected object can be manipulated.

See Also:
Constant Field Values

IDLE

public static final int IDLE
Indicates that the handler is in idle state, when picking is enabled and no manipulation of objects can be performed.

See Also:
Constant Field Values
Constructor Detail

ViewportsEventHandler

public ViewportsEventHandler(GUIControl guiControl)

ViewportsEventHandler

public ViewportsEventHandler()
Method Detail

getViewportEventsHandler

public ViewportsEventHandler getViewportEventsHandler(GUIControl guiControl)
Desperate singleton


addViewportFrame

public void addViewportFrame(ViewportFrame vpFrame)

setSelectedManipulationAction

public void setSelectedManipulationAction(TransformType type)

setSelectedManipulationScope

public void setSelectedManipulationScope(TransformScope scope)

setSelectedManipulationMode

public void setSelectedManipulationMode(TransformMode mode)

setViewportWindowManager

public void setViewportWindowManager(ViewportWindowManager manager)
Needed to disable/enable picking of objects


selectionChanged

public void selectionChanged(SelectionChangedEvent event)
Informs this object of changes made to the list of selected objects. Necessary to inform transformation manipulators of the object currently selected.

Specified by:
selectionChanged in interface SelectionChangeListener
Parameters:
event - Contains information about the change in selection.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.