Skip to content

Polyhedron demo: New API for new features#2501

Closed
maxGimeno wants to merge 47 commits intoCGAL:masterfrom
maxGimeno:New_generation_demo-GF
Closed

Polyhedron demo: New API for new features#2501
maxGimeno wants to merge 47 commits intoCGAL:masterfrom
maxGimeno:New_generation_demo-GF

Conversation

@maxGimeno
Copy link
Copy Markdown
Contributor

Summary of Changes

This PR holds an API breaking update of the Polyhedron demo. This allows to add new features, like:

  • moving long operations to another thread
  • having multiple viewers
  • using scene transparency

@maxGimeno
Copy link
Copy Markdown
Contributor Author

maxGimeno commented Oct 5, 2017

A first version of the new API can be found here .
After it has been reviewed and approved, Further work will be performed on this branch.

@lrineau

@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from bcd88ac to 974531f Compare October 5, 2017 09:58
@lrineau
Copy link
Copy Markdown
Member

lrineau commented Oct 5, 2017

Note that this branch already conflicts with master.

@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from 974531f to 002487a Compare October 6, 2017 07:23
faces_displayed = true;
all_primitives_displayed = false;
has_vcolors = false;
has_fcolors = false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The body of the two constructors are identical. It should be factorized into a helper method of the class.

@maxGimeno
Copy link
Copy Markdown
Contributor Author

Doc updated

@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from f073866 to 3f1135a Compare October 11, 2017 14:10
@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from 46d4301 to 9109527 Compare October 18, 2017 14:31
@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from 9109527 to d920250 Compare October 25, 2017 14:58
@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch 4 times, most recently from 3f5b7a7 to 41e3cd1 Compare November 14, 2017 17:21
d->was_selected = true;
redraw();
QTimer::singleShot(500, [this]{setSelected(false); redraw();});
QTimer::singleShot(500, this, SLOT(unSelect()));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Alternatively, you could have used:

QTimer::singleShot(500, this, [this]{setSelected(false); redraw();});

with three arguments.

See the doc: http://doc.qt.io/qt-5/qtimer.html#singleShot-2

@maxGimeno
Copy link
Copy Markdown
Contributor Author

maxGimeno commented Nov 30, 2017 via email

@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from 71e047f to 53a11d8 Compare December 1, 2017 08:49
@maxGimeno maxGimeno force-pushed the New_generation_demo-GF branch from f12819d to 6fe4150 Compare January 11, 2018 10:18
@lrineau
Copy link
Copy Markdown
Member

lrineau commented Mar 12, 2018

This change is Reviewable

@lrineau
Copy link
Copy Markdown
Member

lrineau commented Mar 12, 2018

That reading might be interesting.

http://gameprogrammingpatterns.com/dirty-flag.html

@lrineau lrineau added this to the 4.13-beta milestone Apr 12, 2018
@lrineau lrineau removed this from the 4.13-beta milestone Jun 26, 2018
@lrineau lrineau added this to the Trash / Attic milestone Jan 7, 2019
@lrineau lrineau self-assigned this Aug 30, 2021
@sloriot
Copy link
Copy Markdown
Member

sloriot commented Aug 30, 2021

We're closing this PR as we won't have time to finish it. Transparency and multiple viewers were added in another PR.

@sloriot sloriot closed this Aug 30, 2021
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.

5 participants