|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.graphics.utils.SegmentRenderer
public class SegmentRenderer
This class is intended only as a testing utility: it allows tube or ribbons segments to be drawn on-the-fly, rather than from OpenGL display lists, soley for the purpose of measure the performance advantage of caching geometry in OpenGL display lists.
Constructor Summary | |
---|---|
SegmentRenderer()
Constructs a SegmentReferences object. |
Method Summary | |
---|---|
void |
drawEndCap(GL gl)
Draws the end cap for the last tube or ribbon segment that was drawn. |
void |
drawRibbon(GL gl,
Segment s)
Draws the broad surfaces of a ribbon segment and remembers info needed by any subsequent call to drawThinSidesOfRibbon(), drawStartCap(), or drawEndCap(). |
void |
drawStartCap(GL gl)
Draws the start cap for the last tube or ribbon segment that was drawn. |
void |
drawThinSidesOfRibbon(GL gl)
Draws the thin sides for the last ribbon segment that was drawn. |
void |
drawTube(GL gl,
Segment s)
Draws the curved body of a tube segment and remembers info needed by any subsequent call to drawStartCap() or drawEndCap(). |
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 |
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 SegmentRenderer()
Method Detail |
---|
public void drawTube(GL gl, Segment s)
gl
- the current GL object.s
- the segment to draw.public void drawStartCap(GL gl)
gl
- the current GL object.public void drawEndCap(GL gl)
gl
- the current GL object.public void drawRibbon(GL gl, Segment s)
gl
- the current GL object.s
- the segment to draw.public void drawThinSidesOfRibbon(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 |