|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.model.Modeler
public class Modeler
The main class of the vertex modeler application. In a nutshell, this class
loads Visible implementations from Java source files, and then either
exports them, or displays them on a black background. For more information,
run it and use the "-help" commandline switch.
NOTE: This class requires an embedded Java compiler called Janino.
See http://janino.codehaus.org/ or http://janino.net for more information.
At the time of writing, Janino seems to be in the process of moving from
the second address to the first.
API Stability: Stable.
Constructor Summary | |
---|---|
Modeler()
Constructor for the default ModelerGUI implementation. |
Method Summary | |
---|---|
void |
displayGUI(net.jinx.db.Hierarchy h,
Visible drawable)
Constructs and displays the default GUI components to display a Visible object. |
static java.lang.String |
getApplicationName()
Provides the name of the application. |
static java.lang.String |
getApplicationTitle()
Provides the title line that is used by default in the title bar of the modeler. |
java.awt.Frame |
getDefaultFrame(net.jinx.db.Hierarchy config,
java.awt.Color bg)
Constructs and configures a default Frame to use to display things in. |
javax.media.opengl.GLAutoDrawable |
getDefaultGLDrawable(net.jinx.db.Hierarchy config)
This method just calls getGLCanvas(config). |
javax.media.opengl.GLCanvas |
getGLCanvas(net.jinx.db.Hierarchy config)
Provides the default GLCanvas with double buffering and hardware acceleration hints obtained from config. |
javax.media.opengl.GLJPanel |
getGLJPanel(net.jinx.db.Hierarchy config)
Provides the default GLCanvas with double buffering and hardware acceleration hints obtained from config. |
Visible |
getGrid(net.jinx.db.Hierarchy config)
|
Visible |
getOrigin(net.jinx.db.Hierarchy config)
|
java.lang.String[] |
getVersion()
Provides the Vertex Modeler's current version and the JOGL version used as two Strings. |
static java.lang.String |
getVersionString()
Provides a String representation of the current version of Vertex Modeler. |
Context |
loadContext(net.jinx.db.Hierarchy config)
Constructs and configures a Context object. |
Light[] |
loadLights(net.jinx.db.Hierarchy config)
Constructs and configures an array of Light objects. |
TextureManager |
loadTextureManager(net.jinx.db.Hierarchy config)
Constructs and configures a TextureManager object. |
TextureManager |
loadTextureManager(net.jinx.db.Hierarchy config,
Context options)
Constructs and configures a TextureManager object, attaching it to the given Context object. |
View[] |
loadViews(net.jinx.db.Hierarchy config)
Constructs and configures an array of View objects. |
static Visible |
loadVisible(java.io.InputStream in)
Builds a Visible from a Java source describing a class with the name "VisibleFactoryImpl" that is an implementation of VisibleFactory. |
static void |
main(ModelerGUI gui,
java.lang.String[] args)
The configurable entry point for the Vertex Modeler application. |
static void |
main(java.lang.String[] args)
The main entry point for the Vertex Modeler application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Modeler()
Method Detail |
---|
public java.lang.String[] getVersion()
getVersion
in interface ModelerGUI
public Context loadContext(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public TextureManager loadTextureManager(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public TextureManager loadTextureManager(net.jinx.db.Hierarchy config, Context options)
config
- the Hierarchy version of the configuration file.options
- the Context object to attach the TextureManager to.
public View[] loadViews(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public Light[] loadLights(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public javax.media.opengl.GLCanvas getGLCanvas(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public javax.media.opengl.GLJPanel getGLJPanel(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public javax.media.opengl.GLAutoDrawable getDefaultGLDrawable(net.jinx.db.Hierarchy config)
config
- the Hierarchy version of the configuration file.
public java.awt.Frame getDefaultFrame(net.jinx.db.Hierarchy config, java.awt.Color bg)
config
- the Hierarchy version of the configuration file.bg
- the background color for the window.
public Visible getOrigin(net.jinx.db.Hierarchy config)
public Visible getGrid(net.jinx.db.Hierarchy config)
public void displayGUI(net.jinx.db.Hierarchy h, Visible drawable)
displayGUI
in interface ModelerGUI
h
- the Hierarchy object that contains configuration information for
displaying drawable.drawable
- the Visible object to display.public static java.lang.String getVersionString()
public static java.lang.String getApplicationName()
public static java.lang.String getApplicationTitle()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void main(ModelerGUI gui, java.lang.String[] args) throws java.lang.Exception
gui
- the ModelerGUI object to use.args
- the commandline arguments to parse.
java.lang.Exception
public static Visible loadVisible(java.io.InputStream in) throws java.io.IOException, org.codehaus.janino.Scanner.LocatedException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
in
- the InputStream to read the source from.
java.io.IOException
org.codehaus.janino.Scanner.LocatedException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |