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
90a75652
Commit
90a75652
authored
Feb 03, 2012
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed axis colors and added world grid.
parent
096a38ad
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
173 additions
and
34 deletions
+173
-34
Pixhawk3DWidget.cc
src/ui/map3D/Pixhawk3DWidget.cc
+163
-28
Pixhawk3DWidget.h
src/ui/map3D/Pixhawk3DWidget.h
+8
-4
Q3DWidget.cc
src/ui/map3D/Q3DWidget.cc
+2
-2
No files found.
src/ui/map3D/Pixhawk3DWidget.cc
View file @
90a75652
This diff is collapsed.
Click to expand it.
src/ui/map3D/Pixhawk3DWidget.h
View file @
90a75652
...
@@ -62,7 +62,8 @@ public slots:
...
@@ -62,7 +62,8 @@ public slots:
private
slots
:
private
slots
:
void
selectFrame
(
QString
text
);
void
selectFrame
(
QString
text
);
void
showGrid
(
int
state
);
void
showLocalGrid
(
int
state
);
void
showWorldGrid
(
int
state
);
void
showTrail
(
int
state
);
void
showTrail
(
int
state
);
void
showWaypoints
(
int
state
);
void
showWaypoints
(
int
state
);
void
selectMapSource
(
int
index
);
void
selectMapSource
(
int
index
);
...
@@ -106,7 +107,8 @@ private:
...
@@ -106,7 +107,8 @@ private:
QString
&
utmZone
);
QString
&
utmZone
);
void
getPosition
(
double
&
x
,
double
&
y
,
double
&
z
);
void
getPosition
(
double
&
x
,
double
&
y
,
double
&
z
);
osg
::
ref_ptr
<
osg
::
Geode
>
createGrid
(
void
);
osg
::
ref_ptr
<
osg
::
Geode
>
createLocalGrid
(
void
);
osg
::
ref_ptr
<
osg
::
Geode
>
createWorldGrid
(
void
);
osg
::
ref_ptr
<
osg
::
Geode
>
createTrail
(
const
osg
::
Vec4
&
color
);
osg
::
ref_ptr
<
osg
::
Geode
>
createTrail
(
const
osg
::
Vec4
&
color
);
osg
::
ref_ptr
<
Imagery
>
createMap
(
void
);
osg
::
ref_ptr
<
Imagery
>
createMap
(
void
);
osg
::
ref_ptr
<
osg
::
Geode
>
createRGBD3D
(
void
);
osg
::
ref_ptr
<
osg
::
Geode
>
createRGBD3D
(
void
);
...
@@ -143,7 +145,8 @@ private:
...
@@ -143,7 +145,8 @@ private:
Mode
mode
;
Mode
mode
;
int
selectedWpIndex
;
int
selectedWpIndex
;
bool
displayGrid
;
bool
displayLocalGrid
;
bool
displayWorldGrid
;
bool
displayTrail
;
bool
displayTrail
;
bool
displayImagery
;
bool
displayImagery
;
bool
displayWaypoints
;
bool
displayWaypoints
;
...
@@ -166,7 +169,8 @@ private:
...
@@ -166,7 +169,8 @@ private:
osg
::
ref_ptr
<
ImageWindowGeode
>
depth2DGeode
;
osg
::
ref_ptr
<
ImageWindowGeode
>
depth2DGeode
;
osg
::
ref_ptr
<
osg
::
Image
>
rgbImage
;
osg
::
ref_ptr
<
osg
::
Image
>
rgbImage
;
osg
::
ref_ptr
<
osg
::
Image
>
depthImage
;
osg
::
ref_ptr
<
osg
::
Image
>
depthImage
;
osg
::
ref_ptr
<
osg
::
Geode
>
gridNode
;
osg
::
ref_ptr
<
osg
::
Geode
>
localGridNode
;
osg
::
ref_ptr
<
osg
::
Geode
>
worldGridNode
;
osg
::
ref_ptr
<
osg
::
Geode
>
trailNode
;
osg
::
ref_ptr
<
osg
::
Geode
>
trailNode
;
osg
::
ref_ptr
<
Imagery
>
mapNode
;
osg
::
ref_ptr
<
Imagery
>
mapNode
;
osg
::
ref_ptr
<
WaypointGroupNode
>
waypointGroupNode
;
osg
::
ref_ptr
<
WaypointGroupNode
>
waypointGroupNode
;
...
...
src/ui/map3D/Q3DWidget.cc
View file @
90a75652
...
@@ -148,8 +148,8 @@ Q3DWidget::createRobot(void)
...
@@ -148,8 +148,8 @@ Q3DWidget::createRobot(void)
osg
::
ref_ptr
<
osg
::
Vec3Array
>
coords
(
new
osg
::
Vec3Array
(
6
));
osg
::
ref_ptr
<
osg
::
Vec3Array
>
coords
(
new
osg
::
Vec3Array
(
6
));
(
*
coords
)[
0
]
=
(
*
coords
)[
2
]
=
(
*
coords
)[
4
]
=
(
*
coords
)[
0
]
=
(
*
coords
)[
2
]
=
(
*
coords
)[
4
]
=
osg
::
Vec3
(
0.0
f
,
0.0
f
,
0.0
f
);
osg
::
Vec3
(
0.0
f
,
0.0
f
,
0.0
f
);
(
*
coords
)[
1
]
=
osg
::
Vec3
(
0.
15
f
,
0.0
f
,
0.0
f
);
(
*
coords
)[
1
]
=
osg
::
Vec3
(
0.
0
f
,
0.3
f
,
0.0
f
);
(
*
coords
)[
3
]
=
osg
::
Vec3
(
0.
0
f
,
0.3
f
,
0.0
f
);
(
*
coords
)[
3
]
=
osg
::
Vec3
(
0.
15
f
,
0.0
f
,
0.0
f
);
(
*
coords
)[
5
]
=
osg
::
Vec3
(
0.0
f
,
0.0
f
,
-
0.15
f
);
(
*
coords
)[
5
]
=
osg
::
Vec3
(
0.0
f
,
0.0
f
,
-
0.15
f
);
geometry
->
setVertexArray
(
coords
);
geometry
->
setVertexArray
(
coords
);
...
...
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