fhm.edu.fem.animation
Class GLMembraneRenderer

java.lang.Object
  extended by fhm.edu.fem.animation.GLFEMRenderer
      extended by fhm.edu.fem.animation.GLMembraneRenderer
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class GLMembraneRenderer
extends GLFEMRenderer

Class Description: This class takes care of actually drawing the membrane

Author:
Thomas Woellert (thomas.woellert@t-online.de), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected  Vector currentWt
           
protected  double dimensionA
           
protected  double dimensionB
           
protected  Vector w0Vector
           
 
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
GLMembraneRenderer(double dimensionA, double dimensionB, Vector w0)
          Create a new OpenGL Membrane Renderer
 
Method Summary
protected  void drawContents(GLDrawable drawable)
          Draw the contents
protected  void drawMembraneElements(GLDrawable drawable, Vector w)
          Draw the membrane's elements
protected  void drawMembraneNodes(GLDrawable drawable, Vector w)
          Draw the membrane's nodes
protected  void drawMembranePolygons(GLDrawable drawable, Vector w)
          Draw the membrane's polygons
 void setNewVectorW(Vector wT)
          Set a new vector w(t) while running
 
Methods inherited from class fhm.edu.fem.animation.GLFEMRenderer
display, displayChanged, drawCoordSystem, init, keyPressed, keyReleased, keyTyped, 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

currentWt

protected Vector currentWt

dimensionA

protected double dimensionA

dimensionB

protected double dimensionB

w0Vector

protected Vector w0Vector
Constructor Detail

GLMembraneRenderer

public GLMembraneRenderer(double dimensionA,
                          double dimensionB,
                          Vector w0)
Create a new OpenGL Membrane Renderer

Parameters:
dimensionA, - length of membrane side A
dimensionB, - length of membrane side B
w0, - the initial vector holding the z-values of all aliasID nodes
Method Detail

drawContents

protected void drawContents(GLDrawable drawable)
Draw the contents

Specified by:
drawContents in class GLFEMRenderer
Parameters:
drawable, - the main GLDrawable given by OpenGL

drawMembraneElements

protected void drawMembraneElements(GLDrawable drawable,
                                    Vector w)
Draw the membrane's elements

Parameters:
drawable, - the main GLDrawable given by OpenGL
w, - the vector w(t) to use

drawMembraneNodes

protected void drawMembraneNodes(GLDrawable drawable,
                                 Vector w)
Draw the membrane's nodes

Parameters:
drawable, - the main GLDrawable given by OpenGL
w, - the vector w(t) to use

drawMembranePolygons

protected void drawMembranePolygons(GLDrawable drawable,
                                    Vector w)
Draw the membrane's polygons

Parameters:
drawable, - the main GLDrawable given by OpenGL
w, - the vector w(t) to use

setNewVectorW

public void setNewVectorW(Vector wT)
Set a new vector w(t) while running

Parameters:
wT, - the new Vector wT