|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.rendering.r3d.opengl.rendering.dem.manager.RenderFragmentManager
public class RenderFragmentManager
Manages the loading, unloading and caching of RenderMeshFragment data and the enabling/disabling in a certain
GL context.
| Field Summary | |
|---|---|
(package private) int |
inMemory
|
(package private) static org.slf4j.Logger |
LOG
|
(package private) RenderMeshFragment[] |
renderFragments
|
| Constructor Summary | |
|---|---|
RenderFragmentManager(MultiresolutionMesh mrModel,
int maxCached)
Initialize the Manager with a multiresolution model. |
|
| Method Summary | |
|---|---|
MultiresolutionMesh |
getMultiresolutionMesh()
|
(package private) void |
release(Collection<RenderMeshFragment> fragments,
javax.media.opengl.GL gl)
Notifies the manager that the specified fragments are not needed for rendering anymore. |
(package private) void |
require(Set<RenderMeshFragment> fragments)
Ensures that the data of the specified fragments is available in main memory or in GPU memory. |
(package private) void |
requireOnGPU(Collection<RenderMeshFragment> fragments,
javax.media.opengl.GL gl)
Ensures that the data of the specified fragments is available in GPU memory (ready for rendering). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final org.slf4j.Logger LOG
final RenderMeshFragment[] renderFragments
int inMemory
| Constructor Detail |
|---|
public RenderFragmentManager(MultiresolutionMesh mrModel,
int maxCached)
mrModel - maxCached - | Method Detail |
|---|
void require(Set<RenderMeshFragment> fragments)
throws IOException
fragments -
IOException
void requireOnGPU(Collection<RenderMeshFragment> fragments,
javax.media.opengl.GL gl)
throws IOException
fragments - gl -
IOException
void release(Collection<RenderMeshFragment> fragments,
javax.media.opengl.GL gl)
It's up to the manager to decide to unload them from GPU and/or memory or to keep them cached.
fragments - gl - public String toString()
toString in class Objectpublic MultiresolutionMesh getMultiresolutionMesh()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||