|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--Mapas
Genera mapas de la tierra de aspecto inusual, mapeando el polo norte en un punto de coordenadas geográficas arbitrarias.
Inner classes inherited from class java.applet.Applet |
java.applet.Applet.AccessibleApplet |
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static boolean |
ENTRADA Para especificar a clearImage que imagen
borrar |
static int[][] |
imagenE Imagen de entrada |
static int[][] |
imagenS Imagen de salida |
static boolean |
INVCOL Por si se requiere la imagen en negativo |
static int |
NCOLS Número de columnas en el arreglo que contiene la imagen |
static int |
NRENS Número de renglones en el arreglo que contiene la imagen |
static boolean |
SALIDA Para especificar a clearImage que imagen
borrar |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Mapas() |
Method Summary | |
void |
clearImage(boolean inout)
Limpia el buffer de imagen indicado. |
static double[] |
ifNorthPole(double x,
double y, double z, double longitud, double latitud)
Transforma un punto de la esfera unitaria en otro. |
void |
init() Método de inicialización. |
void |
loadImage() Carga de un archivo en formato gif la imagen del mapa original en proyección cilíndrica estándar. |
static double[] |
map2Sphere(int ren,
int col) Transforma las coordenadas (renglón, columna) de un punto en la imagen BMP en una terna (x,y,z) en la esfera unitaria. |
static void |
remap(double latitud,
double longitud) Remapea el globo terraqueo completo. |
void |
restart() Método de re-arranque. |
void |
run() Ejecución. |
static int[] |
sphere2Map(double x,
double y, double z) Transforma las coordenadas (x,y,z) de un punto en S2 en una pareja (ren,col) en un mapa Cuidado: No se permite que z=1 |
void |
start() Método de arranque. |
void |
stop() Método de detención. |
Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final boolean ENTRADA
clearImage
que imagen
borrarpublic static final boolean SALIDA
clearImage
que imagen
borrarpublic static final boolean INVCOL
public static final int NCOLS
public static final int NRENS
public static int[][] imagenE
public static int[][] imagenS
Constructor Detail |
public Mapas()
Method Detail |
public void clearImage(boolean inout)
inout
- true
borra el de entrada
false
borra el de salida.public void loadImage()
public static double[] map2Sphere(int ren, int col)
ren
- es el renglón de la matriz (buffer) que
contiene el mapa.col
- es la columna de la matriz (buffer) que
contiene el mapa.double
con las
coordenadas rectangulares (x,y,z) del punto de la esfera
unitaria que corresponde al punto dado como entrada.public static int[] sphere2Map(double x, double y, double z)
x,
- y,
y z
son las coordenadas
rectangulares de un punto sobre la esfera unitaria.r
(0<=r
<NRENS
) y
c
(0<=c
<NCOLS
) con las
coordenadas que le corresponden al punto dado como entrada en el
mapa bidimensional de proyección cilíndrica.public static double[] ifNorthPole(double x, double y, double z, double longitud, double latitud)
x,
- y, z
coordenadas rectángulares del punto
de S2 que se desea transformar.
- longitud, latitud
coordenadas del punto de
la tierra que se desea que quede en el polo norte. La
latitud debe estar entre -90 y 90 y la longitud entre
-180 y 180.public static void remap(double latitud, double longitud)
latitud
- especifica la latitud del
punto que deberá quedar en el polo norte. El valor de
este parámetro debe estar entre -90 y 90 (grados)
inclusive.longitud
- especifica la longitud del
punto que deberá quedar en el polo norte. El valor de
este parámetro debe estar entre -180 y 180 (grados)
inclusive.public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public void restart()
public void run()
run
in interface java.lang.Runnable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |