Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
Satellite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Christopher Reis
Satellite
Commits
cee370ed
Commit
cee370ed
authored
Nov 16, 2015
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tracks without bugs for one sat, GUI locks up multiple
parent
66a06e44
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
Application.java
src/GUI/Application.java
+2
-3
satelliteTree.java
src/GUI/satelliteTree.java
+1
-1
view3D.java
src/GUI/view3D.java
+8
-4
No files found.
src/GUI/Application.java
View file @
cee370ed
...
...
@@ -52,7 +52,6 @@ public class Application {
public
void
actionPerformed
(
ActionEvent
evt
)
{
List
<
satPosition
>
pos
=
TrackerList
.
getTracks
();
threeDview
.
updateTracks
(
pos
);
System
.
out
.
println
(
"update"
);
}
};
...
...
@@ -73,8 +72,8 @@ public class Application {
try
{
Application
window
=
new
Application
();
window
.
frmSatelliteTracker
.
setVisible
(
true
);
new
javax
.
swing
.
Timer
(
500
,
updateTracks
).
start
();
new
javax
.
swing
.
Timer
(
5
00
,
addtrack
).
start
();
//
new javax.swing.Timer(500, updateTracks).start();
new
javax
.
swing
.
Timer
(
10
00
,
addtrack
).
start
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
src/GUI/satelliteTree.java
View file @
cee370ed
...
...
@@ -94,7 +94,7 @@ public class satelliteTree extends JInternalFrame {
BufferedImage
img
=
null
;
try
{
img
=
ImageIO
.
read
(
new
File
(
"
//C:\\Users\\Christopher\\
Documents\\GitHub\\Satellite\\satellite.png"
));
img
=
ImageIO
.
read
(
new
File
(
"
D:\\My
Documents\\GitHub\\Satellite\\satellite.png"
));
//D:\\MyDocuments\\GitHub\\Satellite\\satellite.png
//C:\\Users\\Christopher\\Documents\\GitHub\\Satellite\\satellite.png
}
catch
(
IOException
e
)
{
...
...
src/GUI/view3D.java
View file @
cee370ed
...
...
@@ -24,6 +24,7 @@ public class view3D extends JInternalFrame{
private
List
<
satPosition
>
trackList
=
new
ArrayList
<
satPosition
>();
WorldWindowGLCanvas
wwd
;
RenderableLayer
layer
=
new
RenderableLayer
();
public
view3D
()
{
...
...
@@ -82,13 +83,16 @@ public class view3D extends JInternalFrame{
}
public
void
addTrack
(
String
name
,
Double
lat
,
Double
lon
){
RenderableLayer
layer
=
new
RenderableLayer
();
Iterable
<
Renderable
>
iter
=
layer
.
getRenderables
();
for
(
Renderable
rend
:
iter
){
while
(
iter
.
iterator
().
hasNext
()){
Renderable
rend
=
iter
.
iterator
().
next
();
if
(
rend
instanceof
PointPlacemark
){
PointPlacemark
delp
=
(
PointPlacemark
)
rend
;
if
(
delp
.
getLabelText
().
equals
(
name
)){
delp
.
setPosition
(
Position
.
fromDegrees
(
lat
,
lon
));
wwd
.
redraw
();
return
;
}
}
...
...
@@ -99,10 +103,10 @@ public class view3D extends JInternalFrame{
pp
.
setLineEnabled
(
false
);
pp
.
setAltitudeMode
(
WorldWind
.
CLAMP_TO_GROUND
);
PointPlacemarkAttributes
attrs
=
new
PointPlacemarkAttributes
();
attrs
.
setImageAddress
(
"
gov/nasa/worldwindx/examples/images/audioicon-64
.png"
);
attrs
.
setImageAddress
(
"
D:\\MyDocuments\\GitHub\\Satellite\\satellite
.png"
);
attrs
.
setHeading
(-
45
d
);
attrs
.
setHeadingReference
(
AVKey
.
RELATIVE_TO_GLOBE
);
attrs
.
setScale
(
0.
6
);
attrs
.
setScale
(
0.
05
);
// attrs.setImageOffset(new Offset(0.5, 0.5, AVKey.FRACTION, AVKey.FRACTION));
attrs
.
setImageOffset
(
new
Offset
(
19
d
,
8
d
,
AVKey
.
PIXELS
,
AVKey
.
PIXELS
));
attrs
.
setLabelColor
(
"ffffffff"
);
...
...
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