Home
last modified time | relevance | path

Searched refs:QDoubleVector2D (Results 1 – 25 of 44) sorted by relevance

12

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/positioning/
H A Dqdoublevector2d_p.h66 class Q_POSITIONING_PRIVATE_EXPORT QDoubleVector2D
69 Q_DECL_CONSTEXPR inline QDoubleVector2D();
70 Q_DECL_CONSTEXPR inline QDoubleVector2D(double xpos, double ypos);
71 Q_DECL_CONSTEXPR explicit inline QDoubleVector2D(const QPointF &p);
72 explicit QDoubleVector2D(const QDoubleVector3D &vector);
87 QDoubleVector2D normalized() const;
90 inline QDoubleVector2D &operator+=(const QDoubleVector2D &vector);
91 inline QDoubleVector2D &operator-=(const QDoubleVector2D &vector);
92 inline QDoubleVector2D &operator*=(double factor);
93 inline QDoubleVector2D &operator*=(const QDoubleVector2D &vector);
[all …]
H A Dqdoublevector2d.cpp48 QDoubleVector2D::QDoubleVector2D(const QDoubleVector3D &vector) : in QDoubleVector2D() function in QDoubleVector2D
53 double QDoubleVector2D::length() const in length()
58 QDoubleVector2D QDoubleVector2D::normalized() const in normalized()
68 return QDoubleVector2D(); in normalized()
71 void QDoubleVector2D::normalize() in normalize()
85 QDoubleVector3D QDoubleVector2D::toVector3D() const in toVector3D()
92 QDebug operator<<(QDebug dbg, const QDoubleVector2D &vector) in operator <<()
103 QDataStream &operator<<(QDataStream &stream, const QDoubleVector2D &vector) in operator <<()
109 QDataStream &operator>>(QDataStream &stream, QDoubleVector2D &vector) in operator >>()
H A Dqclipperutils.cpp52 QDoubleVector2D QClipperUtils::toVector2D(const IntPoint &p) in toVector2D()
54 …return QDoubleVector2D(double(p.X) * kClipperScaleFactorInv, double(p.Y) * kClipperScaleFactorInv); in toVector2D()
57 IntPoint QClipperUtils::toIntPoint(const QDoubleVector2D &p) in toIntPoint()
62 QList<QDoubleVector2D> QClipperUtils::pathToQList(const Path &path) in pathToQList()
64 QList<QDoubleVector2D> res; in pathToQList()
71 QList<QList<QDoubleVector2D> > QClipperUtils::pathsToQList(const Paths &paths) in pathsToQList()
73 QList<QList<QDoubleVector2D> > res; in pathsToQList()
81 Path QClipperUtils::qListToPath(const QList<QDoubleVector2D> &list) in qListToPath()
85 for (const QDoubleVector2D &p: list) in qListToPath()
90 Paths QClipperUtils::qListToPaths(const QList<QList<QDoubleVector2D> > &lists) in qListToPaths()
[all …]
H A Dqclipperutils_p.h74 static QDoubleVector2D toVector2D(const IntPoint &p);
75 static IntPoint toIntPoint(const QDoubleVector2D &p);
77 static QList<QDoubleVector2D> pathToQList(const Path &path);
78 static QList<QList<QDoubleVector2D> > pathsToQList(const Paths &paths);
80 static Path qListToPath(const QList<QDoubleVector2D> &list);
81 static Paths qListToPaths(const QList<QList<QDoubleVector2D> > &lists);
H A Dqwebmercator.cpp51 QDoubleVector2D QWebMercator::coordToMercator(const QGeoCoordinate &coord) in coordToMercator()
61 return QDoubleVector2D(lon, lat); in coordToMercator()
70 QGeoCoordinate QWebMercator::mercatorToCoord(const QDoubleVector2D &mercator) in mercatorToCoord()
105 QDoubleVector2D s = QWebMercator::coordToMercator(from); in coordinateInterpolation()
106 QDoubleVector2D e = QWebMercator::coordToMercator(to); in coordinateInterpolation()
130 QGeoCoordinate result = QWebMercator::mercatorToCoord(QDoubleVector2D(x, y)); in coordinateInterpolation()
H A Dqwebmercator_p.h60 class QDoubleVector2D; variable
65 static QDoubleVector2D coordToMercator(const QGeoCoordinate &coord);
66 static QGeoCoordinate mercatorToCoord(const QDoubleVector2D &mercator);
H A Dqdoublevector3d_p.h69 Q_DECL_CONSTEXPR inline QDoubleVector3D(const QDoubleVector2D &vector);
70 Q_DECL_CONSTEXPR inline QDoubleVector3D(const QDoubleVector2D &vector, double zpos);
125 Q_DECL_CONSTEXPR inline QDoubleVector2D toVector2D() const;
130 friend class QDoubleVector2D; variable
139 Q_DECL_CONSTEXPR inline QDoubleVector3D::QDoubleVector3D(const QDoubleVector2D &v) in QDoubleVector3D()
142 Q_DECL_CONSTEXPR inline QDoubleVector3D::QDoubleVector3D(const QDoubleVector2D &v, double zpos) in QDoubleVector3D()
285 Q_DECL_CONSTEXPR inline QDoubleVector2D QDoubleVector3D::toVector2D() const in toVector2D()
287 return QDoubleVector2D(xp, yp); in toVector2D()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/maps/
H A Dqgeoprojection.cpp51 static const QList<QDoubleVector2D> mercatorGeometry = {
52 QDoubleVector2D(-1.0,0.0),
53 QDoubleVector2D( 2.0,0.0),
54 QDoubleVector2D( 2.0,1.0),
55 QDoubleVector2D(-1.0,1.0) };
142 QDoubleVector2D centerProj = geoToWrappedMapProjection(cameraData().center()); in anchorCoordinateToPoint()
143 QDoubleVector2D coordProj = geoToWrappedMapProjection(coordinate); in anchorCoordinateToPoint()
145 QDoubleVector2D anchorProj = itemPositionToWrappedMapProjection(QDoubleVector2D(anchorPoint)); in anchorCoordinateToPoint()
152 const QDoubleVector2D coordWrapped = geoToWrappedMapProjection(coordinate); in setBearing()
246 QGeoCoordinate topMost = QWebMercator::mercatorToCoord(QDoubleVector2D(0.0, mercatorTopmost)); in maximumCenterLatitudeAtZoom()
[all …]
H A Dqgeoprojection_p.h100 …virtual QGeoCoordinate itemPositionToCoordinate(const QDoubleVector2D &pos, bool clipToViewport = …
101 …virtual QDoubleVector2D coordinateToItemPosition(const QGeoCoordinate &coordinate, bool clipToView…
146 …QGeoCoordinate itemPositionToCoordinate(const QDoubleVector2D &pos, bool clipToViewport = true) co…
147QDoubleVector2D coordinateToItemPosition(const QGeoCoordinate &coordinate, bool clipToViewport = t…
162 QDoubleVector2D geoToMapProjection(const QGeoCoordinate &coordinate) const;
163 QGeoCoordinate mapProjectionToGeo(const QDoubleVector2D &projection) const;
165 int projectionWrapFactor(const QDoubleVector2D &projection) const;
166 QDoubleVector2D wrapMapProjection(const QDoubleVector2D &projection) const;
167 QDoubleVector2D unwrapMapProjection(const QDoubleVector2D &wrappedProjection) const;
169QDoubleVector2D wrappedMapProjectionToItemPosition(const QDoubleVector2D &wrappedProjection) const;
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/declarativemaps/
H A Dqgeosimplify_p.h66 static QDoubleVector2D closestPoint( const QDoubleVector2D &p,
67 const QDoubleVector2D &a,
68 const QDoubleVector2D &b);
82 static double getSegDist(const QDoubleVector2D &p,
83 const QDoubleVector2D &a,
84 const QDoubleVector2D &b,
94 static double getDist(QDoubleVector2D a,
95 QDoubleVector2D b,
98 static void simplifyDPStep(const QList<QDoubleVector2D> &points,
103 QList<QDoubleVector2D> &simplified);
[all …]
H A Dqdeclarativegeomapitemutils.cpp56 QList<QDoubleVector2D> &wrappedPath, in wrapPath()
57 QList<QDoubleVector2D> &wrappedPathMinus1, in wrapPath()
58 QList<QDoubleVector2D> &wrappedPathPlus1, in wrapPath()
59 QDoubleVector2D *leftBoundWrapped) in wrapPath()
61 QList<QDoubleVector2D> path; in wrapPath()
64 const QDoubleVector2D leftBound = p.geoToMapProjection(geoLeftBound); in wrapPath()
70 QDoubleVector2D coord = path.at(i); in wrapPath()
82 QDoubleVector2D coordP1(coord.x() + 1.0, coord.y()); in wrapPath()
83 QDoubleVector2D coordM1(coord.x() - 1.0, coord.y()); in wrapPath()
96 QList<QDoubleVector2D> &wrappedPath, in wrapPath()
[all …]
H A Dqdeclarativegeomapitemutils_p.h65 vec2(const QDoubleVector2D &p) in vec2()
77 vec2 &operator=(const QDoubleVector2D &p)
83 QDoubleVector2D toDoubleVector2D() const in toDoubleVector2D()
85 return QDoubleVector2D(double(x), double(y)); in toDoubleVector2D()
92 ,QList<QDoubleVector2D> &wrappedPath
93 ,QList<QDoubleVector2D> &wrappedPathMinus1
94 ,QList<QDoubleVector2D> &wrappedPathPlus1
95 ,QDoubleVector2D *leftBoundWrapped = nullptr);
100 ,QList<QDoubleVector2D> &wrappedPath
101 ,QDoubleVector2D *leftBoundWrapped = nullptr);
[all …]
H A Dqgeosimplify.cpp52 QDoubleVector2D QGeoSimplify::closestPoint(const QDoubleVector2D &p, const QDoubleVector2D &a, cons… in closestPoint()
58 const QDoubleVector2D intersection(a.x() + u * (b.x() - a.x()) , a.y() + u * (b.y() - a.y()) ); in closestPoint()
59 QDoubleVector2D candidate = ( (p-a).length() < (p-b).length() ) ? a : b; in closestPoint()
68 QDoubleVector2D p = QWebMercator::coordToMercator(pc); in closestPoint()
72 QDoubleVector2D a = QWebMercator::coordToMercator(ac); in closestPoint()
76 QDoubleVector2D b = QWebMercator::coordToMercator(bc); in closestPoint()
80 QDoubleVector2D intersection = closestPoint(p, a, b); in closestPoint()
95 double QGeoSimplify::getSegDist(const QDoubleVector2D &p, const QDoubleVector2D &a, const QDoubleVe… in getSegDist()
97 QDoubleVector2D intersection = closestPoint(p, a, b); in getSegDist()
137 double QGeoSimplify::getDist(QDoubleVector2D a, QDoubleVector2D b, const double &leftBound) in getDist()
[all …]
H A Dqdeclarativepolygonmapitem.cpp166 const QList<QDoubleVector2D> &path) in updateSourcePoints()
177 QDoubleVector2D leftBoundWrapped = p.wrapMapProjection(p.geoToMapProjection(geoLeftBound_)); in updateSourcePoints()
181 QList<QDoubleVector2D> wrappedPath; in updateSourcePoints()
183 QDoubleVector2D wrappedLeftBound(qInf(), qInf()); in updateSourcePoints()
186 const QDoubleVector2D &coord = path.at(i); in updateSourcePoints()
187 QDoubleVector2D wrappedProjection = p.wrapMapProjection(coord); in updateSourcePoints()
209 QList<QList<QDoubleVector2D> > clippedPaths; in updateSourcePoints()
210 const QList<QDoubleVector2D> &visibleRegion = p.projectableGeometry(); in updateSourcePoints()
219 QDoubleVector2D lb(qInf(), qInf()); in updateSourcePoints()
220 for (const QList<QDoubleVector2D> &path: clippedPaths) in updateSourcePoints()
[all …]
H A Dqdeclarativecirclemapitem.cpp155 void QGeoMapCircleGeometry::updateScreenPointsInvert(const QList<QDoubleVector2D> &circlePath, cons… in updateScreenPointsInvert()
180 const QDoubleVector2D tl = p.geoToWrappedMapProjection(QGeoCoordinate(topLati,leftLongi)); in updateScreenPointsInvert()
181 const QDoubleVector2D tr = p.geoToWrappedMapProjection(QGeoCoordinate(topLati,rightLongi)); in updateScreenPointsInvert()
182 const QDoubleVector2D br = p.geoToWrappedMapProjection(QGeoCoordinate(bottomLati,rightLongi)); in updateScreenPointsInvert()
183 const QDoubleVector2D bl = p.geoToWrappedMapProjection(QGeoCoordinate(bottomLati,leftLongi)); in updateScreenPointsInvert()
185 QList<QDoubleVector2D> fill; in updateScreenPointsInvert()
188 QList<QDoubleVector2D> hole; in updateScreenPointsInvert()
189 for (const QDoubleVector2D &c: circlePath) in updateScreenPointsInvert()
198 QDoubleVector2D lb = p.geoToWrappedMapProjection(srcOrigin_); in updateScreenPointsInvert()
199 QList<QList<QDoubleVector2D> > clippedPaths; in updateScreenPointsInvert()
[all …]
H A Dqdeclarativepolylinemapitem.cpp97 static IntPoint toIntPoint(const QDoubleVector2D &p) in toIntPoint()
150 static QList<QList<QDoubleVector2D> > clipLine( in clipLine()
151 const QList<QDoubleVector2D> &l, in clipLine()
152 const QList<QDoubleVector2D> &poly) in clipLine()
154 QList<QList<QDoubleVector2D> > res; in clipLine()
172 QList<QDoubleVector2D> subLine; in clipLine()
239 subLine.push_back(QDoubleVector2D(intersections[0], intersections[1])); in clipLine()
244 subLine.push_back(QDoubleVector2D(intersections[0], intersections[1])); in clipLine()
255 subLine.push_back(QDoubleVector2D(intersections[0], intersections[1])); in clipLine()
256 subLine.push_back(QDoubleVector2D(intersections[2], intersections[3])); in clipLine()
[all …]
H A Dqdeclarativepolylinemapitem_p_p.h76 const QList<QDoubleVector2D> &path,
87 QList<QList<QDoubleVector2D> > clipPath(const QGeoMap &map,
88 const QList<QDoubleVector2D> &path,
89 QDoubleVector2D &leftBoundWrapped);
92 const QList<QList<QDoubleVector2D> > &clippedPaths,
93 const QDoubleVector2D &leftBoundWrapped);
100 QList<QDoubleVector2D> m_wrappedPath;
101 QList<QList<QDoubleVector2D>> m_clippedPaths;
277 QList<QDoubleVector2D> wrappedBboxes;
292 const QList<QDoubleVector2D> &wrappedPath,
[all …]
H A Dqdeclarativecirclemapitem_p_p.h63 void updateScreenPointsInvert(const QList<QDoubleVector2D> &circlePath, const QGeoMap &map);
105 static bool preserveCircleGeometry(QList<QDoubleVector2D> &path, const QGeoCoordinate &center,
107 …static void updateCirclePathForRendering(QList<QDoubleVector2D> &path, const QGeoCoordinate &cente…
114 QList<QDoubleVector2D> m_circlePath;
177 QList<QDoubleVector2D> circlePath = m_circlePath; in updatePolish()
200 QList<QDoubleVector2D> closedPath = circlePath; in updatePolish()
218 QDoubleVector2D borderLeftBoundWrapped; in updatePolish()
219 …QList<QList<QDoubleVector2D > > clippedPaths = m_borderGeometry.clipPath(*m_circle.map(), closedPa… in updatePolish()
H A Dqdeclarativepolygonmapitem_p_p.h83 const QList<QDoubleVector2D> &path);
97 QList<QDoubleVector2D> wrappedBboxes;
104 const QList<QDoubleVector2D> &path);
143 QDoubleVector2D m_bboxLeftBoundWrapped;
415 QList<QDoubleVector2D> closedPath = m_geopathProjected; in updatePolish()
425 QDoubleVector2D borderLeftBoundWrapped; in updatePolish()
426 …QList<QList<QDoubleVector2D > > clippedPaths = m_borderGeometry.clipPath(*map, closedPath, borderL… in updatePolish()
480 QList<QDoubleVector2D> m_geopathProjected;
H A Dqgeomapitemgeometry.cpp133 …QGeoCoordinate mapMid = map.geoProjection().itemPositionToCoordinate(QDoubleVector2D(map.viewportW… in geoDistanceToScreenWidth()
140 QDoubleVector2D halfScreenDist = map.geoProjection().coordinateToItemPosition(geoDelta, false) in geoDistanceToScreenWidth()
141 - QDoubleVector2D(map.viewportWidth()/2.0, 0); in geoDistanceToScreenWidth()
H A Dqdeclarativerectanglemapitem_p_p.h145 const QList<QDoubleVector2D> pathMercator_ = pathMercator(perimeter); in updatePolish()
155 QList<QDoubleVector2D> closedPath = pathMercator_; in updatePolish()
164 QDoubleVector2D borderLeftBoundWrapped; in updatePolish()
165 …QList<QList<QDoubleVector2D > > clippedPaths = m_borderGeometry.clipPath(*m_rect.map(), closedPath… in updatePolish()
234 static QList<QDoubleVector2D> pathMercator(const QList<QGeoCoordinate> &p) in pathMercator()
236 QList<QDoubleVector2D> res; in pathMercator()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/doublevectors/
H A Dtst_doublevectors.cpp60 QDoubleVector2D v1; in constructor2dTest()
64 v1 = QDoubleVector2D(1.1, -2.5); // assignment and constructor in constructor2dTest()
67 QDoubleVector2D v2(v1); // copy constructor in constructor2dTest()
71 QDoubleVector2D v3(v3d); // constructor from 3d vector, just copies x and y in constructor2dTest()
79 QDoubleVector2D v1; in basicFunctions2dTest()
85 QDoubleVector2D v2 = v1.normalized(); in basicFunctions2dTest()
101 QDoubleVector2D v1(1.1, 2.2); in unaryOperator2dTest()
102 QDoubleVector2D v2 = -v1; in unaryOperator2dTest()
129 QDoubleVector2D v1(1.1, 2.2); in binaryOperator2dTest()
130 QDoubleVector2D v2(3.4, 4.4); in binaryOperator2dTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/positioningquick/
H A Dqquickgeocoordinateanimation.cpp119 QGeoCoordinate result = QWebMercator::mercatorToCoord(QDoubleVector2D(x, y)); in q_coordinateShortestInterpolator()
148 QGeoCoordinate result = QWebMercator::mercatorToCoord(QDoubleVector2D(x, y)); in q_coordinateWestInterpolator()
178 QGeoCoordinate result = QWebMercator::mercatorToCoord(QDoubleVector2D(x, y)); in q_coordinateEastInterpolator()
211 QDoubleVector2D fromVector = QWebMercator::coordToMercator(f); in setFrom()
234 QDoubleVector2D toVector = QWebMercator::coordToMercator(t); in setTo()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/labs/qsg/
H A Dqmappolylineobjectqsg_p_p.h68 QList<QDoubleVector2D> projectPath();
91 QDoubleVector2D m_leftBoundMercator;
H A Dqmappolygonobjectqsg_p_p.h67 QList<QDoubleVector2D> projectPath();
88 QDoubleVector2D m_leftBoundMercator;

12