Mapper  0.9.0
API documentation
Namespaces | Functions
util.cpp File Reference

(ed8ac9a on 15 Oct 2019)

#include "util.h"
#include <QtGlobal>
#include <QObject>
#include <QObjectList>
#include <QRect>
#include "core/map_coord.h"
Include dependency graph for util.cpp:

Namespaces

 OpenOrienteering
 

Functions

void OpenOrienteering::blockSignalsRecursively (QObject *obj, bool block)
 (Un-)blocks recursively all signals from a QObject and its child-objects. More...
 
void OpenOrienteering::rectInclude (QRectF &rect, const QPointF &point)
 Enlarges the rect to include the given point. More...
 
void OpenOrienteering::rectIncludeSafe (QRectF &rect, const QPointF &point)
 Enlarges the rect to include the given point. More...
 
void OpenOrienteering::rectInclude (QRectF &rect, const QRectF &other_rect)
 Enlarges the rect to include the given other_rect. More...
 
void OpenOrienteering::rectIncludeSafe (QRectF &rect, const QRectF &other_rect)
 Enlarges the rect to include the given other_rect. More...
 
void OpenOrienteering::rectIncludeSafe (QRect &rect, const QRect &other_rect)
 Enlarges the rect to include the given other_rect. More...
 
bool OpenOrienteering::lineIntersectsRect (const QRectF &rect, const QPointF &p1, const QPointF &p2)
 Checks for line - rect intersection. More...
 
double OpenOrienteering::parameterOfPointOnLine (double x0, double y0, double dx, double dy, double x, double y, bool &ok)
 Calculates the line parameter for a point on a straight line. More...
 
bool OpenOrienteering::isPointOnSegment (const MapCoordF &seg_start, const MapCoordF &seg_end, const MapCoordF &point)
 Checks if the point is on the segment defined by the given start and end coordinates. More...