00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __DEM__
00024 #define __DEM__
00025
00026 #include "jed_defs.h"
00027 #include "jed_gl.h"
00028 #include "toolkits/util/parsero.h"
00029 #include "toolkits/media/jed_img.h"
00030 #include "lista.h"
00031 #include <stdio.h>
00032
00033 class GLOBAL_DEM;
00034
00035 class LOCAL_DEM {
00036 private:
00037 long int latitud;
00038 long int longitud;
00039 long int x_tam;
00040 long int y_tam;
00041 char *nombre;
00042 BOOLEAN revisado;
00043 FILE *fd;
00044
00045 void
00046 leer_linea(BYTE *buffer, long int pos, long int num_elems, char *path);
00047 BOOLEAN disponible(char *path);
00048 public:
00049 LOCAL_DEM(char *n);
00050 ~LOCAL_DEM();
00051 friend class GLOBAL_DEM;
00052 };
00053
00054 class GLOBAL_DEM {
00055 private:
00056 BYTE *buffer;
00057 long int _num_paralelos;
00058 long int _num_meridianos;
00059 long int menor_x;
00060 long int menor_y;
00061 char *path;
00062 LISTA <LOCAL_DEM *> parches;
00063 char _nombre[MAX_CAD];
00064
00065 public:
00066 GLOBAL_DEM();
00067 ~GLOBAL_DEM();
00068
00069 char *nombre(void);
00070 void set_nombre(const char *n);
00071 long int num_paralelos(void);
00072 long int num_meridianos(void);
00073 long int mayor_x(void);
00074 long int mayor_y(void);
00075
00076 BOOLEAN exportar_imagen(IMAGEN_RGB *Imagen,long int x_pos,long int y_pos);
00077 BOOLEAN exportar_vertices(VERTICE_GL *Vertices,
00078 long int x_pos,long int y_pos, long int x_tam, long int y_tam);
00079 #ifdef GL_ENABLED
00080 void pintar_gl(long int pos_x, long int pos_y,
00081 long int size_x, long int size_y);
00082 #endif
00083 BOOLEAN leer(TOKENIZADOR *Sabiondo);
00084 };
00085
00086 #endif
00087
00088
00089
00090
00091