Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
fdb53cb4
Commit
fdb53cb4
authored
Jun 15, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
ed9e7e27
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
71 deletions
+88
-71
TerrainProfile.cc
src/QmlControls/TerrainProfile.cc
+78
-63
TerrainProfile.h
src/QmlControls/TerrainProfile.h
+10
-8
No files found.
src/QmlControls/TerrainProfile.cc
View file @
fdb53cb4
This diff is collapsed.
Click to expand it.
src/QmlControls/TerrainProfile.h
View file @
fdb53cb4
...
...
@@ -57,14 +57,16 @@ private slots:
void
_newVisualItems
(
void
);
private:
void
_createGeometry
(
QSGGeometryNode
*&
geometryNode
,
QSGGeometry
*&
geometry
,
int
vertices
,
QSGGeometry
::
DrawingMode
drawingMode
,
const
QColor
&
color
);
void
_updateSegmentCounts
(
FlightPathSegment
*
segment
,
int
&
cTerrainPoints
,
int
&
cMissingTerrainSegments
,
int
&
cTerrainCollisionSegments
,
double
&
maxTerrainHeight
);
void
_addTerrainProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainVertices
,
int
&
terrainVertexIndex
);
void
_addMissingTerrainSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
QSGGeometry
::
Point2D
*
missingTerrainVertices
,
int
&
missingTerrainVertexIndex
);
void
_addTerrainCollisionSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainCollisionVertices
,
int
&
terrainCollisionVertexIndex
);
void
_addFlightProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
flightProfileVertices
,
int
&
flightProfileVertexIndex
);
double
_availableHeight
(
void
)
const
;
void
_setVertex
(
QSGGeometry
::
Point2D
&
vertex
,
double
x
,
double
y
);
void
_createGeometry
(
QSGGeometryNode
*&
geometryNode
,
QSGGeometry
*&
geometry
,
QSGGeometry
::
DrawingMode
drawingMode
,
const
QColor
&
color
);
void
_updateSegmentCounts
(
FlightPathSegment
*
segment
,
int
&
cFlightProfileSegments
,
int
&
cTerrainPoints
,
int
&
cMissingTerrainSegments
,
int
&
cTerrainCollisionSegments
,
double
&
maxTerrainHeight
);
void
_addTerrainProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainProfileVertices
,
int
&
terrainVertexIndex
);
void
_addMissingTerrainSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
QSGGeometry
::
Point2D
*
missingTerrainVertices
,
int
&
missingTerrainVertexIndex
);
void
_addTerrainCollisionSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainCollisionVertices
,
int
&
terrainCollisionVertexIndex
);
void
_addFlightProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
flightProfileVertices
,
int
&
flightProfileVertexIndex
);
double
_availableHeight
(
void
)
const
;
void
_setVertex
(
QSGGeometry
::
Point2D
&
vertex
,
double
x
,
double
y
);
bool
_shouldAddFlightProfileSegment
(
FlightPathSegment
*
segment
);
bool
_shouldAddMissingTerrainSegment
(
FlightPathSegment
*
segment
);
MissionController
*
_missionController
=
nullptr
;
QmlObjectListModel
*
_visualItems
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment