Commit 7d24464e authored by rink's avatar rink
Browse files

add flag for saving tracer locations

parent cff2ffcf
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment