|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--yaarq.sys.yrqViewport
This class is used tby the engine to encapsule all Java3D viewport related objects and properties and to provide camera control without the need for external handling of transforms etc. The viewport is instantiated exactly once at engine initialisation. Calling applications have access to the camera control methods.
TODO: Add methods for other than target-based navigation, add ability to change basic viewport paramters like fov, finish documentation, IMPORTANT: Override (?) frame to allow for detach/attach viewport branch to allow intermediate changes to viewport objects (standard frames dont do this!!!)
| Constructor Summary | |
yrqViewport(yrqEngine a_engine)
This constructor initialises the viewport. |
|
| Method Summary | |
javax.vecmath.Point3d |
getCamera()
... |
yrqFrame |
getFrame()
This function returns the frame used by the viewport to provide positional and orientation information. |
javax.vecmath.Point3d |
getTarget()
... |
javax.media.j3d.View |
getView()
This function is called by various internal classes of the engine to determine the view object of the viewport. |
void |
setCamera(javax.vecmath.Point3d a_position)
... |
void |
setTarget(javax.vecmath.Point3d a_position)
... |
void |
update()
This method is called by the engine regulary to update flare visuals added to the viewport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public yrqViewport(yrqEngine a_engine)
a_engine - The engine instance| Method Detail |
public javax.vecmath.Point3d getCamera()
public yrqFrame getFrame()
Applications can use this frame to create camera paths by setting animations to it.
public javax.vecmath.Point3d getTarget()
public javax.media.j3d.View getView()
public void setCamera(javax.vecmath.Point3d a_position)
a_position - The position at which the camera should be placedpublic void setTarget(javax.vecmath.Point3d a_position)
public void update()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||