Página principal | Jerarquía de la clase | Lista alfabética | Lista de componentes | Lista de archivos | Miembros de las clases | Archivos de los miembros | Páginas relacionadas

dem.h

Ir a la documentación de este archivo.
00001 //===========================================================================
00002 //= Dem.h                                                   Octubre de 1999 =
00003 //=-------------------------------------------------------------------------=
00004 //= Declaracion de la clase GLOBAL_DEM que contiene datos de altimetria a   =
00005 //= escala planetaria.                                                      =
00006 //=-------------------------------------------------------------------------=
00007 //= ADVERTENCIA: ESTE SOFTWARE NO ESTA CONCEBIDO NI DISENNADO PARA EL USO   =
00008 //= EN EQUIPO DE CONTROL EN LINEA EN ENTORNOS PELIGROSOS QUE REQUIERAN UN   =
00009 //= DESEMPENNO LIBRE DE FALLAS, COMO LA OPERACION DE PLANTAS NUCLEARES,     = 
00010 //= SISTEMAS DE NAVEGACION O COMUNICACION EN AVIONES, TRAFICO AEREO,        =
00011 //= EQUIPO MEDICO DEL CUAL DEPENDAN VIDAS HUMANAS O SISTEMAS DE ARMAMENTO,  =
00012 //= EN LOS CUALES UNA FALLA EN EL SOFTWARE PUEDA IMPLICAR DIRECTAMENTE LA   =
00013 //= MUERTE, DANNOS PERSONALES O DANNOS FISICOS Y/O AMBIENTALES GRAVES       =
00014 //= ("ACTIVIDADES DE ALGO RIESGO").                                         =
00015 //=-------------------------------------------------------------------------=
00016 //= Autor original: Oscar J. Chavarro G.  A.K.A. JEDILINK. Copyright (c),   =
00017 //= 1997 - 2003, oscarchavarro@hotmail.com                                  =
00018 //= AQUYNZA es software libre, y se rige bajo los terminos de la licencia   =
00019 //= LGPL de GNU (http://www.gnu.org). Para mayor informacion respecto a la  =
00020 //= licencia de uso, consulte el archivo ./doc/LICENCIA en la distribucion. =
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 //= EOF                                                                     =
00090 //===========================================================================
00091 

Este archivo HTML ha sido generado automáticamente a partir del código fuente AQUYNZA. NO LO EDITE. Para mayor información contacte al autor.