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