public interface Viewer
SceneGraphComponent
, the scene root,
and a path in the scene graph to a Camera
.
Each implementation of this interface
represents a different "backend". See separate packages for details.
e.g. softviewr, jogl , jogl3Modifier and Type | Method and Description |
---|---|
boolean |
canRenderAsync()
Tells wether this viewer supports asyncronous rendering.
|
SceneGraphComponent |
getAuxiliaryRoot()
Some viewers (at least the jogl viewer) support an auxilary
root - for things to display that are no part of the scene itself.
|
SceneGraphPath |
getCameraPath()
Get the camera path.
|
SceneGraphComponent |
getSceneRoot()
Get the scene root.
|
Object |
getViewingComponent()
Gives the viewing component.
|
Dimension |
getViewingComponentSize()
Gives the dimension of the viewing component in pixel.
|
boolean |
hasViewingComponent()
Has this viewer a viewing component?
|
void |
render()
This method triggers rendering of the viewer.
|
void |
renderAsync()
Some viewers support asyncronous rendering.
|
void |
setAuxiliaryRoot(SceneGraphComponent auxRoot)
Some viewers (at least the jogl viewer) support an auxilary
root - for things to display that are no part of the scene itself.
|
void |
setCameraPath(SceneGraphPath cameraPath)
Set the camera path.
|
void |
setSceneRoot(SceneGraphComponent root)
Set the scene root.
|
SceneGraphComponent getSceneRoot()
void setSceneRoot(SceneGraphComponent root)
root
- the scene rootSceneGraphPath getCameraPath()
void setCameraPath(SceneGraphPath cameraPath)
cameraPath
- the camera path.void render()
boolean hasViewingComponent()
Object getViewingComponent()
Dimension getViewingComponentSize()
void setAuxiliaryRoot(SceneGraphComponent auxRoot)
auxRoot
- the auxiliary rootSceneGraphComponent getAuxiliaryRoot()
boolean canRenderAsync()
void renderAsync()