Java Doc for Browser.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3d » loaders » vrml97 » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » org.jdesktop.j3d.loaders.vrml97.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jdesktop.j3d.loaders.vrml97.impl.Browser

Browser
public class Browser (Code)
Browser J3D structure:

The browser has two kinds of J3D structures: permanent structures which are changed the current scene and reset for each URL, and a scene branchgraph which holds the J3D tree parsed from the current VRML url.

The permanent BranchGroup is called browserRoot. It holds:

  • the browser's behaviors (which control the VRML runtime)
  • a FogSlot and a BackgroundSlot which groups which hold the currently active VRML Fog or Background
  • The default ViewPlatform, associated with the default Viewpoint

Views:

There is one View, PhysicalBody and PhysicalEnvironment which are used by the currently active Viewpoint and NavigationInfo.

Each file Viewpoint defines a new ViewPlaform, which get associated with the view when the viewpoint is bound.

There are default Viewpoint, NavigationInfo, Fog and Background VRML nodes which are used if the file does not define them

The initial VP, NI, Fog and BG are the value first seen from the file. This value will be bound in loadFinalize().

The VP, NI, Fog and BG stacks are used after the file is loaded. When each node is bound, if it is already on the stack, it removed itself from the stack and then it pushes itself onto the stack. The top entry on the stack is the currently active value.

The browser also has an ambient light and a directional light (the headlight). These are added to the TransformGroup which holds the ViewPlatform associated with the current Viewpoint.



Field Summary
 doubleattachTime
    
 VectoraudioClips
    
 AudioDevice3DaudioDevice
    
 StackbackgroundStack
    
 PhysicalBodybody
    
 javax.media.j3d.AmbientLightbrowserAmbLight
    
 RGroupbrowserBackgroundSlot
    
 javax.media.j3d.DirectionalLightbrowserDirLight
    
 RGroupbrowserFogSlot
    
 BranchGroupbrowserLightGroup
    
 BranchGroupbrowserRoot
    
 BranchGroupbrowserSoundAtts
    
 Canvas3Dcanvas
    
 booleancheckDelay
    
 java.awt.Containercontainer
    
 BackgroundcurBackground
    
 FogcurFog
    
 TransformGroupcurImplGroup
    
 BranchGroupcurImplGroupBranch
    
 NavigationInfocurNavInfo
    
 BranchGroupcurScene
    
 SceneTransformcurSceneT
    
 TransformGroupcurViewGroup
    
 ViewPlatformcurViewPlatform
    
 ViewpointcurViewpoint
    
 WorldInfocurWorldInfo
    
static  booleandebug
    
static  booleandebug2
    
 VectordebugVec
    
 BackgrounddefBackground
    
 BoundingLeafdefBoundingLeaf
    
 FogdefFog
    
 NavigationInfodefNavInfo
    
 ViewpointdefViewpoint
    
 WorldInfodefWorldInfo
    
 Stringdescription
    
 PhysicalEnvironmentenvironment
    
 Evagationevagation
    
 doubleeventTime
    
 StackfogStack
    
 FrameCounterframeCount
    
 floatframeRate
    
 doubleframeStartTime
    
 Transform3Didentity
    
 BackgroundinitBackground
    
 FoginitFog
    
 NavigationInfoinitNavInfo
    
 ViewpointinitViewpoint
    
 WorldInfoinitWorldInfo
    
static  Browserinstance
    
 Loaderloader
    
 Localelocale
    
static  longmemLowLimit
    
static  longmemUsage
    
 Stringname
    
 StacknavigationInfoStack
    
 doublenetStartTime
    
 NumFormatnumFormat
    
 intnumFrames
    
 intnumSimTicks
    
 intnumTris
    
 TransformBufpendingTransforms
    
 booleanpickEcho
    
 PickRaypickRay
    
static  booleanprintRoutes
    
 doublerelTimeBase
    
 doublerenderTime
    
 booleanresetOnNextFrame
    
 introuteDepth
    
 RoutePrinterroutePrinter
    
 doublerouteTime
    
 BoundingSpheresceneBounds
    
 SphereSensorsceneExaminer
    
 VectorsharedGroups
    
 booleansimTickEnable
    
 SimTickersimTicker
    
 booleansoundinited
    
 floatspeed
    
 doublestart
    
 booleanstopped
    
 SceneGraphPath[]stuffPicked
    
 VectortimeSensors
    
 booleantiming
    
 VectortouchSensors
    
 TreePrintertreePrinter
    
 VirtualUniverseuniverse
    
 Stringversion
    
 intvi
    
 Viewview
    
 VectorviewpointList
    
 StackviewpointStack
    
 VectorvisibilitySensors
    

Constructor Summary
public  Browser(Canvas3D vc3d)
    
public  Browser()
    

Method Summary
public  voidaddCanvas3D(Canvas3D can)
    
public  voidaddRoute(BaseNode fromNode, String fromEventOut, BaseNode toNode, String toEventIn)
    
protected  voidaddViewpoint(Viewpoint viewpoint)
    
 doublebeginRoute()
    
 voidbeginRoute(double now)
    
 voidbindableChanged(Stack changedStack)
    
 voidbrowserInit()
    
public  voidcleanUp()
    
protected  voidclear()
    
 voidcontainerMessage(java.awt.Container c, String mesg)
    
 intcount(Enumeration e)
    
public  BaseNode[]createVrmlFromString(String vrmlSyntax)
    
public  voidcreateVrmlFromURL(String[] url, BaseNode node, String event)
    
public  voiddeleteRoute(BaseNode fromNode, String fromEventOut, BaseNode toNode, String toEventIn)
    
 voiddisableSounds()
    
 voiddoParse(InputStream is)
    
 voidenableSounds()
    
 voidendRoute()
    
 doubleeventTime()
    
 voidframeCountAdd()
    
 voidframeCountCallback(FrameCounter b)
    
static  BrowsergetBrowser()
    
 byte[]getBytes(String URLstring)
    
public  Canvas3DgetCanvas3D()
    
public  floatgetCurrentFrameRate()
    
public  floatgetCurrentSpeed()
    
public  StringgetDescription()
    
public  StringgetName()
    
 byte[]getRelBytes(String relURL)
    
public  URLgetURL()
    
public  StringgetVersion()
    
public  String[]getViewpointDescriptions()
    
public  StringgetWorldURL()
    
 voidinitBrowserObjs()
    
 voidinitTiming()
    
 voidloadDefaults()
    
 voidloadFinalize()
    
public  voidloadStringAsVrml(String sourceVrml)
    
public synchronized  voidloadURL(String[] urlString, String[] parameter)
    
public  voidoutputTiming()
    
 voidpostRender()
    
 voidpreRender()
    
public  voidprocessEvent(AWTEvent evt)
    
synchronized  voidquerySounds()
    
 doublerelativeTime(double timeVal)
    
public  voidremoveCanvas3D(Canvas3D can)
    
public  voidreplaceWorld(BaseNode[] nodes)
    
 voidresetTiming()
    
public  voidresetViewpoint()
    
public  voidsetAWTContainer(java.awt.Container container)
    
public  voidsetAutoSmooth(boolean s)
    
protected  voidsetDefTable(Hashtable t)
    
public  voidsetDescription(String description)
    
public  voidsetViewpoint(int vi)
    
public  voidshutDown()
    
 voidsimTick()
    
public  voidstartRender()
    
public  voidstopRender()
    
 voidupdateBackground()
    
 voidupdateFog()
    
 voidupdateView()
    
 voidviewChanged(Viewpoint changedView)
    

Field Detail
attachTime
double attachTime(Code)



audioClips
Vector audioClips(Code)



audioDevice
AudioDevice3D audioDevice(Code)



backgroundStack
Stack backgroundStack(Code)



body
PhysicalBody body(Code)



browserAmbLight
javax.media.j3d.AmbientLight browserAmbLight(Code)



browserBackgroundSlot
RGroup browserBackgroundSlot(Code)



browserDirLight
javax.media.j3d.DirectionalLight browserDirLight(Code)



browserFogSlot
RGroup browserFogSlot(Code)



browserLightGroup
BranchGroup browserLightGroup(Code)



browserRoot
BranchGroup browserRoot(Code)



browserSoundAtts
BranchGroup browserSoundAtts(Code)



canvas
Canvas3D canvas(Code)



checkDelay
boolean checkDelay(Code)



container
java.awt.Container container(Code)



curBackground
Background curBackground(Code)



curFog
Fog curFog(Code)



curImplGroup
TransformGroup curImplGroup(Code)



curImplGroupBranch
BranchGroup curImplGroupBranch(Code)



curNavInfo
NavigationInfo curNavInfo(Code)



curScene
BranchGroup curScene(Code)



curSceneT
SceneTransform curSceneT(Code)



curViewGroup
TransformGroup curViewGroup(Code)



curViewPlatform
ViewPlatform curViewPlatform(Code)



curViewpoint
Viewpoint curViewpoint(Code)



curWorldInfo
WorldInfo curWorldInfo(Code)



debug
static boolean debug(Code)



debug2
static boolean debug2(Code)



debugVec
Vector debugVec(Code)



defBackground
Background defBackground(Code)



defBoundingLeaf
BoundingLeaf defBoundingLeaf(Code)



defFog
Fog defFog(Code)



defNavInfo
NavigationInfo defNavInfo(Code)



defViewpoint
Viewpoint defViewpoint(Code)



defWorldInfo
WorldInfo defWorldInfo(Code)



description
String description(Code)



environment
PhysicalEnvironment environment(Code)



evagation
Evagation evagation(Code)



eventTime
double eventTime(Code)



fogStack
Stack fogStack(Code)



frameCount
FrameCounter frameCount(Code)



frameRate
float frameRate(Code)



frameStartTime
double frameStartTime(Code)



identity
Transform3D identity(Code)



initBackground
Background initBackground(Code)



initFog
Fog initFog(Code)



initNavInfo
NavigationInfo initNavInfo(Code)



initViewpoint
Viewpoint initViewpoint(Code)



initWorldInfo
WorldInfo initWorldInfo(Code)



instance
static Browser instance(Code)



loader
Loader loader(Code)



locale
Locale locale(Code)



memLowLimit
static long memLowLimit(Code)



memUsage
static long memUsage(Code)



name
String name(Code)



navigationInfoStack
Stack navigationInfoStack(Code)



netStartTime
double netStartTime(Code)



numFormat
NumFormat numFormat(Code)



numFrames
int numFrames(Code)



numSimTicks
int numSimTicks(Code)



numTris
int numTris(Code)



pendingTransforms
TransformBuf pendingTransforms(Code)



pickEcho
boolean pickEcho(Code)



pickRay
PickRay pickRay(Code)



printRoutes
static boolean printRoutes(Code)



relTimeBase
double relTimeBase(Code)



renderTime
double renderTime(Code)



resetOnNextFrame
boolean resetOnNextFrame(Code)



routeDepth
int routeDepth(Code)



routePrinter
RoutePrinter routePrinter(Code)



routeTime
double routeTime(Code)



sceneBounds
BoundingSphere sceneBounds(Code)



sceneExaminer
SphereSensor sceneExaminer(Code)



sharedGroups
Vector sharedGroups(Code)



simTickEnable
boolean simTickEnable(Code)



simTicker
SimTicker simTicker(Code)



soundinited
boolean soundinited(Code)



speed
float speed(Code)



start
double start(Code)



stopped
boolean stopped(Code)



stuffPicked
SceneGraphPath[] stuffPicked(Code)



timeSensors
Vector timeSensors(Code)



timing
boolean timing(Code)



touchSensors
Vector touchSensors(Code)



treePrinter
TreePrinter treePrinter(Code)



universe
VirtualUniverse universe(Code)



version
String version(Code)



vi
int vi(Code)



view
View view(Code)



viewpointList
Vector viewpointList(Code)



viewpointStack
Stack viewpointStack(Code)



visibilitySensors
Vector visibilitySensors(Code)




Constructor Detail
Browser
public Browser(Canvas3D vc3d)(Code)
Constructor for the Browser object
Parameters:
  vc3d - Description of the Parameter



Browser
public Browser()(Code)
Constructor for the Browser object




Method Detail
addCanvas3D
public void addCanvas3D(Canvas3D can)(Code)
Adds a feature to the Canvas3D attribute of the Browser object
Parameters:
  can - The feature to be added to the Canvas3D attribute



addRoute
public void addRoute(BaseNode fromNode, String fromEventOut, BaseNode toNode, String toEventIn)(Code)
Adds a feature to the Route attribute of the Browser object
Parameters:
  fromNode - The feature to be added to the Route attribute
Parameters:
  fromEventOut - The feature to be added to the Route attribute
Parameters:
  toNode - The feature to be added to the Route attribute
Parameters:
  toEventIn - The feature to be added to the Route attribute



addViewpoint
protected void addViewpoint(Viewpoint viewpoint)(Code)
Adds a feature to the Viewpoint attribute of the Browser object
Parameters:
  viewpoint - The feature to be added to the Viewpoint attribute



beginRoute
double beginRoute()(Code)
Description of the Method Description of the Return Value



beginRoute
void beginRoute(double now)(Code)
Description of the Method
Parameters:
  now - Description of the Parameter



bindableChanged
void bindableChanged(Stack changedStack)(Code)
Description of the Method
Parameters:
  changedStack - Description of the Parameter



browserInit
void browserInit()(Code)
Description of the Method



cleanUp
public void cleanUp()(Code)
Description of the Method



clear
protected void clear()(Code)
Description of the Method



containerMessage
void containerMessage(java.awt.Container c, String mesg)(Code)
Description of the Method
Parameters:
  c - Description of the Parameter
Parameters:
  mesg - Description of the Parameter



count
int count(Enumeration e)(Code)
Description of the Method
Parameters:
  e - Description of the Parameter Description of the Return Value



createVrmlFromString
public BaseNode[] createVrmlFromString(String vrmlSyntax) throws vrml.InvalidVRMLSyntaxException(Code)
Description of the Method
Parameters:
  vrmlSyntax - Description of the Parameter Description of the Return Value
exception:
  vrml.InvalidVRMLSyntaxException - Description of the Exception



createVrmlFromURL
public void createVrmlFromURL(String[] url, BaseNode node, String event) throws vrml.InvalidVRMLSyntaxException(Code)
Description of the Method
Parameters:
  url - Description of the Parameter
Parameters:
  node - Description of the Parameter
Parameters:
  event - Description of the Parameter
exception:
  vrml.InvalidVRMLSyntaxException - Description of the Exception



deleteRoute
public void deleteRoute(BaseNode fromNode, String fromEventOut, BaseNode toNode, String toEventIn)(Code)
Description of the Method
Parameters:
  fromNode - Description of the Parameter
Parameters:
  fromEventOut - Description of the Parameter
Parameters:
  toNode - Description of the Parameter
Parameters:
  toEventIn - Description of the Parameter



disableSounds
void disableSounds()(Code)
Description of the Method



doParse
void doParse(InputStream is)(Code)
Description of the Method
Parameters:
  is - Description of the Parameter



enableSounds
void enableSounds()(Code)
Description of the Method



endRoute
void endRoute()(Code)
Description of the Method



eventTime
double eventTime()(Code)
Description of the Method Description of the Return Value



frameCountAdd
void frameCountAdd()(Code)
Description of the Method



frameCountCallback
void frameCountCallback(FrameCounter b)(Code)
Description of the Method
Parameters:
  b - Description of the Parameter



getBrowser
static Browser getBrowser()(Code)
Gets the browser attribute of the Browser class The browser value



getBytes
byte[] getBytes(String URLstring)(Code)
Gets the bytes attribute of the Browser object
Parameters:
  URLstring - Description of the Parameter The bytes value



getCanvas3D
public Canvas3D getCanvas3D()(Code)
Gets the canvas3D attribute of the Browser object The canvas3D value



getCurrentFrameRate
public float getCurrentFrameRate()(Code)
Gets the currentFrameRate attribute of the Browser object The currentFrameRate value



getCurrentSpeed
public float getCurrentSpeed()(Code)
Gets the currentSpeed attribute of the Browser object The currentSpeed value



getDescription
public String getDescription()(Code)
Gets the description attribute of the Browser object The description value



getName
public String getName()(Code)
Gets the name attribute of the Browser object The name value



getRelBytes
byte[] getRelBytes(String relURL)(Code)
Gets the relBytes attribute of the Browser object
Parameters:
  relURL - Description of the Parameter The relBytes value



getURL
public URL getURL()(Code)
Gets the uRL attribute of the Browser object The uRL value



getVersion
public String getVersion()(Code)
Gets the version attribute of the Browser object The version value



getViewpointDescriptions
public String[] getViewpointDescriptions()(Code)
Gets the viewpointDescriptions attribute of the Browser object The viewpointDescriptions value



getWorldURL
public String getWorldURL()(Code)
Gets the worldURL attribute of the Browser object The worldURL value



initBrowserObjs
void initBrowserObjs()(Code)
Description of the Method



initTiming
void initTiming()(Code)
Description of the Method



loadDefaults
void loadDefaults()(Code)
Description of the Method



loadFinalize
void loadFinalize()(Code)
Description of the Method



loadStringAsVrml
public void loadStringAsVrml(String sourceVrml)(Code)
Description of the Method
Parameters:
  sourceVrml - Description of the Parameter



loadURL
public synchronized void loadURL(String[] urlString, String[] parameter) throws vrml.InvalidVRMLSyntaxException, java.io.IOException, java.net.MalformedURLException(Code)
Description of the Method
Parameters:
  urlString - Description of the Parameter
Parameters:
  parameter - Description of the Parameter
exception:
  vrml.InvalidVRMLSyntaxException - Description of the Exception
exception:
  java.io.IOException - Description of the Exception
exception:
  java.net.MalformedURLException - Description of the Exception



outputTiming
public void outputTiming()(Code)
Description of the Method



postRender
void postRender()(Code)
Description of the Method



preRender
void preRender()(Code)
Description of the Method



processEvent
public void processEvent(AWTEvent evt)(Code)
Description of the Method
Parameters:
  evt - Description of the Parameter



querySounds
synchronized void querySounds()(Code)
Description of the Method



relativeTime
double relativeTime(double timeVal)(Code)
Description of the Method
Parameters:
  timeVal - Description of the Parameter Description of the Return Value



removeCanvas3D
public void removeCanvas3D(Canvas3D can)(Code)
Description of the Method
Parameters:
  can - Description of the Parameter



replaceWorld
public void replaceWorld(BaseNode[] nodes)(Code)
Description of the Method
Parameters:
  nodes - Description of the Parameter



resetTiming
void resetTiming()(Code)
Description of the Method



resetViewpoint
public void resetViewpoint()(Code)
Description of the Method



setAWTContainer
public void setAWTContainer(java.awt.Container container)(Code)
Sets the aWTContainer attribute of the Browser object
Parameters:
  container - The new aWTContainer value



setAutoSmooth
public void setAutoSmooth(boolean s)(Code)
Sets the autoSmooth attribute of the Browser object
Parameters:
  s - The new autoSmooth value



setDefTable
protected void setDefTable(Hashtable t)(Code)
Sets the defTable attribute of the Browser object
Parameters:
  t - The new defTable value



setDescription
public void setDescription(String description)(Code)
Sets the description attribute of the Browser object
Parameters:
  description - The new description value



setViewpoint
public void setViewpoint(int vi)(Code)
Sets the viewpoint attribute of the Browser object
Parameters:
  vi - The new viewpoint value



shutDown
public void shutDown()(Code)
Description of the Method



simTick
void simTick()(Code)
Description of the Method



startRender
public void startRender()(Code)
Description of the Method



stopRender
public void stopRender()(Code)
Description of the Method



updateBackground
void updateBackground()(Code)
Description of the Method



updateFog
void updateFog()(Code)
Description of the Method



updateView
void updateView()(Code)
Description of the Method



viewChanged
void viewChanged(Viewpoint changedView)(Code)
Description of the Method
Parameters:
  changedView - Description of the Parameter



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.