|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.visualization.magicLens.DefaultMagicLens infovis.visualization.magicLens.DefaultFisheye
public class DefaultFisheye
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 |
DefaultFisheye.LensProfile
|
static interface |
DefaultFisheye.Metric
|
static class |
DefaultFisheye.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 |
DISTANCE_VIEW_PLANE
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 String |
PROPERTY_DISTANCE
|
static String |
PROPERTY_FOCUS_RADIUS
|
static String |
PROPERTY_LENS_SHAPE
|
static String |
PROPERTY_METRIC
|
static String |
PROPERTY_TOLERANCE
|
static String |
PROPERTY_TRANSFORMING_X
|
static String |
PROPERTY_TRANSFORMING_Y
|
static float |
REFERENCE_HEIGHT
The virtual camera height is 10.0f |
Fields inherited from interface infovis.visualization.magicLens.Fisheye |
---|
PROPERTY_FOCUS_HEIGHT |
Fields inherited from interface infovis.visualization.MagicLens |
---|
PROPERTY_ENABLED, PROPERTY_LENS_POSITION_X, PROPERTY_LENS_POSITION_Y, PROPERTY_LENS_RADIUS |
Constructor Summary | |
---|---|
DefaultFisheye()
Constructor for Fisheyes. |
|
DefaultFisheye(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. |
short |
getDistanceMetric()
Returns the distanceMetric. |
float |
getFocusHeight()
Returns the focal height. |
float |
getFocusRadius()
Returns the focusRadius. |
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(Point2D p)
Returns true of point is transformed. |
boolean |
isTransformed(Rectangle2D bounds)
DOCUMENT ME! |
boolean |
isTransformed(Shape s)
DOCUMENT ME! |
boolean |
isTransformingX()
|
boolean |
isTransformingY()
|
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 |
setFocusHeight(float focalHeight)
Sets the focal height. |
void |
setFocusRadius(float radius)
Sets the focusRadius. |
void |
setLensType(short lensType)
Sets the lensType. |
void |
setLensX(float x)
Sets the lensX. |
void |
setLensY(float y)
Sets the lens Y. |
void |
setMaximumScale(float scale)
Change the maximum scale |
void |
setRadii(float focus,
float lens)
DOCUMENT ME! |
void |
setTolerance(float tolerance)
Sets the tolerance. |
void |
setTransformingX(boolean transformingX)
|
void |
setTransformingY(boolean transformingY)
|
void |
subdivide(float x1,
float y1,
float x2,
float y2,
GeneralPath p)
Subdivide a line segment. |
void |
subdivideSegment(float x1,
float y1,
float tx1,
float ty1,
float x2,
float y2,
float tx2,
float ty2,
GeneralPath p,
int depth)
Subdivide a line segment already clipped. |
void |
transform(float[] coords,
int npoints)
DOCUMENT ME! |
Point2D |
transform(Point2D src)
|
void |
transform(Point2D src,
Point2D dst)
DOCUMENT ME! |
Shape |
transform(Shape s)
DOCUMENT ME! |
float |
transformX(float x,
float scale)
DOCUMENT ME! |
float |
transformY(float y,
float scale)
DOCUMENT ME! |
Methods inherited from class infovis.visualization.magicLens.DefaultMagicLens |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getLensRadius, getLensX, getLensY, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled, setLens, setLensRadius |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface infovis.visualization.MagicLens |
---|
addPropertyChangeListener, addPropertyChangeListener, getBounds, getLensRadius, getLensX, getLensY, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled, setLens, setLensRadius |
Field Detail |
---|
public static final String PROPERTY_DISTANCE
public static final String PROPERTY_METRIC
public static final String PROPERTY_LENS_SHAPE
public static final String PROPERTY_FOCUS_RADIUS
public static final String PROPERTY_TOLERANCE
public static final String PROPERTY_TRANSFORMING_X
public static final String PROPERTY_TRANSFORMING_Y
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 REFERENCE_HEIGHT
public static final float DISTANCE_VIEW_PLANE
Constructor Detail |
---|
public DefaultFisheye()
public DefaultFisheye(float lensRadius, float focusRadius, float focalHeight)
lensRadius
- the lens radius.focusRadius
- the focus radiosfocalHeight
- the focal heigt (0 <= 9)Method Detail |
---|
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(Point2D p)
p
- the point
public boolean isTransformed(Rectangle2D bounds)
bounds
- DOCUMENT ME!
public boolean isTransformed(Shape s)
s
- DOCUMENT ME!
public Shape transform(Shape s)
transform
in interface Fisheye
s
- DOCUMENT ME!
public void subdivideSegment(float x1, float y1, float tx1, float ty1, float x2, float y2, float tx2, float ty2, GeneralPath p, int depth)
x1
- X coordinate of first pointy1
- Y coordinate of first pointx2
- X coordinate of second pointy2
- Y coordinate of second pointp
- GeneralPath to fillpublic void subdivide(float x1, float y1, float x2, float y2, GeneralPath p)
x1
- X coordinate of first pointy1
- Y coordinate of first pointx2
- X coordinate of second pointy2
- Y coordinate of second pointp
- GeneralPath to fillpublic float pointHeight(float x, float y)
x
- X coordinate of the pointy
- Y coordinate of the point
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 getFocusRadius()
public void setLensX(float x)
MagicLens
setLensX
in interface MagicLens
setLensX
in class DefaultMagicLens
x
- The lest X to setpublic void setLensY(float y)
setLensY
in interface MagicLens
setLensY
in class DefaultMagicLens
y
- The lensY to setpublic void setFocusRadius(float radius)
radius
- The focusRadius to setpublic void setRadii(float focus, float lens)
focus
- DOCUMENT ME!lens
- DOCUMENT ME!public float getFocusHeight()
getFocusHeight
in interface Fisheye
public void setFocusHeight(float focalHeight)
setFocusHeight
in interface Fisheye
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)
transform
in interface Fisheye
coords
- DOCUMENT ME!public void transform(Point2D src, Point2D dst)
transform
in interface Fisheye
src
- DOCUMENT ME!dst
- DOCUMENT ME!public Point2D transform(Point2D src)
transform
in interface Fisheye
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 setpublic boolean isTransformingX()
public void setTransformingX(boolean transformingX)
public boolean isTransformingY()
public void setTransformingY(boolean transformingY)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |