Skip to content

Commit

Permalink
split the point cloud handler
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 3, 2020
1 parent 3cc478c commit a271e81
Show file tree
Hide file tree
Showing 11 changed files with 508 additions and 217 deletions.
1 change: 1 addition & 0 deletions python/3d/3d_auto.sip
Expand Up @@ -24,3 +24,4 @@
%Include auto_generated/symbols/qgspointcloud3dsymbol.sip
%Include auto_generated/qgs3dmapexportsettings.sip
%Include auto_generated/qgscolorramptexture.sip
%Include auto_generated/symbols/qgspointcloud3dsymbol_p.sip
22 changes: 22 additions & 0 deletions python/3d/auto_generated/qgscolorramptexture.sip.in
@@ -0,0 +1,22 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgscolorramptexture.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/








/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/qgscolorramptexture.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
18 changes: 0 additions & 18 deletions python/3d/auto_generated/symbols/qgspointcloud3dsymbol.sip.in
Expand Up @@ -9,9 +9,6 @@



namespace Qt3DRender
{
};

class QgsPointCloud3DSymbol : QgsAbstract3DSymbol
{
Expand Down Expand Up @@ -43,10 +40,6 @@ class QgsPointCloud3DSymbol : QgsAbstract3DSymbol
RGBRendering
};

QgsPointCloud3DSymbol( QgsPointCloudLayer *layer, QgsPointCloud3DSymbol::RenderingStyle style );
%Docstring
Constructor for QgsPointCloud3DSymbol
%End
~QgsPointCloud3DSymbol();

virtual QString type() const;
Expand Down Expand Up @@ -85,14 +78,9 @@ Returns the rendering style used to render the point cloud
virtual unsigned int byteStride() = 0;
%Docstring
Returns the byte stride for the geometries used to for the vertex buffer
%End
virtual void fillMaterial( Qt3DRender::QMaterial *material ) = 0;
%Docstring
Used to fill material object with necessary QParameters (and consequently opengl uniforms)
%End

protected:
float mPointSize = 2.0f;
};

class QgsSingleColorPointCloud3DSymbol : QgsPointCloud3DSymbol
Expand Down Expand Up @@ -140,8 +128,6 @@ Sets the color used by the renderer when using SingleColor rendering mode
%End

virtual unsigned int byteStride();
virtual void fillMaterial( Qt3DRender::QMaterial *material );



};
Expand Down Expand Up @@ -226,8 +212,6 @@ Sets the minimum and maximum values used when classifying colors in the color ra
%End

virtual unsigned int byteStride();
virtual void fillMaterial( Qt3DRender::QMaterial *material );


};

Expand Down Expand Up @@ -262,8 +246,6 @@ Constructor for QgsRGBPointCloud3DSymbol


virtual unsigned int byteStride();
virtual void fillMaterial( Qt3DRender::QMaterial *material );

};

/************************************************************************
Expand Down
22 changes: 22 additions & 0 deletions python/3d/auto_generated/symbols/qgspointcloud3dsymbol_p.sip.in
@@ -0,0 +1,22 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/








/************************************************************************
* This file has been generated automatically from *
* *
* src/3d/symbols/qgspointcloud3dsymbol_p.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2 changes: 2 additions & 0 deletions src/3d/CMakeLists.txt
Expand Up @@ -72,6 +72,7 @@ set(QGIS_3D_SRCS
symbols/qgspolygon3dsymbol.cpp
symbols/qgspolygon3dsymbol_p.cpp
symbols/qgspointcloud3dsymbol.cpp
symbols/qgspointcloud3dsymbol_p.cpp

terrain/qgsdemterraingenerator.cpp
terrain/qgsdemterraintilegeometry_p.cpp
Expand Down Expand Up @@ -168,6 +169,7 @@ set(QGIS_3D_PRIVATE_HDRS
symbols/qgsmesh3dsymbol_p.h
symbols/qgspoint3dsymbol_p.h
symbols/qgspolygon3dsymbol_p.h
symbols/qgspointcloud3dsymbol_p.h
terrain/qgsdemterraintilegeometry_p.h
terrain/qgsdemterraintileloader_p.h
terrain/qgsterrainentity_p.h
Expand Down
3 changes: 3 additions & 0 deletions src/3d/qgscolorramptexture.h
Expand Up @@ -35,6 +35,7 @@
#include "qgsmeshlayer.h"
#include "qgsmeshlayerutils.h"
#include "qgstriangularmesh.h"
#ifndef SIP_RUN

class QgsColorRampTextureGenerator: public Qt3DRender::QTextureImageDataGenerator
{
Expand Down Expand Up @@ -68,6 +69,8 @@ class QgsColorRampTexture: public Qt3DRender::QAbstractTextureImage
double mVerticalScale = 1;
};

#endif

/// @endcond

#endif // QGSCOLORRAMPTEXTURE_H

0 comments on commit a271e81

Please sign in to comment.