1
1
#include " lineentity.h"
2
2
3
- #include " abstract3dsymbol .h"
3
+ #include " qgsline3dsymbol .h"
4
4
#include " polygongeometry.h"
5
5
#include " map3d.h"
6
6
#include " terraingenerator.h"
11
11
#include " qgsgeos.h"
12
12
13
13
14
- LineEntity::LineEntity ( const Map3D &map, QgsVectorLayer *layer, const Line3DSymbol &symbol, Qt3DCore::QNode *parent )
14
+ LineEntity::LineEntity ( const Map3D &map, QgsVectorLayer *layer, const QgsLine3DSymbol &symbol, Qt3DCore::QNode *parent )
15
15
: Qt3DCore::QEntity( parent )
16
16
{
17
17
addEntityForSelectedLines ( map, layer, symbol );
18
18
addEntityForNotSelectedLines ( map, layer, symbol );
19
19
}
20
20
21
- Qt3DExtras::QPhongMaterial *LineEntity::material ( const Line3DSymbol &symbol ) const
21
+ Qt3DExtras::QPhongMaterial *LineEntity::material ( const QgsLine3DSymbol &symbol ) const
22
22
{
23
23
Qt3DExtras::QPhongMaterial *material = new Qt3DExtras::QPhongMaterial;
24
24
@@ -30,7 +30,7 @@ Qt3DExtras::QPhongMaterial *LineEntity::material( const Line3DSymbol &symbol ) c
30
30
return material;
31
31
}
32
32
33
- void LineEntity::addEntityForSelectedLines ( const Map3D &map, QgsVectorLayer *layer, const Line3DSymbol &symbol )
33
+ void LineEntity::addEntityForSelectedLines ( const Map3D &map, QgsVectorLayer *layer, const QgsLine3DSymbol &symbol )
34
34
{
35
35
// build the default material
36
36
Qt3DExtras::QPhongMaterial *mat = material ( symbol );
@@ -50,7 +50,7 @@ void LineEntity::addEntityForSelectedLines( const Map3D &map, QgsVectorLayer *la
50
50
entity->setParent ( this );
51
51
}
52
52
53
- void LineEntity::addEntityForNotSelectedLines ( const Map3D &map, QgsVectorLayer *layer, const Line3DSymbol &symbol )
53
+ void LineEntity::addEntityForNotSelectedLines ( const Map3D &map, QgsVectorLayer *layer, const QgsLine3DSymbol &symbol )
54
54
{
55
55
// build the default material
56
56
Qt3DExtras::QPhongMaterial *mat = material ( symbol );
@@ -69,13 +69,13 @@ void LineEntity::addEntityForNotSelectedLines( const Map3D &map, QgsVectorLayer
69
69
entity->setParent ( this );
70
70
}
71
71
72
- LineEntityNode::LineEntityNode ( const Map3D &map, QgsVectorLayer *layer, const Line3DSymbol &symbol, const QgsFeatureRequest &req, Qt3DCore::QNode *parent )
72
+ LineEntityNode::LineEntityNode ( const Map3D &map, QgsVectorLayer *layer, const QgsLine3DSymbol &symbol, const QgsFeatureRequest &req, Qt3DCore::QNode *parent )
73
73
: Qt3DCore::QEntity( parent )
74
74
{
75
75
addComponent ( renderer ( map, symbol, layer, req ) );
76
76
}
77
77
78
- Qt3DRender::QGeometryRenderer *LineEntityNode::renderer ( const Map3D &map, const Line3DSymbol &symbol, const QgsVectorLayer *layer, const QgsFeatureRequest &request )
78
+ Qt3DRender::QGeometryRenderer *LineEntityNode::renderer ( const Map3D &map, const QgsLine3DSymbol &symbol, const QgsVectorLayer *layer, const QgsFeatureRequest &request )
79
79
{
80
80
QgsPointXY origin ( map.originX , map.originY );
81
81
0 commit comments