|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ants.core.Thing
|
+--ants.move.core.models.hook.HookModel
Implementation of Hook Model.
| Constructor Summary | |
HookModel()
Sole & void constructor. |
|
| Method Summary | |
void |
addHookListener(HookListener hList)
Add new Hook listener |
void |
destroy()
Destroy method |
float |
getHCamOri(int index)
Get Camera orientation given an index coordinate. |
float |
getHCamPos(int index)
Get Camera position given an index coordinate. |
boolean |
getHookBoolean()
|
boolean |
getHooked()
Get state |
java.lang.String |
getType()
Tool type |
void |
init()
Initialize model |
void |
movement(float[] posNow,
float[] oriNow)
Set hook movemenr |
void |
propertyChange(ants.core.PropertyChangeEvent evt)
Method triggered in response to a property change. |
void |
removeHookListener(HookListener hList)
Remove Hook listener |
void |
setBind(boolean value)
Remotely Bind / Unbind Camera's Viewpoint. |
void |
setHCamOri(float[] value)
Set Camera orientation. |
void |
setHCamPos(float[] value)
Set Camera position. |
float |
to1d(float n)
Trims a float to an only decimal digit. |
| Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HookModel()
| Method Detail |
public void init()
init in class ants.core.Thingpublic void addHookListener(HookListener hList)
hList - Class that implements HookListener interfacepublic void removeHookListener(HookListener hList)
hList - Class that implements HookListener interfacepublic float to1d(float n)
n - Number to trimexceptions - No exceptions thrownpublic void setBind(boolean value)
value - True if camera has to be bound
public void movement(float[] posNow,
float[] oriNow)
posNow - PositionoriNow - camera orientationpublic void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListenerpublic float getHCamPos(int index)
index - Coordinateexceptions - No exceptions thrownpublic float getHCamOri(int index)
index - Coordinateexceptions - No exceptions thrownpublic void setHCamPos(float[] value)
value - Camera's new positionpublic void setHCamOri(float[] value)
value - Camera's new orientationpublic boolean getHookBoolean()
public boolean getHooked()
public java.lang.String getType()
getType in class ants.core.Thingpublic void destroy()
destroy in class ants.core.Thing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||