org.geotoolkit.gui.swing
Interface DeformableViewer

All Known Implementing Classes:
ImagePane, MosaicPerformanceGraph, Plot2D, ZoomPane

public interface DeformableViewer

An interface for viewers that may be deformed by some artefacts. For example the ZoomPane viewer is capable to show a magnifying glass on top of the usual content. The presence of a magnifying glass deforms the viewer in that the apparent position of pixels within the glass are moved. This interface allows for corrections of apparent pixel position in order to get the position we would have if no deformations existed.

Since:
2.0
Version:
3.00
Author:
Martin Desruisseaux (MPO, IRD)
Module:
display/geotk-widgets-swing (download)    View source code for this class

Method Summary
 void correctApparentPixelPosition(Point2D point)
          Corrects a pixel's coordinates by removing the effect of deformations induced by magnifying glass or similar effects.
 

Method Detail

correctApparentPixelPosition

void correctApparentPixelPosition(Point2D point)
Corrects a pixel's coordinates by removing the effect of deformations induced by magnifying glass or similar effects. Without this method, transformations from pixels to geographic coordinates would not give exact results for pixels inside the magnifying glass since the glass moves the pixel's apparent position. Invoking this method will remove any deformation effects using the following steps:

Parameters:
point - On input, a pixel coordinate as it appears on the screen. On output, the coordinate that the same pixel would have if the deformation wasn't presents.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.