gumbo.visualize.data.consistency
Class UnityManager

java.lang.Object
  |
  +--gumbo.visualize.data.consistency.IdManager
        |
        +--gumbo.visualize.data.consistency.UnityManager
All Implemented Interfaces:
PickMapper

public class UnityManager
extends IdManager

Manages the membership of graphic views in "unity groups" to achieve consistent interaction feedback across views. The members of a unity group represent different views of the same client data, as define by the data model client ID. For example, a given vertex selected in a 2D graph view should also appear selected in its 3D graph view.

The graphic views registered with this manager are assigned to mutually exclusive interactor groups according to their client ID. A pick mapper maps input picks to output unity groups accordingly. Thus, picking a target interactor (graphic view) effectively picks all the graphic views associated with the target's client ID. As such, this manager should be used at the head of the picking chain.

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Constructor Summary
UnityManager()
          Creates an instance as the head mapper in a picking chain.
 
Method Summary
 void addGraphic(GraphicView view)
           
 InteractorField.EventIn getPickIn()
          The input pick.
 InteractorField.EventOut getPickOut()
          The output pick, which is the input pick or a managed interactor group corresponding to the input pick's client ID.
 void removeGraphic(GraphicView view)
           
 
Methods inherited from class gumbo.visualize.data.consistency.IdManager
findInputPick, findOutputPick, getOutputPickMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnityManager

public UnityManager()
Creates an instance as the head mapper in a picking chain.

Method Detail

addGraphic

public final void addGraphic(GraphicView view)

removeGraphic

public final void removeGraphic(GraphicView view)

getPickIn

public InteractorField.EventIn getPickIn()
Description copied from class: IdManager
The input pick. NO_PICK_TARGET if no target picked. Null for a null pick.

Specified by:
getPickIn in interface PickMapper
Specified by:
getPickIn in class IdManager

getPickOut

public InteractorField.EventOut getPickOut()
Description copied from class: IdManager
The output pick, which is the input pick or a managed interactor group corresponding to the input pick's client ID. NO_PICK_TARGET if no target picked. Null for a null pick.

Specified by:
getPickOut in interface PickMapper
Specified by:
getPickOut in class IdManager