This file is indexed.

/usr/include/mapnik/symbolizer.hpp is in libmapnik-dev 2.2.0+ds1-6build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
/*****************************************************************************
 *
 * 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_SYMBOLIZER_HPP
#define MAPNIK_SYMBOLIZER_HPP

// mapnik
#include <mapnik/config.hpp>
#include <mapnik/path_expression.hpp>
#include <mapnik/image_compositing.hpp>
#include <mapnik/simplify.hpp>

// boost
#include <boost/optional.hpp>

// stl
#include <vector>
#include <string>

namespace agg { struct trans_affine; }

namespace mapnik
{

// fwd declares
// TODO - move these transform declares to own header
namespace detail { struct transform_node; }
typedef std::vector<detail::transform_node>         transform_list;
typedef boost::shared_ptr<transform_list>   transform_list_ptr;
typedef transform_list_ptr transform_type;
class feature_impl;

MAPNIK_DECL void evaluate_transform(agg::trans_affine& tr, feature_impl const& feature,
                                    transform_type const& trans_expr);

class MAPNIK_DECL symbolizer_base
{
public:
    symbolizer_base();
    symbolizer_base(symbolizer_base const& other);
    void set_comp_op(composite_mode_e comp_op);
    composite_mode_e comp_op() const;
    void set_transform(transform_type const& );
    transform_type const& get_transform() const;
    std::string get_transform_string() const;
    void set_clip(bool clip);
    bool clip() const;
    void set_simplify_algorithm(simplify_algorithm_e algorithm);
    simplify_algorithm_e simplify_algorithm() const;
    void set_simplify_tolerance(double simplify_tolerance);
    double simplify_tolerance() const;
    void set_smooth(double smooth);
    double smooth() const;
private:
    composite_mode_e comp_op_;
    transform_type affine_transform_;
    bool clip_;
    simplify_algorithm_e simplify_algorithm_value_;
    double simplify_tolerance_value_;
    double smooth_value_;
};


class MAPNIK_DECL symbolizer_with_image
{
public:
    path_expression_ptr const& get_filename() const;
    void set_filename(path_expression_ptr const& filename);
    void set_opacity(float opacity);
    float get_opacity() const;
    void set_image_transform(transform_type const& tr);
    transform_type const& get_image_transform() const;
    std::string get_image_transform_string() const;
protected:
    symbolizer_with_image(path_expression_ptr filename = path_expression_ptr());
    symbolizer_with_image(symbolizer_with_image const& rhs);
    path_expression_ptr image_filename_;
    float image_opacity_;
    transform_type image_transform_;
};
}

#endif // MAPNIK_SYMBOLIZER_HPP