2017-06-06 11:03:05 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgs25drenderer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2016-08-06 11:01:42 +02:00
|
|
|
class Qgs25DRenderer : QgsFeatureRenderer
|
2016-01-14 11:09:27 +01:00
|
|
|
{
|
2017-06-06 11:03:05 +02:00
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgs25drenderer.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
Qgs25DRenderer();
|
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
static QgsFeatureRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Create a new 2.5D renderer from XML
|
2017-06-06 11:03:05 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param element: XML information
|
|
|
|
:param context: reading context
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
|
|
|
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context );
|
|
|
|
|
|
|
|
|
|
|
|
virtual void startRender( QgsRenderContext &context, const QgsFields &fields );
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void stopRender( QgsRenderContext &context );
|
|
|
|
|
|
|
|
|
|
|
|
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
|
|
|
|
|
|
|
virtual QgsFeatureRenderer *clone() const /Factory/;
|
2016-01-14 11:09:27 +01:00
|
|
|
|
|
|
|
|
2018-04-18 13:16:33 +02:00
|
|
|
virtual QgsSymbol *symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2018-04-18 12:51:48 +02:00
|
|
|
virtual QgsSymbolList symbols( QgsRenderContext &context ) const;
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2019-07-03 14:57:40 +10:00
|
|
|
virtual bool accept( QgsStyleEntityVisitorInterface *visitor ) const;
|
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
QColor roofColor() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the roof color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setRoofColor( const QColor &roofColor );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the roof color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
|
|
|
QColor wallColor() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the wall color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setWallColor( const QColor &wallColor );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the wall color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2016-01-20 08:21:32 +01:00
|
|
|
void setWallShadingEnabled( bool enabled );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set wall shading enabled
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-20 08:21:32 +01:00
|
|
|
|
2017-01-23 12:22:40 +10:00
|
|
|
bool wallShadingEnabled() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets wall shading enabled
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-20 08:21:32 +01:00
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
QColor shadowColor() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the shadow's color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setShadowColor( const QColor &shadowColor );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the shadow's color
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
|
|
|
double shadowSpread() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the shadow's spread distance in map units
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
void setShadowSpread( double shadowSpread );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the shadow's spread distance in map units
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
static Qgs25DRenderer *convertFromRenderer( QgsFeatureRenderer *renderer ) /Factory/;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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.
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-01-14 11:09:27 +01:00
|
|
|
|
2016-01-18 10:40:06 +01:00
|
|
|
bool shadowEnabled() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Is the shadow enabled
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
|
|
|
|
2016-01-18 10:40:06 +01:00
|
|
|
void setShadowEnabled( bool value );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Enable or disable the shadow
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
|
|
|
|
2016-01-14 11:09:27 +01:00
|
|
|
};
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgs25drenderer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|