|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.animation.GLFEMRenderer
fhm.edu.fem.animation.GLSpannerRenderer
public class GLSpannerRenderer
Class Description: This class takes care of actually drawing the spanner
Field Summary | |
---|---|
protected NodeList |
aliasIDNodeList
|
protected boolean |
drawBackFigure
|
protected boolean |
drawNewFigure
|
protected boolean |
drawSpannungsbetragColors
|
protected FEMCalcSpanner |
femCalc
|
protected GLColor[] |
spannungsbetragColors
|
Fields inherited from class fhm.edu.fem.animation.GLFEMRenderer |
---|
femManager, mouseLButtonDown, mouseRButtonDown, nRange, prevMouseX, prevMouseY, showPointsOnly, showPolygons, transX, transY, useColorMode, viewChangedByUser, viewHeight, viewRotX, viewRotY, viewRotZ, viewWidth, viewX, viewY |
Constructor Summary | |
---|---|
GLSpannerRenderer(FEMCalcSpanner femCalc)
Create a new OpenGL Spanner Renderer |
Method Summary | |
---|---|
protected void |
buildSpannungsbetragsColors(ElementList elementList)
Build the list of all element colors depending on the elements' spannungsbetrag |
protected boolean |
createAliasList()
Create the alias List |
protected void |
drawContents(GLDrawable drawable)
Draw the contents |
protected void |
drawSpannerElements(GLDrawable drawable,
ElementList elementList,
double zValue,
boolean useOriginalCoordinates)
Draw the spanners current elements |
protected void |
drawSpannerNodes(GLDrawable drawable,
NodeList nodeList,
double zValue,
boolean useOriginalCoordinates)
Draw the spanners current nodes |
protected void |
drawSpannerPolygons(GLDrawable drawable,
ElementList fullElementList,
double zValue,
boolean useOriginalCoordinates)
Draw the spanner's front real polygons based on the node coordinates |
void |
keyTyped(java.awt.event.KeyEvent e)
Automatically called when the user presses a key |
Methods inherited from class fhm.edu.fem.animation.GLFEMRenderer |
---|
display, displayChanged, drawCoordSystem, init, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, reshape, setMidPointFromNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NodeList aliasIDNodeList
protected boolean drawBackFigure
protected boolean drawNewFigure
protected boolean drawSpannungsbetragColors
protected FEMCalcSpanner femCalc
protected GLColor[] spannungsbetragColors
Constructor Detail |
---|
public GLSpannerRenderer(FEMCalcSpanner femCalc)
femCalc,
- the calculator we useMethod Detail |
---|
protected void buildSpannungsbetragsColors(ElementList elementList)
elementList,
- the element list to useprotected boolean createAliasList()
protected void drawContents(GLDrawable drawable)
drawContents
in class GLFEMRenderer
drawable,
- the main GLDrawable given by OpenGLprotected void drawSpannerElements(GLDrawable drawable, ElementList elementList, double zValue, boolean useOriginalCoordinates)
drawable,
- the main GLDrawable given by OpenGLelementList,
- the elementList to drawzValue,
- the z-value of the polygon nodesuseOriginalCoordinates,
- draw the nodes using their original coordinatesprotected void drawSpannerNodes(GLDrawable drawable, NodeList nodeList, double zValue, boolean useOriginalCoordinates)
drawable,
- the main GLDrawable given by OpenGLnodeList,
- the nodelist to drawzValue,
- the z-value of the polygon nodesuseOriginalCoordinates,
- draw the nodes using their original coordinatesprotected void drawSpannerPolygons(GLDrawable drawable, ElementList fullElementList, double zValue, boolean useOriginalCoordinates)
drawable,
- the main GLDrawable given by OpenGLfullElementList,
- the elementList to drawzValue,
- the z-value of the polygon nodesuseOriginalCoordinates,
- draw the nodes using their original coordinatespublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class GLFEMRenderer
e,
- the key event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |