QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Macros
qgs25drenderer.cpp File Reference
#include "qgs25drenderer.h"
#include "qgsgeometrygeneratorsymbollayerv2.h"
#include "qgsfillsymbollayerv2.h"
#include "qgspainteffect.h"
#include "qgseffectstack.h"
#include "qgsgloweffect.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

◆ ORDER_BY_EXPRESSION

#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 41 of file qgs25drenderer.cpp.

◆ ROOF_EXPRESSION

#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 23 of file qgs25drenderer.cpp.

◆ WALL_EXPRESSION

#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 30 of file qgs25drenderer.cpp.

◆ WALL_SHADING_EXPRESSION

#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 51 of file qgs25drenderer.cpp.