QGIS API Documentation  3.37.0-Master (a5b4d9743e8)
Functions
qgsarrowsymbollayer.cpp File Reference
#include "qgsgeometryutils_base.h"
#include "qgsarrowsymbollayer.h"
#include "qgssymbollayerutils.h"
#include "qgsfillsymbol.h"
#include "qgsrendercontext.h"
#include "qgsunittypes.h"
Include dependency graph for qgsarrowsymbollayer.cpp:

Go to the source code of this file.

Functions

QPointF circlePoint (QPointF center, qreal radius, qreal angle)
 
qreal clampAngle (qreal a)
 
QPolygonF curvedArrow (QPointF po, QPointF pm, QPointF pd, qreal startWidth, qreal width, qreal headWidth, qreal headHeight, QgsArrowSymbolLayer::HeadType headType, QgsArrowSymbolLayer::ArrowType arrowType, qreal offset)
 
qreal euclidean_distance (QPointF po, QPointF pd)
 
void pathArcTo (QPainterPath &path, QPointF circleCenter, qreal circleRadius, qreal angle_o, qreal angle_d, int direction)
 
bool pointsToCircle (QPointF a, QPointF b, QPointF c, QPointF &center, qreal &radius)
 Compute the circumscribed circle from three points. More...
 
void spiralArcTo (QPainterPath &path, QPointF center, qreal startAngle, qreal startRadius, qreal endAngle, qreal endRadius, int direction)
 
QPolygonF straightArrow (QPointF po, QPointF pd, qreal startWidth, qreal width, qreal headWidth, qreal headHeight, QgsArrowSymbolLayer::HeadType headType, QgsArrowSymbolLayer::ArrowType arrowType, qreal offset)
 

Function Documentation

◆ circlePoint()

QPointF circlePoint ( QPointF  center,
qreal  radius,
qreal  angle 
)

Definition at line 411 of file qgsarrowsymbollayer.cpp.

◆ clampAngle()

qreal clampAngle ( qreal  a)
inline

Definition at line 356 of file qgsarrowsymbollayer.cpp.

◆ curvedArrow()

QPolygonF curvedArrow ( QPointF  po,
QPointF  pm,
QPointF  pd,
qreal  startWidth,
qreal  width,
qreal  headWidth,
qreal  headHeight,
QgsArrowSymbolLayer::HeadType  headType,
QgsArrowSymbolLayer::ArrowType  arrowType,
qreal  offset 
)

Definition at line 485 of file qgsarrowsymbollayer.cpp.

◆ euclidean_distance()

qreal euclidean_distance ( QPointF  po,
QPointF  pd 
)
inline

Definition at line 226 of file qgsarrowsymbollayer.cpp.

◆ pathArcTo()

void pathArcTo ( QPainterPath &  path,
QPointF  circleCenter,
qreal  circleRadius,
qreal  angle_o,
qreal  angle_d,
int  direction 
)

Definition at line 417 of file qgsarrowsymbollayer.cpp.

◆ pointsToCircle()

bool pointsToCircle ( QPointF  a,
QPointF  b,
QPointF  c,
QPointF &  center,
qreal &  radius 
)

Compute the circumscribed circle from three points.

Returns
false if the three points are colinear

Definition at line 369 of file qgsarrowsymbollayer.cpp.

◆ spiralArcTo()

void spiralArcTo ( QPainterPath &  path,
QPointF  center,
qreal  startAngle,
qreal  startRadius,
qreal  endAngle,
qreal  endRadius,
int  direction 
)

Definition at line 437 of file qgsarrowsymbollayer.cpp.

◆ straightArrow()

QPolygonF straightArrow ( QPointF  po,
QPointF  pd,
qreal  startWidth,
qreal  width,
qreal  headWidth,
qreal  headHeight,
QgsArrowSymbolLayer::HeadType  headType,
QgsArrowSymbolLayer::ArrowType  arrowType,
qreal  offset 
)

Definition at line 231 of file qgsarrowsymbollayer.cpp.