Class MyUniverse

java.lang.Object
  |
  +--javax.media.j3d.VirtualUniverse
        |
        +--MyUniverse

public class MyUniverse
extends javax.media.j3d.VirtualUniverse

Title: MyUniverse Description: MyUniverse is a virtual universe with one directional light right over the watchers eyes

Author:
Dimitri Missoh & Daniel Schlosser

Field Summary
private  javax.media.j3d.PhysicalBody body
           
private  javax.media.j3d.PhysicalEnvironment env
           
private  javax.media.j3d.DirectionalLight headlight
           
private  javax.media.j3d.Locale locale
           
private  boolean mouseRotation
           
private  javax.media.j3d.ViewPlatform platform
           
private  javax.media.j3d.Transform3D pufferTransfRo
           
private  javax.vecmath.Vector3d pufferVec
           
private static double STANDARTDISTANCE
           
private  TheHive theHive
           
private  javax.media.j3d.View view
           
private  javax.media.j3d.TransformGroup viewCenterTG
           
private  javax.media.j3d.BranchGroup ViewGroup
           
private  javax.media.j3d.TransformGroup viewRotateTG
           
private  javax.media.j3d.Transform3D viewTransfRo
           
private  javax.media.j3d.Transform3D viewTransfTr
           
private  javax.media.j3d.Transform3D viewTransfZo
           
private  javax.vecmath.Vector3d viewTransVec
           
private  javax.media.j3d.TransformGroup viewZoomTG
           
private  com.sun.j3d.utils.geometry.Box visBox
           
private  double xAngle
           
private  double yAngle
           
private  double zAngle
           
 
Fields inherited from class javax.media.j3d.VirtualUniverse
activeViewCount, backgrounds, behaviorLock, behaviorScheduler, behaviorStructure, BRANCH_GROUP_DETACH, clips, COLL_TRAVERSE, currentView, dirtyGeomList, enableComponent, enableFocus, enableKey, enableMouse, enableMouseMotion, geometryStructure, GROUP_ADD_CHILD, GROUP_INSERT_CHILD, GROUP_MOVE_TO, GROUP_REMOVE_CHILD, GROUP_SET_CHILD, inBehavior, isSceneGraphLock, listOfLocales, LOCALE_ADD_BRANCH_GRAPH, LOCALE_REMOVE_BRANCH_GRAPH, LOCALE_REPLACE_BRANCH_GRAPH, mc, mcLock, nodeIdCount, nodeIdFreeList, numNodes, regViewWaiting, renderingEnvironmentStructure, renderingEnvironmentStructureRefCount, rootThreadGroup, sceneGraphLock, setLiveState, sounds, soundscapes, soundStructure, transformStructure, TRAVERSE, unRegViewWaiting, updateObjects, updateObjectsLen, viewIdCount, viewIdFreeList, viewPlatformList, viewPlatforms, vpChanged, waitLock
 
Constructor Summary
MyUniverse(javax.media.j3d.Canvas3D cv, TheHive TH)
           
 
Method Summary
 void addBranchGraph(javax.media.j3d.BranchGroup bg)
           
private  void doRotation()
           
 void rotateRelativToView(int dx, int dy)
           
 void rotateXAbsolut(double angle)
           
 void rotateYAbsolut(double angle)
           
 void rotateZAbsolut(double angle)
           
 void translateCenterAbsolut(int x, int y, int z)
           
 void zoomAbsolut(double distance)
           
 void zoomRelativ(int dy)
           
 
Methods inherited from class javax.media.j3d.VirtualUniverse
, addLocale, addViewIdToFreeList, addViewPlatform, checkForEnableEvents, createMC, destroyMC, enableComponentEvents, enableFocusEvents, enableKeyEvents, enableMouseEvents, enableMouseMotionEvents, getAllLocales, getCurrentView, getJ3DThreadPriority, getNodeId, getRootThreadGroup, getViewId, getViewPlatformList, initMCStructure, isEmpty, loadLibraries, numLocales, removeAllLocales, removeLocale, removeViewPlatform, resetWaitMCFlag, setCurrentView, setJ3DThreadPriority, waitForMC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

STANDARTDISTANCE

private static final double STANDARTDISTANCE

xAngle

private double xAngle

yAngle

private double yAngle

zAngle

private double zAngle

locale

private javax.media.j3d.Locale locale

ViewGroup

private javax.media.j3d.BranchGroup ViewGroup

viewZoomTG

private javax.media.j3d.TransformGroup viewZoomTG

viewRotateTG

private javax.media.j3d.TransformGroup viewRotateTG

viewCenterTG

private javax.media.j3d.TransformGroup viewCenterTG

viewTransfRo

private javax.media.j3d.Transform3D viewTransfRo

pufferTransfRo

private javax.media.j3d.Transform3D pufferTransfRo

viewTransfTr

private javax.media.j3d.Transform3D viewTransfTr

viewTransfZo

private javax.media.j3d.Transform3D viewTransfZo

viewTransVec

private javax.vecmath.Vector3d viewTransVec

platform

private javax.media.j3d.ViewPlatform platform

view

private javax.media.j3d.View view

headlight

private javax.media.j3d.DirectionalLight headlight

body

private javax.media.j3d.PhysicalBody body

env

private javax.media.j3d.PhysicalEnvironment env

visBox

private com.sun.j3d.utils.geometry.Box visBox

pufferVec

private javax.vecmath.Vector3d pufferVec

theHive

private TheHive theHive

mouseRotation

private boolean mouseRotation
Constructor Detail

MyUniverse

public MyUniverse(javax.media.j3d.Canvas3D cv,
                  TheHive TH)
Method Detail

rotateXAbsolut

public void rotateXAbsolut(double angle)

rotateYAbsolut

public void rotateYAbsolut(double angle)

rotateZAbsolut

public void rotateZAbsolut(double angle)

doRotation

private void doRotation()

rotateRelativToView

public void rotateRelativToView(int dx,
                                int dy)

translateCenterAbsolut

public void translateCenterAbsolut(int x,
                                   int y,
                                   int z)

zoomAbsolut

public void zoomAbsolut(double distance)

zoomRelativ

public void zoomRelativ(int dy)

addBranchGraph

public void addBranchGraph(javax.media.j3d.BranchGroup bg)