GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave-qsvghandler.h File Reference
#include <QPainterPath>
Include dependency graph for octave-qsvghandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool isDigit (ushort ch)
 
static void parseNumbersArray (const QChar *&str, QVarLengthArray< qreal, 8 > &points)
 
static bool parsePathDataFast (const QStringRef &dataStr, QPainterPath &path)
 
static QTransform parseTransformationMatrix (const QStringRef &value)
 
static void pathArc (QPainterPath &path, qreal rx, qreal ry, qreal x_axis_rotation, int large_arc_flag, int sweep_flag, qreal x, qreal y, qreal curx, qreal cury)
 
static void pathArcSegment (QPainterPath &path, qreal xc, qreal yc, qreal th0, qreal th1, qreal rx, qreal ry, qreal xAxisRotation)
 
static qreal toDouble (const QChar *&str)
 

Function Documentation

◆ isDigit()

static bool isDigit ( ushort  ch)
inlinestatic

Definition at line 49 of file octave-qsvghandler.h.

Referenced by parseNumbersArray(), and toDouble().

◆ parseNumbersArray()

static void parseNumbersArray ( const QChar *&  str,
QVarLengthArray< qreal, 8 > &  points 
)
inlinestatic

Definition at line 132 of file octave-qsvghandler.h.

References isDigit(), and toDouble().

Referenced by parsePathDataFast(), and parseTransformationMatrix().

◆ parsePathDataFast()

static bool parsePathDataFast ( const QStringRef &  dataStr,
QPainterPath &  path 
)
static

Definition at line 423 of file octave-qsvghandler.h.

References parseNumbersArray(), pathArc(), and x.

Referenced by draw().

◆ parseTransformationMatrix()

static QTransform parseTransformationMatrix ( const QStringRef &  value)
static

Definition at line 291 of file octave-qsvghandler.h.

References error(), Matrix, parseNumbersArray(), and state.

Referenced by draw().

◆ pathArc()

static void pathArc ( QPainterPath &  path,
qreal  rx,
qreal  ry,
qreal  x_axis_rotation,
int  large_arc_flag,
int  sweep_flag,
qreal  x,
qreal  y,
qreal  curx,
qreal  cury 
)
static

Definition at line 211 of file octave-qsvghandler.h.

References d, pathArcSegment(), and x.

Referenced by parsePathDataFast().

◆ pathArcSegment()

static void pathArcSegment ( QPainterPath &  path,
qreal  xc,
qreal  yc,
qreal  th0,
qreal  th1,
qreal  rx,
qreal  ry,
qreal  xAxisRotation 
)
static

Definition at line 152 of file octave-qsvghandler.h.

Referenced by pathArc().

◆ toDouble()

static qreal toDouble ( const QChar *&  str)
static

Definition at line 55 of file octave-qsvghandler.h.

References isDigit().

Referenced by draw(), and parseNumbersArray().