|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gnu.gleem.Manip
|
+--gnu.gleem.Translate1Manip
A Translate1Manip is a Manip which translates in only one dimension and whose default representation is a two-way arrow.
| Constructor Summary | |
Translate1Manip()
|
|
| Method Summary | |
void |
clearHighlight()
Tell the manipulator to clear the current highlight |
void |
drag(Vec3f rayStart,
Vec3f rayDirection)
When a manipulator is active, drags of the live portion cause motion of the manipulator. |
Vec3f |
getAxis()
Get the axis of this Translate1Manip. |
Vec3f |
getScale()
|
Vec3f |
getTranslation()
Get the translation of this Translate1Manip. |
void |
highlight(HitPoint hit)
Tell the manipulator to highlight the current portion of itself. |
void |
intersectRay(Vec3f rayStart,
Vec3f rayDirection,
java.util.List results)
Cast a ray in 3-space from the camera start position in the specified direction and test for intersections against all live portions of this manipulator. |
void |
makeActive(HitPoint hit)
If the ManipManager decides that this manipulator is to become active, it will pass back the HitPoint which made it make its decision. |
void |
makeInactive()
When the mouse button is released, makeInactive() is called. |
void |
render(gl4java.GLFunc gl)
Render this Manipulator now using the given OpenGL routines and assuming an OpenGL context is current. |
void |
replaceGeometry(ManipPart geom)
Change the geometry of this manipulator to be the user-defined piece. |
void |
setAxis(Vec3f axis)
Set the axis of this Translate1Manip. |
void |
setScale(Vec3f scale)
Set the scale of the Translate1Manip. |
void |
setTranslation(Vec3f translation)
Set the translation of this Translate1Manip. |
| Methods inherited from class gnu.gleem.Manip |
addMotionListener, removeMotionListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Translate1Manip()
| Method Detail |
public void setTranslation(Vec3f translation)
public Vec3f getTranslation()
public void setAxis(Vec3f axis)
public Vec3f getAxis()
public void setScale(Vec3f scale)
public Vec3f getScale()
public void replaceGeometry(ManipPart geom)
public void intersectRay(Vec3f rayStart,
Vec3f rayDirection,
java.util.List results)
Manip
intersectRay in class Manippublic void highlight(HitPoint hit)
Manip
highlight in class Manippublic void clearHighlight()
Manip
clearHighlight in class Manippublic void makeActive(HitPoint hit)
Manip
makeActive in class Manip
public void drag(Vec3f rayStart,
Vec3f rayDirection)
Manip
drag in class Manippublic void makeInactive()
Manip
makeInactive in class Manippublic void render(gl4java.GLFunc gl)
Manip
render in class Manip
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||