QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Macros
qgs25drenderer.cpp File Reference
#include "qgs25drenderer.h"
#include "qgsgeometrygeneratorsymbollayer.h"
#include "qgsfillsymbollayer.h"
#include "qgspainteffect.h"
#include "qgseffectstack.h"
#include "qgsgloweffect.h"
#include "qgsproperty.h"
#include "qgssymbollayerutils.h"
Include dependency graph for qgs25drenderer.cpp:

Go to the source code of this file.

Macros

#define ORDER_BY_EXPRESSION
 
#define ROOF_EXPRESSION
 
#define WALL_EXPRESSION
 
#define WALL_SHADING_EXPRESSION
 

Macro Definition Documentation

#define ORDER_BY_EXPRESSION
Value:
"distance(" \
" $geometry," \
" translate(" \
" @map_extent_center," \
" 1000 * @map_extent_width * cos( radians( @qgis_25d_angle + 180 ) )," \
" 1000 * @map_extent_width * sin( radians( @qgis_25d_angle + 180 ) )" \
" )" \
")"

Definition at line 43 of file qgs25drenderer.cpp.

#define ROOF_EXPRESSION
Value:
"translate(" \
" $geometry," \
" cos( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )," \
" sin( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )" \
")"

Definition at line 25 of file qgs25drenderer.cpp.

#define WALL_EXPRESSION
Value:
"order_parts( "\
" extrude(" \
" segments_to_lines( $geometry )," \
" cos( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )," \
" sin( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )" \
" )," \
" 'distance( $geometry, translate( @map_extent_center, 1000 * @map_extent_width * cos( radians( @qgis_25d_angle + 180 ) ), 1000 * @map_extent_width * sin( radians( @qgis_25d_angle + 180 ) ) ))'," \
" False" \
")"

Definition at line 32 of file qgs25drenderer.cpp.

#define WALL_SHADING_EXPRESSION
Value:
"set_color_part( " \
" @symbol_color," \
" 'value'," \
" 40 + 19 * abs( $pi - azimuth( " \
" point_n( geometry_n($geometry, @geometry_part_num) , 1 ), " \
" point_n( geometry_n($geometry, @geometry_part_num) , 2 )" \
" ) ) " \
")"

Definition at line 53 of file qgs25drenderer.cpp.