This file is indexed.

/usr/include/qgis/qgs25drenderer.h is in libqgis-dev 2.14.11+dfsg-3+deb9u1.

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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/***************************************************************************
  qgs25drenderer.h - Qgs25DRenderer
  ---------------------------------

 begin                : 14.1.2016
 copyright            : (C) 2016 by Matthias Kuhn
 email                : matthias@opengis.ch
 ***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#ifndef QGS25DRENDERER_H
#define QGS25DRENDERER_H

#include "qgsrendererv2.h"
#include "qgsdatadefined.h"

class QgsOuterGlowEffect;

class CORE_EXPORT Qgs25DRenderer : public QgsFeatureRendererV2
{
  public:
    Qgs25DRenderer();

    /**
     * Create a new 2.5D renderer from XML
     *
     * @param element XML information
     */
    static QgsFeatureRendererV2* create( QDomElement& element );
    QDomElement save( QDomDocument& doc ) override;

    void startRender( QgsRenderContext& context, const QgsFields& fields ) override;
    void stopRender( QgsRenderContext& context ) override;

    QList<QString> usedAttributes() override;
    QgsFeatureRendererV2* clone() const override;

    virtual QgsSymbolV2* symbolForFeature( QgsFeature& feature, QgsRenderContext& context ) override;
    virtual QgsSymbolV2List symbols( QgsRenderContext& context ) override;

    /**
     * Get the roof color
     */
    QColor roofColor() const;

    /**
     * Set the roof color
     */
    void setRoofColor( const QColor& roofColor );

    /**
     * Get the wall color
     */
    QColor wallColor() const;

    /**
     * Set the wall color
     */
    void setWallColor( const QColor& wallColor );

    /**
     * Set wall shading enabled
     */
    void setWallShadingEnabled( bool enabled );

    /**
     * Get wall shading enabled
     */
    bool wallShadingEnabled();

    /**
     * Get the shadow's color
     */
    QColor shadowColor() const;

    /**
     * Set the shadow's color
     */
    void setShadowColor( const QColor& shadowColor );

    /**
     * Get the shadow's spread distance in map units
     */
    double shadowSpread() const;
    /**
     * Set the shadow's spread distance in map units
     */
    void setShadowSpread( double shadowSpread );

    /**
     * Try to convert from an existing renderer. If it is not of the same type
     * we assume that the internals are not compatible and create a new default
     * 2.5D renderer.
     */
    static Qgs25DRenderer* convertFromRenderer( QgsFeatureRendererV2* renderer );

    /**
     * Is the shadow enabled
     */
    bool shadowEnabled() const;
    /**
     * Enable or disable the shadow
     */
    void setShadowEnabled( bool value );

  private:

    QgsFillSymbolLayerV2* roofLayer() const;
    QgsFillSymbolLayerV2* wallLayer() const;
    QgsOuterGlowEffect* glowEffect() const;

    QScopedPointer<QgsSymbolV2> mSymbol;
};

#endif // QGS25DRENDERER_H