public class MapViewpoint extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MapViewpoint.ViewpointListener |
| Constructor and Description |
|---|
MapViewpoint() |
MapViewpoint(double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
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(double deltaX,
double deltaY,
double deltaZ) |
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(double x,
double y,
double z) |
void |
setSideView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box) |
void |
setTopView(cz.cuni.amis.pogamut.unreal.communication.worldview.map.Box box) |
public MapViewpoint()
public MapViewpoint(double x,
double y,
double z)
public void moveEye(double deltaX,
double deltaY,
double deltaZ)
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(double x,
double y,
double z)
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);Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.