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

Ajout de la classe CMapHandlerGen #88

Merged
merged 11 commits into from
Mar 23, 2019

Conversation

etienneschmitt
Copy link
Member

Salut,

Je propose dans cette PR la création d'une classe CMapHandlerGen.
Tout d'abord elle permet de réduire drastiquement la duplication de code. Ensuite elle facilite beaucoup les choses (notamment au sein du plugin attribute_editor).
Il devient maintenant possible de faire des traitements sans se soucier de la dimension de la carte.
J'ai aussi mis à jour la signature de plusieurs méthodes : utilisation des std::function qui présentent un surcoût négligeable (surtout dans les foreach_cellset par ex.) et autres joyeusetés.

J'attends vos retours sur ces modifs.

Etienne

Signed-off-by: Étienne Schmitt <[email protected]>
This setting hides a useless warning message.

Signed-off-by: Étienne Schmitt <[email protected]>
-added an enum CMapType containing all used map types.
- added some pure virtual methodes in the CMapHandlerGen class :
  *type() const returne the CMapType of the MAP.
  * foreach_cell(Orbit, std::function) allowing to traverse the map without knowing its type.
Added setting "Auto enable on selected view" (enabled by default)

Signed-off-by: Étienne Schmitt <[email protected]>
@pierrekraemer
Copy link
Member

Ca me botte bien. Tout ce qui permet de supprimer du code est bienvenu et il y avait trop de code redondant là dedans..

@pierrekraemer
Copy link
Member

Y'a un moyen de relancer la CI maintenant que la PR qu'il fallait a été mergé dans CGoGN ?

@untereiner
Copy link
Collaborator

untereiner commented Mar 19, 2019

Je l'avais relancé. Je le refais.

  • Linux ok

  • macos problème:
    `
    Undefined symbols for architecture x86_64:

    "schnapps::plugin_cmap_provider::CMap1Handler::add_cells_set(cgogn::Orbit, QString const&)", referenced from:

    schnapps::plugin_cmap_provider::CMap1Provider_DockTab::add_cells_set() in cmap1_provider_dock_tab.cpp.o
    

    "schnapps::plugin_cmap_provider::CMap1Handler::remove_cells_set(cgogn::Orbit, QString const&)", referenced from:

    schnapps::plugin_cmap_provider::CMap1Provider_DockTab::remove_cells_set() in cmap1_provider_dock_tab.cpp.o
    

ld: symbol(s) not found for architecture x86_64`

  • windows relancé

@etienneschmitt
Copy link
Member Author

etienneschmitt commented Mar 19, 2019 via email

@untereiner untereiner merged commit 22f4448 into cgogn:develop Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants