AbstractCoordinateSystem

A description for AbstractCoordinateSystem.

class AbstractCoordinateSystem

Base class of all worksheet coordinate systems.

Subclassed by CartesianCoordinateSystem

Public Static Functions

static bool clipLineToRect(QLineF *line, const QRectF &rect, LineClipResult *clipResult = nullptr)

Line clipping using the Cohen-Sutherland algorithm.

This is a modified version of clipLine() from Qt 4.5’s qpaintengine_x11.cpp.

Parameters:
  • line – The line to clip.

  • rect – The rect to clip to.

  • clipResult – Pointer to an object describing which parts where clipped (may be NULL).

Returns:

false if line is completely outside, otherwise true

class LineClipResult