Skip to content
Permalink
Browse files

Use QgsFeature3DHandler implementation for line 3D symbols

  • Loading branch information
wonder-sk committed Jan 17, 2019
1 parent 7f5d8ea commit 2d56345c73709d079a6bff6fbdc8f3ae7fa88124
Showing with 254 additions and 163 deletions.
  1. +1 −1 src/3d/qgsvectorlayer3drenderer.cpp
  2. +245 −131 src/3d/symbols/qgsline3dsymbol_p.cpp
  3. +8 −31 src/3d/symbols/qgsline3dsymbol_p.h
@@ -86,7 +86,7 @@ Qt3DCore::QEntity *QgsVectorLayer3DRenderer::createEntity( const Qgs3DMapSetting
else if ( mSymbol->type() == QLatin1String( "point" ) )
return new QgsPoint3DSymbolEntity( map, vl, *static_cast<QgsPoint3DSymbol *>( mSymbol.get() ) );
else if ( mSymbol->type() == QLatin1String( "line" ) )
return new QgsLine3DSymbolEntity( map, vl, *static_cast<QgsLine3DSymbol *>( mSymbol.get() ) );
return Qgs3DSymbolImpl::entityForLine3DSymbol( map, vl, *static_cast<QgsLine3DSymbol *>( mSymbol.get() ) );
else
return nullptr;
}

0 comments on commit 2d56345

Please sign in to comment.
You can’t perform that action at this time.