|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.plugin.JRViewer
public class JRViewer
Nested Class Summary | |
---|---|
static class |
JRViewer.ContentType
|
Constructor Summary | |
---|---|
JRViewer()
Create a JRViewer with default scene and lights. |
|
JRViewer(boolean addLights)
Create a JRViewer with default scene. |
|
JRViewer(JrScene s)
create a JRViewer with a custom scene. |
Method Summary | ||
---|---|---|
void |
addAudioSupport()
Audio plug-ins. |
|
void |
addBasicUI()
Basic UI support like scene graph inspector, bean shell, background color, export menu, camera settings menu... |
|
void |
addContentSupport(JRViewer.ContentType type)
Registers one of the predefined content plug-ins |
|
void |
addContentUI()
Registers advanced content tools. |
|
void |
addVRSupport()
Virtual reality support. |
|
static Viewer |
display(SceneGraphNode node)
Quick display method with encompass |
|
void |
encompassEuclidean()
Call after startup. |
|
SimpleController |
getController()
Returns the controller of this JRViewer which is a SimpleController |
|
static JRViewer |
getLastJRViewer()
Returns the last created instance of JRViewer |
|
|
getPlugin(Class<T> clazz)
Returns a previously registered plug in instance |
|
static void |
main(String[] args)
Starts the default plug-in viewer |
|
void |
registerCustomContent(Content contentPlugin)
Registers a custom Content plug-in which is
an implementation of the abstract class Content |
|
void |
registerPlugin(Plugin p)
Adds a plug-in to this JTViewer's registered plug-ins. |
|
void |
registerPlugins(Set<Plugin> pSet)
Registered a set of plug-ins at once |
|
void |
setContent(SceneGraphNode node)
Sets a content node. |
|
void |
setPropertiesFile(File file)
Sets the properties File of this JRViewer's controller |
|
void |
setPropertiesFile(String filename)
Sets the properties File of this JRViewer's controller |
|
void |
setPropertiesInputStream(InputStream in)
Sets the properties InputStream of this JRViewer's controller |
|
void |
setShowMenuBar(boolean show)
Show or hide the menu bar |
|
void |
setShowPanelSlots(boolean left,
boolean right,
boolean top,
boolean bottom)
Configures the visibility of the shrink panels slots |
|
void |
setShowToolBar(boolean show)
Show or hide the tool bar |
|
void |
startup()
Starts this JRViewer's controller and installs all registered plug-ins. |
|
JRootPane |
startupLocal()
Starts this JRViewer's controller and installs all registered plug-ins. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JRViewer()
public JRViewer(boolean addLights)
addLights
- if true, standard lights are added.public JRViewer(JrScene s)
s
- the sceneMethod Detail |
---|
public static JRViewer getLastJRViewer()
public void registerPlugin(Plugin p)
p
- public void registerPlugins(Set<Plugin> pSet)
pSet
- a set of plug-inspublic <T extends Plugin> T getPlugin(Class<T> clazz)
T
- clazz
- the class of the plug-in
public void setContent(SceneGraphNode node)
node
- public void setPropertiesFile(String filename)
filename
- a file namepublic void setPropertiesFile(File file)
filename
- a file namepublic void setPropertiesInputStream(InputStream in)
in
- An InputStreampublic SimpleController getController()
public void startup()
public JRootPane startupLocal()
public void setShowPanelSlots(boolean left, boolean right, boolean top, boolean bottom)
left
- right
- top
- bottom
- public void setShowMenuBar(boolean show)
show
- public void setShowToolBar(boolean show)
show
- public void registerCustomContent(Content contentPlugin)
Content
plug-in which is
an implementation of the abstract class Content
contentPlugin
- a content plug-inpublic void addContentSupport(JRViewer.ContentType type)
type
- a content enumeration typepublic void addContentUI()
public void addBasicUI()
public void addVRSupport()
public void addAudioSupport()
public static Viewer display(SceneGraphNode node)
node
- public void encompassEuclidean()
public static void main(String[] args)
args
- no arguments are read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |