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

recent developments integration #40

Merged
merged 261 commits into from
Mar 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
27b290c
plugin "Volume Mesh From Surface"
etienneschmitt Jun 21, 2016
a127e5b
displaying QPluginLoader errorString when failing loading a plugin.
etienneschmitt Jun 21, 2016
f45e3f8
Added tetgen in Volume Mesh From Surface plugin.
etienneschmitt Jun 21, 2016
825b3d1
updated "Volume Mesh From Surface" plugin.
etienneschmitt Jun 21, 2016
f049632
updated licences and a few things in VMFSPlugin.
etienneschmitt Jun 22, 2016
74d553d
cells_set ++
pierrekraemer Jun 22, 2016
9b018e1
Added import of volume meshes.
etienneschmitt Jun 22, 2016
b2e8c55
Modified MapHandlerGen and MapHandler classes to ease writing generic…
etienneschmitt Jun 22, 2016
d991665
MapHandler::nb_cells(CellType)
etienneschmitt Jun 22, 2016
0135382
update cells_sets
pierrekraemer Jun 22, 2016
fb371e7
Merge pull request #19 from etienneschmitt/klm
pierrekraemer Jun 22, 2016
bbfde95
Merge branch 'develop' of github.com:cgogn/SCHNApps into develop
pierrekraemer Jun 22, 2016
6e6765c
choose cell type & cells set in selection plugin UI
pierrekraemer Jun 23, 2016
234f20e
beginning of plugin Volume Render.
etienneschmitt Jun 23, 2016
0425ac2
Import -> {Volume, Surface} Mesh
etienneschmitt Jun 23, 2016
fb976f5
plugin Volume Render.
etienneschmitt Jun 23, 2016
6199857
Fixed little bug in UI.
etienneschmitt Jun 23, 2016
17b78ac
add some signal connections in selection plugin
pierrekraemer Jun 24, 2016
6f952e9
fixed typo.
etienneschmitt Jun 24, 2016
b367838
using cgal to generate meshes.
etienneschmitt Jun 24, 2016
ee7666b
per view & map parameters in selection plugin
pierrekraemer Jun 24, 2016
a7a63a2
selected vertices display
pierrekraemer Jun 24, 2016
a867bfe
plugin export.
etienneschmitt Jun 25, 2016
4f26770
some cleanings in VMFS plugin.
etienneschmitt Jun 25, 2016
72ac9d6
export plugin working.
etienneschmitt Jun 25, 2016
d2921d5
exporting attributes.
etienneschmitt Jun 25, 2016
69b51fc
Merge remote-tracking branch 'schnapps/develop' into develop-schmitte
etienneschmitt Jun 25, 2016
9b07e26
Merge remote-tracking branch 'schnapps/develop' into klm
etienneschmitt Jun 25, 2016
d0b271f
Merge pull request #21 from etienneschmitt/klm
pierrekraemer Jun 25, 2016
7101868
Merge branch 'develop' of github.com:cgogn/SCHNApps into develop
pierrekraemer Jun 25, 2016
921ecbb
fixed crashes when calling remove_map or remove_view.
etienneschmitt Jun 26, 2016
6b3fff9
SurfaceRender_DockTab::update_map_parameters returns if map is nullptr.
etienneschmitt Jun 26, 2016
79caf23
Remove current map is back.
etienneschmitt Jun 26, 2016
424cc68
namespace plugin_volume_render.
etienneschmitt Jun 26, 2016
4dda69c
namespace plugin_vmfs.
etienneschmitt Jun 26, 2016
7a5e034
namespace plugin_export
etienneschmitt Jun 26, 2016
26321d0
dll.h
etienneschmitt Jun 26, 2016
2eaa065
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into deve…
etienneschmitt Jun 27, 2016
5117721
tetgen default command line is -pqY
etienneschmitt Jun 27, 2016
d1f9995
updated vmfs ui.
etienneschmitt Jun 27, 2016
b37f3ca
more generic cells selection management + edges selection
pierrekraemer Jun 27, 2016
f479de1
Merge pull request #22 from etienneschmitt/develop-schmitte
pierrekraemer Jun 27, 2016
a6a3748
Merge branch 'develop' of github.com:cgogn/SCHNApps into develop
pierrekraemer Jun 27, 2016
f2c279b
faces selection
pierrekraemer Jun 27, 2016
d460539
concave selected faces rendering
pierrekraemer Jun 27, 2016
485209f
updates in vertex base size computation
pierrekraemer Jun 27, 2016
d9e518f
updated uis for plugins Export and VMFS.
etienneschmitt Jun 27, 2016
83d403a
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into deve…
etienneschmitt Jun 27, 2016
d817b9d
compile fix
pierrekraemer Jun 27, 2016
3c0b89d
Merge pull request #20 from pierrekraemer/develop
pierrekraemer Jun 28, 2016
ac2e48e
plugin image (very beginning).
etienneschmitt Jun 28, 2016
754b8ce
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into image
etienneschmitt Jun 28, 2016
3759517
Some advancements in image plugin.
etienneschmitt Jun 28, 2016
32f5228
fixed crash when checking "draw" or "draw path" and no camera selected.
etienneschmitt Jun 28, 2016
c31bbc2
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into deve…
etienneschmitt Jun 28, 2016
9d5d247
fixed crash when checking "draw" or "draw path" and no camera selected.
etienneschmitt Jun 28, 2016
41a296f
plugin vmfs : asking for position attribute.
etienneschmitt Jun 28, 2016
feea180
plugin vmfs : asking for position attribute.
etienneschmitt Jun 28, 2016
f2648bd
Merge pull request #23 from etienneschmitt/develop-schmitte
pierrekraemer Jun 28, 2016
5b9a550
filter map dimension in surface plugins
pierrekraemer Jun 29, 2016
0bcd7e9
refactor plugins tab activation logic
pierrekraemer Jun 29, 2016
7069507
Merge pull request #24 from pierrekraemer/develop
pierrekraemer Jun 29, 2016
d964dfd
within sphere selection method
pierrekraemer Jun 29, 2016
012aecb
transparent selection sphere
pierrekraemer Jun 29, 2016
7bdb30e
Merge pull request #25 from pierrekraemer/develop
pierrekraemer Jun 29, 2016
d752452
updated volume_mesh_from_surface plugin
etienneschmitt Jul 1, 2016
c7a48ea
updated plugin image.
etienneschmitt Jul 1, 2016
403972b
fixed some crash in the UI.
etienneschmitt Jul 1, 2016
ea3ec35
Removed "_d" suffix and "plugin_" prefix.
etienneschmitt Jul 1, 2016
6ad62db
removed CImg.
etienneschmitt Jul 1, 2016
cfed32b
new public methods in plugin VMFS:
etienneschmitt Jul 1, 2016
e756df3
Only allowing *.inr files.
etienneschmitt Jul 1, 2016
b2eb6d7
Added slot plugin_disables(Plugin*)
etienneschmitt Jul 1, 2016
f009028
add public interface to surface render & surface render scalar plugins
pierrekraemer Jul 1, 2016
262a490
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into image
etienneschmitt Jul 1, 2016
77c61cf
add surface render vector public interface
pierrekraemer Jul 1, 2016
b4d2460
update surface_render plugin public interface
pierrekraemer Jul 1, 2016
3a2c1a8
update surface render scalar public interface
pierrekraemer Jul 1, 2016
33fcac6
update surface render vector public interface
pierrekraemer Jul 1, 2016
c7c2b89
update volume render public interface
pierrekraemer Jul 1, 2016
bab5823
update volume render ui
pierrekraemer Jul 1, 2016
d74398b
minor update
pierrekraemer Jul 1, 2016
f1759bd
updated plugin image. Now able to load vtk files.
etienneschmitt Jul 3, 2016
479f614
Merge pull request #26 from pierrekraemer/develop
pierrekraemer Jul 4, 2016
122ab02
subdomain index as a float32.
etienneschmitt Jul 4, 2016
86690a7
Merge remote-tracking branch 'schnapps/develop' into image
etienneschmitt Jul 4, 2016
3f7b381
add clipping plane in volume render plugin
pierrekraemer Jul 6, 2016
c869e9c
fix wrong slot connections
pierrekraemer Jul 7, 2016
8ac9fa9
fix vector scale factor initialization
pierrekraemer Jul 7, 2016
9bd83b4
Merge pull request #27 from etienneschmitt/image
pierrekraemer Jul 7, 2016
0aaa8d1
Merge pull request #28 from pierrekraemer/develop
pierrekraemer Jul 7, 2016
41e7bde
fixed compilation with MSVC.
etienneschmitt Jul 11, 2016
43de88a
namespaces and dll{import,export}
etienneschmitt Jul 11, 2016
6ba442b
added missing "exportmacro" in .ui files.
etienneschmitt Jul 11, 2016
6df1915
fixed compilation.
etienneschmitt Jul 11, 2016
6352caa
fixed compilation with cgal when its version is older than 4.8
etienneschmitt Jul 11, 2016
f46b01d
fixed loading of plugin image & vmfs
etienneschmitt Jul 11, 2016
cdf3b0c
Merge branch 'develop' of https://github.com/cgogn/SCHNApps into deve…
etienneschmitt Jul 11, 2016
5c4970b
removed debug message.
etienneschmitt Jul 11, 2016
dc747d9
improve CellsSet efficiency (removal) + update selection cells drawing
pierrekraemer Jul 11, 2016
6bf81ed
Merge pull request #29 from etienneschmitt/develop-schmitte
pierrekraemer Jul 11, 2016
0bd22a8
Merge pull request #30 from pierrekraemer/develop
pierrekraemer Jul 11, 2016
eaea236
Merge pull request #31 from etienneschmitt/develop-schmitte
pierrekraemer Jul 12, 2016
e6790ad
fixed compilation on linux.
etienneschmitt Jul 12, 2016
5ad3cc3
protect cmake flags against evil cgal.
etienneschmitt Jul 12, 2016
079ecb8
Merge pull request #32 from etienneschmitt/develop-schmitte
pierrekraemer Jul 12, 2016
0ac45ab
fixed crash in Volume Render plugin.
etienneschmitt Jul 26, 2016
f35533a
added "Empty Plugin".
etienneschmitt Jul 27, 2016
c07a8e6
Removed useless Q_PLUGIN_METADATA in cpp files.
etienneschmitt Jul 27, 2016
ee9ce6b
MapHandler : added has_attribute(orbit,att_name) and remove_attribute…
etienneschmitt Jul 27, 2016
16f33db
fixed a bug when computing normals.
etienneschmitt Jul 27, 2016
95edd8c
Added ExtractSurface plugin.
etienneschmitt Jul 27, 2016
eabc181
set CMAKE_AUTOUIC to ON in empty plugin.
etienneschmitt Jul 27, 2016
2e2253a
fixed compilation with the latest version of cgogn.
etienneschmitt Jul 28, 2016
130cf32
enable/disable plugins with a doubleclick.
etienneschmitt Jul 29, 2016
ecae874
fixed not removing action.
etienneschmitt Jul 29, 2016
150e08d
removal of cell sets.
etienneschmitt Jul 30, 2016
51757e1
beginning of plugin attribute_editor
etienneschmitt Aug 2, 2016
96d8110
Added:
etienneschmitt Aug 3, 2016
4589854
Added attribute edition (well, limited to viewer for now)
etienneschmitt Aug 3, 2016
8a98bb7
displaying "embedding" in header.
etienneschmitt Aug 3, 2016
cb74c19
small fixes.
etienneschmitt Aug 3, 2016
dc7d62e
extern template for MapHandler.
etienneschmitt Aug 4, 2016
7dd2f40
parallel_foreach_cell for MapHandler
etienneschmitt Aug 4, 2016
bf639e2
abilitty to modify an attribute.
etienneschmitt Aug 4, 2016
c5f2a92
Added CellsSetGen::foreach_cell(std::function<void(Dart)>) const method.
etienneschmitt Aug 5, 2016
effbe58
Attribute editor plugin : added the possibility to modify only select…
etienneschmitt Aug 5, 2016
f6d6b66
volume render plugin : rendering topology.
etienneschmitt Aug 8, 2016
189d700
plugin selection works with map3.
etienneschmitt Aug 8, 2016
1c9e2cb
updating topo drawing when exploding volumes.
etienneschmitt Aug 8, 2016
18a210d
is_valid() --> !is_nil()
etienneschmitt Aug 8, 2016
d4255b6
forgotten 2
etienneschmitt Aug 8, 2016
bc917c5
plugin volume modelisation
etienneschmitt Aug 9, 2016
542758c
plugin selection : ability to select volumes and to highlight them.
etienneschmitt Aug 9, 2016
2b673a1
added Qt5Widgets dependency in empty plugin (for auto uic to work)
etienneschmitt Aug 9, 2016
ecbd923
edit attribute plugin : using notify_attribute_changed method instead…
etienneschmitt Aug 10, 2016
8957851
Improved volume modelisation plugin in many ways.
etienneschmitt Aug 10, 2016
c1ff4e0
volume render plugin : updating the view when the connectivity or the…
etienneschmitt Aug 10, 2016
0f14372
added more operation in Volume Modelisation.
etienneschmitt Aug 12, 2016
402e0ef
Added support for attributes of type cgogn::Dart.
etienneschmitt Aug 23, 2016
abb2391
Fixed compilation and removed some warnings.
etienneschmitt Aug 23, 2016
adc56d2
fixed compilation (changes in import).
etienneschmitt Aug 24, 2016
99e2b40
Removed some warning in the logs.
etienneschmitt Aug 24, 2016
7d8f35a
MapHandlerGen::const_attribute_container() returns a pointer instead …
etienneschmitt Aug 29, 2016
175d5a7
Added function SwapGen32 in volume modelisation.
etienneschmitt Aug 29, 2016
99de251
Some cleaning in MapHandlerGen.
etienneschmitt Aug 29, 2016
196d536
Removed topology_container and get_topology_relations_names methods i…
etienneschmitt Aug 31, 2016
f6c4531
Fixed compilation with the latest version of cgogn.
etienneschmitt Aug 31, 2016
b6c28a6
Merge pull request #33 from etienneschmitt/develop-schmitte
pierrekraemer Sep 13, 2016
eda3397
Fixed compilation with the latest version of cgogn.
etienneschmitt Sep 23, 2016
7c9c3ee
Added *.msh *.mesh *.meshb file types when importing surfaces.
etienneschmitt Sep 23, 2016
f1a2eec
Map3 : delete_edge ==> merge_incident_volumes
etienneschmitt Sep 23, 2016
1a7e197
Merge pull request #34 from etienneschmitt/develop-schmitte
pierrekraemer Sep 30, 2016
6c0c34e
comply to new cgogn types without map_traits
pierrekraemer Oct 19, 2016
288e23a
volume_modelisation: update some operations names
pierrekraemer Oct 19, 2016
807843f
merge & transform volume_modelisation in a processing plugin
pierrekraemer Oct 19, 2016
ba85b9f
fix some cgogn types
pierrekraemer Oct 19, 2016
ceb2d23
Merge pull request #35 from pierrekraemer/develop
pierrekraemer Oct 19, 2016
5e878e2
add_position_attribute() -> position_attribute()
etienneschmitt Oct 25, 2016
9defefe
Fixed a bug when writing the origin of a 3d image.
etienneschmitt Oct 25, 2016
65a1d9f
Translate a mesh created from an image (adding origin).
etienneschmitt Oct 25, 2016
24706dc
Merge pull request #36 from etienneschmitt/develop-schmitte
pierrekraemer Oct 26, 2016
1669ca7
Simplified plugin export.
etienneschmitt Nov 29, 2016
d56e05f
"SCHNAPPS_DOUBLE_PRECISION" CMake option (ON by default)
etienneschmitt Nov 30, 2016
3b0c9ef
first attempt to bring transparency in the volume render.
etienneschmitt Nov 30, 2016
196ad4a
Added virtual void resizeGL(View* view, int width, int height) pure v…
etienneschmitt Nov 30, 2016
1db40ae
Attribute editor : allow to suggest a default value. (to be continued)
etienneschmitt Dec 14, 2016
4a1169c
Added MapHandlerGen::merge(const MaphandlerGen*) virtual method.
etienneschmitt Dec 15, 2016
8388aa6
Added Schnapps::duplicate_map method.
etienneschmitt Dec 15, 2016
f9a34da
new plugin "merge plugin". Can be used to merge 2 maps !
etienneschmitt Dec 15, 2016
45d8dd8
fixed compilation of volume render plugin.
etienneschmitt Dec 15, 2016
1c73b4e
Added MergePlugin::merge method.
etienneschmitt Dec 15, 2016
0e639b1
ensure draw_buttons() is called before using transparency.
etienneschmitt Dec 15, 2016
1b835ee
ensure that the "front" parameter of set_local_position is "true".
etienneschmitt Dec 15, 2016
55a8e32
Improved volume rendering.
etienneschmitt Dec 15, 2016
f72ea73
nicer add_attribute dialog.
etienneschmitt Dec 15, 2016
5a6a1c2
enable import of surface vtu files.
etienneschmitt Dec 17, 2016
b3c6d72
Fixed unmovable ViewDialogList when using KDE desktop environment.
etienneschmitt Dec 17, 2016
c0a614d
Fixed compilation with MSVC
etienneschmitt Dec 17, 2016
c214915
SCHNApps class destructor : first deleting the plugins.
etienneschmitt Jan 3, 2017
719b879
Unload every plugins the proper way when the SCHNApps destructor is c…
etienneschmitt Jan 3, 2017
dfa18e9
improved transparency handling in volume render plugin.
etienneschmitt Jan 3, 2017
4c75c6e
Added Settings helper class.
etienneschmitt Jan 10, 2017
9d813b2
Added a setting.json file in schnapps/core.
etienneschmitt Jan 10, 2017
1a5535a
Fixed finding config file on windows.
etienneschmitt Jan 10, 2017
cb88c29
Merge pull request #37 from etienneschmitt/transparency
pierrekraemer Jan 11, 2017
f4f17c7
Merge remote-tracking branch 'schnapps/develop' into settings
etienneschmitt Jan 11, 2017
3cc36e3
Fixed crash when reparenting a View.
etienneschmitt Jan 12, 2017
a878d5a
Merge branch 'settings' of github.com:etienneschmitt/SCHNApps into se…
etienneschmitt Jan 12, 2017
3e3b04f
initialize_gl() called when Viewer context changes.
etienneschmitt Jan 12, 2017
0748d22
volume_render plugin listen to View::viewerInitialized signal.
etienneschmitt Jan 12, 2017
f92562c
selection plugin listen to View::viewerInitialized signal.
etienneschmitt Jan 12, 2017
6261522
surface render scalar and vector plugins listen to View::viewerInitia…
etienneschmitt Jan 12, 2017
b8b74c8
Added "auto_select_added_map" option. When set to true, when a map is…
etienneschmitt Jan 12, 2017
b51d6d4
Added option "auto_add_map_to_selected_view" to put any loaded map in…
etienneschmitt Jan 12, 2017
c9740a7
Added a setting file in the import plugin with two options :
etienneschmitt Jan 12, 2017
f34dd79
Added file plugin.cpp and added method "get_setting" and "add_setting…
etienneschmitt Jan 14, 2017
f90579b
Added PluginInteraction dtor in plugin_interaction.cpp (to avoid weak…
etienneschmitt Jan 14, 2017
5b74b9e
Added plugin_processing.cpp.
etienneschmitt Jan 14, 2017
e8e44da
plugin import : removed the settings file.
etienneschmitt Jan 14, 2017
8e04057
Settings : added a widget to edit the settings. For now there is only…
etienneschmitt Jan 14, 2017
db7bf46
Added buttons '+' and '-' to add/remove items in a QWidgetList.
etienneschmitt Jan 15, 2017
cf7baff
Storing the settings as a QMap<QString, QVariantMap>.
etienneschmitt Jan 15, 2017
6340dfb
Settings::add_setting now return the adress where the setting is stored.
etienneschmitt Jan 15, 2017
146bea6
Surface Render plugin : added an option to allow auto enabling of the…
etienneschmitt Jan 15, 2017
169f91b
Renamed some options.
etienneschmitt Jan 15, 2017
df2e3fb
QObject::sender() -> sender()
etienneschmitt Jan 15, 2017
990d33f
Updated options in :
etienneschmitt Jan 15, 2017
c045dd1
Checking if map is triangulated before trying to generate a mesh with…
etienneschmitt Jan 15, 2017
135d16b
Image plugin : use boost iostreams to uncompress .gz files.
etienneschmitt Dec 22, 2016
71661d1
image plugin : checking if image is not empty before adding it to the…
etienneschmitt Dec 22, 2016
ab443d4
Plugin Image, uncompress_gz_file function : checking if there is anot…
etienneschmitt Jan 2, 2017
6093b3c
triangule surface map before trying to generate a mesh with cgal.
etienneschmitt Jan 17, 2017
d40ae83
SCHNApps core : StatusBarOutput class, to see the log messages in the…
etienneschmitt Jan 18, 2017
005a87c
Using logger instead of cout/cerr.
etienneschmitt Jan 18, 2017
ee79075
MapHandler::create_vbo : first checking if attribute exists.
etienneschmitt Jan 18, 2017
d12563f
Plugin VMFS : retrieving the name of the position attribute given to …
etienneschmitt Jan 19, 2017
2163ed9
plugin VMFS : netgen support
etienneschmitt Jan 19, 2017
1562cde
improved netgen support in plugin VMFS.
etienneschmitt Jan 20, 2017
4cdce62
Removed using namespace std; in a header file of netgen.
etienneschmitt Jan 20, 2017
3a6e258
Changed name of "Volume Mesh From Surface" plugin to "MeshGen"
etienneschmitt Jan 20, 2017
bc78c53
meshgen plugin : changed the directory
etienneschmitt Jan 20, 2017
9e3f7f4
Plugin meshgen : renamed some files.
etienneschmitt Jan 20, 2017
2e8f6f2
Plugin meshgen : fixed compilation with MSVC
etienneschmitt Jan 22, 2017
62ed3a1
SCHNApps: Added some cmake Modules and copying boost and cgal dlls to…
etienneschmitt Jan 22, 2017
c9e4289
Plugin image : fixed missing ";".
etienneschmitt Jan 22, 2017
bada62c
Fixed compilation on non-MSVC.
etienneschmitt Jan 22, 2017
484178f
Hidding export dialog widget when generator is selected.
etienneschmitt Jan 23, 2017
733c6cd
Using QSignalBlocker RAII class to block signals.
etienneschmitt Jan 23, 2017
2feb1ce
plugin surface render vector : Fixed wrong slot when disconnecting.
etienneschmitt Jan 25, 2017
5aafe01
Using logger instead of status_bar_message function.
etienneschmitt Jan 27, 2017
2493e4c
Added option "SCHNAPPS_ALIGNED_VEC3". Default is OFF. When turned ON …
etienneschmitt Jan 27, 2017
14883c8
Merge branch 'settings' of github.com:etienneschmitt/SCHNApps into se…
etienneschmitt Jan 27, 2017
8340d41
Fixed update and creation of AlignedVec3 VBOs.
etienneschmitt Jan 27, 2017
8a5efe4
Merge pull request #38 from etienneschmitt/settings
pierrekraemer Jan 27, 2017
643f47f
try to read existing settings in plugins
pierrekraemer Feb 14, 2017
4c84a47
add surface_modelisation plugin with decimation
pierrekraemer Feb 14, 2017
fde0adc
specify nb vertices to keep in decimation dialog
pierrekraemer Feb 14, 2017
6dbafe5
inverse control : UI calling plugin functionnality instead of plugin …
pierrekraemer Feb 15, 2017
6d51735
same inversion in SDP plugin
pierrekraemer Feb 15, 2017
e1821c3
surface_modelisation: add subdivision
pierrekraemer Feb 15, 2017
c2f68d9
missing dialog closing
pierrekraemer Feb 17, 2017
ec204b2
shallow water simulation plugin v1
pierrekraemer Feb 17, 2017
6e3499d
save settings to the right file on destruct
pierrekraemer Feb 28, 2017
49e794a
first functional version
pierrekraemer Feb 28, 2017
7862c08
display water height
pierrekraemer Mar 1, 2017
de3b9b1
use some alternative type names + update min/max in render scalar whe…
pierrekraemer Mar 2, 2017
5958cd5
start using real type instead of QVariant for settings
pierrekraemer Mar 2, 2017
4ca9fc5
use real type instead of QVariant for plugin settings
pierrekraemer Mar 6, 2017
ebf6353
Merge pull request #39 from pierrekraemer/develop
pierrekraemer Mar 6, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 16 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ project(SCHNApps
LANGUAGES CXX
)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
set(CGAL_DONT_OVERRIDE_CMAKE_FLAGS TRUE CACHE BOOL "preserve cmake flags" FORCE)

#### Default build type
if(NOT CMAKE_BUILD_TYPE)
if(NOT CMAKE_BUILD_TYPE AND NOT MSVC)
set(CMAKE_BUILD_TYPE "Release")
endif()

#### Numerical precision
option(SCHNAPPS_DOUBLE_PRECISION "Use double precision." ON)

#### Aligned Vector3
option(SCHNAPPS_ALIGNED_VEC3 "Use Eigen's AlignedVector3 by default." OFF)

#### SCHNAPPS PATH / SCHNAPPS_SOURCE_DIR
set(SCHNAPPS_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
set(SCHNAPPS_SOURCE_DIR ${SCHNAPPS_PATH})
Expand All @@ -26,4 +35,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)

include(${CGOGN_PATH}/cmake/utilities.cmake)

if(MSVC)
add_flags(CMAKE_CXX_FLAGS "/bigobj")
endif()

add_subdirectory(${SCHNAPPS_SOURCE_DIR}/schnapps)
56 changes: 56 additions & 0 deletions cmake/Modules/CGAL_GeneratorSpecificSettings.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED )
set( CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED 1 )

message( STATUS "Targetting ${CMAKE_GENERATOR}")

if ( MSVC )
message( STATUS "Target build enviroment supports auto-linking" )
set(CGAL_AUTO_LINK_ENABLED TRUE)
endif()

if ( MSVC15 )
set(CGAL_TOOLSET "vc150")
message( STATUS "Using VC15 compiler." )
elseif ( MSVC14 )
set(CGAL_TOOLSET "vc140")
message( STATUS "Using VC14 compiler." )
elseif ( MSVC12 )
set(CGAL_TOOLSET "vc120")
message( STATUS "Using VC12 compiler." )
elseif ( MSVC11 )
set(CGAL_TOOLSET "vc110")
message( STATUS "Using VC11 compiler." )
elseif ( MSVC10 )
set(CGAL_TOOLSET "vc100")
message( STATUS "Using VC10 compiler." )
elseif ( MSVC90 )
set(CGAL_TOOLSET "vc90")
message( STATUS "Using VC90 compiler." )
elseif ( MSVC80 )
set(CGAL_TOOLSET "vc80")
message( STATUS "Using VC80 compiler." )
elseif ( MSVC71 )
set(CGAL_TOOLSET "vc71")
message( STATUS "Using VC71 compiler." )
else()
message( STATUS "Using ${CMAKE_CXX_COMPILER} compiler." )
endif()


# From james Bigler, in the cmake users list.
IF (APPLE)
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION})
message(STATUS "DARWIN_VERSION=${DARWIN_VERSION}")
if (DARWIN_VERSION GREATER 8)
message(STATUS "Mac Leopard detected")
set(CGAL_APPLE_LEOPARD 1)
endif()
endif()

if ( NOT "${CMAKE_CFG_INTDIR}" STREQUAL "." )
set(HAS_CFG_INTDIR TRUE CACHE INTERNAL "Generator uses intermediate configuration directory" )
message( STATUS "Generator uses intermediate configuration directory: ${CMAKE_CFG_INTDIR}" )
endif()

endif()
89 changes: 89 additions & 0 deletions cmake/Modules/FindCGAL.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#
# The following module is based on FindVTK.cmake
#

# - Find a CGAL installation or binary tree.
# The following variables are set if CGAL is found. If CGAL is not
# found, CGAL_FOUND is set to false.
#
# CGAL_FOUND - Set to true when CGAL is found.
# CGAL_USE_FILE - CMake file to use CGAL.
#

# Construct consitent error messages for use below.
set(CGAL_DIR_DESCRIPTION "directory containing CGALConfig.cmake. This is either the binary directory where CGAL was configured or PREFIX/lib/CGAL for an installation.")
set(CGAL_DIR_MESSAGE "CGAL not found. Set the CGAL_DIR cmake variable or environment variable to the ${CGAL_DIR_DESCRIPTION}")

if ( NOT CGAL_DIR )

# Get the system search path as a list.
if(UNIX)
string(REGEX MATCHALL "[^:]+" CGAL_DIR_SEARCH1 "$ENV{PATH}")
else()
string(REGEX REPLACE "\\\\" "/" CGAL_DIR_SEARCH1 "$ENV{PATH}")
endif()

string(REGEX REPLACE "/;" ";" CGAL_DIR_SEARCH2 "${CGAL_DIR_SEARCH1}")

# Construct a set of paths relative to the system search path.
set(CGAL_DIR_SEARCH "")

foreach(dir ${CGAL_DIR_SEARCH2})

set(CGAL_DIR_SEARCH ${CGAL_DIR_SEARCH} ${dir}/../lib/CGAL )

endforeach()


#
# Look for an installation or build tree.
#
find_path(CGAL_DIR CGALConfig.cmake

# Look for an environment variable CGAL_DIR.
$ENV{CGAL_DIR}

# Look in places relative to the system executable search path.
${CGAL_DIR_SEARCH}

# Look in standard UNIX install locations.
/usr/local/lib/CGAL
/usr/lib/CGAL

# Read from the CMakeSetup registry entries. It is likely that
# CGAL will have been recently built.
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild1]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild2]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild3]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild4]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild5]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild6]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild7]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild8]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild9]
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild10]

# Help the user find it if we cannot.
DOC "The ${CGAL_DIR_DESCRIPTION}"
)

endif()

if ( CGAL_DIR )

if ( EXISTS "${CGAL_DIR}/CGALConfig.cmake" )
include( "${CGAL_DIR}/CGALConfig.cmake" )
set( CGAL_FOUND TRUE )
endif()

endif()

if( NOT CGAL_FOUND)
if(CGAL_FIND_REQUIRED)
MESSAGE(FATAL_ERROR ${CGAL_DIR_MESSAGE})
else()
if(NOT CGAL_FIND_QUIETLY)
MESSAGE(STATUS ${CGAL_DIR_MESSAGE})
endif()
endif()
endif()
62 changes: 62 additions & 0 deletions cmake/Modules/FindGMP.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# - Try to find the GMP libraries
# This module defines:
# GMP_FOUND - system has GMP lib
# GMP_INCLUDE_DIR - the GMP include directory
# GMP_LIBRARIES_DIR - directory where the GMP libraries are located
# GMP_LIBRARIES - Link these to use GMP
# GMP_IN_CGAL_AUXILIARY - TRUE if the GMP found is the one distributed with CGAL in the auxiliary folder

# TODO: support MacOSX

include(FindPackageHandleStandardArgs)
include(CGAL_GeneratorSpecificSettings)

if(GMP_INCLUDE_DIR)
set(GMP_in_cache TRUE)
else()
set(GMP_in_cache FALSE)
endif()
if(NOT GMP_LIBRARIES)
set(GMP_in_cache FALSE)
endif()

# Is it already configured?
if (GMP_in_cache)

set(GMP_FOUND TRUE)

else()

find_path(GMP_INCLUDE_DIR
NAMES gmp.h
HINTS ENV GMP_INC_DIR
ENV GMP_DIR
${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/include
PATH_SUFFIXES include
DOC "The directory containing the GMP header files"
)

if ( GMP_INCLUDE_DIR STREQUAL "${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/include" )
cache_set( GMP_IN_CGAL_AUXILIARY TRUE )
endif()

find_library(GMP_LIBRARIES NAMES gmp libgmp-10
HINTS ENV GMP_LIB_DIR
ENV GMP_DIR
${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/lib
PATH_SUFFIXES lib
DOC "Path to the GMP library"
)

if ( GMP_LIBRARIES )
get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE )
endif()

# Attempt to load a user-defined configuration for GMP if couldn't be found
if ( NOT GMP_INCLUDE_DIR OR NOT GMP_LIBRARIES_DIR )
include( GMPConfig OPTIONAL )
endif()

find_package_handle_standard_args(GMP "DEFAULT_MSG" GMP_LIBRARIES GMP_INCLUDE_DIR)

endif()
62 changes: 62 additions & 0 deletions cmake/Modules/FindMPFR.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Try to find the MPFR libraries
# MPFR_FOUND - system has MPFR lib
# MPFR_INCLUDE_DIR - the MPFR include directory
# MPFR_LIBRARIES_DIR - Directory where the MPFR libraries are located
# MPFR_LIBRARIES - the MPFR libraries
# MPFR_IN_CGAL_AUXILIARY - TRUE if the MPFR found is the one distributed with CGAL in the auxiliary folder

# TODO: support MacOSX

include(FindPackageHandleStandardArgs)
include(CGAL_GeneratorSpecificSettings)

if(MPFR_INCLUDE_DIR)
set(MPFR_in_cache TRUE)
else()
set(MPFR_in_cache FALSE)
endif()
if(NOT MPFR_LIBRARIES)
set(MPFR_in_cache FALSE)
endif()

# Is it already configured?
if (MPFR_in_cache)

set(MPFR_FOUND TRUE)

else()

find_path(MPFR_INCLUDE_DIR
NAMES mpfr.h
HINTS ENV MPFR_INC_DIR
ENV MPFR_DIR
${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/include
PATH_SUFFIXES include
DOC "The directory containing the MPFR header files"
)

if ( MPFR_INCLUDE_DIR STREQUAL "${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/include" )
cache_set( MPFR_IN_CGAL_AUXILIARY TRUE )
endif()

find_library(MPFR_LIBRARIES NAMES mpfr libmpfr-4 libmpfr-1
HINTS ENV MPFR_LIB_DIR
ENV MPFR_DIR
${CGAL_INSTALLATION_PACKAGE_DIR}/auxiliary/gmp/lib
PATH_SUFFIXES lib
DOC "Path to the MPFR library"
)

if ( MPFR_LIBRARIES )
get_filename_component(MPFR_LIBRARIES_DIR ${MPFR_LIBRARIES} PATH CACHE )
endif()

# Attempt to load a user-defined configuration for MPFR if couldn't be found
if ( NOT MPFR_INCLUDE_DIR OR NOT MPFR_LIBRARIES_DIR )
include( MPFRConfig OPTIONAL )
endif()

find_package_handle_standard_args(MPFR "DEFAULT_MSG" MPFR_LIBRARIES MPFR_INCLUDE_DIR)

endif()

Loading