gnu.gleem
Class ManipPartGroup

java.lang.Object
  |
  +--gnu.gleem.ManipPart
        |
        +--gnu.gleem.ManipPartGroup
Direct Known Subclasses:
ManipPartTransform

public class ManipPartGroup
extends ManipPart

This class groups a set of ManipParts. Makes a set of ManipParts look like one.


Constructor Summary
ManipPartGroup()
           
 
Method Summary
 void addChild(ManipPart child)
           
 void clearHighlight()
          Unhighlight this part
 ManipPart getChild(int index)
           
 int getNumChildren()
           
 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 removeChild(ManipPart child)
           
 void render(gl4java.GLFunc gl)
          Render this ManipPart now using the given OpenGL routines and assuming an OpenGL context is current.
 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)
          Is this part 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

ManipPartGroup

public ManipPartGroup()
Method Detail

addChild

public void addChild(ManipPart child)

removeChild

public void removeChild(ManipPart child)

getNumChildren

public int getNumChildren()

getChild

public ManipPart getChild(int index)

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)
Description copied from class: ManipPart
Is this part 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