|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RenderableSceneGraph
The RenderableSceneGraph interface simply unites the SceneGraph and CanvasBag interfaces.
| Method Summary | |
|---|---|
RenderPass |
addBranchGraph(BranchGroup branchGraph,
RenderPassConfig renderPassConfig)
Adds a new BranchGroup to the SceneGraph's Locale. |
RenderPass |
addHUD(HUD hud)
Adds a HUD to the SceneGraph and sets all necessary properties. |
RenderPass |
addParallelBranch()
Adds a parallel (projected) RenderPass and links it to a new BranchGroup, which is also been added to the Locale. |
RenderPass |
addParallelBranch(BranchGroup branchGraph)
Adds a parallel (projected) RenderPass and links it to the given BranchGroup. |
RenderPass |
addPerspectiveBranch()
Adds a perspective (projected) RenderPass and links it to a new BranchGroup, which also been added to the Locale. |
RenderPass |
addPerspectiveBranch(BranchGroup branchGraph)
Adds a perspective (projected) RenderPass and links it to the given BranchGroup. |
BranchGroup |
addRenderPass(RenderPass renderPass)
Adds a RenderPass to the SceneGraph's Renderer. |
BranchGroup |
addRenderPassFirst(RenderPass renderPass)
Adds a RenderPass to the SceneGraph at first position. |
void |
addScenegraphModificationListener(ScenegraphModificationsListener modListener)
Adds a new ScenegraphModificationListener to the List. |
void |
addView(View view)
Adds a new View to the SceneGraph. |
BranchGroup |
getBranchGroup()
|
Renderer |
getRenderer()
|
View |
getView()
|
View |
getView(int index)
|
void |
removeAllBranchGraphs()
Removes all children from the SceneGraph. |
void |
removeBranchGraph(BranchGroup branchGraph)
Removes the given BranchGroup from the SceneGraph. |
void |
removeHUD(HUD hud)
Removes a HUD from the SceneGraph. |
void |
removeRenderPass(RenderPass renderPass)
Removes the given RenderPass from the SceneGraph's Renderer. |
void |
removeScenegraphModificationListener(ScenegraphModificationsListener modListener)
Removes a ScenegraphModificationListener from the List. |
| Methods inherited from interface org.xith3d.render.CanvasBag |
|---|
addCanvas, addCanvas, addCanvas, addCanvas, getCanvas, getCanvas, isCanvasAlive, isCanvasAlive, removeAllCanvas3Ds, removeCanvas, removeCanvas, reviveCanvas, reviveCanvas, suspendCanvas, suspendCanvas |
| Method Detail |
|---|
Renderer getRenderer()
void addScenegraphModificationListener(ScenegraphModificationsListener modListener)
modListener - the new ScenegraphModificationsListener to addvoid removeScenegraphModificationListener(ScenegraphModificationsListener modListener)
modListener - the ScenegraphModificationsListener to be removedBranchGroup getBranchGroup()
View getView()
View getView(int index)
index - the desired View's index in the SceneGraph
void addView(View view)
view - the View to be added
RenderPass addBranchGraph(BranchGroup branchGraph,
RenderPassConfig renderPassConfig)
branchGraph - the new branch graph to addrenderPassConfig - the configuration for the new RenderPass to add
BranchGroup,
RenderPassConfig,
BaseRenderPassConfig,
addParallelBranch( BranchGroup ),
addPerspectiveBranch( BranchGroup )RenderPass addPerspectiveBranch(BranchGroup branchGraph)
addBranchGraph( branchGraph, new RenderPassConfig( RenderPassConfigProvider.PERSPECTIVE_PROJECTION ) );
branchGraph - the BranchGroup used for the new RenderPass
BranchGroup,
addParallelBranch( BranchGroup )RenderPass addPerspectiveBranch()
addBranchGraph( new BranchGroup(), new RenderPassConfig( RenderPassConfigProvider.PERSPECTIVE_PROJECTION ) );
or
addPerspectiveBranch( new BranchGroup() );
addPerspectiveBranch( BranchGroup ),
addParallelBranch( BranchGroup )RenderPass addParallelBranch(BranchGroup branchGraph)
addBranchGraph( branchGraph, new RenderPassConfig( RenderPassConfigProvider.PARALLEL_PROJECTION ) );
branchGraph - the BranchGroup used for the new RenderPass
BranchGroup,
addPerspectiveBranch( BranchGroup )RenderPass addParallelBranch()
addBranchGraph( branchGraph, new RenderPassConfig( RenderPassConfigProvider.PARALLEL_PROJECTION ) );
or
addParallelBranch( new BranchGroup() );
addParallelBranch( BranchGroup ),
addPerspectiveBranch( BranchGroup )void removeBranchGraph(BranchGroup branchGraph)
branchGraph - the BranchGroup to removevoid removeRenderPass(RenderPass renderPass)
renderPass - the RenderPass to removeBranchGroup addRenderPass(RenderPass renderPass)
renderPass - the new RenderPass to add
BranchGroup addRenderPassFirst(RenderPass renderPass)
renderPass - the new RenderPass to add
void removeAllBranchGraphs()
RenderPass addHUD(HUD hud)
hud - the HUD to be added to the SceneGraphinputMgr - the InputManager to get input events fromvoid removeHUD(HUD hud)
hud - the HUD to be removed from the SceneGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||