2018-05-15 12:39:03 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/mesh/qgsmeshrenderersettings.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-11 17:41:48 +02:00
|
|
|
|
2018-05-15 12:39:03 +02:00
|
|
|
class QgsMeshRendererMeshSettings
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Represents a mesh renderer settings for mesh object
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
The API is considered EXPERIMENTAL and can be changed without a notice
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmeshrenderersettings.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
bool isEnabled() const;
|
|
|
|
%Docstring
|
|
|
|
Returns whether mesh structure rendering is enabled
|
|
|
|
%End
|
|
|
|
void setEnabled( bool enabled );
|
|
|
|
%Docstring
|
|
|
|
Sets whether mesh structure rendering is enabled
|
|
|
|
%End
|
|
|
|
|
|
|
|
double lineWidth() const;
|
|
|
|
%Docstring
|
|
|
|
Returns line width used for rendering (in millimeters)
|
|
|
|
%End
|
|
|
|
void setLineWidth( double lineWidth );
|
|
|
|
%Docstring
|
|
|
|
Sets line width used for rendering (in millimeters)
|
|
|
|
%End
|
|
|
|
|
|
|
|
QColor color() const;
|
|
|
|
%Docstring
|
|
|
|
Returns color used for rendering
|
|
|
|
%End
|
|
|
|
void setColor( const QColor &color );
|
|
|
|
%Docstring
|
|
|
|
Sets color used for rendering of the mesh
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class QgsMeshRendererScalarSettings
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Represents a mesh renderer settings for scalar datasets
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
The API is considered EXPERIMENTAL and can be changed without a notice
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmeshrenderersettings.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-06-11 17:41:48 +02:00
|
|
|
QgsColorRampShader colorRampShader() const;
|
2018-05-15 12:39:03 +02:00
|
|
|
%Docstring
|
2018-06-11 17:41:48 +02:00
|
|
|
Returns color ramp shader function
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
2018-06-11 17:41:48 +02:00
|
|
|
void setColorRampShader( const QgsColorRampShader &shader );
|
2018-05-15 12:39:03 +02:00
|
|
|
%Docstring
|
2018-06-11 17:41:48 +02:00
|
|
|
Sets color ramp shader function
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
2018-06-11 17:41:48 +02:00
|
|
|
bool isEnabled() const;
|
2018-05-15 12:39:03 +02:00
|
|
|
%Docstring
|
2018-06-11 17:41:48 +02:00
|
|
|
Returns whether color ramp has any items assigned
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
2018-08-09 14:51:06 +02:00
|
|
|
|
|
|
|
void setEnabled( bool enabled );
|
2018-05-15 12:39:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class QgsMeshRendererVectorSettings
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Represents a mesh renderer settings for vector datasets
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
The API is considered EXPERIMENTAL and can be changed without a notice
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmeshrenderersettings.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-08-09 14:51:06 +02:00
|
|
|
|
|
|
|
bool isEnabled() const;
|
|
|
|
%Docstring
|
|
|
|
Returns whether rendering of vectors is enabled
|
|
|
|
%End
|
|
|
|
void setEnabled( bool enabled );
|
|
|
|
%Docstring
|
|
|
|
Sets whether rendering of vectors is enabled
|
|
|
|
%End
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
enum ArrowScalingMethod
|
2018-05-15 12:39:03 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
MinMax,
|
|
|
|
|
|
|
|
Scaled,
|
|
|
|
|
|
|
|
Fixed
|
|
|
|
};
|
|
|
|
|
|
|
|
double lineWidth() const;
|
|
|
|
%Docstring
|
|
|
|
Returns line width of the arrow (in millimeters)
|
|
|
|
%End
|
|
|
|
void setLineWidth( double lineWidth );
|
|
|
|
%Docstring
|
|
|
|
Sets line width of the arrow in pixels (in millimeters)
|
|
|
|
%End
|
|
|
|
|
|
|
|
QColor color() const;
|
|
|
|
%Docstring
|
|
|
|
Returns color used for drawing arrows
|
|
|
|
%End
|
|
|
|
void setColor( const QColor &color );
|
|
|
|
%Docstring
|
|
|
|
Sets color used for drawing arrows
|
|
|
|
%End
|
|
|
|
|
|
|
|
double filterMin() const;
|
|
|
|
%Docstring
|
|
|
|
Returns filter value for vector magnitudes.
|
|
|
|
|
|
|
|
If magnitude of the vector is lower than this value, the vector is not
|
|
|
|
drawn. -1 represents that filtering is not active.
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFilterMin( double filterMin );
|
|
|
|
%Docstring
|
|
|
|
Sets filter value for vector magnitudes.
|
|
|
|
|
2018-05-25 09:18:41 +10:00
|
|
|
.. seealso:: :py:func:`filterMin`
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
double filterMax() const;
|
|
|
|
%Docstring
|
|
|
|
Returns filter value for vector magnitudes.
|
|
|
|
|
|
|
|
If magnitude of the vector is higher than this value, the vector is not
|
|
|
|
drawn. -1 represents that filtering is not active.
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFilterMax( double filterMax );
|
|
|
|
%Docstring
|
|
|
|
Sets filter value for vector magnitudes.
|
|
|
|
|
2018-05-25 09:18:41 +10:00
|
|
|
.. seealso:: :py:func:`filterMax`
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
QgsMeshRendererVectorSettings::ArrowScalingMethod shaftLengthMethod() const;
|
2018-05-15 12:39:03 +02:00
|
|
|
%Docstring
|
|
|
|
Returns method used for drawing arrows
|
|
|
|
%End
|
2018-05-22 14:32:20 +02:00
|
|
|
void setShaftLengthMethod( ArrowScalingMethod shaftLengthMethod );
|
2018-05-15 12:39:03 +02:00
|
|
|
%Docstring
|
|
|
|
Sets method used for drawing arrows
|
|
|
|
%End
|
|
|
|
|
|
|
|
double minShaftLength() const;
|
|
|
|
%Docstring
|
|
|
|
Returns mininimum shaft length (in millimeters)
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.MinMax
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setMinShaftLength( double minShaftLength );
|
|
|
|
%Docstring
|
|
|
|
Sets mininimum shaft length (in millimeters)
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.MinMax
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
double maxShaftLength() const;
|
|
|
|
%Docstring
|
|
|
|
Returns maximum shaft length (in millimeters)
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.MinMax
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setMaxShaftLength( double maxShaftLength );
|
|
|
|
%Docstring
|
|
|
|
Sets maximum shaft length (in millimeters)
|
|
|
|
|
2018-05-16 17:02:35 +02:00
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.MinMax
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
double scaleFactor() const;
|
|
|
|
%Docstring
|
2018-05-16 17:02:35 +02:00
|
|
|
Returns scale factor
|
|
|
|
|
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.Scaled
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
2018-05-16 17:02:35 +02:00
|
|
|
|
2018-05-15 12:39:03 +02:00
|
|
|
void setScaleFactor( double scaleFactor );
|
|
|
|
%Docstring
|
2018-05-16 17:02:35 +02:00
|
|
|
Sets scale factor
|
|
|
|
|
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.Scaled
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
double fixedShaftLength() const;
|
|
|
|
%Docstring
|
2018-05-16 17:02:35 +02:00
|
|
|
Returns fixed arrow length (in millimeters)
|
|
|
|
|
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.Fixed
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
2018-05-16 17:02:35 +02:00
|
|
|
|
2018-05-15 12:39:03 +02:00
|
|
|
void setFixedShaftLength( double fixedShaftLength );
|
|
|
|
%Docstring
|
2018-05-16 17:02:35 +02:00
|
|
|
Sets fixed length (in millimeters)
|
|
|
|
|
|
|
|
Only for QgsMeshRendererVectorSettings.ArrowScalingMethod.Fixed
|
2018-05-15 12:39:03 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
double arrowHeadWidthRatio() const;
|
|
|
|
%Docstring
|
|
|
|
Returns ratio of the head width of the arrow (range 0-1)
|
|
|
|
%End
|
|
|
|
void setArrowHeadWidthRatio( double arrowHeadWidthRatio );
|
|
|
|
%Docstring
|
|
|
|
Sets ratio of the head width of the arrow (range 0-1)
|
|
|
|
%End
|
|
|
|
|
|
|
|
double arrowHeadLengthRatio() const;
|
|
|
|
%Docstring
|
|
|
|
Returns ratio of the head length of the arrow (range 0-1)
|
|
|
|
%End
|
|
|
|
void setArrowHeadLengthRatio( double arrowHeadLengthRatio );
|
|
|
|
%Docstring
|
|
|
|
Sets ratio of the head length of the arrow (range 0-1)
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-08-10 23:28:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
class QgsMeshRendererSettings
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Represents all mesh renderer settings
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
The API is considered EXPERIMENTAL and can be changed without a notice
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmeshrenderersettings.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsMeshRendererMeshSettings nativeMeshSettings() const;
|
|
|
|
%Docstring
|
|
|
|
Returns renderer settings
|
|
|
|
%End
|
|
|
|
void setNativeMeshSettings( const QgsMeshRendererMeshSettings &settings );
|
|
|
|
%Docstring
|
|
|
|
Sets new renderer settings, triggers repaint
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMeshRendererMeshSettings triangularMeshSettings() const;
|
|
|
|
%Docstring
|
|
|
|
Returns renderer settings
|
|
|
|
%End
|
|
|
|
void setTriangularMeshSettings( const QgsMeshRendererMeshSettings &settings );
|
|
|
|
%Docstring
|
|
|
|
Sets new renderer settings
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMeshRendererScalarSettings scalarSettings() const;
|
|
|
|
%Docstring
|
|
|
|
Returns renderer settings
|
|
|
|
%End
|
|
|
|
void setScalarSettings( const QgsMeshRendererScalarSettings &settings );
|
|
|
|
%Docstring
|
|
|
|
Sets new renderer settings
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMeshRendererVectorSettings vectorSettings() const;
|
|
|
|
%Docstring
|
|
|
|
Returns renderer settings
|
|
|
|
%End
|
|
|
|
void setVectorSettings( const QgsMeshRendererVectorSettings &settings );
|
|
|
|
%Docstring
|
|
|
|
Sets new renderer settings
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMeshDatasetIndex activeScalarDataset() const;
|
|
|
|
%Docstring
|
|
|
|
Returns active scalar dataset
|
|
|
|
%End
|
|
|
|
void setActiveScalarDataset( QgsMeshDatasetIndex index = QgsMeshDatasetIndex() );
|
|
|
|
%Docstring
|
|
|
|
Sets active scalar dataset for rendering
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsMeshDatasetIndex activeVectorDataset() const;
|
|
|
|
%Docstring
|
|
|
|
Returns active vector dataset
|
|
|
|
%End
|
|
|
|
void setActiveVectorDataset( QgsMeshDatasetIndex index = QgsMeshDatasetIndex() );
|
|
|
|
%Docstring
|
|
|
|
Sets active vector dataset for rendering.
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-05-15 12:39:03 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/mesh/qgsmeshrenderersettings.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|