|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gnu.gleem.ManipPart
|
+--gnu.gleem.ManipPartTriBased
Triangle-based manipulator part. This is the base class for most of the ManipParts that GLEEM uses internally. You can feel free to subclass this if you want to replace geometry in the manipulators, or re-derive from ManipPart. See ManipPartLineSeg for an example.
| Constructor Summary | |
ManipPartTriBased()
|
|
| Method Summary | |
void |
clearHighlight()
Unhighlight this part |
Vec3f |
getColor()
|
Vec3f |
getHighlightColor()
|
protected int[] |
getNormalIndices()
|
protected Vec3f[] |
getNormals()
|
boolean |
getPickable()
|
protected int[] |
getVertexIndices()
|
protected Vec3f[] |
getVertices()
|
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) |
protected void |
setNormalIndices(int[] normalIndices)
|
protected void |
setNormals(Vec3f[] normals)
|
void |
setPickable(boolean pickable)
Default is pickable |
void |
setTransform(Mat4f xform)
Sets the transform of this part. |
protected void |
setVertexIndices(int[] vertexIndices)
|
protected void |
setVertices(Vec3f[] vertices)
|
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 |
public ManipPartTriBased()
| Method Detail |
public void setColor(Vec3f color)
public Vec3f getColor()
public void setHighlightColor(Vec3f highlightColor)
public Vec3f getHighlightColor()
public void intersectRay(Vec3f rayStart,
Vec3f rayDirection,
java.util.List results,
Manip caller)
ManipPart
intersectRay in class ManipPartpublic void setTransform(Mat4f xform)
ManipPart
setTransform in class ManipPartpublic void highlight()
ManipPart
highlight in class ManipPartpublic void clearHighlight()
ManipPart
clearHighlight in class ManipPartpublic void setPickable(boolean pickable)
setPickable in class ManipPartpublic boolean getPickable()
getPickable in class ManipPartpublic void setVisible(boolean visible)
setVisible in class ManipPartpublic boolean getVisible()
getVisible in class ManipPartpublic void render(gl4java.GLFunc gl)
ManipPart
render in class ManipPartprotected void setVertices(Vec3f[] vertices)
protected Vec3f[] getVertices()
protected void setNormals(Vec3f[] normals)
protected Vec3f[] getNormals()
protected void setVertexIndices(int[] vertexIndices)
protected int[] getVertexIndices()
protected void setNormalIndices(int[] normalIndices)
protected int[] getNormalIndices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||