mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
* Add button to change billboard symbol. * Add shaders for billboards. * Add billboard material class. * Add sample billboard image. * Add dummy handler for billboard. * Add billboard geometry class. * First working version of 3D point as billboard. * Make selected feature bigger. * Use default symbol preview as billboard. * Update billboard when changes the viewport size. * Use QgsTerrainTextureImage for adding image to texture. * Show better quality of billboard default symbol. * Promote QgsSymbolButton not working. * Add QgsSymbolButton properly. * Add seTexture2DFromSymbol. * Use default symbol * [On Progress] Get symbol from the QgsSymbolButton. * [On progress] failed to change the symbol * Fix billboard fragment shader for macOS * Better transparency handling. * Use size from the symbol. * Add set layer for 3d billboard symbol. * Set billboard size from the symbol pixel size * 20 * Use size from the image. * [Debug] set white symbol to success kid, it work when previous billboard is success kid. * Use store and restore symbol from Nyall. * Remove unrelated code. * Apply random extent to fix the bug, from Martin. * Remove add mesh entities for billboard. * Hide material and transformation widget for billboard. * Remove add scene entities for billboard. * Add selected as parameter in drawPreviewIcon. * Add QgsMarkerSymbol to store the symbol in billboard * Put billboard symbol in point3dsymbol serialization. * Add billboard height in the UI. * Set height for billboard. * Store billboard height separately. Perhaps better to use existing transform. * Set height of billboard to TY. * Flipped image for billboard symbol. * Add helper function to set billboard function. * Generate billboard transform from general transform. * Use static dpi for context size. * Remove debug message. * Use Qgs3DRenderContext for selection color and dpi from QgsApplication. * Remove unnecessary file and code. * Remove commented iut code. * Add documentation of new classes. * Fix banned keywords. * Add missing parameter's documentation. * Address PR review. * Use context from readXML. * Remove one line function. * Fix billboard size. * Make some functions private, remove unused function. * Use unique_ptr for the ownership. * Use unique_ptr for default symbol to avoid memory leak. * Add parent to texture2D. * Fix documentation. * Add copy constructor. * Fix documentation. * Remove documentation warning. * Fix sip error. * Add unit test for billboard rendering. * Set ambient to not transparent for measurement line. * Add dpi in the Qgs3DMapSetting * Update billboard rendering unit test. * Remove layer from 3d point widget since it's not supported yet. * Addressing PR review from Martin. * Attach dom directly for the billboard symbol. * Remove unused constructor for point3dsymbol. * Use stroke width ratio for solving big stroke width. * Update unit test for rendering with some stroke color. * Fix typo.
142 lines
3.8 KiB
Plaintext
142 lines
3.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/symbols/qgspoint3dsymbol.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsPoint3DSymbol : QgsAbstract3DSymbol
|
|
{
|
|
%Docstring
|
|
3D symbol that draws point geometries as 3D objects using one of the predefined shapes.
|
|
|
|
.. warning::
|
|
|
|
This is not considered stable API, and may change in future QGIS releases. It is
|
|
exposed to the Python bindings as a tech preview only.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgspoint3dsymbol.h"
|
|
%End
|
|
public:
|
|
QgsPoint3DSymbol();
|
|
%Docstring
|
|
Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol
|
|
%End
|
|
|
|
QgsPoint3DSymbol( const QgsPoint3DSymbol &other );
|
|
%Docstring
|
|
Copy Constructor for QgsPoint3DSymbol
|
|
%End
|
|
|
|
virtual QString type() const;
|
|
virtual QgsAbstract3DSymbol *clone() const /Factory/;
|
|
|
|
|
|
virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const;
|
|
|
|
virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context );
|
|
|
|
|
|
Qgs3DTypes::AltitudeClamping altitudeClamping() const;
|
|
%Docstring
|
|
Returns method that determines altitude (whether to clamp to feature to terrain)
|
|
%End
|
|
void setAltitudeClamping( Qgs3DTypes::AltitudeClamping altClamping );
|
|
%Docstring
|
|
Sets method that determines altitude (whether to clamp to feature to terrain)
|
|
%End
|
|
|
|
QgsPhongMaterialSettings material() const;
|
|
%Docstring
|
|
Returns material used for shading of the symbol
|
|
%End
|
|
void setMaterial( const QgsPhongMaterialSettings &material );
|
|
%Docstring
|
|
Sets material used for shading of the symbol
|
|
%End
|
|
|
|
enum Shape
|
|
{
|
|
Cylinder,
|
|
Sphere,
|
|
Cone,
|
|
Cube,
|
|
Torus,
|
|
Plane,
|
|
ExtrudedText,
|
|
Model,
|
|
Billboard,
|
|
};
|
|
|
|
static Shape shapeFromString( const QString &shape );
|
|
%Docstring
|
|
Returns shape enum value from a string
|
|
%End
|
|
static QString shapeToString( Shape shape );
|
|
%Docstring
|
|
Returns string from a shape enum value
|
|
%End
|
|
|
|
Shape shape() const;
|
|
%Docstring
|
|
Returns 3D shape for points
|
|
%End
|
|
void setShape( Shape shape );
|
|
%Docstring
|
|
Sets 3D shape for points
|
|
%End
|
|
|
|
QVariantMap shapeProperties() const;
|
|
%Docstring
|
|
Returns a key-value dictionary of point shape properties
|
|
%End
|
|
void setShapeProperties( const QVariantMap &properties );
|
|
%Docstring
|
|
Sets a key-value dictionary of point shape properties
|
|
%End
|
|
|
|
QgsMarkerSymbol *billboardSymbol() const;
|
|
%Docstring
|
|
Returns a symbol for billboard
|
|
%End
|
|
void setBillboardSymbol( QgsMarkerSymbol *symbol );
|
|
%Docstring
|
|
Set symbol for billboard and the ownership is transferred
|
|
%End
|
|
|
|
QMatrix4x4 transform() const;
|
|
%Docstring
|
|
Returns transform for individual objects represented by the symbol
|
|
%End
|
|
void setTransform( const QMatrix4x4 &transform );
|
|
%Docstring
|
|
Sets transform for individual objects represented by the symbol
|
|
%End
|
|
|
|
QMatrix4x4 billboardTransform() const;
|
|
%Docstring
|
|
Returns transform for billboards
|
|
%End
|
|
|
|
private:
|
|
QgsPoint3DSymbol &operator=( const QgsPoint3DSymbol & );
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/symbols/qgspoint3dsymbol.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|