From 002859f8428cb36fcb850543f65e14a354632cef Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Fri, 19 Feb 2016 08:50:44 +0100 Subject: [PATCH] Update name of reconstruction 2D in demo --- .../CMakeLists.txt | 18 +++++++++--------- ...al_transportation_reconstruction_2_demo.cpp | 2 +- ..._transportation_reconstruction_kerneled_2.h | 14 +++++++------- .../pwsrec.ui | 2 +- .../render.cpp | 8 ++++---- .../scene.h | 10 +++++----- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt index 4d8dfbfc2ab..a6f267b3161 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/CMakeLists.txt @@ -1,6 +1,6 @@ -# This is the CMake script for compiling the Reconstruction_simplification_2 demo. +# This is the CMake script for compiling the Optimal_transportation_reconstruction_2 demo. -project(Reconstruction_simplification_2_demo) +project(Optimal_transportation_reconstruction_2_demo) cmake_minimum_required(VERSION 2.8.11) if(POLICY CMP0043) @@ -45,7 +45,7 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND) set( SRCS glviewer.cpp - Reconstruction_simplification_2_demo.cpp + Optimal_transportation_reconstruction_2_demo.cpp window.cpp render.cpp ) @@ -78,20 +78,20 @@ if(CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND) qt5_add_resources ( RESOURCE_FILES pwsrec.qrc ) - add_executable ( Reconstruction_simplification_2_demo ${SRCS} ${MOCS} ${UI_FILES} ${RESOURCE_FILES} ${CGAL_ADDITIONAL_FILES} ${CGAL_RESOURCE_FILES}) + add_executable ( Optimal_transportation_reconstruction_2_demo ${SRCS} ${MOCS} ${UI_FILES} ${RESOURCE_FILES} ${CGAL_ADDITIONAL_FILES} ${CGAL_RESOURCE_FILES}) - qt5_use_modules(Reconstruction_simplification_2_demo OpenGL) + qt5_use_modules(Optimal_transportation_reconstruction_2_demo OpenGL) # Link with Qt libraries - target_link_libraries( Reconstruction_simplification_2_demo ${QT_LIBRARIES} ) + target_link_libraries( Optimal_transportation_reconstruction_2_demo ${QT_LIBRARIES} ) # Link with CGAL - target_link_libraries( Reconstruction_simplification_2_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ) + target_link_libraries( Optimal_transportation_reconstruction_2_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ) # Link with OpenGL - target_link_libraries( Reconstruction_simplification_2_demo ${OPENGL_gl_LIBRARY} ) + target_link_libraries( Optimal_transportation_reconstruction_2_demo ${OPENGL_gl_LIBRARY} ) - add_to_cached_list( CGAL_EXECUTABLE_TARGETS Reconstruction_simplification_2_demo ) + add_to_cached_list( CGAL_EXECUTABLE_TARGETS Optimal_transportation_reconstruction_2_demo ) else (CGAL_FOUND AND CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND ) diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_2_demo.cpp b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_2_demo.cpp index 721f3d4ed96..1dfe55a1980 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_2_demo.cpp +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_2_demo.cpp @@ -5,7 +5,7 @@ int main(int argv, char **args) { srand(1); QApplication app(argv, args); - app.setApplicationName("Reconstruction_simplification_2 Demo"); + app.setApplicationName("Optimal_transportation_reconstruction_2 Demo"); MainWindow window; window.show(); return app.exec(); diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_kerneled_2.h b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_kerneled_2.h index 5b6b961e990..03f301f8a2a 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_kerneled_2.h +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/Optimal_transportation_reconstruction_kerneled_2.h @@ -1,8 +1,8 @@ -#ifndef CGAL_RECONSTRUCTION_SIMPLIFICATION_KERNEL_2_H_ -#define CGAL_RECONSTRUCTION_SIMPLIFICATION_KERNEL_2_H_ +#ifndef CGAL_OPTIMAL_TRANSPORTATION_RECONSTRUCTION_KERNEL_2_H_ +#define CGAL_OPTIMAL_TRANSPORTATION_RECONSTRUCTION_KERNEL_2_H_ #include -#include +#include #include #include @@ -27,22 +27,22 @@ typedef CGAL::value_type_traits::type MassPoint; typedef CGAL::First_of_pair_property_map Point_property_map; typedef CGAL::Second_of_pair_property_map Mass_property_map; -typedef CGAL::Reconstruction_simplification_2 Rs_2; -class Reconstruction_simplification_kerneled_2: +class Optimal_transportation_reconstruction_kerneled_2: public Rs_2 { public: template - Reconstruction_simplification_kerneled_2(const InputRange& input_range, + Optimal_transportation_reconstruction_kerneled_2(const InputRange& input_range, Point_property_map point_pmap, Mass_property_map mass_pmap) : Rs_2(input_range, point_pmap, mass_pmap) { } - Reconstruction_simplification_kerneled_2() : + Optimal_transportation_reconstruction_kerneled_2() : Rs_2() { } diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/pwsrec.ui b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/pwsrec.ui index fb2a19d97f7..229957863c0 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/pwsrec.ui +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/pwsrec.ui @@ -12,7 +12,7 @@ - CGAL 2D Reconstruction and Simplification + CGAL 2D Optimal Transportation Curve Reconstruction diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/render.cpp b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/render.cpp index 850cd7ec055..9f61714f7b3 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/render.cpp +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/render.cpp @@ -4,11 +4,11 @@ #include // local -#include "Reconstruction_simplification_kerneled_2.h" -#include +#include "Optimal_transportation_reconstruction_kerneled_2.h" +#include -typedef Reconstruction_simplification_kerneled_2::Rec_edge_2 PEdge; -typedef Reconstruction_simplification_kerneled_2 R_s_k_2; +typedef Optimal_transportation_reconstruction_kerneled_2::Rec_edge_2 PEdge; +typedef Optimal_transportation_reconstruction_kerneled_2 R_s_k_2; void R_s_k_2::print_stats() const { diff --git a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/scene.h b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/scene.h index bf79adad9cd..f8fb132351f 100644 --- a/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/scene.h +++ b/Optimal_transportation_reconstruction_2/demo/Optimal_transportation_reconstruction_2/scene.h @@ -10,8 +10,8 @@ // local #include -#include "Reconstruction_simplification_kerneled_2.h" -#include +#include "Optimal_transportation_reconstruction_kerneled_2.h" +#include #ifdef CGAL_USE_CIMG @@ -37,7 +37,7 @@ public: typedef CGAL::First_of_pair_property_map Point_property_map; typedef CGAL::Second_of_pair_property_map Mass_property_map; - typedef CGAL::Reconstruction_simplification_2 R_s_2; typedef K::Segment_2 Segment; @@ -80,7 +80,7 @@ private: // data std::vector m_samples; - Reconstruction_simplification_kerneled_2* m_pwsrec; + Optimal_transportation_reconstruction_kerneled_2* m_pwsrec; int m_ignore; bool m_init_done; double m_percentage; @@ -100,7 +100,7 @@ public: m_bbox_y = 0.0; m_bbox_size = 1.0; - m_pwsrec = new Reconstruction_simplification_kerneled_2(); + m_pwsrec = new Optimal_transportation_reconstruction_kerneled_2(); } ~Scene() {