Qt 4.8
|
#include "qpathclipper_p.h"
#include <private/qbezier_p.h>
#include <private/qdatabuffer_p.h>
#include <private/qnumeric_p.h>
#include <qmath.h>
#include <qdebug.h>
Go to the source code of this file.
Classes | |
struct | QCrossingEdge |
struct | QIntersection |
class | QIntersectionFinder |
class | QKdPointFinder |
class | QKdPointTree |
struct | QKdPointTree::Node |
Enumerations | |
enum | Edge |
Functions | |
static void | add (QPainterPath &path, const QWingedEdge &list, int edge, QPathEdge::Traversal traversal) |
static void | addLineTo (QPainterPath &path, const QPointF &point) |
static bool | bool_op (bool a, bool b, QPathClipper::Operation op) |
static void | clear (QWingedEdge &list, int edge, QPathEdge::Traversal traversal) |
static int | commonEdge (const QWingedEdge &list, int a, int b) |
static bool | comparePoints (const QPointF &a, const QPointF &b) |
static qreal | component (const QPointF &point, unsigned int i) |
static double | computeAngle (const QPointF &v) |
static qreal | dot (const QPointF &a, const QPointF &b) |
static QVector< QCrossingEdge > | findCrossings (const QWingedEdge &list, qreal y) |
static bool | fuzzyCompare (qreal a, qreal b) |
static bool | fuzzyIsNull (qreal d) |
static bool | isLine (const QBezier &bezier) |
static QPointF | midPoint (const QWingedEdge &list, int ei) |
static void | normalize (double &x, double &y) |
template<typename InputIterator > | |
InputIterator | qFuzzyFind (InputIterator first, InputIterator last, qreal val) |
template<typename Iterator , typename Equality > | |
Iterator | qRemoveDuplicates (Iterator begin, Iterator end, Equality eq) |
template<typename T > | |
void | qTraverseKdPointTree (QKdPointTree::Node &node, T &t, int depth=0) |
static void | traverse (QWingedEdge &list, int edge, QPathEdge::Traversal traversal) |
enum Edge |
Definition at line 1949 of file qpathclipper.cpp.
|
static |
Definition at line 1329 of file qpathclipper.cpp.
Referenced by QPathClipper::handleCrossingEdges(), and QWingedEdge::toPath().
|
static |
Definition at line 1307 of file qpathclipper.cpp.
Referenced by add().
|
static |
Definition at line 1779 of file qpathclipper.cpp.
Referenced by QPathClipper::handleCrossingEdges().
|
static |
Definition at line 1501 of file qpathclipper.cpp.
Referenced by QPathClipper::handleCrossingEdges().
|
static |
Definition at line 1146 of file qpathclipper.cpp.
Referenced by QWingedEdge::addEdge().
Definition at line 77 of file qpathclipper.cpp.
Referenced by QPathSegments::addPath(), QIntersectionFinder::hasIntersections(), isLine(), and QIntersectionFinder::linesIntersect().
Definition at line 670 of file qpathclipper.cpp.
Referenced by QDeclarativeLoaderPrivate::_q_sourceLoaded(), QKdPointTree::build(), QDeclarativeCompiler::buildPropertyObjectAssignment(), convertARGB32_to_RGBA4444(), QDeclarativeCompiledData::TypeReference::createInstance(), QDeclarativeCompiledData::TypeReference::createPropertyCache(), QmlJSDebugger::AbstractViewInspector::createQmlObject(), QDeclarativeEnginePrivate::createQmlObject(), QCoreGraphicsPaintEngine::drawTiledPixmap(), QDeclarativeViewPrivate::execute(), QDeclarativeLoaderPrivate::load(), QDeclarativeCompiledData::TypeReference::metaObject(), QDeclarativeBindingCompilerPrivate::parseName(), QDeclarativeCompiledData::TypeReference::propertyCache(), QDeclarativeGridViewPrivate::QDeclarativeGridViewPrivate(), QDeclarativeListViewPrivate::QDeclarativeListViewPrivate(), QAbstractTextDocumentLayout::registerHandler(), and QPatternist::XsdComplexType::~XsdComplexType().
|
static |
Definition at line 84 of file qpathclipper.cpp.
Referenced by addLineTo(), QPen::dashPattern(), QDeclarativeCompiler::evaluateEnum(), QIntersectionFinder::hasIntersections(), QScriptEngine::importExtension(), QIntersectionFinder::linesIntersect(), QQuaternion::nlerp(), QDashStroker::patternForStyle(), qSplitTableName(), QDeclarativeTypeData::resolveTypes(), shift(), QQuaternion::slerp(), QTransform::type(), and QX11PaintEngine::updatePen().
|
static |
Definition at line 1821 of file qpathclipper.cpp.
Referenced by QPathClipper::handleCrossingEdges().
Definition at line 1526 of file qpathclipper.cpp.
Referenced by QPathClipper::doClip().
|
inlinestatic |
The algorithm is as follows:
(Optional) Simplify the resulting winged edge structure by merging shared edges.
Definition at line 69 of file qpathclipper.cpp.
Referenced by comparePoints(), and QKdPointFinder::operator()().
|
static |
Definition at line 900 of file qpathclipper.cpp.
Referenced by QPathSegments::addPath().
|
inlinestatic |
Definition at line 1041 of file qpathclipper.cpp.
Referenced by QBezier::midTangent(), and QBezier::pt4().
|
static |
Definition at line 89 of file qpathclipper.cpp.
Referenced by ShaderEffectItem::bindGeometry(), computeAngle(), QXmlStreamReaderPrivate::parse(), QGridLayoutBox::QGridLayoutBox(), QRect::QRect(), and QDomNodePrivate::setNodeValue().
InputIterator qFuzzyFind | ( | InputIterator | first, |
InputIterator | last, | ||
qreal | val | ||
) |
Definition at line 1519 of file qpathclipper.cpp.
Referenced by QPathClipper::doClip().
Iterator qRemoveDuplicates | ( | Iterator | begin, |
Iterator | end, | ||
Equality | eq | ||
) |
void qTraverseKdPointTree | ( | QKdPointTree::Node & | node, |
T & | t, | ||
int | depth = 0 |
||
) |
Definition at line 656 of file qpathclipper.cpp.
|
static |
Definition at line 1746 of file qpathclipper.cpp.
Referenced by QPathClipper::handleCrossingEdges().