mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			199 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			199 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/pointcloud/qgspointcloudclassifiedrenderer.h                *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsPointCloudCategory
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
Represents an individual category (class) from a :py:class:`QgsPointCloudClassifiedRenderer`.
 | 
						|
 | 
						|
.. versionadded:: 3.18
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgspointcloudclassifiedrenderer.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsPointCloudCategory();
 | 
						|
%Docstring
 | 
						|
Constructor for QgsPointCloudCategory.
 | 
						|
%End
 | 
						|
 | 
						|
    QgsPointCloudCategory( int value, const QColor &color, const QString &label, bool render = true );
 | 
						|
%Docstring
 | 
						|
Constructor for a new QgsPointCloudCategory, with the specified ``value`` and ``color``.
 | 
						|
 | 
						|
The ``label`` argument specifies the label used for this category in legends and the layer tree.
 | 
						|
 | 
						|
The ``render`` argument indicates whether the category should initially be rendered and appear checked in the layer tree.
 | 
						|
%End
 | 
						|
 | 
						|
    bool operator==( const QgsPointCloudCategory &other ) const;
 | 
						|
 | 
						|
    int value() const;
 | 
						|
%Docstring
 | 
						|
Returns the value corresponding to this category.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setValue`
 | 
						|
%End
 | 
						|
 | 
						|
    QColor color() const;
 | 
						|
%Docstring
 | 
						|
Returns the color which will be used to render this category.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setColor`
 | 
						|
%End
 | 
						|
 | 
						|
    QString label() const;
 | 
						|
%Docstring
 | 
						|
Returns the label for this category, which is used to represent the category within
 | 
						|
legends and the layer tree.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setLabel`
 | 
						|
%End
 | 
						|
 | 
						|
    void setValue( int value );
 | 
						|
%Docstring
 | 
						|
Sets the ``value`` corresponding to this category.
 | 
						|
 | 
						|
.. seealso:: :py:func:`value`
 | 
						|
%End
 | 
						|
 | 
						|
    void setColor( const QColor &color );
 | 
						|
%Docstring
 | 
						|
Sets the ``color`` which will be used to render this category.
 | 
						|
 | 
						|
.. seealso:: :py:func:`color`
 | 
						|
%End
 | 
						|
 | 
						|
    void setLabel( const QString &label );
 | 
						|
%Docstring
 | 
						|
Sets the ``label`` for this category, which is used to represent the category within
 | 
						|
legends and the layer tree.
 | 
						|
 | 
						|
.. seealso:: :py:func:`label`
 | 
						|
%End
 | 
						|
 | 
						|
    bool renderState() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if the category is currently enabled and should be rendered.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setRenderState`
 | 
						|
%End
 | 
						|
 | 
						|
    void setRenderState( bool render );
 | 
						|
%Docstring
 | 
						|
Sets whether the category is currently enabled and should be rendered.
 | 
						|
 | 
						|
.. seealso:: :py:func:`renderState`
 | 
						|
%End
 | 
						|
 | 
						|
  protected:
 | 
						|
};
 | 
						|
 | 
						|
typedef QList<QgsPointCloudCategory> QgsPointCloudCategoryList;
 | 
						|
 | 
						|
 | 
						|
class QgsPointCloudClassifiedRenderer : QgsPointCloudRenderer
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
Renders point clouds by a classification attribute.
 | 
						|
 | 
						|
.. versionadded:: 3.18
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgspointcloudclassifiedrenderer.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsPointCloudClassifiedRenderer( const QString &attributeName = QString(), const QgsPointCloudCategoryList &categories = QgsPointCloudCategoryList() );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsPointCloudClassifiedRenderer.
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QString type() const;
 | 
						|
 | 
						|
    virtual QgsPointCloudRenderer *clone() const;
 | 
						|
 | 
						|
    virtual void renderBlock( const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context );
 | 
						|
 | 
						|
    virtual bool willRenderPoint( const QVariantMap &pointAttributes );
 | 
						|
 | 
						|
    virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context ) const;
 | 
						|
 | 
						|
    virtual QSet< QString > usedAttributes( const QgsPointCloudRenderContext &context ) const;
 | 
						|
 | 
						|
    virtual QList<QgsLayerTreeModelLegendNode *> createLegendNodes( QgsLayerTreeLayer *nodeLayer ) /Factory/;
 | 
						|
 | 
						|
    virtual QStringList legendRuleKeys() const;
 | 
						|
 | 
						|
    virtual bool legendItemChecked( const QString &key );
 | 
						|
 | 
						|
    virtual void checkLegendItem( const QString &key, bool state = true );
 | 
						|
 | 
						|
 | 
						|
    static QgsPointCloudRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
 | 
						|
%Docstring
 | 
						|
Creates an RGB renderer from an XML ``element``.
 | 
						|
%End
 | 
						|
 | 
						|
    static QgsPointCloudCategoryList defaultCategories();
 | 
						|
%Docstring
 | 
						|
Returns the default list of categories.
 | 
						|
%End
 | 
						|
 | 
						|
    QString attribute() const;
 | 
						|
%Docstring
 | 
						|
Returns the attribute to use for the renderer.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setAttribute`
 | 
						|
%End
 | 
						|
 | 
						|
    void setAttribute( const QString &attribute );
 | 
						|
%Docstring
 | 
						|
Sets the ``attribute`` to use for the renderer.
 | 
						|
 | 
						|
.. seealso:: :py:func:`attribute`
 | 
						|
%End
 | 
						|
 | 
						|
    QgsPointCloudCategoryList categories() const;
 | 
						|
%Docstring
 | 
						|
Returns the classification categories used for rendering.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setCategories`
 | 
						|
%End
 | 
						|
 | 
						|
    void setCategories( const QgsPointCloudCategoryList &categories );
 | 
						|
%Docstring
 | 
						|
Sets the classification ``categories`` used for rendering.
 | 
						|
 | 
						|
.. seealso:: :py:func:`categories`
 | 
						|
%End
 | 
						|
 | 
						|
    void addCategory( const QgsPointCloudCategory &category );
 | 
						|
%Docstring
 | 
						|
Adds a ``category`` to the renderer.
 | 
						|
 | 
						|
.. seealso:: :py:func:`categories`
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/pointcloud/qgspointcloudclassifiedrenderer.h                *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |