|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Viewer
The Viewer interface represents a renderable 3D scene.
It consists of specifying a 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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||