QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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 "qgsstyleentityvisitor.h"
#include "qgsfillsymbol.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 45 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 27 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 34 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 55 of file qgs25drenderer.cpp.