|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
nl.tudelft.simulation.dsol.gui.animation3D.ViewBranch
public class ViewBranch
ViewBranch, the view platform of the scene graph
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
protected Transform3D |
rotateX
Rotate around X-axis |
protected TransformGroup |
rotateXGroup
Rotation around the x-axis of view platform |
protected Transform3D |
rotateY
Rotate around Y-axis |
protected TransformGroup |
rotateYGroup
Rotation around the y-axis of view platform |
protected TransformGroup |
translateGroup
Translation of view platform |
protected Transform3D |
translation
Translation |
protected Transform3D |
zoom
Zoom |
protected TransformGroup |
zoomGroup
Zoom of view platform |
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 |
Constructor Summary | |
---|---|
ViewBranch(Canvas3D canvas3D)
Constructs the view branch |
Method Summary | |
---|---|
protected void |
createBranch(Canvas3D canvas3D)
Create the view branch |
Transform3D |
getRotateX()
|
Transform3D |
getRotateY()
|
Transform3D |
getTranslation()
|
Transform3D |
getZoom()
|
void |
resetView()
Reset the view to the original setting |
void |
setRotateX(Transform3D rotateX)
|
void |
setRotateY(Transform3D rotateY)
|
void |
setTranslation(Transform3D translation)
|
void |
setZoom(Transform3D zoom)
|
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, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Transform3D rotateX
protected Transform3D rotateY
protected Transform3D zoom
protected Transform3D translation
protected TransformGroup rotateYGroup
protected TransformGroup rotateXGroup
protected TransformGroup zoomGroup
protected TransformGroup translateGroup
Constructor Detail |
---|
public ViewBranch(Canvas3D canvas3D)
canvas3D
- A canvas3DMethod Detail |
---|
protected void createBranch(Canvas3D canvas3D)
canvas3D
- A canvas3Dpublic void resetView()
public Transform3D getRotateX()
public Transform3D getRotateY()
public Transform3D getTranslation()
public Transform3D getZoom()
public void setRotateX(Transform3D rotateX)
rotateX
- Rotation around X-axispublic void setRotateY(Transform3D rotateY)
rotateY
- Rotation around Y-axispublic void setTranslation(Transform3D translation)
translation
- Translationpublic void setZoom(Transform3D zoom)
zoom
- Zoom factor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |