public class SCBGaussianLens extends BGaussianLens implements TemporalLens
Modifier and Type | Field and Description |
---|---|
protected Point2D |
currentPos |
protected double |
cutoffParamA |
protected double |
cutoffParamB |
protected float |
dMM
Dynamic magnification factor.
|
protected boolean |
doDrawRing |
protected boolean |
doRing |
protected LowPassFilter |
filter |
protected double |
frequency |
protected double |
maxDist |
protected float |
maxTranslucency |
protected float |
mindMM |
protected long |
mLastSampleTime |
protected fr.inria.zvtm.lens.DGTrailingTimer |
mouseStillUpdater |
protected Point2D |
parentPos |
protected float |
scRingRadius
bracelet pseudo dMM
|
protected boolean |
speedCoupled |
protected SpeedCoupling |
speedCoupling |
protected Point2D |
targetPos |
protected Timer |
timer |
protected int |
xOffset |
protected int |
yOffset |
aT, bT, cT, eT
MMTc, MMTf
CONSTANT, LR1, LR2, SPEED_DEPENDENT_LINEAR
h, lensHeight, lensWidth, lx, ly, magnifiedGraphics, mbh, mbi, mbw, MM, MM_FLOOR, mSwitchThreshold, owningView, sh, sw, w
Constructor and Description |
---|
SCBGaussianLens()
create a lens with a maximum magnification factor of 2.0
|
SCBGaussianLens(float mm)
create a lens with a given maximum magnification factor
|
SCBGaussianLens(float mm,
float tc,
float tf,
int outerRadius,
int innerRadius)
create a lens with a given maximum magnification factor, inner and outer radii
|
SCBGaussianLens(float mm,
float tc,
float tf,
int outerRadius,
int innerRadius,
int x,
int y)
create a lens with a given maximum magnification factor, inner and outer radii
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
drawBoundary(Graphics2D g2d)
for internal use
|
float |
getActualMaximumMagnification() |
float |
getActualRingRadius() |
boolean |
getDoRing() |
boolean |
getSpeedCoupled() |
TemporalParamListener |
getTemporalParamListener() |
void |
gf(float x,
float y,
float[] g)
gain factor function
|
void |
setAbsolutePosition(int ax,
int ay,
long absTime)
set the position of the lens inside the view
|
void |
setCutoffFrequencyParameters(double a,
double b) |
void |
setDoDrawRing(boolean b) |
void |
setDoRing(boolean b) |
void |
setDrawMaxFlatTop(boolean b)
allows to ask to draw the max flat top (not rawn by default)
|
void |
setMaxTranslucency(float maxAlpha) |
void |
setMinMagFactor(float minMagFac)
set the minimum magnification factor (1.0 by default)
|
void |
setNoUpdateWhenMouseStill(boolean b) |
void |
setSpeedBlendRadii(boolean bft,
boolean bor)
allows to ask to draw the max flat top
|
void |
setSpeedCoupled(boolean b) |
void |
setSpeedCoupling(SpeedCoupling sc) |
void |
setTemporalParamListener(TemporalParamListener tpl)
To be notified about updates to MM due to speed-coupling.
|
void |
updateFrequency() |
void |
updateFrequency(long currentTime) |
void |
updateTimeBasedParams() |
void |
updateTimeBasedParams(int cx,
int cy) |
gfT, setInnerRadius, setMaximumMagnification, setMaximumMagnification, setMMandRadii, setMMandRadii, setOuterRadius, setRadii, setRadii
getContextTranslucencyValue, getFocusTranslucencyValue, setContextTranslucencyValue, setFocusTranslucencyValue
getInnerRadius, getInnerRadiusColor, getOuterRadius, getOuterRadiusColor, getRadius, getVisibleRegionInFocus, moveLensBy, setAbsolutePosition, setFocusControlled, setFocusControlled, setInnerRadiusColor, setLensBuffer, setOuterRadiusColor
getBufferThreshold, getMagnificationGraphics, getMaximumMagnification, getOwningView, getVisibleRegion, getXfocusOffset, getYfocusOffset, isInitialized, resetMagnificationBuffer, setBufferThreshold, setMagRasterDimensions, setMagRasterDimensions, setXfocusOffset, setYfocusOffset, transform
protected double frequency
protected long mLastSampleTime
protected int xOffset
protected int yOffset
protected double maxDist
protected LowPassFilter filter
protected Point2D currentPos
protected Point2D parentPos
protected Point2D targetPos
protected Timer timer
protected fr.inria.zvtm.lens.DGTrailingTimer mouseStillUpdater
protected double cutoffParamA
protected double cutoffParamB
protected SpeedCoupling speedCoupling
protected boolean speedCoupled
protected float dMM
protected float maxTranslucency
protected float scRingRadius
protected boolean doRing
protected boolean doDrawRing
protected float mindMM
public SCBGaussianLens()
public SCBGaussianLens(float mm)
mm
- maximum magnification factor, mm in [0,+inf[public SCBGaussianLens(float mm, float tc, float tf, int outerRadius, int innerRadius)
mm
- maximum magnification factor, mm in [0,+inf[outerRadius
- outer radius (beyond which no magnification is applied - outward)innerRadius
- inner radius (beyond which maximum magnification is applied - inward)public SCBGaussianLens(float mm, float tc, float tf, int outerRadius, int innerRadius, int x, int y)
mm
- maximum magnification factor, mm in [0,+inf[outerRadius
- outer radius (beyond which no magnification is applied - outward)innerRadius
- inner radius (beyond which maximum magnification is applied - inward)x
- horizontal coordinate of the lens' center (as an offset w.r.t the view's center coordinates)y
- vertical coordinate of the lens' center (as an offset w.r.t the view's center coordinates)public void setAbsolutePosition(int ax, int ay, long absTime)
setAbsolutePosition
in interface TemporalLens
ax
- lens's center horizontal coordinate expressed as an absolute position within the view (JPanel coordinate system)ay
- lens's center vertical coordinate expressed as an absolute position within the view (JPanel coordinate system)absTime
- time at which this event is occuring (in ms, as can be obtained e.g. by System.currentTimeMillis())public void updateFrequency()
public void updateFrequency(long currentTime)
public void updateTimeBasedParams(int cx, int cy)
updateTimeBasedParams
in interface TemporalLens
public void updateTimeBasedParams()
updateTimeBasedParams
in interface TemporalLens
public void setCutoffFrequencyParameters(double a, double b)
public void setSpeedCoupling(SpeedCoupling sc)
public void setNoUpdateWhenMouseStill(boolean b)
setNoUpdateWhenMouseStill
in interface TemporalLens
public void gf(float x, float y, float[] g)
Lens
gf
in class BlendingLens
public void setMinMagFactor(float minMagFac)
minMagFac
- minimum magnification factor, in [1.0,MaxMag]public void setMaxTranslucency(float maxAlpha)
public void setDoRing(boolean b)
public boolean getDoRing()
public void setDoDrawRing(boolean b)
public void setDrawMaxFlatTop(boolean b)
b
- if true ask to draw the max flat toppublic void setSpeedBlendRadii(boolean bft, boolean bor)
bft
- if true speed blend the flat topbor
- if true speed blend the outer radiuspublic void drawBoundary(Graphics2D g2d)
drawBoundary
in class FixedSizeLens
public float getActualMaximumMagnification()
getActualMaximumMagnification
in class Lens
public float getActualRingRadius()
getActualRingRadius
in class FixedSizeLens
public void setTemporalParamListener(TemporalParamListener tpl)
setTemporalParamListener
in interface TemporalLens
public TemporalParamListener getTemporalParamListener()
getTemporalParamListener
in interface TemporalLens
public void setSpeedCoupled(boolean b)
public boolean getSpeedCoupled()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.