Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MUG
visad
Commits
7d24464e
Commit
7d24464e
authored
Sep 24, 2018
by
rink
Browse files
add flag for saving tracer locations
parent
cff2ffcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/visad/TrajectoryParams.java
View file @
7d24464e
...
...
@@ -82,6 +82,7 @@ public class TrajectoryParams {
boolean
cachingEnabled
=
true
;
boolean
terrainFollowEnabled
=
true
;
boolean
trcrStreamingEnabled
=
false
;
boolean
saveTracerLocations
=
false
;
int
trajForm
=
LINE
;
float
cylWidth
=
0.00014f
;
...
...
@@ -128,6 +129,7 @@ public class TrajectoryParams {
this
.
method
=
params
.
getMethod
();
this
.
interpMethod
=
params
.
getInterpolationMethod
();
this
.
trcrStreamingEnabled
=
params
.
getTracerStreamingEnabled
();
this
.
saveTracerLocations
=
params
.
getSaveTracerLocations
();
}
public
TrajectoryParams
(
double
trajVisibilityTimeWindow
,
double
trajRefreshInterval
,
int
numIntrpPts
,
int
startSkip
,
SmoothParams
smoothParams
)
{
...
...
@@ -372,7 +374,15 @@ public class TrajectoryParams {
public
void
setTracerStreamingEnabled
(
boolean
yesno
)
{
this
.
trcrStreamingEnabled
=
yesno
;
}
public
boolean
getSaveTracerLocations
()
{
return
this
.
saveTracerLocations
;
}
public
void
setSaveTracerLocations
(
boolean
yesno
)
{
this
.
saveTracerLocations
=
yesno
;
}
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
||
!(
obj
instanceof
TrajectoryParams
))
{
return
false
;
...
...
@@ -430,6 +440,9 @@ public class TrajectoryParams {
else
if
(
this
.
trcrStreamingEnabled
!=
trajParams
.
trcrStreamingEnabled
)
{
return
false
;
}
else
if
(
this
.
saveTracerLocations
!=
trajParams
.
saveTracerLocations
)
{
return
false
;
}
}
return
true
;
}
...
...
Write
Preview
Supports
Markdown
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