it.polito.elite.visualization.ontoviewer.scenes3D
Class SceneFocusInstances4

java.lang.Object
  extended by it.polito.elite.visualization.ontoviewer.scenes3D.Scene3D
      extended by it.polito.elite.visualization.ontoviewer.scenes3D.SceneFocusInstances4

public class SceneFocusInstances4
extends Scene3D


Field Summary
private  javax.media.j3d.BranchGroup fakeBG
           
private  javax.vecmath.Vector3f fakeCubePosition
           
private  java.util.Hashtable<java.lang.String,javax.media.j3d.BranchGroup> instanceCubesBg
           
private  float radiusBackGroundSphere
           
private  java.util.Set<java.lang.String> set
           
 
Fields inherited from class it.polito.elite.visualization.ontoviewer.scenes3D.Scene3D
behaviorCURS, behaviorROT, behaviorTRAS, behaviorZOOM, bgLabelScene, bgSCENE, currentConceptURI, currentInstanceURI, numScenes, positions, refMainPanel, rootPosition, sceneID, simplePick, tgROT, tgSCENE
 
Constructor Summary
SceneFocusInstances4(Pane3DScene _mf, java.util.Set<java.lang.String> uris, java.lang.String conceptUri)
           
SceneFocusInstances4(Pane3DScene _mf, java.lang.String uri)
           
 
Method Summary
private  void computeNodesPosition()
           
private  javax.media.j3d.TransformGroup createFakeInstanceCube(InstanceData original)
          The fake sphere is embedded in 2 transformGroups because of the positionInterpolator.
 void createScene()
           
 javax.media.j3d.BranchGroup drawInstance(java.lang.String uri, InstanceData data)
           
private  void drawNodes(java.util.Set<java.lang.String> set)
           
protected  void drawScene()
           
 void expand_OR_collapseElement(java.lang.String uri)
           
 void fadeInAnimation()
           
 void fadeOutAnimation(java.lang.String uri, Scene3D nextScene)
           
 void selectElement(java.lang.String uri)
           
 boolean showContextMenu(java.awt.PopupMenu menu, java.lang.String uri)
           
 boolean showRelationContextMenu(java.awt.PopupMenu menu, java.util.HashSet<RelationData> relSet)
           
 
Methods inherited from class it.polito.elite.visualization.ontoviewer.scenes3D.Scene3D
addBehaviors, addPopUpMenu, addSceneLabel, backToInitialSceneView, centralPositionAtGivenHeightScale, createBGandTGforTheScene, createBranchGroup, createRandomSet, createTransformGroup, get2DTo3DPoint, get3DTo2DPoint, getBounds, getCanvas3DSize, getCurrentConceptURI, getCurrentInstanceURI, getSceneBranchGroup, getSceneID, getShapes, recreateSceneFromScratch, removeBehaviours, removePopUpMenu, repaintCanvas, setCurrentConceptURI, setCurrentInstanceURI, showSelectionPopUp, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fakeBG

private javax.media.j3d.BranchGroup fakeBG

fakeCubePosition

private javax.vecmath.Vector3f fakeCubePosition

instanceCubesBg

private java.util.Hashtable<java.lang.String,javax.media.j3d.BranchGroup> instanceCubesBg

radiusBackGroundSphere

private float radiusBackGroundSphere

set

private java.util.Set<java.lang.String> set
Constructor Detail

SceneFocusInstances4

public SceneFocusInstances4(Pane3DScene _mf,
                            java.util.Set<java.lang.String> uris,
                            java.lang.String conceptUri)

SceneFocusInstances4

public SceneFocusInstances4(Pane3DScene _mf,
                            java.lang.String uri)
Method Detail

computeNodesPosition

private void computeNodesPosition()

createFakeInstanceCube

private javax.media.j3d.TransformGroup createFakeInstanceCube(InstanceData original)
The fake sphere is embedded in 2 transformGroups because of the positionInterpolator. fakeTG2 deals with the absolute positioning of the sphere, while fakeTG is used for the relative movement from initial position to final one...

Parameters:
original - Data concerning the original instance cube
Returns:
TransformGroup with the fake cube

createScene

public void createScene()
Specified by:
createScene in class Scene3D

drawInstance

public javax.media.j3d.BranchGroup drawInstance(java.lang.String uri,
                                                InstanceData data)

drawNodes

private void drawNodes(java.util.Set<java.lang.String> set)

drawScene

protected void drawScene()

expand_OR_collapseElement

public void expand_OR_collapseElement(java.lang.String uri)
Specified by:
expand_OR_collapseElement in class Scene3D

fadeInAnimation

public void fadeInAnimation()
Specified by:
fadeInAnimation in class Scene3D

fadeOutAnimation

public void fadeOutAnimation(java.lang.String uri,
                             Scene3D nextScene)
Specified by:
fadeOutAnimation in class Scene3D

selectElement

public void selectElement(java.lang.String uri)
Specified by:
selectElement in class Scene3D

showContextMenu

public boolean showContextMenu(java.awt.PopupMenu menu,
                               java.lang.String uri)
Specified by:
showContextMenu in class Scene3D

showRelationContextMenu

public boolean showRelationContextMenu(java.awt.PopupMenu menu,
                                       java.util.HashSet<RelationData> relSet)
Specified by:
showRelationContextMenu in class Scene3D