de.uka.algo.GT3D
Class FlyThroughGenreTime
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
de.uka.algo.GT3D.FlyThroughGenreTime
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
public class FlyThroughGenreTime
- extends javax.swing.JFrame
- implements java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.MouseWheelListener
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
c3d
private javax.media.j3d.Canvas3D c3d
edgeWeights
private y.base.EdgeMap edgeWeights
acceptedEdges
private java.util.LinkedList<y.base.Edge> acceptedEdges
go
private javax.swing.JButton go
cameraInfo
private javax.swing.JButton cameraInfo
invertMouseY
private javax.swing.JButton invertMouseY
steuerknueppelButton
private javax.swing.JButton steuerknueppelButton
messageLabel
private javax.swing.JLabel messageLabel
coordLabel
private javax.swing.JLabel coordLabel
rotation
private double rotation
currentPressedKey
private int currentPressedKey
timer
private javax.swing.Timer timer
timerMillis
private int timerMillis
recordOn
boolean recordOn
playOn
boolean playOn
tourCounter
int tourCounter
navFile
java.lang.String navFile
statsWrite
java.io.BufferedWriter statsWrite
statsRead
java.io.BufferedReader statsRead
flyingCamera
private javax.media.j3d.TransformGroup flyingCamera
moveCamera
private javax.media.j3d.Transform3D moveCamera
vPlatform
private com.sun.j3d.utils.universe.ViewingPlatform vPlatform
pickCanvas
private com.sun.j3d.utils.picking.PickCanvas pickCanvas
scene
private javax.media.j3d.BranchGroup scene
fireRay
private com.sun.j3d.utils.geometry.Cylinder fireRay
dynamicStuffBG
private javax.media.j3d.BranchGroup dynamicStuffBG
dynamicParentGroup
private javax.media.j3d.BranchGroup dynamicParentGroup
TGFire
private javax.media.j3d.TransformGroup TGFire
T3DFire
private javax.media.j3d.Transform3D T3DFire
TGFireSub
private javax.media.j3d.TransformGroup TGFireSub
T3DFireSub
private javax.media.j3d.Transform3D T3DFireSub
headSpotlightBounds
private javax.media.j3d.BoundingSphere headSpotlightBounds
aimTolerance
private int aimTolerance
lookSensitivity
private double lookSensitivity
knueppelSensitivity
private double knueppelSensitivity
moveSensitivity
private double moveSensitivity
keyRollFactor
private double keyRollFactor
mWheelRollFactor
private double mWheelRollFactor
steuerKnueppelMode
private boolean steuerKnueppelMode
edgeRelevancePercentageThreshold
private double edgeRelevancePercentageThreshold
edgeRelevanceAbsoluteThreshold
private double edgeRelevanceAbsoluteThreshold
maxOutDegree
private int maxOutDegree
camHeading
private javax.vecmath.Matrix3d camHeading
camPosition
private javax.vecmath.Vector3d camPosition
rotMatX
private javax.vecmath.Matrix3d rotMatX
rotMatY
private javax.vecmath.Matrix3d rotMatY
rotMatZ
private javax.vecmath.Matrix3d rotMatZ
unitMatrix3D
private javax.vecmath.Matrix3d unitMatrix3D
rotMatYtoMinusZ
private javax.vecmath.Matrix3d rotMatYtoMinusZ
startRotation
private javax.vecmath.Matrix3d startRotation
dazuPosition
private javax.vecmath.Vector3d dazuPosition
startPosition
private javax.vecmath.Vector3d startPosition
tempRotAxis
private javax.vecmath.Vector3f tempRotAxis
mX
double mX
cosmX
double cosmX
sinmX
double sinmX
mY
double mY
cosmY
double cosmY
sinmY
double sinmY
mZ
double mZ
cosmZ
double cosmZ
sinmZ
double sinmZ
refX
double refX
refY
double refY
canvasTopLeft
java.awt.Point canvasTopLeft
Ysign
double Ysign
theRobot
static java.awt.Robot theRobot
resolutionX
static int resolutionX
resolutionY
static int resolutionY
tubeLength
float tubeLength
tubeRadius
float tubeRadius
tubeTransparency
double tubeTransparency
tubeTextureOn
boolean tubeTextureOn
nodeTextureOn
boolean nodeTextureOn
xDivision
int xDivision
yDivision
int yDivision
sourceGraphString
java.lang.String sourceGraphString
graphIsDirected
boolean graphIsDirected
restrictArrowCones
boolean restrictArrowCones
graphEdgesAreWeighted
boolean graphEdgesAreWeighted
inWeightRelevant
boolean inWeightRelevant
graphNodeWidthRelevant
boolean graphNodeWidthRelevant
nodeToSphere
java.util.Map<y.base.Node,com.sun.j3d.utils.geometry.Sphere> nodeToSphere
sphereToNode
java.util.Map<com.sun.j3d.utils.geometry.Sphere,y.base.Node> sphereToNode
nodeToLocation
java.util.Map<y.base.Node,javax.vecmath.Vector3f> nodeToLocation
nodeToInWeight
java.util.Map<y.base.Node,java.lang.Double> nodeToInWeight
edgeToCylinder
java.util.Map<y.base.Edge,com.sun.j3d.utils.geometry.Cylinder> edgeToCylinder
edgeToCone
java.util.Map<y.base.Edge,com.sun.j3d.utils.geometry.Cone> edgeToCone
allHeads
java.util.Set<FlyThroughGenreTime.HeadSet> allHeads
headPrimflags
int headPrimflags
nodeSphereColoringAttributes
javax.media.j3d.ColoringAttributes nodeSphereColoringAttributes
axisColoringAttributes
javax.media.j3d.ColoringAttributes axisColoringAttributes
edgeColoringAttributes
javax.media.j3d.ColoringAttributes edgeColoringAttributes
tubeColoringAttributes
javax.media.j3d.ColoringAttributes tubeColoringAttributes
fireRayColoringAttributes
javax.media.j3d.ColoringAttributes fireRayColoringAttributes
headColoringAttributes
javax.media.j3d.ColoringAttributes headColoringAttributes
axisMaterial
javax.media.j3d.Material axisMaterial
edgeMaterial
javax.media.j3d.Material edgeMaterial
tubeMaterial
javax.media.j3d.Material tubeMaterial
fireRayMaterial
javax.media.j3d.Material fireRayMaterial
boomMaterial
javax.media.j3d.Material boomMaterial
headMaterial
javax.media.j3d.Material headMaterial
boomAppearance
javax.media.j3d.Appearance boomAppearance
pickAppearance
javax.media.j3d.AlternateAppearance pickAppearance
black
javax.vecmath.Color3f black
white
javax.vecmath.Color3f white
red
javax.vecmath.Color3f red
lightred
javax.vecmath.Color3f lightred
blue
javax.vecmath.Color3f blue
lightblue
javax.vecmath.Color3f lightblue
darkblue
javax.vecmath.Color3f darkblue
yellow
javax.vecmath.Color3f yellow
darkyellow
javax.vecmath.Color3f darkyellow
lightyellow
javax.vecmath.Color3f lightyellow
orange
javax.vecmath.Color3f orange
green
javax.vecmath.Color3f green
darkgreen
javax.vecmath.Color3f darkgreen
lightgreen
javax.vecmath.Color3f lightgreen
brown
javax.vecmath.Color3f brown
darkgray
javax.vecmath.Color3f darkgray
lightgray
javax.vecmath.Color3f lightgray
darkergray
javax.vecmath.Color3f darkergray
nodeSphereMaterial
javax.media.j3d.Material nodeSphereMaterial
adultNodeSphereMaterial
javax.media.j3d.Material adultNodeSphereMaterial
musicNodeSphereMaterial
javax.media.j3d.Material musicNodeSphereMaterial
comedyNodeSphereMaterial
javax.media.j3d.Material comedyNodeSphereMaterial
familyNodeSphereMaterial
javax.media.j3d.Material familyNodeSphereMaterial
dramaNodeSphereMaterial
javax.media.j3d.Material dramaNodeSphereMaterial
thrillerNodeSphereMaterial
javax.media.j3d.Material thrillerNodeSphereMaterial
crimeNodeSphereMaterial
javax.media.j3d.Material crimeNodeSphereMaterial
animationNodeSphereMaterial
javax.media.j3d.Material animationNodeSphereMaterial
warNodeSphereMaterial
javax.media.j3d.Material warNodeSphereMaterial
adventureNodeSphereMaterial
javax.media.j3d.Material adventureNodeSphereMaterial
actionNodeSphereMaterial
javax.media.j3d.Material actionNodeSphereMaterial
mysteryNodeSphereMaterial
javax.media.j3d.Material mysteryNodeSphereMaterial
musicalNodeSphereMaterial
javax.media.j3d.Material musicalNodeSphereMaterial
romanceNodeSphereMaterial
javax.media.j3d.Material romanceNodeSphereMaterial
fantasyNodeSphereMaterial
javax.media.j3d.Material fantasyNodeSphereMaterial
scifiNodeSphereMaterial
javax.media.j3d.Material scifiNodeSphereMaterial
westernNodeSphereMaterial
javax.media.j3d.Material westernNodeSphereMaterial
horrorNodeSphereMaterial
javax.media.j3d.Material horrorNodeSphereMaterial
filmnoirNodeSphereMaterial
javax.media.j3d.Material filmnoirNodeSphereMaterial
FlyThroughGenreTime
public FlyThroughGenreTime()
createSceneGraph
public javax.media.j3d.BranchGroup createSceneGraph()
createNonsense
private void createNonsense(javax.media.j3d.BranchGroup objRoot)
createFamousHeads
private void createFamousHeads(javax.media.j3d.BranchGroup objRoot,
y.view.Graph2D sourceGraph)
readSourceGraph
private y.view.Graph2D readSourceGraph()
imprintSourceGraph
private void imprintSourceGraph(y.view.Graph2D sourceGraph,
javax.media.j3d.BranchGroup objRoot)
spaceOnEdge
private float spaceOnEdge(y.base.Edge edge)
placeEdge
private javax.media.j3d.Node placeEdge(y.base.Edge theEdge,
float thickness,
y.base.Node source,
y.base.Node target)
createCoordinateSystem
private void createCoordinateSystem(javax.media.j3d.BranchGroup objRoot)
createLight
private void createLight(javax.media.j3d.BranchGroup objRoot)
createBaseTube
private void createBaseTube(javax.media.j3d.BranchGroup objRoot)
rotMatReset
private void rotMatReset()
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyEvaluation
public void keyEvaluation(int keyNumber)
addStatsToNavFile
private void addStatsToNavFile()
initializeNavFile
private void initializeNavFile()
tourRecord
private void tourRecord()
tourPlay
private void tourPlay()
resetPosAndHeading
public void resetPosAndHeading()
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
rotateTheViewer
public boolean rotateTheViewer()
throws java.io.IOException
- Throws:
java.io.IOException
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent m)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent m)
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
printVector
private java.lang.String printVector(javax.vecmath.Vector3d vec,
int decDig,
int fracDig)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent m)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
printCameraStats
public void printCameraStats()
mousePressed
public void mousePressed(java.awt.event.MouseEvent m)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent m)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
- Specified by:
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
main
public static void main(java.lang.String[] args)