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
   
  -   COLAMBIENT COLAMBIENT
-  
  
-   COLBACKGROUND COLBACKGROUND
-  
  
-   COLHEADLIGHT COLHEADLIGHT
-  
  
-   FLIP FLIP
-  
  
-   FLY FLY
-  
  
-   FLYTO FLYTO
-  
  
-   frame_ frame_
-  
  
-   framespersecond_ framespersecond_
-  
  
-   HEADSUP HEADSUP
-  
  
-   movemode_ movemode_
-  
  
-   NUMCOLORS NUMCOLORS
-  
  
-   NUMNAVMODES NUMNAVMODES
-  
  
-   root root
-  
  
-   TRISTATE_AUTO TRISTATE_AUTO
-  
  
-   TRISTATE_OFF TRISTATE_OFF
-  
  
-   TRISTATE_ON TRISTATE_ON
-  
  
-   UPDATE_ALL UPDATE_ALL
-  
  
-   UPDATE_ICON UPDATE_ICON
-  
  
-   UPDATE_MENU UPDATE_MENU
-  
  
-   WALK WALK
-  
   
  -   Scene(Applet) Scene(Applet)
-  constructor
   
  -   activateAnchor(String, String[], int) activateAnchor(String, String[], int)
-  activate an anchor, given by a URL string.
  
-   addSensor(Node) addSensor(Node)
-  add a Sensornode to a list of sensors which are to check before a redraw
  
-   applyColour(DLGColourChoose) applyColour(DLGColourChoose)
-  apply color callback
  
-   backfaceCulling() backfaceCulling()
-  
  
-   behavior() behavior()
-  check if behavior is running (continuous repaints driven by TimeSensor)
  
-   buildInline(Inline, GroupNode) buildInline(Inline, GroupNode)
-  build a new subgraph and add created nodes as children nodes to a grouping node (Inline)
  
-   buildNode(GroupNode) buildNode(GroupNode)
-  build a new subgraph (needed for EAI's createVrmlFromString)
  
-   clearScene() clearScene()
-  
  
-   clearStatusMessage() clearStatusMessage()
-  empty/default status message
  
-   curDrawingMode() curDrawingMode()
-  get drawing mode (according to interaction flag)
  
-   currentTime() currentTime()
-  get current time in seconds (double precision) since Jan 1 1970 00:00:00 GMT
  
-   draw() draw()
-  draw the scene (called by SceneCanvas.paint)
  
-   drawingMode(int, boolean) drawingMode(int, boolean)
-  set (interactive) drawing mode
  
-   getBehavior() getBehavior()
-  check if behavior is enabled
  
-   getCamera() getCamera()
-  get camera
  
-   getCenter() getCenter()
-  get center of scene
  
-   getColor(int) getColor(int)
-  get a color (RGB values)
  
-   getHeadlight() getHeadlight()
-  get headlight flag
  
-   getInteraction() getInteraction()
-  check if interaction is enabled (otherwise navigation)
  
-   getLighting() getLighting()
-  
  
-   getLineAntialiasing() getLineAntialiasing()
-  
  
-   getNodeNames() getNodeNames()
-  
  
-   getQuadslices() getQuadslices()
-  
  
-   getRay(float, float) getRay(float, float)
-  
  
-   getTexLighting() getTexLighting()
-  
  
-   getTextureMipmapping() getTextureMipmapping()
-  
  
-   getTextureTransparency() getTextureTransparency()
-  
  
-   getTimestamp() getTimestamp()
-  get frame timestamp
  
-   getTranspMethod() getTranspMethod()
-  
  
-   getWinAspect() getWinAspect()
-  get window aspect
  
-   getWorldURL() getWorldURL()
-  get the URL of the currently shown scene
  
-   hasLightSource() hasLightSource()
-  is there a light source?
  
-   interactionRelevant() interactionRelevant()
-  interaction flag relevant? The case when interactive drawmode set differently from normal one
  
-   interDrawingMode() interDrawingMode()
-  interactive drawing mode
  
-   levelView() levelView()
-  level view
  
-   materials() materials()
-  
  
-   newScene() newScene()
-  get a new, empty scene
  
-   normalDrawingMode() normalDrawingMode()
-  normal drawing mode
  
-   openFile() openFile()
-  choose a file to open
  
-   openLocation() openLocation()
-  choose a location to open
  
-   pick(float, float, VHitpoint) pick(float, float, VHitpoint)
-  pick the scenegraph.
  
-   pick(float, float, VHitpoint, boolean, boolean) pick(float, float, VHitpoint, boolean, boolean)
-  pick the scenegraph.
  
-   readScene(InputStream, String, String) readScene(InputStream, String, String)
-  readScene - read VRML input stream
  
-   readScene(String, String) readScene(String, String)
-  readScene - read VRML stream from file
  
-   readScene(URL) readScene(URL)
-  readScene - read VRML stream from URL
  
-   redraw() redraw()
-  redraw request
  
-   reloadFile() reloadFile()
-  reload file/URL opened last time
  
-   replaceScene(GroupNode) replaceScene(GroupNode)
-  
  
-   resetView() resetView()
-  reset camera
  
-   setBackfaceCulling(int) setBackfaceCulling(int)
-  
  
-   setCamera() setCamera()
-  set camera via GE3D
  
-   setCenter(float[]) setCenter(float[])
-  set center of scene
  
-   setColor(int, int) setColor(int, int)
-  change a color (RGB values)
  
-   setFrame(Frame) setFrame(Frame)
-  set frame (for dialogs)
  
-   setHasLight() setHasLight()
-  scene has light source; no need for headlight
  
-   setInteraction(boolean) setInteraction(boolean)
-  set interaction flag
  
-   setLighting(int) setLighting(int)
-  
  
-   setMaterials(boolean) setMaterials(boolean)
-  
  
-   setMenus(MenuItem[]) setMenus(MenuItem[])
-  set menuitems (created by frame)
  
-   setNavigationMode(int, int) setNavigationMode(int, int)
-  set navigation mode
  
-   setProgress(float) setProgress(float)
-  set progress (0.0 to 1.0)
  
-   setQuadslices(int) setQuadslices(int)
-  
  
-   setTexLighting(boolean) setTexLighting(boolean)
-  
  
-   setTextureMipmapping(int) setTextureMipmapping(int)
-  
  
-   setTextureTransparency(boolean) setTextureTransparency(boolean)
-  
  
-   setTranspMethod(int) setTranspMethod(int)
-  
  
-   setWinAspect(float) setWinAspect(float)
-  set window aspect
  
-   showHelpfile(String) showHelpfile(String)
-  show help file via web browser
  
-   statusMessage(String, int) statusMessage(String, int)
-  set status message
  
-   substChar(String, char, String) substChar(String, char, String)
-  little helper to substitute each occurance of character c by s
in String str
  
-   toggleAbout() toggleAbout()
-  toggle about dialog
  
-   toggleBehavior(int) toggleBehavior(int)
-  
  
-   toggleColorChooser() toggleColorChooser()
-  toggle color chooser
  
-   toggleFrame(Frame) toggleFrame(Frame)
-  tiny helper to toggle a Frame
  
-   toggleHeadlight() toggleHeadlight()
-  toggle headlight
  
-   toggleInteraction(int) toggleInteraction(int)
-  
  
-   toggleLineAntialiasing() toggleLineAntialiasing()
-  
  
-   toggleSettings() toggleSettings()
-  toggle settings dialog
  
-   toggleShowframerate() toggleShowframerate()
-  framerate
  
-   untiltView() untiltView()
-  untilt view
  
-   workingMessage(String) workingMessage(String)
-  set working message
  
-   workingState(boolean) workingState(boolean)
-  switch to working state
   
 root
root
  protected GroupNode root
 frame_
frame_
  protected Frame frame_
 framespersecond_
framespersecond_
  public float framespersecond_
 movemode_
movemode_
  protected int movemode_
 FLIP
FLIP
  public final static int FLIP
 WALK
WALK
  public final static int WALK
 FLY
FLY
  public final static int FLY
 FLYTO
FLYTO
  public final static int FLYTO
 HEADSUP
HEADSUP
  public final static int HEADSUP
 NUMNAVMODES
NUMNAVMODES
  public final static int NUMNAVMODES
 UPDATE_MENU
UPDATE_MENU
  public final static int UPDATE_MENU
 UPDATE_ICON
UPDATE_ICON
  public final static int UPDATE_ICON
 UPDATE_ALL
UPDATE_ALL
  public final static int UPDATE_ALL
 COLBACKGROUND
COLBACKGROUND
  public final static int COLBACKGROUND
 COLHEADLIGHT
COLHEADLIGHT
  public final static int COLHEADLIGHT
 COLAMBIENT
COLAMBIENT
  public final static int COLAMBIENT
 NUMCOLORS
NUMCOLORS
  public final static int NUMCOLORS
 TRISTATE_OFF
TRISTATE_OFF
  public final static int TRISTATE_OFF
 TRISTATE_ON
TRISTATE_ON
  public final static int TRISTATE_ON
 TRISTATE_AUTO
TRISTATE_AUTO
  public final static int TRISTATE_AUTO
   
 Scene
Scene
  public Scene(Applet applet)
  -  constructor
   
 getTimestamp
getTimestamp
  public double getTimestamp()
  -  get frame timestamp
 toggleShowframerate
toggleShowframerate
  public void toggleShowframerate()
  -  framerate
 setInteraction
setInteraction
  public void setInteraction(boolean flag)
  -  set interaction flag
 interactionRelevant
interactionRelevant
  public boolean interactionRelevant()
  -  interaction flag relevant? The case when interactive drawmode set differently from normal one
 drawingMode
drawingMode
  public void drawingMode(int mode,
                          boolean interactive)
  -  set (interactive) drawing mode
 curDrawingMode
curDrawingMode
  public int curDrawingMode()
  -  get drawing mode (according to interaction flag)
 normalDrawingMode
normalDrawingMode
  public int normalDrawingMode()
  -  normal drawing mode
 interDrawingMode
interDrawingMode
  public int interDrawingMode()
  -  interactive drawing mode
 resetView
resetView
  protected void resetView()
  -  reset camera
 levelView
levelView
  protected void levelView()
  -  level view
 untiltView
untiltView
  protected void untiltView()
  -  untilt view
 setCamera
setCamera
  protected void setCamera()
  -  set camera via GE3D
 getCamera
getCamera
  public Camera getCamera()
  -  get camera
 setFrame
setFrame
  protected void setFrame(Frame frame)
  -  set frame (for dialogs)
 setMenus
setMenus
  protected void setMenus(MenuItem items[])
  -  set menuitems (created by frame)
 redraw
redraw
  public void redraw()
  -  redraw request
 statusMessage
statusMessage
  public void statusMessage(String label,
                            int fnum)
  -  set status message
 clearStatusMessage
clearStatusMessage
  public void clearStatusMessage()
  -  empty/default status message
 workingMessage
workingMessage
  public void workingMessage(String label)
  -  set working message
 workingState
workingState
  public void workingState(boolean flag)
  -  switch to working state
 setProgress
setProgress
  public void setProgress(float level)
  -  set progress (0.0 to 1.0)
 setWinAspect
setWinAspect
  public void setWinAspect(float val)
  -  set window aspect
 getWinAspect
getWinAspect
  public float getWinAspect()
  -  get window aspect
 setCenter
setCenter
  public void setCenter(float c[])
  -  set center of scene
 getCenter
getCenter
  public float[] getCenter()
  -  get center of scene
 setNavigationMode
setNavigationMode
  public void setNavigationMode(int mode,
                                int whatupdates)
  -  set navigation mode
 setHasLight
setHasLight
  public void setHasLight()
  -  scene has light source; no need for headlight
 hasLightSource
hasLightSource
  public boolean hasLightSource()
  -  is there a light source?
 toggleHeadlight
toggleHeadlight
  public void toggleHeadlight()
  -  toggle headlight
 getHeadlight
getHeadlight
  public boolean getHeadlight()
  -  get headlight flag
 getColor
getColor
  public int getColor(int i)
  -  get a color (RGB values)
 setColor
setColor
  public void setColor(int i,
                       int rgb)
  -  change a color (RGB values)
 backfaceCulling
backfaceCulling
  public int backfaceCulling()
 setBackfaceCulling
setBackfaceCulling
  public void setBackfaceCulling(int val)
 getLineAntialiasing
getLineAntialiasing
  public int getLineAntialiasing()
 toggleLineAntialiasing
toggleLineAntialiasing
  public void toggleLineAntialiasing()
 getTextureMipmapping
getTextureMipmapping
  public int getTextureMipmapping()
 setTextureMipmapping
setTextureMipmapping
  public void setTextureMipmapping(int quality)
 getLighting
getLighting
  public int getLighting()
 setLighting
setLighting
  public void setLighting(int val)
 getTexLighting
getTexLighting
  public boolean getTexLighting()
 setTexLighting
setTexLighting
  public void setTexLighting(boolean val)
 materials
materials
  public boolean materials()
 setMaterials
setMaterials
  public void setMaterials(boolean val)
 getTextureTransparency
getTextureTransparency
  public boolean getTextureTransparency()
 setTextureTransparency
setTextureTransparency
  public void setTextureTransparency(boolean val)
 getTranspMethod
getTranspMethod
  public int getTranspMethod()
 setTranspMethod
setTranspMethod
  public void setTranspMethod(int val)
 setQuadslices
setQuadslices
  public void setQuadslices(int val)
 getQuadslices
getQuadslices
  public int getQuadslices()
 toggleBehavior
toggleBehavior
  public void toggleBehavior(int whatupdates)
 getBehavior
getBehavior
  public boolean getBehavior()
  -  check if behavior is enabled
 behavior
behavior
  public boolean behavior()
  -  check if behavior is running (continuous repaints driven by TimeSensor)
 toggleInteraction
toggleInteraction
  public void toggleInteraction(int whatupdates)
 getInteraction
getInteraction
  public boolean getInteraction()
  -  check if interaction is enabled (otherwise navigation)
 addSensor
addSensor
  public void addSensor(Node sens)
  -  add a Sensornode to a list of sensors which are to check before a redraw
 currentTime
currentTime
  public static double currentTime()
  -  get current time in seconds (double precision) since Jan 1 1970 00:00:00 GMT
 clearScene
clearScene
  public void clearScene()
 newScene
newScene
  protected void newScene()
  -  get a new, empty scene
 readScene
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)
  
 
 readScene
readScene
  public synchronized void readScene(URL url)
  -  readScene - read VRML stream from URL
 readScene
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 "")
  
 
 draw
draw
  public synchronized void draw()
  -  draw the scene (called by SceneCanvas.paint)
 buildInline
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)
 buildNode
buildNode
  public synchronized void buildNode(GroupNode node)
  -  build a new subgraph (needed for EAI's createVrmlFromString)
 pick
pick
  public synchronized Node pick(float fx,
                                float fy,
                                VHitpoint hit)
  -  pick the scenegraph. fills out Hitpoint.
  
    -  Returns:
    
-  node hit object
  
 
 getRay
getRay
  public synchronized Ray getRay(float fx,
                                 float fy)
 pick
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
  
 
 activateAnchor
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)
 showHelpfile
showHelpfile
  public void showHelpfile(String topic)
  -  show help file via web browser
  
    -  See Also:
    
-  activateAnchor
  
 
 substChar
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
 openFile
openFile
  public void openFile()
  -  choose a file to open
 openLocation
openLocation
  public void openLocation()
  -  choose a location to open
 reloadFile
reloadFile
  public boolean reloadFile()
  -  reload file/URL opened last time
 toggleFrame
toggleFrame
  public static void toggleFrame(Frame f)
  -  tiny helper to toggle a Frame
 toggleColorChooser
toggleColorChooser
  public void toggleColorChooser()
  -  toggle color chooser
 applyColour
applyColour
  public void applyColour(DLGColourChoose dlg)
  -  apply color callback
 toggleAbout
toggleAbout
  public void toggleAbout()
  -  toggle about dialog
 toggleSettings
toggleSettings
  public void toggleSettings()
  -  toggle settings dialog
 getWorldURL
getWorldURL
  public String getWorldURL()
  -  get the URL of the currently shown scene
 getNodeNames
getNodeNames
  public Hashtable getNodeNames()
 replaceScene
replaceScene
  public synchronized void replaceScene(GroupNode node)
All Packages  Class Hierarchy  This Package  Previous  Next  Index