public class ColladaController extends java.lang.Object implements Renderable, PreRenderable
Modifier and Type | Field and Description |
---|---|
protected ColladaRoot |
colladaRoot
Collada document rendered by this controller.
|
protected ColladaTraversalContext |
tc
Traversal context used to render the document.
|
Constructor and Description |
---|
ColladaController(ColladaRoot root)
Create a new controller to render a COLLADA document.
|
Modifier and Type | Method and Description |
---|---|
ColladaRoot |
getColladaRoot()
Indicates the COLLADA document that this controller will render.
|
ColladaTraversalContext |
getTraversalContext()
Indicates the traversal context used to render the COLLADA document.
|
protected void |
initializeTraversalContext(ColladaTraversalContext tc)
Initializes this COLLADA controller's traversal context to its default state.
|
void |
preRender(DrawContext dc) |
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setColladaRoot(ColladaRoot colladaRoot)
Specifies the COLLADA document that this controller will render.
|
void |
setTraversalContext(ColladaTraversalContext tc)
Specifies a traversal context to use while rendering the COLLADA document.
|
protected ColladaRoot colladaRoot
protected ColladaTraversalContext tc
public ColladaController(ColladaRoot root)
root
- Parsed COLLADA document to render.public ColladaRoot getColladaRoot()
public ColladaTraversalContext getTraversalContext()
protected void initializeTraversalContext(ColladaTraversalContext tc)
tc
- the COLLADA traversal context to initialize.public void preRender(DrawContext dc)
preRender
in interface PreRenderable
public void render(DrawContext dc)
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setColladaRoot(ColladaRoot colladaRoot)
colladaRoot
- New COLLADA document to render.public void setTraversalContext(ColladaTraversalContext tc)
tc
- New traversal context.