gnu.gleem
Class ManipPartLineSeg

java.lang.Object
  |
  +--gnu.gleem.ManipPart
        |
        +--gnu.gleem.ManipPartLineSeg

public class ManipPartLineSeg
extends ManipPart

A line segment from (-1, 0, 0) to (1, 0, 0).


Constructor Summary
ManipPartLineSeg()
           
 
Method Summary
 void clearHighlight()
          Unhighlight this part
 Vec3f getColor()
           
 Vec3f getHighlightColor()
           
 boolean getPickable()
           
 boolean getVisible()
           
 void highlight()
          Highlight this part
 void intersectRay(Vec3f rayStart, Vec3f rayDirection, java.util.List results, Manip caller)
          Intersect a ray with this part, returning all intersected points as HitPoints in the result list.
 void render(gl4java.GLFunc gl)
          Render this ManipPart now using the given OpenGL routines and assuming an OpenGL context is current.
 void setColor(Vec3f color)
          Default color is (0.8, 0.8, 0.8)
 void setHighlightColor(Vec3f highlightColor)
          Default highlight color is (0.8, 0.8, 0)
 void setPickable(boolean pickable)
          Is this part pickable, or just decorative? Not pickable implies that intersectRay() will return immediately.
 void setTransform(Mat4f xform)
          Sets the transform of this part.
 void setVisible(boolean visible)
          Default is visible
 
Methods inherited from class gnu.gleem.ManipPart
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManipPartLineSeg

public ManipPartLineSeg()
Method Detail

setColor

public void setColor(Vec3f color)
Default color is (0.8, 0.8, 0.8)


getColor

public Vec3f getColor()

setHighlightColor

public void setHighlightColor(Vec3f highlightColor)
Default highlight color is (0.8, 0.8, 0)


getHighlightColor

public Vec3f getHighlightColor()

intersectRay

public void intersectRay(Vec3f rayStart,
                         Vec3f rayDirection,
                         java.util.List results,
                         Manip caller)
Description copied from class: ManipPart
Intersect a ray with this part, returning all intersected points as HitPoints in the result list. The same rules as Manip.intersectRay() apply.

Specified by:
intersectRay in class ManipPart

setTransform

public void setTransform(Mat4f xform)
Description copied from class: ManipPart
Sets the transform of this part.

Specified by:
setTransform in class ManipPart

highlight

public void highlight()
Description copied from class: ManipPart
Highlight this part

Specified by:
highlight in class ManipPart

clearHighlight

public void clearHighlight()
Description copied from class: ManipPart
Unhighlight this part

Specified by:
clearHighlight in class ManipPart

setPickable

public void setPickable(boolean pickable)
Description copied from class: ManipPart
Is this part pickable, or just decorative? Not pickable implies that intersectRay() will return immediately.

Specified by:
setPickable in class ManipPart

getPickable

public boolean getPickable()
Specified by:
getPickable in class ManipPart

setVisible

public void setVisible(boolean visible)
Default is visible

Specified by:
setVisible in class ManipPart

getVisible

public boolean getVisible()
Specified by:
getVisible in class ManipPart

render

public void render(gl4java.GLFunc gl)
Description copied from class: ManipPart
Render this ManipPart now using the given OpenGL routines and assuming an OpenGL context is current.

Specified by:
render in class ManipPart