|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.psu.geovista.ui.Fisheyes
Fisheyes manage space deformation to maintain focus+context views by applying a space deformation. See Sheelagh Carpendale's PhD for full details.
| Nested Class Summary | |
static interface |
Fisheyes.LensProfile
|
static interface |
Fisheyes.Metric
|
static class |
Fisheyes.ProfileCos
|
| Field Summary | |
static short |
DISTANCE_L1
constant value for setDistanceMetric to use a L1 distance |
static short |
DISTANCE_L2
constant value for setDistanceMetric to use a L2 distance |
static short |
DISTANCE_LINF
constant value for setDistanceMetric to use a L infinity distance |
static float |
distanceViewplance
The virtual viewplane is located at this distance from the camera |
static short |
LENS_COSINE
constant value for setLensType to use a cosine lens types |
static short |
LENS_GAUSSIAN
constant value for setLensType to use a gaussian lens types |
static short |
LENS_HEMISPHERE
constant value for setLensType to use a hemisphere lens types |
static short |
LENS_INVERSE_COSINE
constant value for setLensType to use an inverse cosine lens types |
static short |
LENS_LINEAR
constant value for setLensType to use a linear lens types |
static float |
referenceHeight
The virtual camera height is 10.0f |
| Constructor Summary | |
Fisheyes()
Constructor for Fisheyes. |
|
Fisheyes(float lensRadius,
float focusRadius,
float focalHeight)
Creates a new Fisheye object. |
|
| Method Summary | |
float |
distance(float x,
float y)
Returns the distance of the specified point from the focus. |
java.awt.geom.Rectangle2D |
getBounds()
|
short |
getDistanceMetric()
Returns the distanceMetric. |
float |
getFocalHeight()
Returns the focal height. |
float |
getFocusRadius()
Returns the focusRadius. |
float |
getFocusX()
Returns the focusX. |
float |
getFocusY()
Returns the focusY. |
float |
getLensRadius()
Returns the lensRadius. |
short |
getLensType()
Returns the lensType. |
float |
getMaximumScale()
Returns the maximum scale |
float |
getScale(float x,
float y)
DOCUMENT ME! |
float |
getTolerance()
Returns the tolerance. |
float |
height(float dist)
Returns the height at the specified distance from the focus |
boolean |
isTransformed(double x,
double y)
Returns true of point is transformed. |
boolean |
isTransformed(float x,
float y)
Returns true of point is transformed. |
boolean |
isTransformed(java.awt.geom.Point2D p)
Returns true of point is transformed. |
boolean |
isTransformed(java.awt.geom.Rectangle2D bounds)
DOCUMENT ME! |
boolean |
isTransformed(java.awt.Shape s)
DOCUMENT ME! |
float |
lens(float t)
Returns the height at the specified normalized distance from the focus |
float |
pointHeight(float x,
float y)
Returns the height of a specified point. |
void |
setDistanceMetric(short distanceMetrics)
Sets the distanceMetric. |
void |
setFocalHeight(float focalHeight)
Sets the focal height. |
void |
setFocus(float x,
float y)
Sets for focus position |
void |
setFocusRadius(float focusRadius)
Sets the focusRadius. |
void |
setFocusX(float focusX)
Sets the focusX. |
void |
setFocusY(float focusY)
Sets the focusY. |
void |
setLensRadius(float radius)
Sets the lensRadius. |
void |
setLensType(short lensType)
Sets the lensType. |
void |
setMaximumScale(float scale)
Change the maximum scale |
void |
setRadii(float focus,
float lens)
DOCUMENT ME! |
void |
setTolerance(float tolerance)
Sets the tolerance. |
void |
subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
float x3,
float y3,
float tx3,
float ty3,
float x4,
float y4,
float tx4,
float ty4,
java.awt.geom.GeneralPath p)
Subdivide a quad segment. |
void |
subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
float x3,
float y3,
float tx3,
float ty3,
java.awt.geom.GeneralPath p)
Subdivide a quad segment. |
void |
subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
java.awt.geom.GeneralPath p)
Subdivide a line segment. |
void |
transform(float[] coords,
int npoints)
DOCUMENT ME! |
void |
transform(java.awt.geom.Point2D.Float src,
java.awt.geom.Point2D.Float dst)
DOCUMENT ME! |
java.awt.Shape |
transform(java.awt.Shape s)
DOCUMENT ME! |
float |
transformX(float x,
float scale)
DOCUMENT ME! |
float |
transformY(float y,
float scale)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final short DISTANCE_L1
public static final short DISTANCE_L2
public static final short DISTANCE_LINF
public static final short LENS_GAUSSIAN
public static final short LENS_COSINE
public static final short LENS_HEMISPHERE
public static final short LENS_LINEAR
public static final short LENS_INVERSE_COSINE
public static final float referenceHeight
public static final float distanceViewplance
| Constructor Detail |
public Fisheyes()
public Fisheyes(float lensRadius,
float focusRadius,
float focalHeight)
lensRadius - the lens radius.focusRadius - DOCUMENT ME!focalHeight - the focal heigt (0 <= 9)| Method Detail |
public java.awt.geom.Rectangle2D getBounds()
public boolean isTransformed(float x,
float y)
x - X coordinatey - Y coordinate
public boolean isTransformed(double x,
double y)
x - X coordinatey - Y coordinate
public boolean isTransformed(java.awt.geom.Point2D p)
p - the point
public boolean isTransformed(java.awt.geom.Rectangle2D bounds)
bounds - DOCUMENT ME!
public boolean isTransformed(java.awt.Shape s)
s - DOCUMENT ME!
public java.awt.Shape transform(java.awt.Shape s)
s - DOCUMENT ME!
public void subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
java.awt.geom.GeneralPath p)
x1 - X coordinate of first pointy1 - Y coordinate of first pointtx1 - Y coordinate of first pointty1 - transformed Y coordinate of first pointx2 - X coordinate of second pointy2 - Y coordinate of second pointtx2 - Y coordinate of second pointty2 - transformed Y coordinate of second pointp - GeneralPath to fill
public void subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
float x3,
float y3,
float tx3,
float ty3,
java.awt.geom.GeneralPath p)
x1 - X coordinate of first pointy1 - Y coordinate of first pointtx1 - Y coordinate of first pointty1 - transformed Y coordinate of first pointx2 - X coordinate of second pointy2 - Y coordinate of second pointtx2 - Y coordinate of second pointty2 - transformed Y coordinate of second pointx3 - X coordinate of third pointy3 - Y coordinate of third pointtx3 - Y coordinate of third pointty3 - transformed Y coordinate of third pointp - GeneralPath to fill
public void subdivide(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
float x3,
float y3,
float tx3,
float ty3,
float x4,
float y4,
float tx4,
float ty4,
java.awt.geom.GeneralPath p)
x1 - X coordinate of first pointy1 - Y coordinate of first pointtx1 - Y coordinate of first pointty1 - transformed Y coordinate of first pointx2 - X coordinate of second pointy2 - Y coordinate of second pointtx2 - Y coordinate of second pointty2 - transformed Y coordinate of second pointx3 - X coordinate of third pointy3 - Y coordinate of third pointtx3 - Y coordinate of third pointty3 - transformed Y coordinate of third pointp - GeneralPath to fill
public float pointHeight(float x,
float y)
x - X coordinate of the pointy - Y coordinate of the point
public void setFocus(float x,
float y)
x - X coordinate of the positiony - X coordinate of the position
public float distance(float x,
float y)
x - X coordinate of the pointy - Y coordinate of the point
public float height(float dist)
dist - the distance
public float lens(float t)
t - the normalized distance from the focus
public float getFocusX()
public float getFocusY()
public void setFocusX(float focusX)
focusX - The focusX to setpublic float getLensRadius()
public void setFocusY(float focusY)
focusY - The focusY to setpublic void setLensRadius(float radius)
radius - The lensRadius to setpublic float getFocusRadius()
public void setFocusRadius(float focusRadius)
focusRadius - The focusRadius to set
public void setRadii(float focus,
float lens)
focus - DOCUMENT ME!lens - DOCUMENT ME!public float getFocalHeight()
public void setFocalHeight(float focalHeight)
focalHeight - The focal height to setpublic void setMaximumScale(float scale)
scale - the new maximum scalepublic float getMaximumScale()
public float getScale(float x,
float y)
x - DOCUMENT ME!y - DOCUMENT ME!
public float transformX(float x,
float scale)
x - DOCUMENT ME!scale - DOCUMENT ME!
public float transformY(float y,
float scale)
y - DOCUMENT ME!scale - DOCUMENT ME!
public void transform(float[] coords,
int npoints)
coords - DOCUMENT ME!
public void transform(java.awt.geom.Point2D.Float src,
java.awt.geom.Point2D.Float dst)
src - DOCUMENT ME!dst - DOCUMENT ME!public short getDistanceMetric()
public short getLensType()
public void setDistanceMetric(short distanceMetrics)
distanceMetrics - The distanceMetric to setpublic void setLensType(short lensType)
lensType - The lensType to setpublic float getTolerance()
public void setTolerance(float tolerance)
tolerance - The tolerance to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||