src/core/symbology-ng/qgssymbollayerv2utils.cpp File Reference

#include "qgssymbollayerv2utils.h"
#include "qgssymbollayerv2.h"
#include "qgssymbollayerv2registry.h"
#include "qgssymbolv2.h"
#include "qgsvectorcolorrampv2.h"
#include "qgslogger.h"
#include "qgsrendercontext.h"
#include <QColor>
#include <QDomNode>
#include <QDomElement>
#include <QIcon>
#include <QPainter>
#include <QPolygonF>
#include <cmath>
#include <cfloat>

Include dependency graph for qgssymbollayerv2utils.cpp:

Go to the source code of this file.


static bool lineInfo (QPointF p1, QPointF p2, double &angle, double &t)
static QPointF offsetPoint (QPointF pt, double angle, double dist)
static QPointF linesIntersection (QPointF p1, double t1, QPointF p2, double t2)
QPolygonF offsetLine (QPolygonF polyline, double dist)
 calculate line shifted by a specified distance
static QString _nameForSymbolType (QgsSymbolV2::SymbolType type)

Function Documentation

static QString _nameForSymbolType ( QgsSymbolV2::SymbolType  type  )  [static]

static bool lineInfo ( QPointF  p1,
QPointF  p2,
double &  angle,
double &  t 
) [static]

Definition at line 283 of file qgssymbollayerv2utils.cpp.

References M_PI.

Referenced by offsetLine().

static QPointF linesIntersection ( QPointF  p1,
double  t1,
QPointF  p2,
double  t2 
) [static]

Definition at line 313 of file qgssymbollayerv2utils.cpp.

Referenced by offsetLine().

QPolygonF offsetLine ( QPolygonF  polyline,
double  dist 

calculate line shifted by a specified distance

Definition at line 343 of file qgssymbollayerv2utils.cpp.

References MathUtils::angle(), lineInfo(), linesIntersection(), M_PI, and offsetPoint().

Referenced by QgsMarkerLineSymbolLayerV2::renderPolyline(), and QgsSimpleLineSymbolLayerV2::renderPolyline().

static QPointF offsetPoint ( QPointF  pt,
double  angle,
double  dist 
) [static]

Definition at line 307 of file qgssymbollayerv2utils.cpp.

Referenced by offsetLine().

Generated on Sat Feb 4 19:17:04 2012 for Quantum GIS API Documentation by  doxygen 1.5.6