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

📄 psimage.hpp

📁 一个gps小工具包
💻 HPP
字号:
///@file PSImage.hpp Vector plotting in the Postscript format. Class declarations.//============================================================================////  This file is part of GPSTk, the GPS Toolkit.////  The GPSTk is free software; you can redistribute it and/or modify//  it under the terms of the GNU Lesser General Public License as published//  by the Free Software Foundation; either version 2.1 of the License, or//  any later version.////  The GPSTk is distributed in the hope that it will be useful,//  but WITHOUT ANY WARRANTY; without even the implied warranty of//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the//  GNU Lesser General Public License for more details.////  You should have received a copy of the GNU Lesser General Public//  License along with GPSTk; if not, write to the Free Software Foundation,//  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//  //  Copyright 2004, The University of Texas at Austin////============================================================================#ifndef VPLOT_PSIMAGE_H#define VPLOT_PSIMAGE_H#include <string>#include <iostream>#include <fstream>#include "ViewerManager.hpp"#include "PSImageBase.hpp"namespace vplot{   /** \addtogroup BasicVectorGraphics */    //@{   /**    * This class generates vector graphics conformant with Postscript Level 2.    * Such graphics can be sent directly to a printer.    */   class PSImage : public PSImageBase {   public:     /**      * Create a Postscript output stream attached to an existing stream.      * @param stream Stream to insert Postscript graphic elements      * @param width  Width of the Postscript canvas in points      * @param height Height of the Postscript canvas in points      * @param iloc Location of the origin the drawer will use.      */      PSImage(std::ostream& stream,                        double width=US_LETTER_WIDTH_PTS,                       double height=US_LETTER_HEIGHT_PTS,                       ORIGIN_LOCATION iloc=LOWER_LEFT);     /**      * Create a Postscript output stream attached to an existing stream.      * @param fname  Name of the output file to be created      * @param width  Width of the Postscript canvas in points      * @param height Height of the Postscript canvas in points      * @param iloc Location of the origin the drawer will use.      */      PSImage(const char* fname, double width=US_LETTER_WIDTH_PTS, 		       double height=US_LETTER_HEIGHT_PTS,                       ORIGIN_LOCATION iloc=LOWER_LEFT);      /// Destructor.      ~PSImage(void);      /// Launch a viewer.      void view (void) throw (VPlotException);      /// This member manages how viewer(s) are launched.       ViewerManager viewerManager;   protected:      virtual void outputHeader(void);      virtual void outputFooter(void);   private:   }; // class PSImage   //@} group BasicVectorGraphics} // namespace vplot#endif //VPLOT_PSIMAGE_H

⌨️ 快捷键说明

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