Skip to content
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

Added a method to show the head on arrows and axis #95

Merged
merged 6 commits into from
Jun 5, 2020

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Jun 3, 2020

As discussed in the PR gazebosim/gz-sim#150 it makes sense to show only the line of the arrow. These methods allow to hidde the head of the arrow and axis.

Signed-off-by: ahcorde [email protected]

@ahcorde ahcorde added enhancement New feature or request 🔮 dome Ignition Dome labels Jun 3, 2020
@ahcorde ahcorde requested a review from iche033 June 3, 2020 15:29
@ahcorde ahcorde self-assigned this Jun 3, 2020
@codecov
Copy link

codecov bot commented Jun 3, 2020

Codecov Report

Merging #95 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #95   +/-   ##
======================================
  Coverage    7.56%   7.56%           
======================================
  Files          26      26           
  Lines        1744    1744           
======================================
  Hits          132     132           
  Misses       1612    1612           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae52975...0b3d6c6. Read the comment docs.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good. Just minor style comments. Can you also update changelog?

include/ignition/rendering/ArrowVisual.hh Outdated Show resolved Hide resolved
include/ignition/rendering/AxisVisual.hh Outdated Show resolved Hide resolved
include/ignition/rendering/base/BaseArrowVisual.hh Outdated Show resolved Hide resolved
template <class T>
void BaseAxisVisual<T>::ShowAxisHead(bool b)
{
for (unsigned int i = 0; i < this->ChildCount(); ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

style nitpick, { on new line

there is also a minor codecheck error here:
https://build.osrfoundation.org/job/ignition_rendering-ci-pr_any-ubuntu_auto-amd64/629/cppcheckResult/

Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
@chapulina chapulina merged commit dfcf7c4 into master Jun 5, 2020
@chapulina chapulina deleted the ahcorde/AxisVisual/showHead branch June 5, 2020 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants