remove references to now unused mapnik::arrow

This commit is contained in:
Dane Springmeyer 2012-07-10 18:11:43 -07:00
parent afa9dc3c7c
commit 310ed4a05d
5 changed files with 0 additions and 112 deletions

View file

@ -1,45 +0,0 @@
/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* 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 MAPNIK_ARROW_HPP
#define MAPNIK_ARROW_HPP
#include <mapnik/box2d.hpp>
namespace mapnik {
class arrow
{
public:
arrow();
void rewind(unsigned path_id);
unsigned vertex(double* x, double* y);
box2d<double> extent() const;
private:
unsigned pos_;
double x_[7];
double y_[7];
unsigned cmd_[9];
};
}
#endif // MAPNIK_ARROW_HPP

View file

@ -1,64 +0,0 @@
/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* 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
*
*****************************************************************************/
#include <mapnik/arrow.hpp>
#include <agg_basics.h>
namespace mapnik {
arrow::arrow()
: pos_(0)
{
x_[0] = -7.0; y_[0] = 1.0; cmd_[0] = agg::path_cmd_move_to;
x_[1] = 1.0; y_[1] = 1.0; cmd_[1] = agg::path_cmd_line_to;
x_[2] = 1.0; y_[2] = 3.0; cmd_[2] = agg::path_cmd_line_to;
x_[3] = 7.0; y_[3] = 0.0; cmd_[3] = agg::path_cmd_line_to;
x_[4] = 1.0; y_[4] =-3.0; cmd_[4] = agg::path_cmd_line_to;
x_[5] = 1.0; y_[5] =-1.0; cmd_[5] = agg::path_cmd_line_to;
x_[6] = -7.0; y_[6] =-1.0; cmd_[6] = agg::path_cmd_line_to;
cmd_[7] = agg::path_cmd_end_poly | agg::path_flags_close | agg::path_flags_ccw;
cmd_[8] = agg::path_cmd_stop;
}
void arrow::rewind(unsigned )
{
pos_ = 0;
}
unsigned arrow::vertex(double* x, double* y)
{
if(pos_ < 7 )
{
*x = x_[pos_];
*y = y_[pos_];
return cmd_[pos_++];
}
return agg::path_cmd_stop;
}
box2d<double> arrow::extent() const
{
return box2d<double>(-7,-3,7,3);
}
}

View file

@ -28,7 +28,6 @@
#include <mapnik/image_util.hpp>
#include <mapnik/unicode.hpp>
#include <mapnik/markers_placement.hpp>
#include <mapnik/arrow.hpp>
#include <mapnik/parse_path.hpp>
#include <mapnik/marker.hpp>
#include <mapnik/marker_cache.hpp>

View file

@ -34,7 +34,6 @@
#include <mapnik/svg/svg_renderer.hpp>
#include <mapnik/svg/svg_path_adapter.hpp>
#include <mapnik/markers_placement.hpp>
#include <mapnik/arrow.hpp>
// agg
#include "agg_rasterizer_scanline_aa.h"

View file

@ -69,7 +69,6 @@ HEADERS += \
../include/mapnik/agg_pattern_source.hpp \
../include/mapnik/agg_rasterizer.hpp \
../include/mapnik/agg_renderer.hpp \
../include/mapnik/arrow.hpp \
../include/mapnik/attribute.hpp \
../include/mapnik/attribute_collector.hpp \
../include/mapnik/attribute_descriptor.hpp \