|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.tudelft.goal.ut2004.visualizer.timeline.map.MapViewpoint
public class MapViewpoint
Representation of where is observer in map and where does he look, what is its POV angle ect.
Nested Class Summary | |
---|---|
static interface |
MapViewpoint.ViewpointListener
|
Constructor Summary | |
---|---|
MapViewpoint()
|
|
MapViewpoint(double x,
double y,
double z)
|
Method Summary | |
---|---|
void |
addViewpointListener(MapViewpoint.ViewpointListener listener)
|
double |
getCenter2EyeDistance()
Get distance from eye point to center point. |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getEye()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getEye2Center()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getRightVector()
|
javax.vecmath.Vector3d |
getUp()
|
double |
getViewAngle()
|
boolean |
isViewpointListener(MapViewpoint.ViewpointListener listener)
|
void |
lookAt(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
int axis,
boolean upFlag)
Set the viewpoint so it looks at specified location. |
void |
move(double deltaX,
double deltaY,
double deltaZ)
Move center and eye by deltaX,Y,Z in worldspace. |
void |
move(cz.cuni.amis.pogamut.base3d.worldview.object.Location moveVec)
Move center and eye in worldspace by the vector. |
void |
moveEye(cz.cuni.amis.pogamut.base3d.worldview.object.Location delta)
|
void |
removeViewpointListener(MapViewpoint.ViewpointListener listener)
|
void |
rotateCenter(cz.cuni.amis.pogamut.base3d.worldview.object.Location axis,
double angle)
|
void |
rotateEye(cz.cuni.amis.pogamut.base3d.worldview.object.Location axis,
double angle)
Rotate eye and up vectors around axis with origin in center by angle angle. |
static cz.cuni.amis.pogamut.base3d.worldview.object.Location |
rotateVectorAroundAxis(cz.cuni.amis.pogamut.base3d.worldview.object.Location vector,
cz.cuni.amis.pogamut.base3d.worldview.object.Location axis,
double angle)
Rotate by angle around vector axis. |
void |
setFromViewedBox(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
|
void |
setFrontView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
|
void |
setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
|
void |
setSideView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
|
void |
setTopView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapViewpoint()
public MapViewpoint(double x, double y, double z)
Method Detail |
---|
public void moveEye(cz.cuni.amis.pogamut.base3d.worldview.object.Location delta)
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getEye()
public javax.vecmath.Vector3d getUp()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getEye2Center()
public double getCenter2EyeDistance()
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getRightVector()
public void setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
public void setFromViewedBox(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
public void rotateEye(cz.cuni.amis.pogamut.base3d.worldview.object.Location axis, double angle)
axis
- angle how much rotate, in degress, by right hand, thumb
direction of axis, plam in direction of angleangle
- public void rotateCenter(cz.cuni.amis.pogamut.base3d.worldview.object.Location axis, double angle)
public static cz.cuni.amis.pogamut.base3d.worldview.object.Location rotateVectorAroundAxis(cz.cuni.amis.pogamut.base3d.worldview.object.Location vector, cz.cuni.amis.pogamut.base3d.worldview.object.Location axis, double angle)
vector
- axis
- angle
- angle in degreespublic void setFrontView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
public void setSideView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
public void setTopView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box)
public double getViewAngle()
public void move(cz.cuni.amis.pogamut.base3d.worldview.object.Location moveVec)
moveVec
- how much and in which direction should eye and center movepublic void move(double deltaX, double deltaY, double deltaZ)
deltaX
- how much should eye and center move along world x axisdeltaY
- how much should eye and center move along world y axisdeltaZ
- how much should eye and center move along world z axispublic void addViewpointListener(MapViewpoint.ViewpointListener listener)
public boolean isViewpointListener(MapViewpoint.ViewpointListener listener)
public void removeViewpointListener(MapViewpoint.ViewpointListener listener)
public void lookAt(cz.cuni.amis.pogamut.base3d.worldview.object.Location location, int axis, boolean upFlag)
location
- location that should be in the middle of screenaxis
- x = 0, y = 1, z = 2, which axis is up direction?upFlag
- is up at positive infinity of the axis (true) or negative
infinity (false);
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |