additv.drawables
Class APath

java.lang.Object
  extended by additv.drawables.ADrawable
      extended by additv.drawables.APath
All Implemented Interfaces:
AControlListener, ADrawableI

public class APath
extends ADrawable
implements AControlListener


Field Summary
 AFloatAbstract alpha
           
 AFloatAbstract blue
           
 AFloatVector4 colour
           
 AFloatAbstract green
           
 AFloatAbstract lineWidth
           
 java.util.ArrayList<javax.vecmath.Vector3f> points
           
 AFloatAbstract red
           
 AToggle rotateWithPath
           
 java.util.ArrayList<javax.vecmath.Vector3f> strokePoints
           
 AFloat transformPos
           
 
Fields inherited from class additv.drawables.ADrawable
children, drawn, enabled, modifiers, transform
 
Constructor Summary
APath(java.lang.String n, AMesh m, float threshold, com.sun.opengl.util.texture.Texture tex)
           
APath(java.lang.String n, java.util.ArrayList<javax.vecmath.Vector3f> p, com.sun.opengl.util.texture.Texture tex)
           
 
Method Summary
 void aControlChanged(AControllableI control)
           
 void buildStrokePoints(float noiseScale, float preExtensionLength, float postExtensionLength)
           
 void cleanup(javax.media.opengl.GL gl)
           
 void cullShortPoints(float threshold)
           
 void draw(javax.media.opengl.GL gl)
           
 void drawLines(javax.media.opengl.GL gl)
           
 void drawStrokes(javax.media.opengl.GL gl)
           
 void drawStrokesMode2(javax.media.opengl.GL gl)
           
 java.lang.String getName()
           
 javax.vecmath.Vector3f getPointAt(float pos)
           
 ATransform getSpreadedTransform()
           
 ATransform getTransform()
           
 AFloatModifier getTransformShiftModifier()
           
 void prepare(javax.media.opengl.GL gl)
           
 void setStrokeTexture(com.sun.opengl.util.texture.Texture tex)
           
 void subdivideEvenly(float maxDistance)
           
 
Methods inherited from class additv.drawables.ADrawable
addChild, addModifier, clearChildren, drawChildren, drawModified, getChildren, getModifiers, setTransform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

public java.util.ArrayList<javax.vecmath.Vector3f> points

strokePoints

public java.util.ArrayList<javax.vecmath.Vector3f> strokePoints

rotateWithPath

public AToggle rotateWithPath

transformPos

public AFloat transformPos

red

public AFloatAbstract red

green

public AFloatAbstract green

blue

public AFloatAbstract blue

alpha

public AFloatAbstract alpha

colour

public AFloatVector4 colour

lineWidth

public AFloatAbstract lineWidth
Constructor Detail

APath

public APath(java.lang.String n,
             AMesh m,
             float threshold,
             com.sun.opengl.util.texture.Texture tex)

APath

public APath(java.lang.String n,
             java.util.ArrayList<javax.vecmath.Vector3f> p,
             com.sun.opengl.util.texture.Texture tex)
Method Detail

getTransformShiftModifier

public AFloatModifier getTransformShiftModifier()

setStrokeTexture

public void setStrokeTexture(com.sun.opengl.util.texture.Texture tex)

cullShortPoints

public void cullShortPoints(float threshold)

subdivideEvenly

public void subdivideEvenly(float maxDistance)

buildStrokePoints

public void buildStrokePoints(float noiseScale,
                              float preExtensionLength,
                              float postExtensionLength)

drawLines

public void drawLines(javax.media.opengl.GL gl)

drawStrokes

public void drawStrokes(javax.media.opengl.GL gl)

drawStrokesMode2

public void drawStrokesMode2(javax.media.opengl.GL gl)

getSpreadedTransform

public ATransform getSpreadedTransform()

getPointAt

public javax.vecmath.Vector3f getPointAt(float pos)

getName

public java.lang.String getName()
Specified by:
getName in interface ADrawableI

draw

public void draw(javax.media.opengl.GL gl)
Specified by:
draw in interface ADrawableI

getTransform

public ATransform getTransform()
Specified by:
getTransform in interface ADrawableI
Overrides:
getTransform in class ADrawable

aControlChanged

public void aControlChanged(AControllableI control)
Specified by:
aControlChanged in interface AControlListener

cleanup

public void cleanup(javax.media.opengl.GL gl)
Specified by:
cleanup in interface ADrawableI

prepare

public void prepare(javax.media.opengl.GL gl)
Specified by:
prepare in interface ADrawableI