|
||||||||||
| 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.camera.CameraModel
Implementation of DynamicObject Camera.
| Constructor Summary | |
CameraModel()
Void constructor |
|
| Method Summary | |
void |
addCameraListener(CameraListener cList)
Add new cameraListener |
void |
destroy()
Destroy method |
java.lang.String |
getBound()
Get Bound |
float |
getCamOri(int index)
Get Camera orientation given an index coordinate. |
float |
getCamPos(int index)
Get Camera position given an index coordinate. |
java.lang.String |
getType()
Tool type |
void |
init()
Initialize model |
void |
lockPosition()
Lock camera position |
void |
propertyChange(ants.core.PropertyChangeEvent evt)
Method triggered in response to a property change. |
void |
removeCameraListener(CameraListener cList)
Remove Cameralistener |
void |
setBind(boolean value)
Remotely Bind / Unbind Camera's Viewpoint. |
void |
setCamOri(float[] value)
Set Camera orientation. |
void |
setCamPos(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 CameraModel()
| Method Detail |
public void init()
init in class ants.core.Thingpublic void addCameraListener(CameraListener cList)
cList - Listenerpublic void removeCameraListener(CameraListener cList)
cList - listenerpublic void lockPosition()
public float to1d(float n)
n - Number to trimpublic void setBind(boolean value)
value - True if camera has to be boundpublic java.lang.String getBound()
public void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListenerpublic float getCamPos(int index)
index - Coordinatepublic float getCamOri(int index)
index - Coordinatepublic void setCamPos(float[] value)
value - Camera's new positionpublic void setCamOri(float[] value)
value - Camera's new orientationpublic 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 | |||||||||