com.yobotics.simulationconstructionset
Class Camera
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
com.sun.j3d.utils.behaviors.mouse.MouseBehavior
com.yobotics.simulationconstructionset.Camera
- All Implemented Interfaces:
- CameraPropertiesDialogListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
public class Camera
- extends com.sun.j3d.utils.behaviors.mouse.MouseBehavior
- implements CameraPropertiesDialogListener, java.awt.event.KeyListener
Title: Yobotics! Simulation Construction Set
Description: Package for Simulating Dynamic Robots and Mechanisms
Copyright: Copyright (c) Jerry Pratt
Company: Yobotics, Inc.
- Version:
- Beta 1.0
- Author:
- Jerry Pratt
Fields inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior |
INVERT_INPUT, MANUAL_WAKEUP |
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 |
Constructor Summary |
Camera(NavigatingCameraHolder navigatingCameraHolder,
javax.media.j3d.Canvas3D canvas3D,
javax.media.j3d.Locale locale,
javax.media.j3d.TransformGroup tG,
Standard3DView view,
YoVariableHolder holder,
Clicked3DPointListenersHolder clicked3DPointListenersHolder)
|
Camera(NavigatingCameraHolder navigatingCameraHolder,
javax.media.j3d.Canvas3D canvas3D,
javax.media.j3d.Locale locale,
javax.media.j3d.TransformGroup tG,
Standard3DView view,
YoVariableHolder holder,
double cx,
double cy,
double cz,
double fx,
double fy,
double fz,
Clicked3DPointListenersHolder clicked3DPointListenersHolder)
|
Method Summary |
void |
addKeyFrame(int time)
|
void |
addKeyFrame(int i,
int time)
|
double |
getCamX()
|
double |
getCamY()
|
double |
getCamZ()
|
double |
getDollyXOffset()
|
double |
getDollyXVar()
|
double |
getDollyYOffset()
|
double |
getDollyYVar()
|
double |
getDollyZOffset()
|
double |
getDollyZVar()
|
DoubleYoVariable |
getFieldOfViewVar()
|
double |
getFixX()
|
double |
getFixY()
|
double |
getFixZ()
|
double |
getTrackingXOffset()
|
double |
getTrackingYOffset()
|
double |
getTrackingZOffset()
|
double |
getTrackXVar()
|
double |
getTrackYVar()
|
double |
getTrackZVar()
|
void |
gotoKey(int index)
|
void |
initialize()
|
boolean |
isDolly()
|
boolean |
isDollyX()
|
boolean |
isDollyY()
|
boolean |
isDollyZ()
|
boolean |
isTracking()
|
boolean |
isTrackingX()
|
boolean |
isTrackingY()
|
boolean |
isTrackingZ()
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
nextCameraKeyPoint(int time)
|
void |
previousCameraKeyPoint(int time)
|
void |
processStimulus(java.util.Enumeration criteria)
|
void |
removeCameraKeyPoint(int time)
|
void |
removeKeyFrameByIndex(int i)
|
int |
removeKeyFrameByTime(int time)
|
void |
reset()
|
boolean |
setCameraKeyPoint(int time)
|
void |
setCameraMount(CameraMount mount)
|
void |
setCameraPosition(double cx,
double cy,
double cz)
|
void |
setCamX(double cx)
|
void |
setCamY(double cy)
|
void |
setCamZ(double cz)
|
void |
setConfiguration(CameraConfiguration config,
VarList varlist,
CameraMountList mountList)
|
void |
setDolly(boolean dolly)
|
void |
setDolly(boolean dolly,
boolean dollyX,
boolean dollyY,
boolean dollyZ)
|
void |
setDollyOffsets(double dx,
double dy,
double dz)
|
void |
setDollyVars(DoubleYoVariable xVar,
DoubleYoVariable yVar,
DoubleYoVariable zVar)
|
void |
setDollyX(boolean dollyX)
|
void |
setDollyXOffset(double dx)
|
void |
setDollyXVar(DoubleYoVariable dolly_x_var)
|
void |
setDollyY(boolean dollyY)
|
void |
setDollyYOffset(double dy)
|
void |
setDollyYVar(DoubleYoVariable dolly_y_var)
|
void |
setDollyZ(boolean dollyZ)
|
void |
setDollyZOffset(double dz)
|
void |
setDollyZVar(DoubleYoVariable dolly_z_var)
|
void |
setFieldOfView(double fov)
|
void |
setFieldOfViewVar(DoubleYoVariable field_of_view_var)
|
void |
setFixPosition(double fx,
double fy,
double fz)
|
void |
setFixX(double fx)
|
void |
setFixY(double fy)
|
void |
setFixZ(double fz)
|
void |
setKeyFrameTime(int time)
|
void |
setTracking(boolean track)
|
void |
setTracking(boolean track,
boolean trackX,
boolean trackY,
boolean trackZ)
|
void |
setTrackingOffsets(double dx,
double dy,
double dz)
|
void |
setTrackingVars(DoubleYoVariable xVar,
DoubleYoVariable yVar,
DoubleYoVariable zVar)
|
void |
setTrackingX(boolean trackX)
|
void |
setTrackingXOffset(double dx)
|
void |
setTrackingY(boolean trackY)
|
void |
setTrackingYOffset(double dy)
|
void |
setTrackingZ(boolean trackZ)
|
void |
setTrackingZOffset(double dz)
|
void |
setTrackXVar(DoubleYoVariable track_x_var)
|
void |
setTrackYVar(DoubleYoVariable track_y_var)
|
void |
setTrackZVar(DoubleYoVariable track_z_var)
|
void |
setUseCameraKeyPoints(boolean use)
|
void |
update()
|
boolean |
useKeyCameraPoints()
|
Methods inherited from class com.sun.j3d.utils.behaviors.mouse.MouseBehavior |
addListener, getTransformGroup, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, processMouseEvent, setEnable, setTransformGroup, wakeup |
Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences |
Methods inherited from class javax.media.j3d.Node |
cloneNode, 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MIN_FIELD_OF_VIEW
public static final double MIN_FIELD_OF_VIEW
- See Also:
- Constant Field Values
MAX_FIELD_OF_VIEW
public static final double MAX_FIELD_OF_VIEW
- See Also:
- Constant Field Values
Camera
public Camera(NavigatingCameraHolder navigatingCameraHolder,
javax.media.j3d.Canvas3D canvas3D,
javax.media.j3d.Locale locale,
javax.media.j3d.TransformGroup tG,
Standard3DView view,
YoVariableHolder holder,
Clicked3DPointListenersHolder clicked3DPointListenersHolder)
Camera
public Camera(NavigatingCameraHolder navigatingCameraHolder,
javax.media.j3d.Canvas3D canvas3D,
javax.media.j3d.Locale locale,
javax.media.j3d.TransformGroup tG,
Standard3DView view,
YoVariableHolder holder,
double cx,
double cy,
double cz,
double fx,
double fy,
double fz,
Clicked3DPointListenersHolder clicked3DPointListenersHolder)
setCameraMount
public void setCameraMount(CameraMount mount)
getTrackXVar
public double getTrackXVar()
- Specified by:
getTrackXVar
in interface CameraPropertiesDialogListener
getTrackYVar
public double getTrackYVar()
- Specified by:
getTrackYVar
in interface CameraPropertiesDialogListener
getTrackZVar
public double getTrackZVar()
- Specified by:
getTrackZVar
in interface CameraPropertiesDialogListener
getDollyXVar
public double getDollyXVar()
- Specified by:
getDollyXVar
in interface CameraPropertiesDialogListener
getDollyYVar
public double getDollyYVar()
- Specified by:
getDollyYVar
in interface CameraPropertiesDialogListener
getDollyZVar
public double getDollyZVar()
- Specified by:
getDollyZVar
in interface CameraPropertiesDialogListener
setTrackXVar
public void setTrackXVar(DoubleYoVariable track_x_var)
setTrackYVar
public void setTrackYVar(DoubleYoVariable track_y_var)
setTrackZVar
public void setTrackZVar(DoubleYoVariable track_z_var)
setDollyXVar
public void setDollyXVar(DoubleYoVariable dolly_x_var)
setDollyYVar
public void setDollyYVar(DoubleYoVariable dolly_y_var)
setDollyZVar
public void setDollyZVar(DoubleYoVariable dolly_z_var)
setFieldOfViewVar
public void setFieldOfViewVar(DoubleYoVariable field_of_view_var)
getFieldOfViewVar
public DoubleYoVariable getFieldOfViewVar()
setConfiguration
public void setConfiguration(CameraConfiguration config,
VarList varlist,
CameraMountList mountList)
isTracking
public boolean isTracking()
- Specified by:
isTracking
in interface CameraPropertiesDialogListener
isTrackingX
public boolean isTrackingX()
- Specified by:
isTrackingX
in interface CameraPropertiesDialogListener
isTrackingY
public boolean isTrackingY()
- Specified by:
isTrackingY
in interface CameraPropertiesDialogListener
isTrackingZ
public boolean isTrackingZ()
- Specified by:
isTrackingZ
in interface CameraPropertiesDialogListener
isDolly
public boolean isDolly()
- Specified by:
isDolly
in interface CameraPropertiesDialogListener
isDollyX
public boolean isDollyX()
- Specified by:
isDollyX
in interface CameraPropertiesDialogListener
isDollyY
public boolean isDollyY()
- Specified by:
isDollyY
in interface CameraPropertiesDialogListener
isDollyZ
public boolean isDollyZ()
- Specified by:
isDollyZ
in interface CameraPropertiesDialogListener
setTracking
public void setTracking(boolean track,
boolean trackX,
boolean trackY,
boolean trackZ)
setDolly
public void setDolly(boolean dolly,
boolean dollyX,
boolean dollyY,
boolean dollyZ)
setTrackingOffsets
public void setTrackingOffsets(double dx,
double dy,
double dz)
setDollyOffsets
public void setDollyOffsets(double dx,
double dy,
double dz)
setTrackingVars
public void setTrackingVars(DoubleYoVariable xVar,
DoubleYoVariable yVar,
DoubleYoVariable zVar)
setDollyVars
public void setDollyVars(DoubleYoVariable xVar,
DoubleYoVariable yVar,
DoubleYoVariable zVar)
setTracking
public void setTracking(boolean track)
- Specified by:
setTracking
in interface CameraPropertiesDialogListener
setTrackingX
public void setTrackingX(boolean trackX)
- Specified by:
setTrackingX
in interface CameraPropertiesDialogListener
setTrackingY
public void setTrackingY(boolean trackY)
- Specified by:
setTrackingY
in interface CameraPropertiesDialogListener
setTrackingZ
public void setTrackingZ(boolean trackZ)
- Specified by:
setTrackingZ
in interface CameraPropertiesDialogListener
setDolly
public void setDolly(boolean dolly)
- Specified by:
setDolly
in interface CameraPropertiesDialogListener
setDollyX
public void setDollyX(boolean dollyX)
- Specified by:
setDollyX
in interface CameraPropertiesDialogListener
setDollyY
public void setDollyY(boolean dollyY)
- Specified by:
setDollyY
in interface CameraPropertiesDialogListener
setDollyZ
public void setDollyZ(boolean dollyZ)
- Specified by:
setDollyZ
in interface CameraPropertiesDialogListener
getTrackingXOffset
public double getTrackingXOffset()
- Specified by:
getTrackingXOffset
in interface CameraPropertiesDialogListener
getTrackingYOffset
public double getTrackingYOffset()
- Specified by:
getTrackingYOffset
in interface CameraPropertiesDialogListener
getTrackingZOffset
public double getTrackingZOffset()
- Specified by:
getTrackingZOffset
in interface CameraPropertiesDialogListener
getDollyXOffset
public double getDollyXOffset()
- Specified by:
getDollyXOffset
in interface CameraPropertiesDialogListener
getDollyYOffset
public double getDollyYOffset()
- Specified by:
getDollyYOffset
in interface CameraPropertiesDialogListener
getDollyZOffset
public double getDollyZOffset()
- Specified by:
getDollyZOffset
in interface CameraPropertiesDialogListener
setTrackingXOffset
public void setTrackingXOffset(double dx)
- Specified by:
setTrackingXOffset
in interface CameraPropertiesDialogListener
setTrackingYOffset
public void setTrackingYOffset(double dy)
- Specified by:
setTrackingYOffset
in interface CameraPropertiesDialogListener
setTrackingZOffset
public void setTrackingZOffset(double dz)
- Specified by:
setTrackingZOffset
in interface CameraPropertiesDialogListener
setDollyXOffset
public void setDollyXOffset(double dx)
- Specified by:
setDollyXOffset
in interface CameraPropertiesDialogListener
setDollyYOffset
public void setDollyYOffset(double dy)
- Specified by:
setDollyYOffset
in interface CameraPropertiesDialogListener
setDollyZOffset
public void setDollyZOffset(double dz)
- Specified by:
setDollyZOffset
in interface CameraPropertiesDialogListener
update
public void update()
- Specified by:
update
in interface CameraPropertiesDialogListener
addKeyFrame
public void addKeyFrame(int time)
addKeyFrame
public void addKeyFrame(int i,
int time)
removeKeyFrameByTime
public int removeKeyFrameByTime(int time)
removeKeyFrameByIndex
public void removeKeyFrameByIndex(int i)
setKeyFrameTime
public void setKeyFrameTime(int time)
gotoKey
public void gotoKey(int index)
getFixX
public double getFixX()
- Specified by:
getFixX
in interface CameraPropertiesDialogListener
getFixY
public double getFixY()
- Specified by:
getFixY
in interface CameraPropertiesDialogListener
getFixZ
public double getFixZ()
- Specified by:
getFixZ
in interface CameraPropertiesDialogListener
getCamX
public double getCamX()
- Specified by:
getCamX
in interface CameraPropertiesDialogListener
getCamY
public double getCamY()
- Specified by:
getCamY
in interface CameraPropertiesDialogListener
getCamZ
public double getCamZ()
- Specified by:
getCamZ
in interface CameraPropertiesDialogListener
setFixX
public void setFixX(double fx)
- Specified by:
setFixX
in interface CameraPropertiesDialogListener
setFixY
public void setFixY(double fy)
- Specified by:
setFixY
in interface CameraPropertiesDialogListener
setFixZ
public void setFixZ(double fz)
- Specified by:
setFixZ
in interface CameraPropertiesDialogListener
setCamX
public void setCamX(double cx)
- Specified by:
setCamX
in interface CameraPropertiesDialogListener
setCamY
public void setCamY(double cy)
- Specified by:
setCamY
in interface CameraPropertiesDialogListener
setCamZ
public void setCamZ(double cz)
- Specified by:
setCamZ
in interface CameraPropertiesDialogListener
setFixPosition
public void setFixPosition(double fx,
double fy,
double fz)
setCameraPosition
public void setCameraPosition(double cx,
double cy,
double cz)
initialize
public void initialize()
- Overrides:
initialize
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
processStimulus
public void processStimulus(java.util.Enumeration criteria)
- Specified by:
processStimulus
in class com.sun.j3d.utils.behaviors.mouse.MouseBehavior
reset
public void reset()
setFieldOfView
public void setFieldOfView(double fov)
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
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
setUseCameraKeyPoints
public void setUseCameraKeyPoints(boolean use)
useKeyCameraPoints
public boolean useKeyCameraPoints()
setCameraKeyPoint
public boolean setCameraKeyPoint(int time)
nextCameraKeyPoint
public void nextCameraKeyPoint(int time)
previousCameraKeyPoint
public void previousCameraKeyPoint(int time)
removeCameraKeyPoint
public void removeCameraKeyPoint(int time)