|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.J3DBase
This class encapsulates the basic scene graph structure and provides some functionality (adding, retrieving, removing ) to manage the objects in the scene graph. It also permits loading VRML files into the virtual world.
Constructor Summary | |
J3DBase()
Creates a new scene and adds the default views to it. |
Method Summary | |
void |
addContent(VcContent content)
Adds a VcContent object to the scene graph; notifyChangeListeners is called at the end of execution. |
void |
addGeometryBag(GeometryBag bag)
Added 06/2002. |
void |
addHelper(VcHelper helper)
Adds a VcHelper object to the scene graph; notifyChangeListeners is called at the end of execution. |
void |
addLaserArray(VcLaserArray array)
Adds a VcLaserArray to the scene graph; notifyChangeListeners is called at the end of execution. |
void |
addLight(VcLight light)
Adds a VcLight to the scene graph. |
void |
addSceneObjectsChangeListener(SceneObjectsChangeListener listener)
Adds a listener to this object. |
void |
addView(VcView view)
Adds a VcView to the scene graph; notifyChangeListeners is called at the end of execution. |
void |
debugln(java.lang.String s)
Prints a debug message. |
void |
frameAllObjectsInView(VcView view)
Description of the Method |
void |
frameObjectInView(VcView view,
VcObject vcObject)
Description of the Method |
VcObject |
getByLabel(java.lang.String label)
Returns a VcObject given its label. |
GeometryBag |
getDefaultGeometryBag()
|
VcView |
getDefaultView()
Returns the current default view |
javax.media.j3d.BranchGroup |
getJ3DRootBranchGroup()
Gets the j3DRootBranchGroup attribute of the J3DBase object |
java.util.Vector |
getObjectList()
Returns a Vector containing the list of objects in the scene graph. |
java.util.List |
getViewList()
Returns a Vector containing the list of VcViews in the scene graph. |
void |
loadVRMLScene(java.lang.String filename)
Loads a VMRL 2.0 file into the scene graph. |
void |
lookAt(VcView view,
VcObject vcObject)
Description of the Method |
void |
printLabels()
Iterates through the list of objects in the scene graph and prints the label associated with each one. |
void |
removeVcObject(VcObject vcObject)
Removes an VcObject from the scene graph. |
void |
setDefaultView(VcView view)
Sets a view that already belongs to the collection of VcViews as the default view. |
void |
toggleHelpingGrid()
Toggles exhibition of helping grid. |
void |
vcObjectChanged(VcObjectEvent event)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J3DBase()
Method Detail |
public void setDefaultView(VcView view)
view
- the new default viewpublic java.util.Vector getObjectList()
public java.util.List getViewList()
public VcObject getByLabel(java.lang.String label)
label
- name of object to be searched for
public VcView getDefaultView()
public javax.media.j3d.BranchGroup getJ3DRootBranchGroup()
public GeometryBag getDefaultGeometryBag()
public void addLight(VcLight light)
light
- the new VcLight.public void addView(VcView view)
view
- the new VcViewpublic void addLaserArray(VcLaserArray array)
array
- the new VcLaserArraypublic void addContent(VcContent content)
content
- the new VcContentpublic void addHelper(VcHelper helper)
helper
- the new VcHelperpublic void addGeometryBag(GeometryBag bag)
bag
- The feature to be added to the GeometryBag attributepublic void removeVcObject(VcObject vcObject)
vcObject
- the VcObject to be deleted.public void loadVRMLScene(java.lang.String filename)
filename
- name of VRML file to be loadedpublic void addSceneObjectsChangeListener(SceneObjectsChangeListener listener)
listener
- new listener to be addedpublic void printLabels()
public void debugln(java.lang.String s)
s
- message to be printed.public void toggleHelpingGrid()
public void vcObjectChanged(VcObjectEvent event)
vcObjectChanged
in interface VcObjectChangeListener
event
- Description of the Parameterpublic void frameObjectInView(VcView view, VcObject vcObject)
view
- Description of the ParametervcObject
- Description of the Parameterpublic void frameAllObjectsInView(VcView view)
view
- Description of the Parameterpublic void lookAt(VcView view, VcObject vcObject)
view
- Description of the ParametervcObject
- Description of the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |