⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linkgrid.h

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 H
字号:
/* ********************************************************************** *  * <copyright> *  *  BBN Technologies, a Verizon Company *  10 Moulton Street *  Cambridge, MA 02138 *  (617) 873-8000 *  *  Copyright (C) BBNT Solutions LLC. All rights reserved. *  * </copyright> * ********************************************************************** *  * $Source: /cvs/distapps/openmap/src/cserver/link/include/LinkGrid.h,v $ * $RCSfile: LinkGrid.h,v $ * $Revision: 1.2 $ * $Date: 2004/01/26 19:07:09 $ * $Author: dietrick $ *  * ********************************************************************** */#ifndef LINKGRID_H#define LINKGRID_H#include "LinkArgs.h"#include "LinkSocket.h"#include "Request.h"/*Prototypes for Writing Grid Object*//*  Buffered objects write everything to a chunk of memory and   write the entire memory to socket at one short*//** * Writes a grid object in lat-long space to the link socket. * * @param *linkSocket The link socket. * @param lat The latitude of the anchor point, in decimal degrees. * @param lon The longitude of the anchor point, in decimal degrees. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param HResolution * @param major * @param data * @param linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int WriteLinkGridLatLon(LinkSocket *linkSocket,                         double lat, double lon,                         int rows, int columns, double orientation,                        double vResolution, double hResolution,                        int major, int* data,                        LinkArgs *linkArgs);/** * Writes a grid object in lat-long space with the data passed as a short * to the link socket. * * @param *linkSocket The link socket. * @param *lat The latitude of the anchor point, in degrees. * @param lon The longitude of the anchor point, in decimal degrees. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param HResolution * @param major * @param data * @param linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int WriteLinkGridLatLonS(LinkSocket *linkSocket,                          double lat, double lon,                          int rows, int columns, double orientation,                         double vResolution, double hResolution,                         int major, short* data,                         LinkArgs *linkArgs);/** * Writes a buffered grid object in lat-long space to the link socket. * <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteLinkGridLatLon(). * * @param *linkSocket The link socket. * @param lat The latitude of the anchor point, in decimal degrees. * @param lon The longitude of the anchor point, in decimal degrees. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param HResolution * @param major * @param data * @param linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int BufferedWriteLinkGridLatLon(LinkSocket *linkSocket,                                 double lat, double lon,                                 int rows, int columns, double orientation,                                double vResolution, double hResolution,                                int major, int* data,                                LinkArgs *linkArgs);/** * Writes a grid object in X-Y space to the link socket. * * @param *linkSocket The link socket. * @param x The X coordinate of the anchor point, in pixels from the top left corner of the canvas. * @param y The Y coordinate of the anchor point, in pixels from the top left corner of the canvas. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param HResolution * @param major * @param data * @param linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int WriteLinkGridXY(LinkSocket *linkSocket,                      int x, int y,                    int rows, int columns, double orientation,                    double vResolution, double hResolution,                    int major, int* data,                    LinkArgs *linkArgs);/** * Writes a buffered grid object in X-Y space to the link socket. <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteLinkGridXY(). * * @param *linkSocket The link socket. * @param x The X coordinate of the anchor point, in pixels from the top left corner of the canvas. * @param y The Y coordinate of the anchor point, in pixels from the top left corner of the canvas. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param HResolution * @param major * @param data * @param linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int BufferedWriteLinkGridXY(LinkSocket *linkSocket,                              int x, int y,                            int rows, int columns, double orientation,                            double vResolution, double hResolution,                            int major, int* data,                            LinkArgs *linkArgs);/** * Writes a grid object with an offset to the link socket. * * @param *linkSocket The link socket. * @param lat The latitude of the anchor point. * @param lon The longitude of the anchor point. * @param x The X coordinate of the top left corner of the grid, offset from the anchor point, in pixels. * @param y The Y coordinate of the top left corner of the grid, offset from the anchor point, in pixels. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param hResolution * @param major * @param data * @param *linkArgs The link arguments. * @returns -1 if there was a memory allocation error.  */ int WriteLinkGridOffset(LinkSocket *linkSocket,                        double lat, double lon,                        int x, int y,                                              int rows, int columns, double orientation,                        double vResolution, double hResolution,                        int major, int* data,                        LinkArgs *linkArgs);/** * Writes a buffered grid object with an offset to the link socket. * <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteLinkGridOffset(). * * @param *linkSocket The link socket. * @param lat The latitude of the anchor point. * @param lon The longitude of the anchor point. * @param x The X coordinate of the top left corner of the grid, offset from the anchor point, in pixels. * @param y The Y coordinate of the top left corner of the grid, offset from the anchor point, in pixels. * @param rows The number of rows in the grid. * @param columns The number of columns in the grid. * @param orientation * @param vResolution * @param hResolution * @param major * @param data * @param *linkArgs The link arguments. * @returns -1 if there was a memory allocation error. */int BufferedWriteLinkGridOffset(LinkSocket *linkSocket,                                double lat, double lon,                                int x, int y,                                                      int rows, int columns, double orientation,                                double vResolution, double hResolution,                                int major, int* data,                                LinkArgs *linkArgs);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -