mirror of
https://github.com/mapnik/mapnik.git
synced 2025-09-11 07:02:51 +02:00

- wxpdfdoc patches - mapnik patches - visual studio build instructions / project files see /msvc/readme.txt for build instructions The scons makefiles have not been updated, the new files are in /pdf, /include/pdf, /demo/pdf/, and /bindings/python
89 lines
3.4 KiB
C++
89 lines
3.4 KiB
C++
/*****************************************************************************
|
|
*
|
|
* This file is part of the wxPdfDoc modifications for mapnik
|
|
*
|
|
* Copyright (C) 2007 Ben Moores
|
|
*
|
|
* This library 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 (at your option) any later version.
|
|
*
|
|
* This library 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 this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#ifndef PDF_POINT_SYMBOLIZER_HPP
|
|
#define PDF_POINT_SYMBOLIZER_HPP
|
|
|
|
#include <mapnik/graphics.hpp>
|
|
#include <mapnik/symbolizer.hpp>
|
|
#include <mapnik/point_symbolizer.hpp>
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
|
namespace mapnik
|
|
{
|
|
class MAPNIK_DECL pdf_point_symbolizer
|
|
: public point_symbolizer
|
|
{
|
|
public:
|
|
explicit pdf_point_symbolizer();
|
|
|
|
//! \brief constructor
|
|
//!
|
|
//! \param[in] file The image file
|
|
//! \param[in] type The type of the file, e.g. "png"
|
|
//! \param[in] image_width The width of the image in pixels
|
|
//! \param[in] image_height The height of the image in pixels
|
|
//! \param[in] _output_width The scaled (output) width of the image (in pdf units)
|
|
//! \param[in] _output_height The scaled (output) height of the image (in pdf units)
|
|
pdf_point_symbolizer( std::string const& file,
|
|
std::string const& type,
|
|
unsigned image_width, unsigned image_height,
|
|
double _output_width, double _output_height);
|
|
|
|
//! \brief constructor
|
|
//!
|
|
//! Copies the supplied pdf_point_symbolizer
|
|
pdf_point_symbolizer(pdf_point_symbolizer const& rhs);
|
|
|
|
//! \brief constructor
|
|
//!
|
|
//! Takes a point_symbolizer and turns it into a pdf_point_symbolizer
|
|
//!
|
|
//! \param[in] rhs The point_symbolizer to start with
|
|
//! \param[in] _output_width The scaled (output) width of the image (in pdf units)
|
|
//! \param[in] _output_height The scaled (output) height of the image (in pdf units)
|
|
pdf_point_symbolizer(point_symbolizer const& rhs, const double _output_width, const double _output_height);
|
|
|
|
//! \brief Sets the output size of the image
|
|
//!
|
|
//! \param[in] width Width in pdf units
|
|
//! \param[in] height Height in pdf units
|
|
void set_output_size(const double width, const double height);
|
|
|
|
//! \brief Gets the output width of an image
|
|
//!
|
|
//! \return The output width of the image in pdf units
|
|
double get_output_width(void) const { return output_width; };
|
|
|
|
//! \brief Gets the output height of an image
|
|
//!
|
|
//! \return The output height of the image in pdf units
|
|
double get_output_height(void) const { return output_height; };
|
|
|
|
private:
|
|
double output_width; //!< output width of image in pdf units
|
|
double output_height; //!< output height of image in pdf units
|
|
};
|
|
}
|
|
|
|
#endif // PDF_POINT_SYMBOLIZER_HPP
|