|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.graphics.displaylists.SegmentReferences
public class SegmentReferences
Stores information on multiple OpenGL display lists that can be used
for rendering Segments with different degrees of detail (this first
version only holds one OpenGL display list for each Segment, but a
future version will likely hold multiple OpenGL display lists for
each Segment (with varying tiling number) so that the level of detail
to be used can be calculated based on camera distance).
Whenever OpenGL display lists are cached for the Segments of a new
Model, this class will need to clean up memory for any previously
held OpenGL display lists (for Segments of a previous Model).
Constructor Summary | |
---|---|
SegmentReferences()
Constructs a SegmentReferences object. |
Method Summary | |
---|---|
void |
cacheSegmentGeometry(GL gl,
Model model,
StyleEnum style)
Caches an OpenGL display list for each Segment of each Region object in the Model. |
void |
cleanUpMemory(GL gl)
Cleans up OpenGL graphics card memory allocated for OpenGL display lists for the previous Model. |
SegmentListInfo |
getSegmentListInfo(Segment segment)
Returns the SegmentListInfo object that stores information on the OpenGL display lists that have been cached for the Segment given as an argument. |
void |
setAllStackNumbersToDefault()
Sets all stacks numbers to the defaults defined in classes Tube and Ribbon (for loops, alpha-helices, and beta-strands). |
void |
setAlphaRibbonStacks(int stacks)
Sets the number of stacks for drawing an alpha-helix as a ribbon. |
void |
setAlphaRibbonStacksToDefault()
Sets the number of stacks for drawing an alpha-helix as a ribbon to the default value defined in class Ribbon. |
void |
setAlphaTubeStacks(int stacks)
Sets the number of stacks for drawing an alpha-helix as a tube. |
void |
setAlphaTubeStacksToDefault()
Sets the number of stacks for drawing an alpha-helix as a tube to the default value defined in class Tube. |
void |
setBetaRibbonStacks(int stacks)
Sets the number of stacks for drawing a beta-strand as a ribbon. |
void |
setBetaRibbonStacksToDefault()
Sets the number of stacks for drawing a beta-strand as a ribbon to the default value defined in class Ribbon. |
void |
setBetaTubeStacks(int stacks)
Sets the number of stacks for drawing a beta-strand as a tube. |
void |
setBetaTubeStacksToDefault()
Sets the number of stacks for drawing a beta-strand as a tube to the default value defined in class Tube. |
void |
setFrenetFramesShaders(ShaderManager shaders)
Makes the ShaderManager object available for use in the FrenetFrames object. |
void |
setLoopRibbonStacks(int stacks)
Sets the number of stacks for drawing a loop as a ribbon. |
void |
setLoopRibbonStacksToDefault()
Sets the number of stacks for drawing a loop as a ribbon to the default value defined in class Ribbon. |
void |
setLoopTubeStacks(int stacks)
Sets the number of stacks for drawing a loop as a tube. |
void |
setLoopTubeStacksToDefault()
Sets the number of stacks for drawing a loop as a tube to the default value defined in class Tube. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SegmentReferences()
Method Detail |
---|
public void setFrenetFramesShaders(ShaderManager shaders)
shaders
- the shader manager object.public void cacheSegmentGeometry(GL gl, Model model, StyleEnum style)
gl
- the current GL object.model
- the current Model to cache Segments for.style
- the style (Tubes, Ribbons, or Frenet Frames).public SegmentListInfo getSegmentListInfo(Segment segment)
segment
- the Segment to get a reference for.
public void cleanUpMemory(GL gl)
gl
- the current GL object.public void setAllStackNumbersToDefault()
public void setLoopTubeStacksToDefault()
public void setAlphaTubeStacksToDefault()
public void setBetaTubeStacksToDefault()
public void setLoopRibbonStacksToDefault()
public void setAlphaRibbonStacksToDefault()
public void setBetaRibbonStacksToDefault()
public void setLoopTubeStacks(int stacks)
stacks
- the number of stacks.public void setAlphaTubeStacks(int stacks)
stacks
- the number of stacks.public void setBetaTubeStacks(int stacks)
stacks
- the number of stacks.public void setLoopRibbonStacks(int stacks)
stacks
- the number of stacks.public void setAlphaRibbonStacks(int stacks)
stacks
- the number of stacks.public void setBetaRibbonStacks(int stacks)
stacks
- the number of stacks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |