us.ihmc.graphics3DAdapter.java3D.fromSCS
Class Standard3DView
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
us.ihmc.graphics3DAdapter.java3D.fromSCS.Standard3DView
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener, ViewportAdapter
public class Standard3DView
- extends javax.media.j3d.BranchGroup
- implements ViewportAdapter, java.awt.event.MouseListener
Fields inherited from class javax.media.j3d.BranchGroup |
ALLOW_DETACH |
Fields inherited from class javax.media.j3d.Group |
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Methods inherited from class javax.media.j3d.BranchGroup |
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest |
Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Standard3DView
public Standard3DView(java.awt.GraphicsDevice graphicsDevice,
Java3DGraphicsAdapter standardSimulationGraphics)
closeAndDispose
public void closeAndDispose()
getCanvas
public YoCanvas3D getCanvas()
- Specified by:
getCanvas
in interface ViewportAdapter
getCameraController
public CameraController getCameraController()
- Specified by:
getCameraController
in interface ViewportAdapter
setClipDistances
public void setClipDistances(double near,
double far)
setFieldOfView
public void setFieldOfView(double fieldOfView)
getFieldOfView
public double getFieldOfView()
- Specified by:
getFieldOfView
in interface ViewportAdapter
updateCamera
public void updateCamera()
getCaptureDevice
public CaptureDevice getCaptureDevice()
- Specified by:
getCaptureDevice
in interface ViewportAdapter
registerAsKeyListener
public void registerAsKeyListener()
getPhysicalWidth
public double getPhysicalWidth()
- Specified by:
getPhysicalWidth
in interface ViewportAdapter
getPhysicalHeight
public double getPhysicalHeight()
- Specified by:
getPhysicalHeight
in interface ViewportAdapter
setCameraController
public void setCameraController(CameraController cameraController)
- Specified by:
setCameraController
in interface ViewportAdapter
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
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
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
setupOffscreenView
public void setupOffscreenView(int width,
int height)
- Specified by:
setupOffscreenView
in interface ViewportAdapter
getZBuffer
public double[][] getZBuffer()
- Specified by:
getZBuffer
in interface ViewportAdapter
getWorldCoordinatesFromScreenCoordinates
public javax.vecmath.Point3d getWorldCoordinatesFromScreenCoordinates(float x,
float y,
double z)
- Specified by:
getWorldCoordinatesFromScreenCoordinates
in interface ViewportAdapter
addContextSwitchedListener
public void addContextSwitchedListener(ContextSwitchedListener contextSwitchedListener)
- Specified by:
addContextSwitchedListener
in interface ViewportAdapter
getCamera
public CameraAdapter getCamera()
- Specified by:
getCamera
in interface ViewportAdapter