|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.tudelft.goal.ut2004.visualizer.timeline.map.CollectionRenderer<T>
T
- Type of object subrenderers of this collection draws.public class CollectionRenderer<T>
Basically list of ISubGLRenderer
s with stuff for manipulating it and
rendering it.
Holds order of subrenderers.
Constructor Summary | |
---|---|
CollectionRenderer()
|
Method Summary | |
---|---|
void |
addRenderer(ISubGLRenderer<? extends T> subrenderer)
Add renderer to collection. |
void |
destroy()
Call renderer to clean up any resources it used. |
Set<T> |
getDrawnObjects()
Get set of all objects this collection draws. |
int |
getGLName()
|
Collection<T> |
getObject()
Return object this renderer draws. |
T |
getObjectsByGLName(int glName)
|
Collection<T> |
getObjectsByGLName(int[] list)
|
void |
prepare(javax.media.opengl.GL gl)
Prepare all renderers for rendering |
boolean |
removeRenderer(ISubGLRenderer<? extends T> subrenderer)
Remove subrenderer from collection |
void |
removeRenderersOf(Object o)
Remove all renderers that draw object o. |
void |
render(javax.media.opengl.GL gl)
Display stuff you want to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionRenderer()
Method Detail |
---|
public void addRenderer(ISubGLRenderer<? extends T> subrenderer)
subrenderer
- public boolean removeRenderer(ISubGLRenderer<? extends T> subrenderer)
subrenderer
- renderer to be removed
public void removeRenderersOf(Object o)
o
- object that may have renderers in collection we want to removepublic Set<T> getDrawnObjects()
public void render(javax.media.opengl.GL gl)
ISubGLRenderer
CollectionRenderer
render
in interface ISubGLRenderer<Collection<T>>
public Collection<T> getObject()
ISubGLRenderer
getObject
in interface ISubGLRenderer<Collection<T>>
public void prepare(javax.media.opengl.GL gl)
prepare
in interface ISubGLRenderer<Collection<T>>
gl
- public T getObjectsByGLName(int glName)
public Collection<T> getObjectsByGLName(int[] list)
public void destroy()
ISubGLRenderer
destroy
in interface ISubGLRenderer<Collection<T>>
public int getGLName()
getGLName
in interface ISubGLRenderer<Collection<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |