QGIS API Documentation 3.39.0-Master (93ce9bf5c90)
Loading...
Searching...
No Matches
Typedefs | Functions
qgslinearreferencingsymbollayer.cpp File Reference
#include "qgslinearreferencingsymbollayer.h"
#include "qgsrendercontext.h"
#include "qgstextrenderer.h"
#include "qgslinestring.h"
#include "qgspolygon.h"
#include "qgsmarkersymbol.h"
#include "qgsnumericformatregistry.h"
#include "qgsapplication.h"
#include "qgsbasicnumericformat.h"
#include "qgsgeometryutils.h"
#include "qgsunittypes.h"
#include "qgssymbollayerutils.h"
#include "qgstextlabelfeature.h"
#include "qgsgeos.h"
#include "qgspallabeling.h"
#include "labelposition.h"
#include "feature.h"
Include dependency graph for qgslinearreferencingsymbollayer.cpp:

Go to the source code of this file.

Typedefs

typedef std::function< void(const QgsLineString *, const QgsLineString *, bool, double, double, const VisitPointFunction &) > VisitPointAtDistanceFunction
 
typedef std::function< bool(double x, double y, double z, double m, double distanceFromStart, double angle)> VisitPointFunction
 

Functions

double calculateAveragedAngle (double targetPointDistanceAlongSegment, double segmentLengthPainterUnits, double averageAngleLengthPainterUnits, double prevXPainterUnits, double prevYPainterUnits, double thisXPainterUnits, double thisYPainterUnits, const double *xPainterUnits, const double *yPainterUnits, int totalPoints, int i)
 
double interpolateValue (double a, double b, double fraction)
 
void visitPointsByInterpolatedM (const QgsLineString *line, const QgsLineString *linePainterUnits, bool emitFirstPoint, const double distance, const double averageAngleLengthPainterUnits, const VisitPointFunction &visitPoint)
 
void visitPointsByInterpolatedZ (const QgsLineString *line, const QgsLineString *linePainterUnits, bool emitFirstPoint, const double distance, const double averageAngleLengthPainterUnits, const VisitPointFunction &visitPoint)
 
void visitPointsByInterpolatedZM (const QgsLineString *line, const QgsLineString *linePainterUnits, bool emitFirstPoint, const double step, const double averageAngleLengthPainterUnits, const VisitPointFunction &visitPoint, bool useZ)
 
void visitPointsByRegularDistance (const QgsLineString *line, const QgsLineString *linePainterUnits, bool emitFirstPoint, const double distance, const double averageAngleLengthPainterUnits, const VisitPointFunction &visitPoint)
 

Typedef Documentation

◆ VisitPointAtDistanceFunction

typedef std::function< void( const QgsLineString *, const QgsLineString *, bool, double, double, const VisitPointFunction & ) > VisitPointAtDistanceFunction

Definition at line 526 of file qgslinearreferencingsymbollayer.cpp.

◆ VisitPointFunction

typedef std::function<bool ( double x, double y, double z, double m, double distanceFromStart, double angle )> VisitPointFunction

Definition at line 525 of file qgslinearreferencingsymbollayer.cpp.

Function Documentation

◆ calculateAveragedAngle()

double calculateAveragedAngle ( double  targetPointDistanceAlongSegment,
double  segmentLengthPainterUnits,
double  averageAngleLengthPainterUnits,
double  prevXPainterUnits,
double  prevYPainterUnits,
double  thisXPainterUnits,
double  thisYPainterUnits,
const double *  xPainterUnits,
const double *  yPainterUnits,
int  totalPoints,
int  i 
)

Definition at line 433 of file qgslinearreferencingsymbollayer.cpp.

◆ interpolateValue()

double interpolateValue ( double  a,
double  b,
double  fraction 
)

Definition at line 616 of file qgslinearreferencingsymbollayer.cpp.

◆ visitPointsByInterpolatedM()

void visitPointsByInterpolatedM ( const QgsLineString line,
const QgsLineString linePainterUnits,
bool  emitFirstPoint,
const double  distance,
const double  averageAngleLengthPainterUnits,
const VisitPointFunction visitPoint 
)

Definition at line 737 of file qgslinearreferencingsymbollayer.cpp.

◆ visitPointsByInterpolatedZ()

void visitPointsByInterpolatedZ ( const QgsLineString line,
const QgsLineString linePainterUnits,
bool  emitFirstPoint,
const double  distance,
const double  averageAngleLengthPainterUnits,
const VisitPointFunction visitPoint 
)

Definition at line 732 of file qgslinearreferencingsymbollayer.cpp.

◆ visitPointsByInterpolatedZM()

void visitPointsByInterpolatedZM ( const QgsLineString line,
const QgsLineString linePainterUnits,
bool  emitFirstPoint,
const double  step,
const double  averageAngleLengthPainterUnits,
const VisitPointFunction visitPoint,
bool  useZ 
)

Definition at line 622 of file qgslinearreferencingsymbollayer.cpp.

◆ visitPointsByRegularDistance()

void visitPointsByRegularDistance ( const QgsLineString line,
const QgsLineString linePainterUnits,
bool  emitFirstPoint,
const double  distance,
const double  averageAngleLengthPainterUnits,
const VisitPointFunction visitPoint 
)

Definition at line 528 of file qgslinearreferencingsymbollayer.cpp.