|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.manipulation.TransformationManipulator camera3d.manipulation.TranslationManipulator
Manipulator for performing translation of scene objects with the mouse.
Constructor Summary | |
TranslationManipulator()
|
Method Summary | |
void |
clearSelection()
Clears current selection of objects to be translated. |
boolean |
getCheckClipPlanes()
Returns flag that indicates if the translated object will be kept in the area between the two clipping planes during translation or if it will be allowed to go astray. |
void |
setBeginPoint(int x,
int y)
Sets mouse location where manipulation started. |
void |
setCanvas3D(javax.media.j3d.Canvas3D canvas)
Sets the Canvas3D from which manipulations are performed. |
void |
setCheckClipPlanes(boolean checkClipPlanes)
Sets flag used to determine if the translated object must be kept between the two clipping planes or no check should be performed to assure that condition. |
void |
setCurrentPoint(int x,
int y)
Sets current mouse location during manipulation. |
void |
setTranslatableObject(TranslatableObject translatableObject)
|
Methods inherited from class camera3d.manipulation.TransformationManipulator |
getSelectedScope, setTransformationMode, setTransformationScope |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TranslationManipulator()
Method Detail |
public void setTranslatableObject(TranslatableObject translatableObject)
public void setCanvas3D(javax.media.j3d.Canvas3D canvas)
setCanvas3D
in class TransformationManipulator
canvas
- Canvas3D object that originates manipulations.public void setBeginPoint(int x, int y)
setBeginPoint
in class TransformationManipulator
x
- x coordinate of manipulation's initial point.y
- y coordinate of manipulation's initial point.public void setCheckClipPlanes(boolean checkClipPlanes)
checkClipPlanes
- if true, the translated object will be kept in the area
between the two clipping planes; if false that condition
is not assured.public boolean getCheckClipPlanes()
public void clearSelection()
clearSelection
in class TransformationManipulator
public void setCurrentPoint(int x, int y)
setCurrentPoint
in class TransformationManipulator
x
- x coordinate of current manipulation point.y
- y coordinate of current manipulation point.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |