Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
3e67b53f
Commit
3e67b53f
authored
Nov 19, 2012
by
Thery Sylvain
Browse files
Options
Browse Files
Download
Plain Diff
Merge cgogn:CGoGN
parents
77c64075
f49ba1e9
Changes
275
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
275 changed files
with
26548 additions
and
2797 deletions
+26548
-2797
Apps/Tuto/tuto_oper3.cpp
Apps/Tuto/tuto_oper3.cpp
+4
-0
Apps/deprecated/tp_master.cpp
Apps/deprecated/tp_master.cpp
+1
-1
Apps/deprecated/tutoriel.cpp
Apps/deprecated/tutoriel.cpp
+9
-0
SCHNApps/CMakeLists.txt
SCHNApps/CMakeLists.txt
+41
-0
SCHNApps/Debug/CMakeLists.txt
SCHNApps/Debug/CMakeLists.txt
+77
-0
SCHNApps/Plugins/CMakeLists.txt
SCHNApps/Plugins/CMakeLists.txt
+3
-0
SCHNApps/Plugins/firstPlugin/CMakeLists.txt
SCHNApps/Plugins/firstPlugin/CMakeLists.txt
+67
-0
SCHNApps/Plugins/firstPlugin/include/firstPlugin.h
SCHNApps/Plugins/firstPlugin/include/firstPlugin.h
+120
-0
SCHNApps/Plugins/firstPlugin/src/firstPlugin.cpp
SCHNApps/Plugins/firstPlugin/src/firstPlugin.cpp
+74
-0
SCHNApps/Plugins/import/include/importMap.h
SCHNApps/Plugins/import/include/importMap.h
+70
-0
SCHNApps/Plugins/import/src/importMap.cpp
SCHNApps/Plugins/import/src/importMap.cpp
+94
-0
SCHNApps/Plugins/visuSurface/include/simpleVisu.h
SCHNApps/Plugins/visuSurface/include/simpleVisu.h
+156
-0
SCHNApps/Plugins/visuSurface/src/simpleVisu.cpp
SCHNApps/Plugins/visuSurface/src/simpleVisu.cpp
+443
-0
SCHNApps/Release/CMakeLists.txt
SCHNApps/Release/CMakeLists.txt
+79
-0
SCHNApps/build/.gitignore
SCHNApps/build/.gitignore
+0
-0
SCHNApps/doc/Doxyfile.in
SCHNApps/doc/Doxyfile.in
+1716
-0
SCHNApps/doc/LaTeX/images/callBacks.png
SCHNApps/doc/LaTeX/images/callBacks.png
+0
-0
SCHNApps/doc/LaTeX/images/callBacks.svg
SCHNApps/doc/LaTeX/images/callBacks.svg
+507
-0
SCHNApps/doc/LaTeX/images/plugins.png
SCHNApps/doc/LaTeX/images/plugins.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot1.png
SCHNApps/doc/LaTeX/images/screenshot1.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot10.png
SCHNApps/doc/LaTeX/images/screenshot10.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot11.png
SCHNApps/doc/LaTeX/images/screenshot11.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot12.png
SCHNApps/doc/LaTeX/images/screenshot12.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot13.png
SCHNApps/doc/LaTeX/images/screenshot13.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot14.png
SCHNApps/doc/LaTeX/images/screenshot14.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot15.png
SCHNApps/doc/LaTeX/images/screenshot15.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot16.png
SCHNApps/doc/LaTeX/images/screenshot16.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot17.png
SCHNApps/doc/LaTeX/images/screenshot17.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot18.png
SCHNApps/doc/LaTeX/images/screenshot18.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot19.png
SCHNApps/doc/LaTeX/images/screenshot19.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot2.png
SCHNApps/doc/LaTeX/images/screenshot2.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot20.png
SCHNApps/doc/LaTeX/images/screenshot20.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot21.png
SCHNApps/doc/LaTeX/images/screenshot21.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot22.png
SCHNApps/doc/LaTeX/images/screenshot22.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot23.png
SCHNApps/doc/LaTeX/images/screenshot23.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot24.png
SCHNApps/doc/LaTeX/images/screenshot24.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot25.png
SCHNApps/doc/LaTeX/images/screenshot25.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot26.png
SCHNApps/doc/LaTeX/images/screenshot26.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot28.png
SCHNApps/doc/LaTeX/images/screenshot28.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot3.png
SCHNApps/doc/LaTeX/images/screenshot3.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot4.png
SCHNApps/doc/LaTeX/images/screenshot4.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot5.png
SCHNApps/doc/LaTeX/images/screenshot5.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot6.png
SCHNApps/doc/LaTeX/images/screenshot6.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot7.png
SCHNApps/doc/LaTeX/images/screenshot7.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot8.png
SCHNApps/doc/LaTeX/images/screenshot8.png
+0
-0
SCHNApps/doc/LaTeX/images/screenshot9.png
SCHNApps/doc/LaTeX/images/screenshot9.png
+0
-0
SCHNApps/doc/LaTeX/images/systemMap1.png
SCHNApps/doc/LaTeX/images/systemMap1.png
+0
-0
SCHNApps/doc/LaTeX/images/systemMap2.png
SCHNApps/doc/LaTeX/images/systemMap2.png
+0
-0
SCHNApps/doc/LaTeX/overview.aux
SCHNApps/doc/LaTeX/overview.aux
+119
-0
SCHNApps/doc/LaTeX/overview.fdb_latexmk
SCHNApps/doc/LaTeX/overview.fdb_latexmk
+96
-0
SCHNApps/doc/LaTeX/overview.log
SCHNApps/doc/LaTeX/overview.log
+959
-0
SCHNApps/doc/LaTeX/overview.out
SCHNApps/doc/LaTeX/overview.out
+26
-0
SCHNApps/doc/LaTeX/overview.pdf
SCHNApps/doc/LaTeX/overview.pdf
+0
-0
SCHNApps/doc/LaTeX/overview.synctex.gz
SCHNApps/doc/LaTeX/overview.synctex.gz
+0
-0
SCHNApps/doc/LaTeX/overview.tex
SCHNApps/doc/LaTeX/overview.tex
+1489
-0
SCHNApps/doc/LaTeX/overview.toc
SCHNApps/doc/LaTeX/overview.toc
+56
-0
SCHNApps/doc/Video/cameraQuickPathDemo.webm
SCHNApps/doc/Video/cameraQuickPathDemo.webm
+0
-0
SCHNApps/forms/cameraOptionDialog.ui
SCHNApps/forms/cameraOptionDialog.ui
+174
-0
SCHNApps/forms/cameraSceneDialog.ui
SCHNApps/forms/cameraSceneDialog.ui
+136
-0
SCHNApps/forms/cameraViewDialog.ui
SCHNApps/forms/cameraViewDialog.ui
+137
-0
SCHNApps/forms/globalCameraDialog.ui
SCHNApps/forms/globalCameraDialog.ui
+99
-0
SCHNApps/forms/infoDialog.ui
SCHNApps/forms/infoDialog.ui
+67
-0
SCHNApps/forms/linkViewDialog.ui
SCHNApps/forms/linkViewDialog.ui
+94
-0
SCHNApps/forms/mapPluginDialog.ui
SCHNApps/forms/mapPluginDialog.ui
+111
-0
SCHNApps/forms/newSceneDialog.ui
SCHNApps/forms/newSceneDialog.ui
+134
-0
SCHNApps/forms/pluginDialog.ui
SCHNApps/forms/pluginDialog.ui
+164
-0
SCHNApps/forms/questionSessionDialog.ui
SCHNApps/forms/questionSessionDialog.ui
+77
-0
SCHNApps/forms/window.ui
SCHNApps/forms/window.ui
+157
-0
SCHNApps/include/dialogs/cameraOptionDialog.h
SCHNApps/include/dialogs/cameraOptionDialog.h
+26
-0
SCHNApps/include/dialogs/cameraSceneDialog.h
SCHNApps/include/dialogs/cameraSceneDialog.h
+51
-0
SCHNApps/include/dialogs/cameraViewDialog.h
SCHNApps/include/dialogs/cameraViewDialog.h
+31
-0
SCHNApps/include/dialogs/globalCameraDialog.h
SCHNApps/include/dialogs/globalCameraDialog.h
+93
-0
SCHNApps/include/dialogs/linkViewDialog.h
SCHNApps/include/dialogs/linkViewDialog.h
+32
-0
SCHNApps/include/dialogs/mapPluginDialog.h
SCHNApps/include/dialogs/mapPluginDialog.h
+32
-0
SCHNApps/include/dialogs/newSceneDialog.h
SCHNApps/include/dialogs/newSceneDialog.h
+37
-0
SCHNApps/include/dialogs/pluginDialog.h
SCHNApps/include/dialogs/pluginDialog.h
+56
-0
SCHNApps/include/dialogs/sceneSelector.h
SCHNApps/include/dialogs/sceneSelector.h
+124
-0
SCHNApps/include/interface/splitArea.h
SCHNApps/include/interface/splitArea.h
+37
-0
SCHNApps/include/interface/stateHandler.h
SCHNApps/include/interface/stateHandler.h
+9
-0
SCHNApps/include/interface/system.h
SCHNApps/include/interface/system.h
+107
-0
SCHNApps/include/interface/viewButtonArea.h
SCHNApps/include/interface/viewButtonArea.h
+72
-0
SCHNApps/include/interface/window.h
SCHNApps/include/interface/window.h
+405
-0
SCHNApps/include/plugins/plugin.h
SCHNApps/include/plugins/plugin.h
+111
-0
SCHNApps/include/plugins/simplePlugin.h
SCHNApps/include/plugins/simplePlugin.h
+132
-0
SCHNApps/include/plugins/visualPlugin.h
SCHNApps/include/plugins/visualPlugin.h
+157
-0
SCHNApps/include/types.h
SCHNApps/include/types.h
+47
-0
SCHNApps/include/visualization/camera.h
SCHNApps/include/visualization/camera.h
+65
-0
SCHNApps/include/visualization/context.h
SCHNApps/include/visualization/context.h
+16
-0
SCHNApps/include/visualization/mapHandler.h
SCHNApps/include/visualization/mapHandler.h
+39
-0
SCHNApps/include/visualization/renderContainer.h
SCHNApps/include/visualization/renderContainer.h
+72
-0
SCHNApps/include/visualization/scene.h
SCHNApps/include/visualization/scene.h
+100
-0
SCHNApps/include/visualization/vboHandler.h
SCHNApps/include/visualization/vboHandler.h
+33
-0
SCHNApps/include/visualization/view.h
SCHNApps/include/visualization/view.h
+136
-0
SCHNApps/resources/cgogn/ESA_logo.svg
SCHNApps/resources/cgogn/ESA_logo.svg
+16
-0
SCHNApps/resources/cgogn/cgogn.svg
SCHNApps/resources/cgogn/cgogn.svg
+696
-0
SCHNApps/resources/cgogn/cgogn2.png
SCHNApps/resources/cgogn/cgogn2.png
+0
-0
SCHNApps/resources/cgogn/cgogn2.svg
SCHNApps/resources/cgogn/cgogn2.svg
+771
-0
SCHNApps/resources/cgogn/icube.png
SCHNApps/resources/cgogn/icube.png
+0
-0
SCHNApps/resources/cgogn/igg.png
SCHNApps/resources/cgogn/igg.png
+0
-0
SCHNApps/resources/cgogn/splash.png
SCHNApps/resources/cgogn/splash.png
+0
-0
SCHNApps/resources/cgogn/uds.svg
SCHNApps/resources/cgogn/uds.svg
+30
-0
SCHNApps/resources/icons/add_view.png
SCHNApps/resources/icons/add_view.png
+0
-0
SCHNApps/resources/icons/add_view.svg
SCHNApps/resources/icons/add_view.svg
+270
-0
SCHNApps/resources/icons/broken_link.png
SCHNApps/resources/icons/broken_link.png
+0
-0
SCHNApps/resources/icons/broken_link.svg
SCHNApps/resources/icons/broken_link.svg
+108
-0
SCHNApps/resources/icons/camera.png
SCHNApps/resources/icons/camera.png
+0
-0
SCHNApps/resources/icons/camera.svg
SCHNApps/resources/icons/camera.svg
+86
-0
SCHNApps/resources/icons/camera_b.png
SCHNApps/resources/icons/camera_b.png
+0
-0
SCHNApps/resources/icons/camera_b.svg
SCHNApps/resources/icons/camera_b.svg
+336
-0
SCHNApps/resources/icons/check.png
SCHNApps/resources/icons/check.png
+0
-0
SCHNApps/resources/icons/check.svg
SCHNApps/resources/icons/check.svg
+104
-0
SCHNApps/resources/icons/close.png
SCHNApps/resources/icons/close.png
+0
-0
SCHNApps/resources/icons/close.svg
SCHNApps/resources/icons/close.svg
+86
-0
SCHNApps/resources/icons/give.png
SCHNApps/resources/icons/give.png
+0
-0
SCHNApps/resources/icons/give.svg
SCHNApps/resources/icons/give.svg
+109
-0
SCHNApps/resources/icons/link.png
SCHNApps/resources/icons/link.png
+0
-0
SCHNApps/resources/icons/link.svg
SCHNApps/resources/icons/link.svg
+97
-0
SCHNApps/resources/icons/map_plugin.png
SCHNApps/resources/icons/map_plugin.png
+0
-0
SCHNApps/resources/icons/map_plugin.svg
SCHNApps/resources/icons/map_plugin.svg
+327
-0
SCHNApps/resources/icons/plugins.png
SCHNApps/resources/icons/plugins.png
+0
-0
SCHNApps/resources/icons/plugins.svg
SCHNApps/resources/icons/plugins.svg
+301
-0
SCHNApps/resources/icons/separate_camera.png
SCHNApps/resources/icons/separate_camera.png
+0
-0
SCHNApps/resources/icons/separate_camera.svg
SCHNApps/resources/icons/separate_camera.svg
+86
-0
SCHNApps/resources/icons/share.png
SCHNApps/resources/icons/share.png
+0
-0
SCHNApps/resources/icons/share.svg
SCHNApps/resources/icons/share.svg
+113
-0
SCHNApps/resources/resources.qrc
SCHNApps/resources/resources.qrc
+20
-0
SCHNApps/settings/plugin_path.xml
SCHNApps/settings/plugin_path.xml
+11
-0
SCHNApps/settings/state_save.xml
SCHNApps/settings/state_save.xml
+9
-0
SCHNApps/src/dialogs/cameraOptionDialog.cpp
SCHNApps/src/dialogs/cameraOptionDialog.cpp
+63
-0
SCHNApps/src/dialogs/cameraSceneDialog.cpp
SCHNApps/src/dialogs/cameraSceneDialog.cpp
+243
-0
SCHNApps/src/dialogs/cameraViewDialog.cpp
SCHNApps/src/dialogs/cameraViewDialog.cpp
+99
-0
SCHNApps/src/dialogs/globalCameraDialog.cpp
SCHNApps/src/dialogs/globalCameraDialog.cpp
+333
-0
SCHNApps/src/dialogs/linkViewDialog.cpp
SCHNApps/src/dialogs/linkViewDialog.cpp
+202
-0
SCHNApps/src/dialogs/mapPluginDialog.cpp
SCHNApps/src/dialogs/mapPluginDialog.cpp
+120
-0
SCHNApps/src/dialogs/newSceneDialog.cpp
SCHNApps/src/dialogs/newSceneDialog.cpp
+234
-0
SCHNApps/src/dialogs/pluginDialog.cpp
SCHNApps/src/dialogs/pluginDialog.cpp
+635
-0
SCHNApps/src/dialogs/sceneSelector.cpp
SCHNApps/src/dialogs/sceneSelector.cpp
+511
-0
SCHNApps/src/interface/splitArea.cpp
SCHNApps/src/interface/splitArea.cpp
+176
-0
SCHNApps/src/interface/stateHandler.cpp
SCHNApps/src/interface/stateHandler.cpp
+770
-0
SCHNApps/src/interface/system.cpp
SCHNApps/src/interface/system.cpp
+461
-0
SCHNApps/src/interface/viewButtonArea.cpp
SCHNApps/src/interface/viewButtonArea.cpp
+121
-0
SCHNApps/src/interface/window.cpp
SCHNApps/src/interface/window.cpp
+712
-0
SCHNApps/src/main.cpp
SCHNApps/src/main.cpp
+27
-0
SCHNApps/src/plugins/simplePlugin.cpp
SCHNApps/src/plugins/simplePlugin.cpp
+163
-0
SCHNApps/src/plugins/visualPlugin.cpp
SCHNApps/src/plugins/visualPlugin.cpp
+417
-0
SCHNApps/src/visualization/camera.cpp
SCHNApps/src/visualization/camera.cpp
+112
-0
SCHNApps/src/visualization/context.cpp
SCHNApps/src/visualization/context.cpp
+9
-0
SCHNApps/src/visualization/mapHandler.cpp
SCHNApps/src/visualization/mapHandler.cpp
+95
-0
SCHNApps/src/visualization/renderContainer.cpp
SCHNApps/src/visualization/renderContainer.cpp
+212
-0
SCHNApps/src/visualization/scene.cpp
SCHNApps/src/visualization/scene.cpp
+418
-0
SCHNApps/src/visualization/vboHandler.cpp
SCHNApps/src/visualization/vboHandler.cpp
+30
-0
SCHNApps/src/visualization/view.cpp
SCHNApps/src/visualization/view.cpp
+572
-0
ThirdParty/CMakeLists.txt
ThirdParty/CMakeLists.txt
+1
-0
apps_cmake.txt
apps_cmake.txt
+2
-13
cmake_modules/FindQGLViewer.cmake
cmake_modules/FindQGLViewer.cmake
+61
-0
include/Algo/BooleanOperator/mergeVertices.h
include/Algo/BooleanOperator/mergeVertices.h
+3
-0
include/Algo/BooleanOperator/mergeVertices.hpp
include/Algo/BooleanOperator/mergeVertices.hpp
+33
-18
include/Algo/Decimation/decimation.h
include/Algo/Decimation/decimation.h
+1
-1
include/Algo/Decimation/edgeSelector.h
include/Algo/Decimation/edgeSelector.h
+5
-5
include/Algo/Decimation/edgeSelector.hpp
include/Algo/Decimation/edgeSelector.hpp
+77
-20
include/Algo/Decimation/geometryApproximator.hpp
include/Algo/Decimation/geometryApproximator.hpp
+6
-6
include/Algo/Decimation/halfEdgeSelector.hpp
include/Algo/Decimation/halfEdgeSelector.hpp
+0
-3
include/Algo/Decimation/lightfieldApproximator.hpp
include/Algo/Decimation/lightfieldApproximator.hpp
+9
-6
include/Algo/Decimation/simplifMesh.hpp
include/Algo/Decimation/simplifMesh.hpp
+2
-2
include/Algo/DecimationVolumes/approximator.h
include/Algo/DecimationVolumes/approximator.h
+11
-37
include/Algo/DecimationVolumes/decimator.hpp
include/Algo/DecimationVolumes/decimator.hpp
+25
-26
include/Algo/DecimationVolumes/edgeSelector.h
include/Algo/DecimationVolumes/edgeSelector.h
+131
-46
include/Algo/DecimationVolumes/edgeSelector.hpp
include/Algo/DecimationVolumes/edgeSelector.hpp
+133
-118
include/Algo/DecimationVolumes/geometryApproximator.h
include/Algo/DecimationVolumes/geometryApproximator.h
+5
-10
include/Algo/DecimationVolumes/geometryApproximator.hpp
include/Algo/DecimationVolumes/geometryApproximator.hpp
+10
-61
include/Algo/DecimationVolumes/operator.hpp
include/Algo/DecimationVolumes/operator.hpp
+6
-6
include/Algo/DecimationVolumes/selector.h
include/Algo/DecimationVolumes/selector.h
+9
-56
include/Algo/Geometry/curvature.h
include/Algo/Geometry/curvature.h
+3
-0
include/Algo/Geometry/curvature.hpp
include/Algo/Geometry/curvature.hpp
+32
-34
include/Algo/ImplicitHierarchicalMesh/ihm.hpp
include/Algo/ImplicitHierarchicalMesh/ihm.hpp
+3
-3
include/Algo/ImplicitHierarchicalMesh/ihm3.hpp
include/Algo/ImplicitHierarchicalMesh/ihm3.hpp
+1
-1
include/Algo/ImplicitHierarchicalMesh/subdivision3.hpp
include/Algo/ImplicitHierarchicalMesh/subdivision3.hpp
+2
-2
include/Algo/Import/import2tablesSurface.hpp
include/Algo/Import/import2tablesSurface.hpp
+25
-14
include/Algo/Import/importMRDAT.h
include/Algo/Import/importMRDAT.h
+2
-2
include/Algo/Import/importMesh.hpp
include/Algo/Import/importMesh.hpp
+3
-3
include/Algo/Import/importMoka.hpp
include/Algo/Import/importMoka.hpp
+1
-1
include/Algo/Import/importSvg.hpp
include/Algo/Import/importSvg.hpp
+21
-25
include/Algo/Modelisation/extrusion.hpp
include/Algo/Modelisation/extrusion.hpp
+1
-1
include/Algo/Modelisation/polyhedron.hpp
include/Algo/Modelisation/polyhedron.hpp
+18
-18
include/Algo/Modelisation/primitives3d.hpp
include/Algo/Modelisation/primitives3d.hpp
+1
-1
include/Algo/Modelisation/subdivision3.h
include/Algo/Modelisation/subdivision3.h
+4
-0
include/Algo/Modelisation/subdivision3.hpp
include/Algo/Modelisation/subdivision3.hpp
+87
-3
include/Algo/Modelisation/tetrahedralization.h
include/Algo/Modelisation/tetrahedralization.h
+76
-50
include/Algo/Modelisation/tetrahedralization.hpp
include/Algo/Modelisation/tetrahedralization.hpp
+380
-600
include/Algo/MovingObjects/particle_cell_2D.hpp
include/Algo/MovingObjects/particle_cell_2D.hpp
+2
-1
include/Algo/MovingObjects/particle_cell_2D_memo.h
include/Algo/MovingObjects/particle_cell_2D_memo.h
+9
-16
include/Algo/MovingObjects/particle_cell_2D_memo.hpp
include/Algo/MovingObjects/particle_cell_2D_memo.hpp
+43
-34
include/Algo/Multiresolution/Map2MR/Filters/Dual/catmullClark.h
...e/Algo/Multiresolution/Map2MR/Filters/Dual/catmullClark.h
+137
-0
include/Algo/Multiresolution/Map2MR/Filters/bertram.h
include/Algo/Multiresolution/Map2MR/Filters/bertram.h
+659
-0
include/Algo/Multiresolution/Map2MR/Filters/catmullClark.h
include/Algo/Multiresolution/Map2MR/Filters/catmullClark.h
+455
-0
include/Algo/Multiresolution/Map2MR/Filters/lerp.h
include/Algo/Multiresolution/Map2MR/Filters/lerp.h
+0
-8
include/Algo/Multiresolution/Map2MR/Filters/sqrt2.h
include/Algo/Multiresolution/Map2MR/Filters/sqrt2.h
+97
-0
include/Algo/Multiresolution/Map2MR/Filters/sqrt3.h
include/Algo/Multiresolution/Map2MR/Filters/sqrt3.h
+337
-0
include/Algo/Multiresolution/Map2MR/Masks/lerp.h
include/Algo/Multiresolution/Map2MR/Masks/lerp.h
+2
-1
include/Algo/Multiresolution/Map2MR/Masks/sqrt3.h
include/Algo/Multiresolution/Map2MR/Masks/sqrt3.h
+168
-0
include/Algo/Multiresolution/Map2MR/lerpAttributes.h
include/Algo/Multiresolution/Map2MR/lerpAttributes.h
+245
-0
include/Algo/Multiresolution/Map2MR/map2MR_DualRegular.h
include/Algo/Multiresolution/Map2MR/map2MR_DualRegular.h
+92
-0
include/Algo/Multiresolution/Map2MR/map2MR_DualRegular.hpp
include/Algo/Multiresolution/Map2MR/map2MR_DualRegular.hpp
+154
-0
include/Algo/Multiresolution/Map2MR/map2MR_PM.h
include/Algo/Multiresolution/Map2MR/map2MR_PM.h
+22
-1
include/Algo/Multiresolution/Map2MR/map2MR_PM.hpp
include/Algo/Multiresolution/Map2MR/map2MR_PM.hpp
+41
-59
include/Algo/Multiresolution/Map2MR/map2MR_PrimalAdapt.h
include/Algo/Multiresolution/Map2MR/map2MR_PrimalAdapt.h
+10
-0
include/Algo/Multiresolution/Map2MR/map2MR_PrimalAdapt.hpp
include/Algo/Multiresolution/Map2MR/map2MR_PrimalAdapt.hpp
+93
-2
include/Algo/Multiresolution/Map2MR/map2MR_PrimalRegular.h
include/Algo/Multiresolution/Map2MR/map2MR_PrimalRegular.h
+9
-4
include/Algo/Multiresolution/Map2MR/map2MR_PrimalRegular.hpp
include/Algo/Multiresolution/Map2MR/map2MR_PrimalRegular.hpp
+84
-22
include/Algo/Multiresolution/Map3MR/Filters/bertram.h
include/Algo/Multiresolution/Map3MR/Filters/bertram.h
+519
-114
include/Algo/Multiresolution/Map3MR/Filters/lerp.h
include/Algo/Multiresolution/Map3MR/Filters/lerp.h
+34
-5
include/Algo/Multiresolution/Map3MR/Filters/mcCrackenJoy.h
include/Algo/Multiresolution/Map3MR/Filters/mcCrackenJoy.h
+349
-0
include/Algo/Multiresolution/Map3MR/Filters/schaefer.h
include/Algo/Multiresolution/Map3MR/Filters/schaefer.h
+0
-0
include/Algo/Multiresolution/Map3MR/Masks/lerp.h
include/Algo/Multiresolution/Map3MR/Masks/lerp.h
+159
-0
include/Algo/Multiresolution/Map3MR/Masks/mcCrackenJoy.h
include/Algo/Multiresolution/Map3MR/Masks/mcCrackenJoy.h
+184
-201
include/Algo/Multiresolution/Map3MR/Masks/schaefer.h
include/Algo/Multiresolution/Map3MR/Masks/schaefer.h
+318
-0
include/Algo/Multiresolution/Map3MR/Masks/schemes_Primal.h
include/Algo/Multiresolution/Map3MR/Masks/schemes_Primal.h
+0
-127
include/Algo/Multiresolution/Map3MR/map3MR_PrimalAdapt.h
include/Algo/Multiresolution/Map3MR/map3MR_PrimalAdapt.h
+49
-56
include/Algo/Multiresolution/Map3MR/map3MR_PrimalAdapt.hpp
include/Algo/Multiresolution/Map3MR/map3MR_PrimalAdapt.hpp
+240
-103
include/Algo/Multiresolution/Map3MR/map3MR_PrimalRegular.h
include/Algo/Multiresolution/Map3MR/map3MR_PrimalRegular.h
+2
-0
include/Algo/Multiresolution/Map3MR/map3MR_PrimalRegular.hpp
include/Algo/Multiresolution/Map3MR/map3MR_PrimalRegular.hpp
+96
-79
include/Algo/Multiresolution/filter.h
include/Algo/Multiresolution/filter.h
+56
-0
include/Algo/ProgressiveMesh/pmesh.h
include/Algo/ProgressiveMesh/pmesh.h
+1
-1
include/Algo/ProgressiveMesh/pmesh.hpp
include/Algo/ProgressiveMesh/pmesh.hpp
+13
-13
include/Algo/Selection/raySelector.hpp
include/Algo/Selection/raySelector.hpp
+0
-14
include/Algo/VolumetricProgressiveMesh/vpmesh.hpp
include/Algo/VolumetricProgressiveMesh/vpmesh.hpp
+12
-12
include/Geometry/orientation.h
include/Geometry/orientation.h
+64
-29
include/Geometry/orientation.hpp
include/Geometry/orientation.hpp
+68
-21
include/Geometry/vector_gen.h
include/Geometry/vector_gen.h
+1
-0
include/Topology/generic/attribmap.hpp
include/Topology/generic/attribmap.hpp
+1
-1
include/Topology/generic/attributeHandler.hpp
include/Topology/generic/attributeHandler.hpp
+2
-2
include/Topology/generic/cellmarker.h
include/Topology/generic/cellmarker.h
+54
-9
include/Topology/generic/dartmarker.h
include/Topology/generic/dartmarker.h
+0
-1
include/Topology/generic/ecell.hpp
include/Topology/generic/ecell.hpp
+1
-1
include/Topology/generic/functor.h
include/Topology/generic/functor.h
+45
-17
include/Topology/generic/genericFunc.h
include/Topology/generic/genericFunc.h
+1
-1
include/Topology/generic/genericFunc.hpp
include/Topology/generic/genericFunc.hpp
+1
-1
include/Topology/generic/genericmap.h
include/Topology/generic/genericmap.h
+35
-18
include/Topology/generic/genericmap.hpp
include/Topology/generic/genericmap.hpp
+62
-34
include/Topology/generic/traversor1.h
include/Topology/generic/traversor1.h
+1
-4
include/Topology/generic/traversor2.h
include/Topology/generic/traversor2.h
+1
-4
include/Topology/generic/traversor3.h
include/Topology/generic/traversor3.h
+2
-16
include/Topology/generic/traversor3.hpp
include/Topology/generic/traversor3.hpp
+29
-1
include/Topology/generic/traversorCell.h
include/Topology/generic/traversorCell.h
+0
-1
include/Topology/generic/traversorCell.hpp
include/Topology/generic/traversorCell.hpp
+18
-47
include/Topology/generic/traversorDoO.h
include/Topology/generic/traversorDoO.h
+1
-3
include/Topology/generic/traversorDoO.hpp
include/Topology/generic/traversorDoO.hpp
+0
-2
include/Topology/generic/traversorFactory.h
include/Topology/generic/traversorFactory.h
+1
-3
include/Topology/generic/traversorFactory.hpp
include/Topology/generic/traversorFactory.hpp
+67
-77
include/Topology/generic/traversorGen.h
include/Topology/generic/traversorGen.h
+11
-44
include/Topology/gmap/gmap0.h
include/Topology/gmap/gmap0.h
+1
-1
include/Topology/gmap/gmap0.hpp
include/Topology/gmap/gmap0.hpp
+1
-1
include/Topology/gmap/gmap1.h
include/Topology/gmap/gmap1.h
+1
-1
include/Topology/gmap/gmap1.hpp
include/Topology/gmap/gmap1.hpp
+1
-1
include/Topology/gmap/gmap2.h
include/Topology/gmap/gmap2.h
+1
-1
include/Topology/gmap/gmap2.hpp
include/Topology/gmap/gmap2.hpp
+1
-1
include/Topology/gmap/gmap3.h
include/Topology/gmap/gmap3.h
+1
-1
include/Topology/gmap/gmap3.hpp
include/Topology/gmap/gmap3.hpp
+1
-1
include/Topology/map/embeddedMap2.h
include/Topology/map/embeddedMap2.h
+2
-16
include/Topology/map/map1.h
include/Topology/map/map1.h
+1
-1
include/Topology/map/map1.hpp
include/Topology/map/map1.hpp
+1
-1
include/Topology/map/map2.h
include/Topology/map/map2.h
+9
-18
include/Topology/map/map2.hpp
include/Topology/map/map2.hpp
+1
-1
include/Topology/map/map3.h
include/Topology/map/map3.h
+1
-1
include/Topology/map/map3.hpp
include/Topology/map/map3.hpp
+1
-1
include/Utils/qem.h
include/Utils/qem.h
+2
-12
include/Utils/qem.hpp
include/Utils/qem.hpp
+43
-30
src/Algo/ImplicitHierarchicalMesh/ihm3.cpp
src/Algo/ImplicitHierarchicalMesh/ihm3.cpp
+2
-2
src/Topology/generic/genericmap.cpp
src/Topology/generic/genericmap.cpp
+27
-1
src/Topology/gmap/embeddedGMap2.cpp
src/Topology/gmap/embeddedGMap2.cpp
+41
-19
src/Topology/gmap/embeddedGMap3.cpp
src/Topology/gmap/embeddedGMap3.cpp
+23
-23
src/Topology/map/embeddedMap2.cpp
src/Topology/map/embeddedMap2.cpp
+67
-83
src/Topology/map/embeddedMap3.cpp
src/Topology/map/embeddedMap3.cpp
+57
-73
src/Topology/map/map2.cpp
src/Topology/map/map2.cpp
+20
-19
src/Topology/map/map3.cpp
src/Topology/map/map3.cpp
+8
-85
No files found.
Apps/Tuto/tuto_oper3.cpp
View file @
3e67b53f
...
...
@@ -330,6 +330,7 @@ void MyQT::cb_mousePress(int button, int x, int y)
{
if
(
d
!=
Dart
::
nil
())
m_selected
=
d
;
std
::
cout
<<
myMap
.
edgeCanCollapse
(
d
)
<<
std
::
endl
;
}
if
(
button
==
Qt
::
RightButton
)
{
...
...
@@ -650,11 +651,14 @@ void MyQT::importMesh(std::string& filename)
else
{
std
::
cerr
<<
"could not import "
<<
filename
<<
std
::
endl
;
return
;
}
m_selected
=
NIL
;
m_selected2
=
NIL
;
m_render_topo
->
updateData
<
PFP
>
(
myMap
,
position
,
m_ex1
,
m_ex2
,
m_ex3
,
nb
);
bb
=
Algo
::
Geometry
::
computeBoundingBox
<
PFP
>
(
myMap
,
position
)
;
setParamObject
(
bb
.
maxSize
(),
bb
.
center
().
data
())
;
m_shift
=
bb
.
maxSize
()
/
200.0
f
;
...
...
Apps/deprecated/tp_master.cpp
View file @
3e67b53f
...
...
@@ -92,7 +92,7 @@ private:
// Assigne un nouveau plongement au sommet. Les anciens plongements sont libérés.
void
newVertex
(
Dart
d
)
{
embed
NewCell
<
VERTEX
>
(
d
);
setOrbitEmbeddingOn
NewCell
<
VERTEX
>
(
d
);
}
public:
...
...
Apps/deprecated/tutoriel.cpp
View file @
3e67b53f
...
...
@@ -88,6 +88,15 @@ AttributeHandler<PFP::VEC3> normal;
class
QuadMesh
:
public
EmbeddedMap2
{
private:
// 3 brins de la carte
Dart
d_carre
;
Dart
d_tri
;
Dart
d_multiFaces
;
// Assigne un nouveau plongement au sommet. Les anciens plongements sont libérés.
void
newVertex
(
Dart
d
)
{
setOrbitEmbeddingOnNewCell
(
VERTEX
,
d
);
}
public:
void
createMesh
()
{
...
...
SCHNApps/CMakeLists.txt
0 → 100644
View file @
3e67b53f
cmake_minimum_required
(
VERSION 2.8
)
project
(
SCHNApps
)
SET
(
QT_USE_QTXML TRUE
)
SET
(
QT_USE_QTDESIGNER TRUE
)
SET
(
QT_USE_QTGUI TRUE
)
SET
(
QT_USE_QTPLUGIN TRUE
)
#========CGoGN========#
SET
(
CGoGN_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
/.. CACHE STRING
"CGoGN root dir"
)
INCLUDE
(
${
CGoGN_ROOT_DIR
}
/apps_cmake.txt
)
#=======QGLViewer=========#
find_package
(
QGLViewer REQUIRED
)
#======SCHNApps=======#
SET
(
SCHNApps_ROOT_DIR
${
CGoGN_ROOT_DIR
}
/SCHNApps
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
SCHNApps_ROOT_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
SCHNApps_ROOT_DIR
}
/plugins/lib
)
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/Release Release
)
IF
(
NOT WIN32
)
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/Debug Debug
)
ENDIF
(
NOT WIN32
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/settings/state_save.xml
${
EXECUTABLE_OUTPUT_PATH
}
/state_save.xml @ONLY
)
#======Documentation=======#
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/doc/Doxyfile.in
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile @ONLY
)
add_custom_target
(
doc
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/Doc
COMMENT
"Generating API documentation with Doxygen"
VERBATIM
)
endif
(
DOXYGEN_FOUND
)
SCHNApps/Debug/CMakeLists.txt
0 → 100644
View file @
3e67b53f
cmake_minimum_required
(
VERSION 2.8
)
SET
(
CMAKE_BUILD_TYPE Debug
)
IF
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ELSE
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Debug
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ENDIF
(
WIN32
)
INCLUDE_DIRECTORIES
(
${
CGoGN_ROOT_DIR
}
/include
${
COMMON_INCLUDES
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
${
QGLVIEWER_INCLUDE_DIR
}
${
SCHNApps_ROOT_DIR
}
/include
)
file
(
GLOB
SCHNApps_SRC_FILES
${
SCHNApps_ROOT_DIR
}
/src/main.cpp
${
SCHNApps_ROOT_DIR
}
/src/interface/*.cpp
${
SCHNApps_ROOT_DIR
}
/src/visualization/*.cpp
${
SCHNApps_ROOT_DIR
}
/src/dialogs/*.cpp
)
SET
(
SCHNApps_H_OBJECT_FILES
${
SCHNApps_ROOT_DIR
}
/include/interface/window.h
${
SCHNApps_ROOT_DIR
}
/include/interface/system.h
${
SCHNApps_ROOT_DIR
}
/include/interface/viewButtonArea.h
${
SCHNApps_ROOT_DIR
}
/include/interface/splitArea.h
${
SCHNApps_ROOT_DIR
}
/include/visualization/view.h
${
SCHNApps_ROOT_DIR
}
/include/visualization/scene.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/newSceneDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/sceneSelector.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/cameraViewDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/cameraOptionDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/cameraSceneDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/globalCameraDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/pluginDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/linkViewDialog.h
${
SCHNApps_ROOT_DIR
}
/include/dialogs/mapPluginDialog.h
)
file
(
GLOB
SCHNApps_FORM_FILES
${
SCHNApps_ROOT_DIR
}
/forms/*.ui
)
QT4_WRAP_UI
(
UI_H_FILES
${
SCHNApps_FORM_FILES
}
)
QT4_WRAP_CPP
(
MOC_FILES
${
SCHNApps_H_OBJECT_FILES
}
)
QT4_ADD_RESOURCES
(
RCC_FILES
${
SCHNApps_ROOT_DIR
}
/resources/resources.qrc
)
ADD_EXECUTABLE
(
SCHNAppsD
${
SCHNApps_SRC_FILES
}
${
UI_H_FILES
}
${
MOC_FILES
}
${
RCC_FILES
}
)
TARGET_LINK_LIBRARIES
(
SCHNAppsD
${
CGoGN_LIBS_D
}
${
COMMON_LIBS
}
${
QGLVIEWER_LIBRARIES
}
)
ADD_SUBDIRECTORY
(
${
SCHNApps_ROOT_DIR
}
/Plugins PluginsD
)
SCHNApps/Plugins/CMakeLists.txt
0 → 100644
View file @
3e67b53f
cmake_minimum_required
(
VERSION 2.8
)
ADD_SUBDIRECTORY
(
firstPlugin
)
SCHNApps/Plugins/firstPlugin/CMakeLists.txt
0 → 100644
View file @
3e67b53f
cmake_minimum_required
(
VERSION 2.8
)
INCLUDE_DIRECTORIES
(
${
SCHNApps_ROOT_DIR
}
/include
${
SCHNApps_ROOT_DIR
}
/Plugins/firstPlugin/include
${
CMAKE_CURRENT_BINARY_DIR
}
)
SET
(
FIRSTPLUGIN_PLUGIN_SRC
${
SCHNApps_ROOT_DIR
}
/src/plugins/visualPlugin.cpp
${
SCHNApps_ROOT_DIR
}
/Plugins/firstPlugin/src/firstPlugin.cpp
)
SET
(
FIRSTPLUGIN_PLUGIN_H
${
SCHNApps_ROOT_DIR
}
/include/plugins/visualPlugin.h
${
SCHNApps_ROOT_DIR
}
/Plugins/firstPlugin/include/firstPlugin.h
)
IF
(
${
CMAKE_BUILD_TYPE
}
STREQUAL Debug
)
IF
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ELSE
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Debug
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ENDIF
(
WIN32
)
QT4_WRAP_CPP
(
FIRSTPLUGIN_MOC
${
FIRSTPLUGIN_PLUGIN_H
}
)
ADD_LIBRARY
(
FirstPluginD SHARED
${
FIRSTPLUGIN_PLUGIN_SRC
}
${
FIRSTPLUGIN_MOC
}
)
TARGET_LINK_LIBRARIES
(
FirstPluginD
${
CGoGN_LIBS_D
}
${
COMMON_LIBS
}
${
QGLVIEWER_INCLUDE_LIBRARY
}
)
ADD_DEPENDENCIES
(
FirstPluginD SCHNAppsD
)
SET_TARGET_PROPERTIES
(
FirstPluginD PROPERTIES COMPILE_DEFINITIONS
"DEBUG"
)
ELSE
(
${
CMAKE_BUILD_TYPE
}
STREQUAL Debug
)
IF
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ELSE
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/Release
)
ENDIF
(
WIN32
)
QT4_WRAP_CPP
(
FIRSTPLUGIN_MOC
${
FIRSTPLUGIN_PLUGIN_H
}
)
ADD_LIBRARY
(
FirstPlugin SHARED
${
FIRSTPLUGIN_PLUGIN_SRC
}
${
FIRSTPLUGIN_MOC
}
)
TARGET_LINK_LIBRARIES
(
FirstPlugin
${
CGoGN_LIBS_R
}
${
COMMON_LIBS
}
${
QGLVIEWER_INCLUDE_LIBRARY
}
)
ADD_DEPENDENCIES
(
FirstPlugin SCHNApps
)
ENDIF
(
${
CMAKE_BUILD_TYPE
}
STREQUAL Debug
)
SCHNApps/Plugins/firstPlugin/include/firstPlugin.h
0 → 100644
View file @
3e67b53f
#ifndef FIRSTPLUGIN_H_
#define FIRSTPLUGIN_H_
#include "plugins/visualPlugin.h"
/**---CGoGN includes **/
#include "Utils/Qt/qtSimple.h"
#include "Utils/cgognStream.h"
#include "Topology/generic/parameters.h"
#ifdef USE_GMAP
#include "Topology/gmap/embeddedGMap2.h"
#else
#include "Topology/map/embeddedMap2.h"
#endif
#include "Algo/Render/GL2/topoRender.h"
/**---CGoGN includes **/
/**---Definitions specific to CGoGN ---*/
using
namespace
CGoGN
;
/**
* Struct that contains some informations about the types of the manipulated objects
* Mainly here to be used by the algorithms that are parameterized by it
*/
struct
PFP
:
public
PFP_STANDARD
{
// definition of the type of the map
#ifdef USE_GMAP
typedef
EmbeddedGMap2
MAP
;
#else
typedef
EmbeddedMap2
MAP
;
#endif
};
typedef
PFP
::
MAP
MAP
;
typedef
PFP
::
VEC3
VEC3
;
/**---Definitions specific to CGoGN ---*/
/**
* This class is a basic minimal plugin.
* All the methods in this class are overloaded methods.
* In order to create a valid plugin, all the method in this
* needs to be declared (they are actually overloaded methods
* from VisualPlugin), even if your plugin doesn't make any
* drawing.
*/
/**
* Our plugin must inherit from VisualPlugin,
* that is a class that itself is an implementation
* of the Plugin interface (virtual class). It contains
* many useful and essantial methods.
*/
class
FirstPlugin
:
public
VisualPlugin
{
/**
* Essential Qt macros.
*/
Q_OBJECT
Q_INTERFACES
(
Plugin
)
public:
FirstPlugin
()
{}
~
FirstPlugin
()
{}
/**
* The classical call back for the initGL method
* When a scene will be link to this plugin, it will call
* back this method with itself as a parameter.
*/
void
cb_initGL
(
Scene
*
scene
);
/**
* The drawing method that needs to be overloaded.
* Each time a scene (that is to say, at least one of the
* views that is contains) needs to be refresh, it calls back
* this method with itself as a parameter
*/
void
cb_redraw
(
Scene
*
scene
);
/**
* The plugin's activation method
* Each time the main application loads this plugin,
* it call this method. Writing this method is
* the occasion to initialize the plugin and check certain
* conditions.
* If this methods return 'false', the plugin load will be aborted.
*/
bool
activate
();
/**
* The plugin's disabling method
* Each time the main application will unload the plugin
* it will call this method.
*/
void
disable
();
protected:
/** Attributes that are specific to this plugin **/
MAP
myMap
;
// attribute for vertices positions
VertexAttribute
<
VEC3
>
position
;
// render (for the topo)
Algo
::
Render
::
GL2
::
TopoRender
*
m_render_topo
;
// just for more compact writing
inline
Dart
PHI1
(
Dart
d
)
{
return
myMap
.
phi1
(
d
);
}
inline
Dart
PHI_1
(
Dart
d
)
{
return
myMap
.
phi_1
(
d
);
}
inline
Dart
PHI2
(
Dart
d
)
{
return
myMap
.
phi2
(
d
);
}
template
<
int
X
>
Dart
PHI
(
Dart
d
)
{
return
myMap
.
phi
<
X
>
(
d
);
}
/** Attributes that are specific to this plugin **/
};
#endif
/* FIRSTPLUGIN_H_ */
SCHNApps/Plugins/firstPlugin/src/firstPlugin.cpp
0 → 100644
View file @
3e67b53f
#include "firstPlugin.h"
#include "Algo/Geometry/boundingbox.h"
void
FirstPlugin
::
cb_initGL
(
Scene
*
scene
)
{
if
(
scene
)
{
// we fit the first (possibly the only) view of the newly liked
// scene to the content of our map
// bounding box of scene
Geom
::
BoundingBox
<
PFP
::
VEC3
>
bb
=
Algo
::
Geometry
::
computeBoundingBox
<
PFP
>
(
myMap
,
position
);
scene
->
firstViewFitSphere
(
bb
.
center
()[
0
],
bb
.
center
()[
1
],
bb
.
center
()[
2
],
bb
.
maxSize
());
m_render_topo
=
new
Algo
::
Render
::
GL2
::
TopoRender
()
;
// render the topo of the map without boundary darts
SelectorDartNoBoundary
<
PFP
::
MAP
>
nb
(
myMap
);
m_render_topo
->
updateData
<
PFP
>
(
myMap
,
position
,
0.9
f
,
0.9
f
,
nb
);
}
}
void
FirstPlugin
::
cb_redraw
(
Scene
*
scene
)
{
m_render_topo
->
drawTopo
();
}
bool
FirstPlugin
::
activate
()
{
// creation of 2 new faces: 1 triangle and 1 square
Dart
d1
=
myMap
.
newFace
(
3
);
Dart
d2
=
myMap
.
newFace
(
4
);
// sew these faces along one of their edge
myMap
.
sewFaces
(
d1
,
d2
);
// creation of a new attribute on vertices of type 3D vector for position.
// a handler to this attribute is returned
position
=
myMap
.
addAttribute
<
VEC3
,
VERTEX
>
(
"position"
);
// affect position by moving in the map
position
[
d1
]
=
VEC3
(
0
,
0
,
0
);
position
[
PHI1
(
d1
)]
=
VEC3
(
2
,
0
,
0
);
position
[
PHI_1
(
d1
)]
=
VEC3
(
1
,
2
,
0
);
position
[
PHI
<
11
>
(
d2
)]
=
VEC3
(
0
,
-
2
,
0
);
position
[
PHI_1
(
d2
)]
=
VEC3
(
2
,
-
2
,
0
);
m_render_topo
=
NULL
;
return
true
;
}
void
FirstPlugin
::
disable
()
{
if
(
m_render_topo
)
{
delete
m_render_topo
;
}
}
/**
* If we want to compile this plugin in debug mode,
* we also define a DEBUG macro at the compilation
*/
#ifndef DEBUG
// essential Qt function:
// arguments are
// - the complied name of the plugin
// - the main class of our plugin (that extends VisualPlugin)
Q_EXPORT_PLUGIN2
(
FirstPlugin
,
FirstPlugin
)
#else
Q_EXPORT_PLUGIN2
(
FirstPluginD
,
FirstPlugin
)
#endif
SCHNApps/Plugins/import/include/importMap.h
0 → 100644
View file @
3e67b53f
#ifndef _IMPORTMAP_H_
#define _IMPORTMAP_H_
#include "visualPlugin.h"
#include "Topology/generic/parameters.h"
#include "Topology/map/embeddedMap2.h"
#include "Geometry/vector_gen.h"
#include "Geometry/matrix.h"
#include "Algo/Import/import.h"
#include "Algo/Export/export.h"
#include "Algo/Render/GL2/mapRender.h"
#include "Algo/Render/GL2/topoRender.h"
#include "Utils/Shaders/shaderPhong.h"
#include "Utils/Shaders/shaderFlat.h"
#include "Utils/Shaders/shaderSimpleColor.h"
#include "Utils/Shaders/shaderVectorPerVertex.h"
#include "Utils/pointSprite.h"
#include "Utils/text3d.h"
#include "Utils/vboRender.h"
#include "Utils/Qt/qtInputs.h"
#include "Algo/Geometry/boundingbox.h"
#include "Algo/Geometry/normal.h"
using
namespace
CGoGN
;
struct
PFP
:
public
PFP_STANDARD
{
// definition of the map
typedef
EmbeddedMap2
MAP
;
};
class
ImportMap
:
public
VisualPlugin
{
Q_OBJECT
Q_INTERFACES
(
Plugin
)
public:
ImportMap
();
~
ImportMap
();
void
cb_updateMatrix
(
View
*
view
){}
void
cb_redraw
(
Scene
*
scene
){}
void
cb_initGL
(
Scene
*
scene
){}
bool
activate
();
void
disable
();
protected:
bool
importMap
(
QString
filename
);