de.jreality.vr
Class ViewerVR

java.lang.Object
  extended by de.jreality.vr.ViewerVR

public class ViewerVR
extends Object


Constructor Summary
ViewerVR()
           
 
Method Summary
 void addAlignTab()
           
 void addAppTab()
           
 void addEnvTab()
           
 void addHelpTab()
          Deprecated.  
 void addLoadTab(String[][] examples)
           
 void addTerrainTab()
           
 void addTexTab()
           
 void addToolTab()
           
 void alignContent()
           
 void avatarToGround()
           
 void bakeTerrain(Viewer v)
           
static ViewerVR createDefaultViewerVR(String[][] loadableResources)
           
 ViewerApp display()
          Deprecated. use ViewerVR.initialize()
 void exportPreferences(File file)
           
 SceneGraphComponent getAvatarNode()
           
 SceneGraphPath getAvatarPath()
           
 SceneGraphPath getCameraPath()
           
 Appearance getContentAppearance()
           
 Matrix getContentMatrix()
           
 double getContentOffset()
           
 double getContentSize()
           
 SceneGraphComponent getCurrentContent()
           
 ImageData[] getEnvironment()
           
 Color getHeadLightColor()
           
 double getHeadLightIntensity()
           
 HeadTransformationTool getHeadTransformationTool()
           
 double getLightIntensity()
           
 double getObjectScale()
           
 Appearance getRootAppearance()
           
 SceneGraphComponent getSceneRoot()
           
 ShipNavigationTool getShipNavigationTool()
           
 Color getSkyLightColor()
           
 double getSkyLightIntensity()
           
 SceneGraphComponent getSkyLightNode()
           
 double getSunIntensity()
           
 Color getSunLightColor()
           
 SceneGraphComponent getTerrain()
           
 Appearance getTerrainAppearance()
           
 SceneGraphComponent getTerrainNode()
           
 double getTerrainScale()
           
 JRWindowManager getWindowManager()
           
 void importPreferences(File file)
           
 void importPreferences(InputStream is)
           
 ViewerApp initialize()
          Initializes a ViewerApp to display the scene.
 boolean isDoAlign()
           
 boolean isGeneratePickTrees()
           
 boolean isPanelInScene()
           
static void main(String[] args)
           
static ViewerApp mainImpl(String[] args)
           
 void registerPlugin(PluginVR plugin)
           
static ViewerApp remoteMain(String[] args)
           
 void restoreDefaults()
           
 void restorePreferences(Preferences prefs)
           
 void savePreferences(Preferences prefs)
           
 void setAvatarHeight(double y)
           
 void setAvatarPosition(double x, double y, double z)
           
 void setContent(SceneGraphComponent content)
           
 void setContentMatrix(Matrix contentMatrix)
           
 void setContentOffset(double contentOffset)
           
 void setContentSize(double contentSize)
           
 void setDoAlign(boolean doAlign)
           
 void setEnvironment(ImageData[] datas)
           
 void setGeneratePickTrees(boolean generatePickTrees)
           
 void setHeadLightColor(Color c)
           
 void setHeadLightIntensity(double x)
           
 void setLightIntensity(double intensity)
           
 void setPanelInScene(boolean b)
           
 void setSkyLightColor(Color c)
           
 void setSkyLightIntensity(double x)
           
 void setSkyLightNode(SceneGraphComponent s)
           
 void setSunIntensity(double x)
           
 void setSunLightColor(Color c)
           
 void setTerrain(SceneGraphComponent c)
           
 void setTerrainWithCenter(SceneGraphComponent c)
           
 void showPanel()
           
 void switchTo(JPanel panel)
           
 void switchToDefaultPanel()
           
 void switchToFileChooser(JComponent fileChooser)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerVR

public ViewerVR()
Method Detail

getTerrain

public SceneGraphComponent getTerrain()

setTerrain

public void setTerrain(SceneGraphComponent c)

avatarToGround

public void avatarToGround()

setTerrainWithCenter

public void setTerrainWithCenter(SceneGraphComponent c)

getEnvironment

public ImageData[] getEnvironment()

setEnvironment

public void setEnvironment(ImageData[] datas)

registerPlugin

public void registerPlugin(PluginVR plugin)

switchToDefaultPanel

public void switchToDefaultPanel()

switchTo

public void switchTo(JPanel panel)

switchToFileChooser

public void switchToFileChooser(JComponent fileChooser)

showPanel

public void showPanel()

setContent

public void setContent(SceneGraphComponent content)

alignContent

public void alignContent()

initialize

public ViewerApp initialize()
Initializes a ViewerApp to display the scene. Restores preferences for all plugins. Set custom values after calling this method!

Returns:
A ViewerApp to display the scene.

display

public ViewerApp display()
Deprecated. use ViewerVR.initialize()


setAvatarPosition

public void setAvatarPosition(double x,
                              double y,
                              double z)

setAvatarHeight

public void setAvatarHeight(double y)

restoreDefaults

public void restoreDefaults()

savePreferences

public void savePreferences(Preferences prefs)

restorePreferences

public void restorePreferences(Preferences prefs)

exportPreferences

public void exportPreferences(File file)

importPreferences

public void importPreferences(File file)
                       throws IOException,
                              InvalidPreferencesFormatException
Throws:
IOException
InvalidPreferencesFormatException

importPreferences

public void importPreferences(InputStream is)
                       throws IOException,
                              InvalidPreferencesFormatException
Throws:
IOException
InvalidPreferencesFormatException

getObjectScale

public double getObjectScale()

getTerrainScale

public double getTerrainScale()

isGeneratePickTrees

public boolean isGeneratePickTrees()

setGeneratePickTrees

public void setGeneratePickTrees(boolean generatePickTrees)

bakeTerrain

public void bakeTerrain(Viewer v)

isPanelInScene

public boolean isPanelInScene()

setPanelInScene

public void setPanelInScene(boolean b)

getSceneRoot

public SceneGraphComponent getSceneRoot()

getTerrainNode

public SceneGraphComponent getTerrainNode()

getContentAppearance

public Appearance getContentAppearance()

getShipNavigationTool

public ShipNavigationTool getShipNavigationTool()

getHeadTransformationTool

public HeadTransformationTool getHeadTransformationTool()

getCurrentContent

public SceneGraphComponent getCurrentContent()

getRootAppearance

public Appearance getRootAppearance()

getCameraPath

public SceneGraphPath getCameraPath()

getTerrainAppearance

public Appearance getTerrainAppearance()

getContentMatrix

public Matrix getContentMatrix()

setContentMatrix

public void setContentMatrix(Matrix contentMatrix)

getContentOffset

public double getContentOffset()

setContentOffset

public void setContentOffset(double contentOffset)

getContentSize

public double getContentSize()

setContentSize

public void setContentSize(double contentSize)

getSunLightColor

public Color getSunLightColor()

setSunLightColor

public void setSunLightColor(Color c)

getHeadLightColor

public Color getHeadLightColor()

setHeadLightColor

public void setHeadLightColor(Color c)

getSkyLightColor

public Color getSkyLightColor()

setSkyLightColor

public void setSkyLightColor(Color c)

getSunIntensity

public double getSunIntensity()

setSunIntensity

public void setSunIntensity(double x)

getHeadLightIntensity

public double getHeadLightIntensity()

setHeadLightIntensity

public void setHeadLightIntensity(double x)

getSkyLightIntensity

public double getSkyLightIntensity()

setSkyLightIntensity

public void setSkyLightIntensity(double x)

setLightIntensity

public void setLightIntensity(double intensity)

getLightIntensity

public double getLightIntensity()

addEnvTab

public void addEnvTab()

addTerrainTab

public void addTerrainTab()

addAppTab

public void addAppTab()

addAlignTab

public void addAlignTab()

addLoadTab

public void addLoadTab(String[][] examples)

addToolTab

public void addToolTab()

addTexTab

public void addTexTab()

addHelpTab

public void addHelpTab()
Deprecated. 


main

public static void main(String[] args)

remoteMain

public static ViewerApp remoteMain(String[] args)

createDefaultViewerVR

public static ViewerVR createDefaultViewerVR(String[][] loadableResources)

mainImpl

public static ViewerApp mainImpl(String[] args)

getSkyLightNode

public SceneGraphComponent getSkyLightNode()

setSkyLightNode

public void setSkyLightNode(SceneGraphComponent s)

getAvatarPath

public SceneGraphPath getAvatarPath()

getWindowManager

public JRWindowManager getWindowManager()

isDoAlign

public boolean isDoAlign()

setDoAlign

public void setDoAlign(boolean doAlign)

getAvatarNode

public SceneGraphComponent getAvatarNode()