|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.move.core.views.DynamicObject | +--ants.move.core.views.hook.HookView
Implementation of DynamicObject Hook.
Constructor Summary | |
HookView()
Sole & void constructor. |
Method Summary | |
void |
eventPerformed()
Executed when a VRML Event is received. |
void |
hook(java.lang.String pos,
java.lang.String ori)
Hook |
void |
hookOrientationChanged(java.lang.String value)
Change hook orientation |
void |
hookPositionChanged(java.lang.String value)
Change hook position |
void |
init(java.util.Hashtable ht)
Initializes necessary parameters to use this class. |
float |
to1d(float n)
Trims a float to an only decimal digit. |
void |
unHook()
Unhook |
Methods inherited from class ants.move.core.views.DynamicObject |
addListener, catchNode, getBrowser, getName, getNode, getVRMLNodeName, getZone, getZoneName, printMsg, setaddChValue, setaddChValue, setBrowser, setChNodes, setName, setreChValue, setreChValue, setVRMLNodeName, setZoneName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HookView()
params
- Noneexceptions
- No exceptions thrownMethod Detail |
public void init(java.util.Hashtable ht)
init
in interface ViewInterface
z
- Zone nameb
- Reference to VRML browsern
- VRML Node named
- Object names
- Elvin4 sessionr
- Used to dynamically add VRML objects to the sceneexceptions
- No exceptions thrownpublic float to1d(float n)
n
- Number to trimexceptions
- No exceptions thrownpublic void eventPerformed()
eventPerformed
in class DynamicObject
params
- Noneexceptions
- No exceptions thrownpublic void hook(java.lang.String pos, java.lang.String ori)
HookListener
hook
in interface HookListener
ants.move.core.models.hook.HookListener
pos
- position "x y z"ori
- rotation "x y z o"public void unHook()
HookListener
unHook
in interface HookListener
public void hookPositionChanged(java.lang.String value)
HookListener
hookPositionChanged
in interface HookListener
ants.move.core.models.hook.HookListener
value
- position "x y z"public void hookOrientationChanged(java.lang.String value)
HookListener
hookOrientationChanged
in interface HookListener
ants.move.core.models.hook.HookListener
value
- rotation "x y z o"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |