Java Doc for Loader.java in  » 6.0-JDK-Modules » java-3d » com » db » loaders » 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 » com.db.loaders 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.db.loaders.Loader

All known Subclasses:   com.db.loaders.LoaderBase,
Loader
public interface Loader (Code)
The Loader interface is used to specify the location and elements of a file format to load. The interface is used to give loaders of various file formats a common public interface. Ideally the Scene interface will be implemented to give the user a consistent interface to extract the data.
See Also:   com.db.loaders.Scene


Field Summary
final public static  intLOAD_ALL
     This flag enables the loading of all objects into the scene.
final public static  intLOAD_BACKGROUND_NODES
     This flag enables the loading of background objects into the scene.
final public static  intLOAD_BEHAVIOR_NODES
     This flag enables the loading of behaviors into the scene.
final public static  intLOAD_FOG_NODES
     This flag enables the loading of fog objects into the scene.
final public static  intLOAD_LIGHT_NODES
     This flag enables the loading of light objects into the scene.
final public static  intLOAD_SOUND_NODES
     This flag enables the loading of sound objects into the scene.
final public static  intLOAD_VIEW_GROUPS
     This flag enables the loading of view (camera) objects into the scene.


Method Summary
public  StringgetBasePath()
     Returns the current base path setting.
public  URLgetBaseUrl()
     Returns the current base URL setting.
public  intgetFlags()
     Returns the current loading flags setting.
public  Sceneload(String fileName)
     This method loads the named file and returns the Scene containing the scene.
public  Sceneload(URL url)
     This method loads the named file and returns the Scene containing the scene.
public  Sceneload(Reader reader)
     This method loads the Reader and returns the Scene containing the scene.
public  voidsetBasePath(String pathName)
     This method sets the base path name for data files associated with the file passed into the load(String) method.
public  voidsetBaseUrl(URL url)
     This method sets the base URL name for data files associated with the file passed into the load(URL) method.
public  voidsetFlags(int flags)
     This method sets the load flags for the file.

Field Detail
LOAD_ALL
final public static int LOAD_ALL(Code)
This flag enables the loading of all objects into the scene.



LOAD_BACKGROUND_NODES
final public static int LOAD_BACKGROUND_NODES(Code)
This flag enables the loading of background objects into the scene.



LOAD_BEHAVIOR_NODES
final public static int LOAD_BEHAVIOR_NODES(Code)
This flag enables the loading of behaviors into the scene.



LOAD_FOG_NODES
final public static int LOAD_FOG_NODES(Code)
This flag enables the loading of fog objects into the scene.



LOAD_LIGHT_NODES
final public static int LOAD_LIGHT_NODES(Code)
This flag enables the loading of light objects into the scene.



LOAD_SOUND_NODES
final public static int LOAD_SOUND_NODES(Code)
This flag enables the loading of sound objects into the scene.



LOAD_VIEW_GROUPS
final public static int LOAD_VIEW_GROUPS(Code)
This flag enables the loading of view (camera) objects into the scene.





Method Detail
getBasePath
public String getBasePath()(Code)
Returns the current base path setting. By default this is null, implying the loader should look for associated files starting from the same directory as the file passed into the load(String) method.



getBaseUrl
public URL getBaseUrl()(Code)
Returns the current base URL setting. By default this is null, implying the loader should look for associated files starting from the same directory as the file passed into the load(URL) method.



getFlags
public int getFlags()(Code)
Returns the current loading flags setting.



load
public Scene load(String fileName) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException(Code)
This method loads the named file and returns the Scene containing the scene. Any data files referenced by this file should be located in the same place as the named file; otherwise users should specify an alternate base path with the setBasePath(String) method.



load
public Scene load(URL url) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException(Code)
This method loads the named file and returns the Scene containing the scene. Any data files referenced by the Reader should be located in the same place as the named file; otherwise, users should specify an alternate base path with the setBaseUrl(URL) method.



load
public Scene load(Reader reader) throws FileNotFoundException, IncorrectFormatException, ParsingErrorException(Code)
This method loads the Reader and returns the Scene containing the scene. Any data files referenced by the Reader should be located in the user's current working directory.



setBasePath
public void setBasePath(String pathName)(Code)
This method sets the base path name for data files associated with the file passed into the load(String) method. The basePath should be null by default, which is an indicator to the loader that it should look for any associated files starting from the same directory as the file passed into the load(String) method.



setBaseUrl
public void setBaseUrl(URL url)(Code)
This method sets the base URL name for data files associated with the file passed into the load(URL) method. The basePath should be null by default, which is an indicator to the loader that it should look for any associated files starting from the same directory as the file passed into the load(URL) method.



setFlags
public void setFlags(int flags)(Code)
This method sets the load flags for the file. The flags should equal 0 by default (which tells the loader to only load geometry). To enable the loading of any particular scene elements, pass in a logical OR of the LOAD values specified above.



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