gestalt.shape
Class Line

java.lang.Object
  extended by gestalt.shape.AbstractShape
      extended by gestalt.shape.Line
All Implemented Interfaces:
Drawable, java.io.Serializable
Direct Known Subclasses:
JoglLine

public abstract class Line
extends AbstractShape

See Also:
Serialized Form

Field Summary
 Color[] colors
           
 float linewidth
           
 Vector3f[] points
           
 boolean smooth
           
 boolean stipple
           
 int stipplefactor
           
 short stipplepattern
           
 
Constructor Summary
Line()
           
 
Method Summary
abstract  void setPrimitive(int theGestaltPrimitive)
          there are different kinds of line primitives.
 void setStipplePattern(java.lang.String theStippleBits)
          defines a stipplepattern for a lign.
 
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
 
Methods inherited from interface gestalt.render.Drawable
draw
 

Field Detail

points

public Vector3f[] points

colors

public Color[] colors

linewidth

public float linewidth

smooth

public boolean smooth

stipple

public boolean stipple
To do:
move stippling to material plugins 'JoglMaterialPluginStippleLine'

stipplefactor

public int stipplefactor

stipplepattern

public short stipplepattern
Constructor Detail

Line

public Line()
Method Detail

setPrimitive

public abstract void setPrimitive(int theGestaltPrimitive)
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 )

Parameters:
theGestaltPrimitive - int

setStipplePattern

public void setStipplePattern(java.lang.String theStippleBits)
defines a stipplepattern for a lign. 'stipple' needs to be set to 'true' for the 'stipplepattern' to take effect.

( also see OpenGL documentation )

Parameters:
theStippleBits - String


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