QGIS API Documentation  3.0.2-Girona (307d082)
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 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 42 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 24 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 31 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 52 of file qgs25drenderer.cpp.