Class iicm.vrml.vrwave.Scene
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iicm.vrml.vrwave.Scene

java.lang.Object
   |
   +----iicm.vrml.vrwave.Scene

public class Scene
extends Object
implements ApplyColour
Scene - the VRML scene Copyright (c) 1996,97 IICM

Variable Index

 o COLAMBIENT
 o COLBACKGROUND
 o COLHEADLIGHT
 o FLIP
 o FLY
 o FLYTO
 o frame_
 o framespersecond_
 o HEADSUP
 o movemode_
 o NUMCOLORS
 o NUMNAVMODES
 o root
 o TRISTATE_AUTO
 o TRISTATE_OFF
 o TRISTATE_ON
 o UPDATE_ALL
 o UPDATE_ICON
 o UPDATE_MENU
 o WALK

Constructor Index

 o Scene(Applet)
constructor

Method Index

 o activateAnchor(String, String[], int)
activate an anchor, given by a URL string.
 o addSensor(Node)
add a Sensornode to a list of sensors which are to check before a redraw
 o applyColour(DLGColourChoose)
apply color callback
 o backfaceCulling()
 o behavior()
check if behavior is running (continuous repaints driven by TimeSensor)
 o buildInline(Inline, GroupNode)
build a new subgraph and add created nodes as children nodes to a grouping node (Inline)
 o buildNode(GroupNode)
build a new subgraph (needed for EAI's createVrmlFromString)
 o clearScene()
 o clearStatusMessage()
empty/default status message
 o curDrawingMode()
get drawing mode (according to interaction flag)
 o currentTime()
get current time in seconds (double precision) since Jan 1 1970 00:00:00 GMT
 o draw()
draw the scene (called by SceneCanvas.paint)
 o drawingMode(int, boolean)
set (interactive) drawing mode
 o getBehavior()
check if behavior is enabled
 o getCamera()
get camera
 o getCenter()
get center of scene
 o getColor(int)
get a color (RGB values)
 o getHeadlight()
get headlight flag
 o getInteraction()
check if interaction is enabled (otherwise navigation)
 o getLighting()
 o getLineAntialiasing()
 o getNodeNames()
 o getQuadslices()
 o getRay(float, float)
 o getTexLighting()
 o getTextureMipmapping()
 o getTextureTransparency()
 o getTimestamp()
get frame timestamp
 o getTranspMethod()
 o getWinAspect()
get window aspect
 o getWorldURL()
get the URL of the currently shown scene
 o hasLightSource()
is there a light source?
 o interactionRelevant()
interaction flag relevant? The case when interactive drawmode set differently from normal one
 o interDrawingMode()
interactive drawing mode
 o levelView()
level view
 o materials()
 o newScene()
get a new, empty scene
 o normalDrawingMode()
normal drawing mode
 o openFile()
choose a file to open
 o openLocation()
choose a location to open
 o pick(float, float, VHitpoint)
pick the scenegraph.
 o pick(float, float, VHitpoint, boolean, boolean)
pick the scenegraph.
 o readScene(InputStream, String, String)
readScene - read VRML input stream
 o readScene(String, String)
readScene - read VRML stream from file
 o readScene(URL)
readScene - read VRML stream from URL
 o redraw()
redraw request
 o reloadFile()
reload file/URL opened last time
 o replaceScene(GroupNode)
 o resetView()
reset camera
 o setBackfaceCulling(int)
 o setCamera()
set camera via GE3D
 o setCenter(float[])
set center of scene
 o setColor(int, int)
change a color (RGB values)
 o setFrame(Frame)
set frame (for dialogs)
 o setHasLight()
scene has light source; no need for headlight
 o setInteraction(boolean)
set interaction flag
 o setLighting(int)
 o setMaterials(boolean)
 o setMenus(MenuItem[])
set menuitems (created by frame)
 o setNavigationMode(int, int)
set navigation mode
 o setProgress(float)
set progress (0.0 to 1.0)
 o setQuadslices(int)
 o setTexLighting(boolean)
 o setTextureMipmapping(int)
 o setTextureTransparency(boolean)
 o setTranspMethod(int)
 o setWinAspect(float)
set window aspect
 o showHelpfile(String)
show help file via web browser
 o statusMessage(String, int)
set status message
 o substChar(String, char, String)
little helper to substitute each occurance of character c by s in String str
 o toggleAbout()
toggle about dialog
 o toggleBehavior(int)
 o toggleColorChooser()
toggle color chooser
 o toggleFrame(Frame)
tiny helper to toggle a Frame
 o toggleHeadlight()
toggle headlight
 o toggleInteraction(int)
 o toggleLineAntialiasing()
 o toggleSettings()
toggle settings dialog
 o toggleShowframerate()
framerate
 o untiltView()
untilt view
 o workingMessage(String)
set working message
 o workingState(boolean)
switch to working state

Variables

 o root
  protected GroupNode root
 o frame_
  protected Frame frame_
 o framespersecond_
  public float framespersecond_
 o movemode_
  protected int movemode_
 o FLIP
  public final static int FLIP
 o WALK
  public final static int WALK
 o FLY
  public final static int FLY
 o FLYTO
  public final static int FLYTO
 o HEADSUP
  public final static int HEADSUP
 o NUMNAVMODES
  public final static int NUMNAVMODES
 o UPDATE_MENU
  public final static int UPDATE_MENU
 o UPDATE_ICON
  public final static int UPDATE_ICON
 o UPDATE_ALL
  public final static int UPDATE_ALL
 o COLBACKGROUND
  public final static int COLBACKGROUND
 o COLHEADLIGHT
  public final static int COLHEADLIGHT
 o COLAMBIENT
  public final static int COLAMBIENT
 o NUMCOLORS
  public final static int NUMCOLORS
 o TRISTATE_OFF
  public final static int TRISTATE_OFF
 o TRISTATE_ON
  public final static int TRISTATE_ON
 o TRISTATE_AUTO
  public final static int TRISTATE_AUTO

Constructors

 o Scene
  public Scene(Applet applet)
constructor

Methods

 o getTimestamp
  public double getTimestamp()
get frame timestamp
 o toggleShowframerate
  public void toggleShowframerate()
framerate
 o setInteraction
  public void setInteraction(boolean flag)
set interaction flag
 o interactionRelevant
  public boolean interactionRelevant()
interaction flag relevant? The case when interactive drawmode set differently from normal one
 o drawingMode
  public void drawingMode(int mode,
                          boolean interactive)
set (interactive) drawing mode
 o curDrawingMode
  public int curDrawingMode()
get drawing mode (according to interaction flag)
 o normalDrawingMode
  public int normalDrawingMode()
normal drawing mode
 o interDrawingMode
  public int interDrawingMode()
interactive drawing mode
 o resetView
  protected void resetView()
reset camera
 o levelView
  protected void levelView()
level view
 o untiltView
  protected void untiltView()
untilt view
 o setCamera
  protected void setCamera()
set camera via GE3D
 o getCamera
  public Camera getCamera()
get camera
 o setFrame
  protected void setFrame(Frame frame)
set frame (for dialogs)
 o setMenus
  protected void setMenus(MenuItem items[])
set menuitems (created by frame)
 o redraw
  public void redraw()
redraw request
 o statusMessage
  public void statusMessage(String label,
                            int fnum)
set status message
 o clearStatusMessage
  public void clearStatusMessage()
empty/default status message
 o workingMessage
  public void workingMessage(String label)
set working message
 o workingState
  public void workingState(boolean flag)
switch to working state
 o setProgress
  public void setProgress(float level)
set progress (0.0 to 1.0)
 o setWinAspect
  public void setWinAspect(float val)
set window aspect
 o getWinAspect
  public float getWinAspect()
get window aspect
 o setCenter
  public void setCenter(float c[])
set center of scene
 o getCenter
  public float[] getCenter()
get center of scene
 o setNavigationMode
  public void setNavigationMode(int mode,
                                int whatupdates)
set navigation mode
 o setHasLight
  public void setHasLight()
scene has light source; no need for headlight
 o hasLightSource
  public boolean hasLightSource()
is there a light source?
 o toggleHeadlight
  public void toggleHeadlight()
toggle headlight
 o getHeadlight
  public boolean getHeadlight()
get headlight flag
 o getColor
  public int getColor(int i)
get a color (RGB values)
 o setColor
  public void setColor(int i,
                       int rgb)
change a color (RGB values)
 o backfaceCulling
  public int backfaceCulling()
 o setBackfaceCulling
  public void setBackfaceCulling(int val)
 o getLineAntialiasing
  public int getLineAntialiasing()
 o toggleLineAntialiasing
  public void toggleLineAntialiasing()
 o getTextureMipmapping
  public int getTextureMipmapping()
 o setTextureMipmapping
  public void setTextureMipmapping(int quality)
 o getLighting
  public int getLighting()
 o setLighting
  public void setLighting(int val)
 o getTexLighting
  public boolean getTexLighting()
 o setTexLighting
  public void setTexLighting(boolean val)
 o materials
  public boolean materials()
 o setMaterials
  public void setMaterials(boolean val)
 o getTextureTransparency
  public boolean getTextureTransparency()
 o setTextureTransparency
  public void setTextureTransparency(boolean val)
 o getTranspMethod
  public int getTranspMethod()
 o setTranspMethod
  public void setTranspMethod(int val)
 o setQuadslices
  public void setQuadslices(int val)
 o getQuadslices
  public int getQuadslices()
 o toggleBehavior
  public void toggleBehavior(int whatupdates)
 o getBehavior
  public boolean getBehavior()
check if behavior is enabled
 o behavior
  public boolean behavior()
check if behavior is running (continuous repaints driven by TimeSensor)
 o toggleInteraction
  public void toggleInteraction(int whatupdates)
 o getInteraction
  public boolean getInteraction()
check if interaction is enabled (otherwise navigation)
 o addSensor
  public void addSensor(Node sens)
add a Sensornode to a list of sensors which are to check before a redraw
 o currentTime
  public static double currentTime()
get current time in seconds (double precision) since Jan 1 1970 00:00:00 GMT
 o clearScene
  public void clearScene()
 o newScene
  protected void newScene()
get a new, empty scene
 o readScene
  public synchronized void readScene(String filename,
                                     String baseurl)
readScene - read VRML stream from file
Parameters:
filename - name of file to be read (non-null; use InputStream variant to read from stdin)
baseurl - base URL (set to file:filename if null)
 o readScene
  public synchronized void readScene(URL url)
readScene - read VRML stream from URL
 o readScene
  public synchronized void readScene(InputStream input,
                                     String baseurl,
                                     String location)
readScene - read VRML input stream
Parameters:
location - input name for error messages (e.g. baseurl or "")
 o draw
  public synchronized void draw()
draw the scene (called by SceneCanvas.paint)
 o buildInline
  public synchronized void buildInline(Inline node1,
                                       GroupNode node2)
build a new subgraph and add created nodes as children nodes to a grouping node (Inline)
 o buildNode
  public synchronized void buildNode(GroupNode node)
build a new subgraph (needed for EAI's createVrmlFromString)
 o pick
  public synchronized Node pick(float fx,
                                float fy,
                                VHitpoint hit)
pick the scenegraph. fills out Hitpoint.
Returns:
node hit object
 o getRay
  public synchronized Ray getRay(float fx,
                                 float fy)
 o pick
  public synchronized Node pick(float fx,
                                float fy,
                                VHitpoint hit,
                                boolean sensors,
                                boolean keeptrf)
pick the scenegraph. fills out Hitpoint. if flag dragsens is set, pick only dragsensors, otherwise pick geometry
Returns:
node hit object
 o activateAnchor
  public void activateAnchor(String urlstr,
                             String params[],
                             int numparams)
activate an anchor, given by a URL string. target in params passed to AppletContext (ignored otherwise)
 o showHelpfile
  public void showHelpfile(String topic)
show help file via web browser
See Also:
activateAnchor
 o substChar
  public static String substChar(String str,
                                 char c,
                                 String s)
little helper to substitute each occurance of character c by s in String str
 o openFile
  public void openFile()
choose a file to open
 o openLocation
  public void openLocation()
choose a location to open
 o reloadFile
  public boolean reloadFile()
reload file/URL opened last time
 o toggleFrame
  public static void toggleFrame(Frame f)
tiny helper to toggle a Frame
 o toggleColorChooser
  public void toggleColorChooser()
toggle color chooser
 o applyColour
  public void applyColour(DLGColourChoose dlg)
apply color callback
 o toggleAbout
  public void toggleAbout()
toggle about dialog
 o toggleSettings
  public void toggleSettings()
toggle settings dialog
 o getWorldURL
  public String getWorldURL()
get the URL of the currently shown scene
 o getNodeNames
  public Hashtable getNodeNames()
 o replaceScene
  public synchronized void replaceScene(GroupNode node)

All Packages  Class Hierarchy  This Package  Previous  Next  Index