Skip to content

Use the Renderer in the plugin and interface #1374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
May 25, 2017

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented May 14, 2017

No description provided.

@pleroy
Copy link
Member Author

pleroy commented May 14, 2017

retest this please

Sorry, something went wrong.

not_null<std::unique_ptr<NavigationFrame>> plotting_frame);

// Returns the current plotting frame. This may not be the last set by
// |SetPlottingFrame| if it was overridden by a target vessel.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is overridden by a target vessel.

not_null<Celestial const*> celestial,
not_null<Ephemeris<Barycentric> const*> const ephemeris);

// Reverts to the previously active plotting frame. The second version only
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to the frame last set by |SetPlottingFrame|.

auto parameters = target_->vessel->prediction_adaptive_step_parameters();
parameters.set_max_steps(begin.trajectory()->Size());
target_->vessel->set_prediction_adaptive_step_parameters(parameters);
target_->vessel->UpdatePrediction(current_time_ + prediction_length_);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This UpdatePrediction disappeared; it was an ugly hack, but removing it is probably a bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, done.

@pleroy pleroy changed the title A new class to encapsulate the code related to rendering and coordinate changes Use the Renderer in the plugin and interface May 21, 2017
@eggrobin eggrobin added the LGTM label May 21, 2017
@pleroy pleroy merged commit e237bcd into mockingbirdnest:master May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants