gestalt.impl.jogl.shape
Class JoglLine

java.lang.Object
  extended by gestalt.shape.AbstractShape
      extended by gestalt.shape.Line
          extended by gestalt.impl.jogl.shape.JoglLine
All Implemented Interfaces:
Drawable, java.io.Serializable

public class JoglLine
extends Line

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gestalt.shape.Line
colors, linewidth, points, smooth, stipple, stipplefactor, stipplepattern
 
Constructor Summary
JoglLine()
           
 
Method Summary
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 void setPrimitive(int theGestaltPrimitive)
          there are different kinds of line primitives.
 
Methods inherited from class gestalt.shape.Line
setStipplePattern
 
Methods inherited from class gestalt.shape.AbstractShape
add, getSortData, getSortValue, getTransformMode, isActive, isSortable, material, position, position, position, position, rotation, rotation, scale, scale, scale, setActive, setChildContainer, setMaterialRef, setPositionRef, setRotationRef, setScaleRef, setSortValue, setTransformMode, setTransformRef, transform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoglLine

public JoglLine()
Method Detail

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Parameters:
theRenderContext - GLContext

setPrimitive

public void setPrimitive(int theGestaltPrimitive)
Description copied from class: Line
there are different kinds of line primitives. defined in 'Gestalt' constants.
    LINE_PRIMITIVE_TYPE_LINES
    LINE_PRIMITIVE_TYPE_LINE_LOOP
    LINE_PRIMITIVE_TYPE_LINE_STRIP
'LINES' draws a per two points defined in the 'points' array.
'LINE_LOOP' draws a continous line starting with the first point in the array and ending with the last.
'LINE_PRIMITIVE_TYPE_LINE_STRIP' is the same as above except that it connects the last with the first point.

( also see OpenGL documentation )

Specified by:
setPrimitive in class Line
Parameters:
theGestaltPrimitive - int


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009