de.jreality.vr
Class ViewerVR
java.lang.Object
de.jreality.vr.ViewerVR
public class ViewerVR
- extends Object
ViewerVR
public ViewerVR()
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()