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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
3fa867c4
Commit
3fa867c4
authored
Aug 30, 2013
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCHNApps v3 !!
parent
5f970d8b
Changes
121
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
121 changed files
with
15250 additions
and
0 deletions
+15250
-0
SCHNApps/CMakeLists.txt
SCHNApps/CMakeLists.txt
+148
-0
SCHNApps/Debug/CMakeLists.txt
SCHNApps/Debug/CMakeLists.txt
+44
-0
SCHNApps/Plugins/CMakeLists.txt
SCHNApps/Plugins/CMakeLists.txt
+12
-0
SCHNApps/Plugins/plugins_cmake.txt
SCHNApps/Plugins/plugins_cmake.txt
+52
-0
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_deformation/forms/surfaceDeformation.ui
...s/Plugins/surface_deformation/forms/surfaceDeformation.ui
+88
-0
SCHNApps/Plugins/surface_deformation/include/surfaceDeformation.h
.../Plugins/surface_deformation/include/surfaceDeformation.h
+154
-0
SCHNApps/Plugins/surface_deformation/include/surfaceDeformationDockTab.h
...s/surface_deformation/include/surfaceDeformationDockTab.h
+45
-0
SCHNApps/Plugins/surface_deformation/src/surfaceDeformation.cpp
...ps/Plugins/surface_deformation/src/surfaceDeformation.cpp
+682
-0
SCHNApps/Plugins/surface_deformation/src/surfaceDeformationDockTab.cpp
...ins/surface_deformation/src/surfaceDeformationDockTab.cpp
+129
-0
SCHNApps/Plugins/surface_differentialProperties/CMakeLists.txt
...pps/Plugins/surface_differentialProperties/CMakeLists.txt
+33
-0
SCHNApps/Plugins/surface_differentialProperties/forms/computeCurvatureDialog.ui
...ce_differentialProperties/forms/computeCurvatureDialog.ui
+354
-0
SCHNApps/Plugins/surface_differentialProperties/forms/computeNormalDialog.ui
...rface_differentialProperties/forms/computeNormalDialog.ui
+143
-0
SCHNApps/Plugins/surface_differentialProperties/include/computeCurvatureDialog.h
...e_differentialProperties/include/computeCurvatureDialog.h
+37
-0
SCHNApps/Plugins/surface_differentialProperties/include/computeNormalDialog.h
...face_differentialProperties/include/computeNormalDialog.h
+37
-0
SCHNApps/Plugins/surface_differentialProperties/include/differentialProperties.h
...e_differentialProperties/include/differentialProperties.h
+114
-0
SCHNApps/Plugins/surface_differentialProperties/src/computeCurvatureDialog.cpp
...ace_differentialProperties/src/computeCurvatureDialog.cpp
+153
-0
SCHNApps/Plugins/surface_differentialProperties/src/computeNormalDialog.cpp
...urface_differentialProperties/src/computeNormalDialog.cpp
+109
-0
SCHNApps/Plugins/surface_differentialProperties/src/differentialProperties.cpp
...ace_differentialProperties/src/differentialProperties.cpp
+285
-0
SCHNApps/Plugins/surface_import/CMakeLists.txt
SCHNApps/Plugins/surface_import/CMakeLists.txt
+31
-0
SCHNApps/Plugins/surface_import/include/surface_import.h
SCHNApps/Plugins/surface_import/include/surface_import.h
+41
-0
SCHNApps/Plugins/surface_import/src/surface_import.cpp
SCHNApps/Plugins/surface_import/src/surface_import.cpp
+73
-0
SCHNApps/Plugins/surface_render/CMakeLists.txt
SCHNApps/Plugins/surface_render/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_render/forms/surface_render.ui
SCHNApps/Plugins/surface_render/forms/surface_render.ui
+141
-0
SCHNApps/Plugins/surface_render/include/surface_render.h
SCHNApps/Plugins/surface_render/include/surface_render.h
+112
-0
SCHNApps/Plugins/surface_render/include/surface_render_dockTab.h
...s/Plugins/surface_render/include/surface_render_dockTab.h
+53
-0
SCHNApps/Plugins/surface_render/src/surface_render.cpp
SCHNApps/Plugins/surface_render/src/surface_render.cpp
+311
-0
SCHNApps/Plugins/surface_render/src/surface_render_dockTab.cpp
...pps/Plugins/surface_render/src/surface_render_dockTab.cpp
+217
-0
SCHNApps/Plugins/surface_renderScalar/CMakeLists.txt
SCHNApps/Plugins/surface_renderScalar/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_renderScalar/forms/renderScalar.ui
SCHNApps/Plugins/surface_renderScalar/forms/renderScalar.ui
+119
-0
SCHNApps/Plugins/surface_renderScalar/include/renderScalar.h
SCHNApps/Plugins/surface_renderScalar/include/renderScalar.h
+106
-0
SCHNApps/Plugins/surface_renderScalar/include/renderScalarDockTab.h
...lugins/surface_renderScalar/include/renderScalarDockTab.h
+47
-0
SCHNApps/Plugins/surface_renderScalar/src/renderScalar.cpp
SCHNApps/Plugins/surface_renderScalar/src/renderScalar.cpp
+294
-0
SCHNApps/Plugins/surface_renderScalar/src/renderScalarDockTab.cpp
.../Plugins/surface_renderScalar/src/renderScalarDockTab.cpp
+160
-0
SCHNApps/Plugins/surface_renderTopo/CMakeLists.txt
SCHNApps/Plugins/surface_renderTopo/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_renderTopo/backup/renderTopoSurface.cpp
...s/Plugins/surface_renderTopo/backup/renderTopoSurface.cpp
+313
-0
SCHNApps/Plugins/surface_renderTopo/backup/renderTopoSurface.h
...pps/Plugins/surface_renderTopo/backup/renderTopoSurface.h
+97
-0
SCHNApps/Plugins/surface_renderTopo/backup/renderTopoSurface.ui
...ps/Plugins/surface_renderTopo/backup/renderTopoSurface.ui
+132
-0
SCHNApps/Plugins/surface_renderTopo/backup/renderTopoSurfaceDockTab.cpp
...ns/surface_renderTopo/backup/renderTopoSurfaceDockTab.cpp
+163
-0
SCHNApps/Plugins/surface_renderTopo/backup/renderTopoSurfaceDockTab.h
...gins/surface_renderTopo/backup/renderTopoSurfaceDockTab.h
+46
-0
SCHNApps/Plugins/surface_renderTopo/forms/renderTopoSurface.ui
...pps/Plugins/surface_renderTopo/forms/renderTopoSurface.ui
+134
-0
SCHNApps/Plugins/surface_renderTopo/include/renderTopoSurface.h
...ps/Plugins/surface_renderTopo/include/renderTopoSurface.h
+112
-0
SCHNApps/Plugins/surface_renderTopo/include/renderTopoSurfaceDockTab.h
...ins/surface_renderTopo/include/renderTopoSurfaceDockTab.h
+50
-0
SCHNApps/Plugins/surface_renderTopo/src/renderTopoSurface.cpp
...Apps/Plugins/surface_renderTopo/src/renderTopoSurface.cpp
+380
-0
SCHNApps/Plugins/surface_renderTopo/src/renderTopoSurfaceDockTab.cpp
...ugins/surface_renderTopo/src/renderTopoSurfaceDockTab.cpp
+208
-0
SCHNApps/Plugins/surface_renderVector/CMakeLists.txt
SCHNApps/Plugins/surface_renderVector/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_renderVector/forms/renderVector.ui
SCHNApps/Plugins/surface_renderVector/forms/renderVector.ui
+89
-0
SCHNApps/Plugins/surface_renderVector/include/renderVector.h
SCHNApps/Plugins/surface_renderVector/include/renderVector.h
+95
-0
SCHNApps/Plugins/surface_renderVector/include/renderVectorDockTab.h
...lugins/surface_renderVector/include/renderVectorDockTab.h
+46
-0
SCHNApps/Plugins/surface_renderVector/src/renderVector.cpp
SCHNApps/Plugins/surface_renderVector/src/renderVector.cpp
+236
-0
SCHNApps/Plugins/surface_renderVector/src/renderVectorDockTab.cpp
.../Plugins/surface_renderVector/src/renderVectorDockTab.cpp
+136
-0
SCHNApps/Plugins/surface_subdivision/CMakeLists.txt
SCHNApps/Plugins/surface_subdivision/CMakeLists.txt
+32
-0
SCHNApps/Plugins/surface_subdivision/forms/subdivideSurfaceDialog.ui
...ugins/surface_subdivision/forms/subdivideSurfaceDialog.ui
+95
-0
SCHNApps/Plugins/surface_subdivision/include/subdivideSurface.h
...ps/Plugins/surface_subdivision/include/subdivideSurface.h
+66
-0
SCHNApps/Plugins/surface_subdivision/include/subdivideSurfaceDialog.h
...gins/surface_subdivision/include/subdivideSurfaceDialog.h
+37
-0
SCHNApps/Plugins/surface_subdivision/src/subdivideSurface.cpp
...Apps/Plugins/surface_subdivision/src/subdivideSurface.cpp
+128
-0
SCHNApps/Plugins/surface_subdivision/src/subdivideSurfaceDialog.cpp
...lugins/surface_subdivision/src/subdivideSurfaceDialog.cpp
+97
-0
SCHNApps/Plugins/volume_import/CMakeLists.txt
SCHNApps/Plugins/volume_import/CMakeLists.txt
+31
-0
SCHNApps/Plugins/volume_import/include/importVolume.h
SCHNApps/Plugins/volume_import/include/importVolume.h
+51
-0
SCHNApps/Plugins/volume_import/src/importVolume.cpp
SCHNApps/Plugins/volume_import/src/importVolume.cpp
+75
-0
SCHNApps/Plugins/volume_renderExplod/CMakeLists.txt
SCHNApps/Plugins/volume_renderExplod/CMakeLists.txt
+32
-0
SCHNApps/Plugins/volume_renderExplod/forms/renderExplod.ui
SCHNApps/Plugins/volume_renderExplod/forms/renderExplod.ui
+147
-0
SCHNApps/Plugins/volume_renderExplod/include/renderExplod.h
SCHNApps/Plugins/volume_renderExplod/include/renderExplod.h
+110
-0
SCHNApps/Plugins/volume_renderExplod/include/renderExplodDockTab.h
...Plugins/volume_renderExplod/include/renderExplodDockTab.h
+47
-0
SCHNApps/Plugins/volume_renderExplod/src/renderExplod.cpp
SCHNApps/Plugins/volume_renderExplod/src/renderExplod.cpp
+383
-0
SCHNApps/Plugins/volume_renderExplod/src/renderExplodDockTab.cpp
...s/Plugins/volume_renderExplod/src/renderExplodDockTab.cpp
+177
-0
SCHNApps/Release/CMakeLists.txt
SCHNApps/Release/CMakeLists.txt
+44
-0
SCHNApps/bin/schnappsInit.py
SCHNApps/bin/schnappsInit.py
+15
-0
SCHNApps/build/.gitignore
SCHNApps/build/.gitignore
+0
-0
SCHNApps/forms/controlDock_CameraTabWidget.ui
SCHNApps/forms/controlDock_CameraTabWidget.ui
+115
-0
SCHNApps/forms/controlDock_MapTabWidget.ui
SCHNApps/forms/controlDock_MapTabWidget.ui
+287
-0
SCHNApps/forms/controlDock_PluginTabWidget.ui
SCHNApps/forms/controlDock_PluginTabWidget.ui
+108
-0
SCHNApps/forms/schnapps.ui
SCHNApps/forms/schnapps.ui
+103
-0
SCHNApps/include/camera.h
SCHNApps/include/camera.h
+70
-0
SCHNApps/include/controlDock_cameraTab.h
SCHNApps/include/controlDock_cameraTab.h
+56
-0
SCHNApps/include/controlDock_mapTab.h
SCHNApps/include/controlDock_mapTab.h
+63
-0
SCHNApps/include/controlDock_pluginTab.h
SCHNApps/include/controlDock_pluginTab.h
+51
-0
SCHNApps/include/mapHandler.h
SCHNApps/include/mapHandler.h
+195
-0
SCHNApps/include/mapHandler.hpp
SCHNApps/include/mapHandler.hpp
+126
-0
SCHNApps/include/plugin.h
SCHNApps/include/plugin.h
+58
-0
SCHNApps/include/plugin_interaction.h
SCHNApps/include/plugin_interaction.h
+68
-0
SCHNApps/include/plugin_processing.h
SCHNApps/include/plugin_processing.h
+27
-0
SCHNApps/include/schnapps.h
SCHNApps/include/schnapps.h
+183
-0
SCHNApps/include/texture.h
SCHNApps/include/texture.h
+27
-0
SCHNApps/include/types.h
SCHNApps/include/types.h
+56
-0
SCHNApps/include/view.h
SCHNApps/include/view.h
+123
-0
SCHNApps/include/viewButtonArea.h
SCHNApps/include/viewButtonArea.h
+84
-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/Hsplit.png
SCHNApps/resources/icons/Hsplit.png
+0
-0
SCHNApps/resources/icons/Hsplit.svg
SCHNApps/resources/icons/Hsplit.svg
+223
-0
SCHNApps/resources/icons/Vsplit.png
SCHNApps/resources/icons/Vsplit.png
+0
-0
SCHNApps/resources/icons/Vsplit.svg
SCHNApps/resources/icons/Vsplit.svg
+223
-0
SCHNApps/resources/icons/arrow_down.png
SCHNApps/resources/icons/arrow_down.png
+0
-0
SCHNApps/resources/icons/arrow_up.png
SCHNApps/resources/icons/arrow_up.png
+0
-0
SCHNApps/resources/icons/cameras.png
SCHNApps/resources/icons/cameras.png
+0
-0
SCHNApps/resources/icons/cameras.svg
SCHNApps/resources/icons/cameras.svg
+206
-0
SCHNApps/resources/icons/close.png
SCHNApps/resources/icons/close.png
+0
-0
SCHNApps/resources/icons/close.svg
SCHNApps/resources/icons/close.svg
+231
-0
SCHNApps/resources/icons/maps.png
SCHNApps/resources/icons/maps.png
+0
-0
SCHNApps/resources/icons/maps.svg
SCHNApps/resources/icons/maps.svg
+226
-0
SCHNApps/resources/icons/plugins.png
SCHNApps/resources/icons/plugins.png
+0
-0
SCHNApps/resources/icons/plugins.svg
SCHNApps/resources/icons/plugins.svg
+224
-0
SCHNApps/resources/resources.qrc
SCHNApps/resources/resources.qrc
+16
-0
SCHNApps/src/camera.cpp
SCHNApps/src/camera.cpp
+60
-0
SCHNApps/src/controlDock_cameraTab.cpp
SCHNApps/src/controlDock_cameraTab.cpp
+248
-0
SCHNApps/src/controlDock_mapTab.cpp
SCHNApps/src/controlDock_mapTab.cpp
+294
-0
SCHNApps/src/controlDock_pluginTab.cpp
SCHNApps/src/controlDock_pluginTab.cpp
+196
-0
SCHNApps/src/main.cpp
SCHNApps/src/main.cpp
+41
-0
SCHNApps/src/mapHandler.cpp
SCHNApps/src/mapHandler.cpp
+120
-0
SCHNApps/src/plugin_interaction.cpp
SCHNApps/src/plugin_interaction.cpp
+54
-0
SCHNApps/src/plugin_processing.cpp
SCHNApps/src/plugin_processing.cpp
+17
-0
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+710
-0
SCHNApps/src/view.cpp
SCHNApps/src/view.cpp
+443
-0
SCHNApps/src/viewButtonArea.cpp
SCHNApps/src/viewButtonArea.cpp
+117
-0
No files found.
SCHNApps/CMakeLists.txt
0 → 100644
View file @
3fa867c4
cmake_minimum_required
(
VERSION 2.8
)
project
(
SCHNApps_v2
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -fPIC"
)
SET
(
CGoGN_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
/.. CACHE STRING
"CGoGN root dir"
)
SET
(
CMAKE_MODULE_PATH
${
CGoGN_ROOT_DIR
}
/cmake_modules/
)
find_package
(
OpenGL REQUIRED
)
find_package
(
Boost COMPONENTS regex thread system REQUIRED
)
find_package
(
ZLIB REQUIRED
)
find_package
(
LibXml2 REQUIRED
)
find_package
(
GLEW REQUIRED
)
find_package
(
Qt4 REQUIRED
)
find_package
(
QGLViewer REQUIRED
)
find_package
(
PythonLibs 2.7 REQUIRED
)
find_package
(
SuiteSparse REQUIRED
)
#find_package(SuperLU REQUIRED)
SET
(
QT_USE_QTOPENGL TRUE
)
SET
(
QT_USE_QTXML TRUE
)
SET
(
QT_USE_QTDESIGNER TRUE
)
SET
(
QT_USE_QTGUI TRUE
)
SET
(
QT_USE_QTPLUGIN TRUE
)
INCLUDE
(
${
QT_USE_FILE
}
)
ADD_DEFINITIONS
(
${
QT_DEFINITIONS
}
)
file
(
STRINGS
${
CGoGN_ROOT_DIR
}
/include/cgogn_mr.h FORCE_MR
)
IF
(
FORCE_MR EQUAL 1
)
add_definitions
(
-DCGoGN_FORCE_MR=1
)
ENDIF
(
FORCE_MR EQUAL 1
)
file
(
STRINGS
${
CGoGN_ROOT_DIR
}
/include/cgogn_onelib.h ONELIB_STR
)
IF
(
ONELIB_STR EQUAL 1
)
SET
(
CGoGN_LIBS_D cgognD
)
SET
(
CGoGN_LIBS_R cgogn
)
ELSE
(
ONELIB_STR EQUAL 1
)
SET
(
CGoGN_LIBS_D topologyD algoD containerD utilsD
)
SET
(
CGoGN_LIBS_R topology algo container utils
)
ENDIF
(
ONELIB_STR EQUAL 1
)
IF
(
DEFINED ASSERTON
)
add_definitions
(
-DCGOGN_ASSERT_BOOL=
${
ASSERTON
}
)
ELSE
(
DEFINED ASSERTON
)
add_definitions
(
-DCGOGN_ASSERT_BOOL=false
)
ENDIF
(
DEFINED ASSERTON
)
add_definitions
(
-DSHADERPATH=
"
${
CGoGN_ROOT_DIR
}
/lib/Shaders/"
)
# define includes of external libs
SET
(
EXT_INCLUDES
${
CGoGN_ROOT_DIR
}
/ThirdParty/include
${
OPENGL_INCLUDE_DIR
}
${
GLEW_INCLUDE_DIRS
}
${
ZLIB_INCLUDE_DIRS
}
${
LIBXML2_INCLUDE_DIR
}
${
Boost_INCLUDE_DIRS
}
${
QT_INCLUDE_DIR
}
${
QGLVIEWER_INCLUDE_DIR
}
${
PYTHON_INCLUDE_DIRS
}
${
SUITESPARSE_INCLUDE_DIRS
}
# ${SUPERLU_INCLUDE_DIRS}
)
# define libs for external libs
SET
(
EXT_LIBS
PythonQt
nl
${
OPENGL_LIBRARY
}
${
GLEW_LIBRARIES
}
${
ZLIB_LIBRARIES
}
${
LIBXML2_LIBRARIES
}
${
Boost_SYSTEM_LIBRARY
}
${
Boost_REGEX_LIBRARY
}
${
Boost_THREAD_LIBRARY
}
${
QT_LIBRARIES
}
${
QGLVIEWER_LIBRARIES
}
${
PYTHON_LIBRARIES
}
${
SUITESPARSE_LIBRARIES
}
# ${SUPERLU_LIBRARIES}
)
# qq definition specifiques pour mac
IF
(
APPLE
)
# attention a changer pour chercher la bonne version automatiquement
SET
(
CMAKE_OSX_SYSROOT
"/Developer/SDKs/MacOSX10.6.sdk"
CACHE STRING
"developer SDK"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,-undefined -Wl,dynamic_lookup"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMAC_OSX"
)
SET
(
CMAKE_OSX_ARCHITECTURES x86_64
)
ENDIF
(
APPLE
)
SET
(
SCHNApps_ROOT_DIR
${
CGoGN_ROOT_DIR
}
/SCHNApps_v2
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
SCHNApps_ROOT_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
SCHNApps_ROOT_DIR
}
/lib
)
file
(
GLOB_RECURSE
SCHNApps_FILES
${
SCHNApps_ROOT_DIR
}
/src/*.cpp
${
SCHNApps_ROOT_DIR
}
/include/*.h
${
SCHNApps_ROOT_DIR
}
/include/*.hpp
)
file
(
GLOB_RECURSE
SCHNApps_UI_FILES
${
SCHNApps_ROOT_DIR
}
/forms/*.ui
)
SET
(
SCHNApps_QOBJECT_FILES
${
SCHNApps_ROOT_DIR
}
/include/camera.h
${
SCHNApps_ROOT_DIR
}
/include/mapHandler.h
${
SCHNApps_ROOT_DIR
}
/include/plugin.h
${
SCHNApps_ROOT_DIR
}
/include/plugin_interaction.h
${
SCHNApps_ROOT_DIR
}
/include/plugin_processing.h
${
SCHNApps_ROOT_DIR
}
/include/view.h
${
SCHNApps_ROOT_DIR
}
/include/schnapps.h
${
SCHNApps_ROOT_DIR
}
/include/viewButtonArea.h
${
SCHNApps_ROOT_DIR
}
/include/controlDock_cameraTab.h
${
SCHNApps_ROOT_DIR
}
/include/controlDock_pluginTab.h
${
SCHNApps_ROOT_DIR
}
/include/controlDock_mapTab.h
# ${SCHNApps_ROOT_DIR}/include/colorComboBox.h
)
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/Release Release
)
IF
(
NOT WIN32
)
ADD_SUBDIRECTORY
(
${
CMAKE_SOURCE_DIR
}
/Debug Debug
)
ENDIF
(
NOT WIN32
)
SCHNApps/Debug/CMakeLists.txt
0 → 100644
View file @
3fa867c4
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
${
SCHNApps_ROOT_DIR
}
/include
${
EXT_INCLUDES
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
)
QT4_WRAP_UI
(
UIC_FILES
${
SCHNApps_UI_FILES
}
)
QT4_WRAP_CPP
(
MOC_FILES
${
SCHNApps_QOBJECT_FILES
}
)
QT4_ADD_RESOURCES
(
RCC_FILES
${
SCHNApps_ROOT_DIR
}
/resources/resources.qrc
)
ADD_EXECUTABLE
(
SCHNAppsD
${
SCHNApps_FILES
}
${
UIC_FILES
}
${
MOC_FILES
}
${
RCC_FILES
}
)
TARGET_LINK_LIBRARIES
(
SCHNAppsD
${
CGoGN_LIBS_D
}
${
EXT_LIBS
}
)
ADD_SUBDIRECTORY
(
${
SCHNApps_ROOT_DIR
}
/Plugins PluginsD
)
SCHNApps/Plugins/CMakeLists.txt
0 → 100644
View file @
3fa867c4
cmake_minimum_required
(
VERSION 2.8
)
ADD_SUBDIRECTORY
(
surface_import
)
#ADD_SUBDIRECTORY(importVolume)
#ADD_SUBDIRECTORY(differentialProperties)
ADD_SUBDIRECTORY
(
surface_render
)
#ADD_SUBDIRECTORY(renderVector)
#ADD_SUBDIRECTORY(renderScalar)
#ADD_SUBDIRECTORY(renderExplod)
#ADD_SUBDIRECTORY(renderTopoSurface)
#ADD_SUBDIRECTORY(subdivideSurface)
#ADD_SUBDIRECTORY(surfaceDeformation)
SCHNApps/Plugins/plugins_cmake.txt
0 → 100644
View file @
3fa867c4
QT4_WRAP_UI( PLUGIN_UIC_FILES ${PLUGIN_UI_FILES} )
QT4_WRAP_CPP( PLUGIN_MOC_FILES ${PLUGIN_QOBJECT_FILES} )
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
ADD_DEFINITIONS(-DDEBUG)
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)
ADD_LIBRARY( ${PLUGIN_NAME}D SHARED
${PLUGIN_FILES}
${PLUGIN_UIC_FILES}
${PLUGIN_MOC_FILES}
)
TARGET_LINK_LIBRARIES( ${PLUGIN_NAME}D
${CGoGN_LIBS_D}
${EXT_LIBS}
)
ADD_DEPENDENCIES( ${PLUGIN_NAME}D SCHNAppsD )
SET_TARGET_PROPERTIES( ${PLUGIN_NAME}D 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)
ADD_LIBRARY( ${PLUGIN_NAME} SHARED
${PLUGIN_FILES}
${PLUGIN_UIC_FILES}
${PLUGIN_MOC_FILES}
)
TARGET_LINK_LIBRARIES( ${PLUGIN_NAME}
${CGoGN_LIBS_R}
${EXT_LIBS}
)
ADD_DEPENDENCIES( ${PLUGIN_NAME} SCHNApps )
ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
0 → 100644
View file @
3fa867c4
cmake_minimum_required
(
VERSION 2.8
)
SET
(
PLUGIN_NAME SurfaceDeformation
)
SET
(
PLUGIN_ROOT_DIR
${
SCHNApps_ROOT_DIR
}
/Plugins/surfaceDeformation
)
INCLUDE_DIRECTORIES
(
${
PLUGIN_ROOT_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
)
file
(
GLOB_RECURSE
PLUGIN_FILES
${
PLUGIN_ROOT_DIR
}
/src/*.cpp
${
PLUGIN_ROOT_DIR
}
/include/*.h
${
PLUGIN_ROOT_DIR
}
/include/*.hpp
)
file
(
GLOB_RECURSE
PLUGIN_UI_FILES
${
PLUGIN_ROOT_DIR
}
/forms/*.ui
)
SET
(
PLUGIN_QOBJECT_FILES
${
PLUGIN_ROOT_DIR
}
/include/surfaceDeformation.h
${
PLUGIN_ROOT_DIR
}
/include/surfaceDeformationDockTab.h
)
include
(
${
SCHNApps_ROOT_DIR
}
/Plugins/plugins_cmake.txt
)
SCHNApps/Plugins/surface_deformation/forms/surfaceDeformation.ui
0 → 100644
View file @
3fa867c4
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
SurfaceDeformationWidget
</class>
<widget
class=
"QWidget"
name=
"SurfaceDeformationWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
189
</width>
<height>
545
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QListWidget"
name=
"mapList"
/>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Position :
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"combo_positionAttribute"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"title"
>
<string>
Select Vertices
</string>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_7"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<widget
class=
"QRadioButton"
name=
"radio_locked"
>
<property
name=
"text"
>
<string>
locked
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QRadioButton"
name=
"radio_handle"
>
<property
name=
"text"
>
<string>
handle
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
156
</width>
<height>
161
</height>
</size>
</property>
</spacer>
</item>
</layout>
<zorder>
mapList
</zorder>
<zorder>
label_2
</zorder>
<zorder>
groupBox
</zorder>
</widget>
<resources/>
<connections/>
</ui>
SCHNApps/Plugins/surface_deformation/include/surfaceDeformation.h
0 → 100644
View file @
3fa867c4
#ifndef _SURFACEDEFORMATION_PLUGIN_H_
#define _SURFACEDEFORMATION_PLUGIN_H_
#include "plugin.h"
#include "surfaceDeformationDockTab.h"
#include "mapHandler.h"
#include "Utils/pointSprite.h"
#include "Container/fakeAttribute.h"
#include "NL/nl.h"
#include "Algo/LinearSolving/basic.h"
#include "Eigen/Dense"
namespace
CGoGN
{
namespace
SCHNApps
{
enum
SelectionMode
{
LOCKED
,
HANDLE
};
typedef
NoNameIOAttribute
<
Eigen
::
Matrix3f
>
Eigen_Matrix3f
;
struct
PerMapParameterSet
{
PerMapParameterSet
(
MapHandlerGen
*
mh
);
~
PerMapParameterSet
();
void
initParameters
();
MapHandlerGen
*
mh
;
VertexAttribute
<
PFP2
::
VEC3
>
positionAttribute
;
CellMarker
<
VERTEX
>*
lockingMarker
;
CellMarker
<
VERTEX
>*
handleMarker
;
SelectionMode
verticesSelectionMode
;
std
::
vector
<
PFP2
::
VEC3
>
lockedVertices
;
std
::
vector
<
PFP2
::
VEC3
>
handleVertices
;
std
::
vector
<
unsigned
int
>
handleVerticesId
;
Utils
::
VBO
*
lockedVerticesVBO
;
Utils
::
VBO
*
handleVerticesVBO
;
VertexAttribute
<
PFP2
::
VEC3
>
positionInit
;
VertexAttribute
<
PFP2
::
VEC3
>
vertexNormal
;
EdgeAttribute
<
PFP2
::
REAL
>
edgeAngle
;
EdgeAttribute
<
PFP2
::
REAL
>
edgeWeight
;
VertexAttribute
<
PFP2
::
REAL
>
vertexArea
;
VertexAttribute
<
PFP2
::
VEC3
>
diffCoord
;
VertexAttribute
<
Eigen_Matrix3f
>
vertexRotationMatrix
;
VertexAttribute
<
PFP2
::
VEC3
>
rotatedDiffCoord
;
VertexAttribute
<
unsigned
int
>
vIndex
;
unsigned
int
nb_vertices
;
NLContext
nlContext
;
};
struct
ParameterSet
{
ParameterSet
()
:
selectedMap
(
NULL
)
{}
PerMapParameterSet
*
getCurrentMapParameterSet
()
{
if
(
selectedMap
)
return
perMap
[
selectedMap
->
getName
()];
else
return
NULL
;
}
QHash
<
QString
,
PerMapParameterSet
*>
perMap
;
MapHandlerGen
*
selectedMap
;
};
class
SurfaceDeformationPlugin
:
public
Plugin
{
Q_OBJECT
Q_INTERFACES
(
CGoGN
::
SCHNApps
::
Plugin
)
public:
SurfaceDeformationPlugin
()
:
selecting
(
false
),
dragging
(
false
)
{
setProvidesRendering
(
true
);
}
~
SurfaceDeformationPlugin
()
{}
virtual
bool
enable
();
virtual
void
disable
();
virtual
void
redraw
(
View
*
view
);
virtual
void
keyPress
(
View
*
view
,
QKeyEvent
*
event
);
virtual
void
keyRelease
(
View
*
view
,
QKeyEvent
*
event
);
virtual
void
mousePress
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
mouseRelease
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
mouseMove
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
wheelEvent
(
View
*
view
,
QWheelEvent
*
event
);
protected:
SurfaceDeformationDockTab
*
m_dockTab
;
QHash
<
View
*
,
ParameterSet
*>
h_viewParams
;
Utils
::
PointSprite
*
m_pointSprite
;
Utils
::
VBO
*
selectionSphereVBO
;
bool
selecting
;
PFP2
::
VEC3
selectionCenter
;
PFP2
::
REAL
selectionRadius
;
bool
dragging
;
PFP2
::
REAL
dragZ
;
qglviewer
::
Vec
dragPrevious
;
public
slots
:
void
viewLinked
(
View
*
view
,
Plugin
*
plugin
);
void
viewUnlinked
(
View
*
view
,
Plugin
*
plugin
);
void
currentViewChanged
(
View
*
view
);
void
mapLinked
(
MapHandlerGen
*
m
);
void
mapUnlinked
(
MapHandlerGen
*
m
);
protected:
void
addManagedMap
(
View
*
v
,
MapHandlerGen
*
m
);
void
removeManagedMap
(
View
*
v
,
MapHandlerGen
*
m
);
public
slots
:
void
changeSelectedMap
(
View
*
view
,
MapHandlerGen
*
map
);
void
changePositionAttribute
(
View
*
view
,
MapHandlerGen
*
map
,
VertexAttribute
<
PFP2
::
VEC3
>
attribute
,
bool
fromUI
=
false
);
void
changeVerticesSelectionMode
(
View
*
view
,
MapHandlerGen
*
map
,
SelectionMode
m
,
bool
fromUI
=
false
);
protected:
void
matchDiffCoord
(
View
*
view
,
MapHandlerGen
*
map
);
void
asRigidAsPossible
(
View
*
view
,
MapHandlerGen
*
map
);
};
}
// namespace SCHNApps
}
// namespace CGoGN
#endif
SCHNApps/Plugins/surface_deformation/include/surfaceDeformationDockTab.h
0 → 100644
View file @
3fa867c4
#ifndef _SURFACE_DEFORMATION_DOCK_TAB_H_
#define _SURFACE_DEFORMATION_DOCK_TAB_H_
#include "ui_surfaceDeformation.h"
namespace
CGoGN
{
namespace
SCHNApps
{
class
Window
;
class
SurfaceDeformationPlugin
;
struct
ParameterSet
;
class
SurfaceDeformationDockTab
:
public
QWidget
,
public
Ui
::
SurfaceDeformationWidget
{
Q_OBJECT
public:
SurfaceDeformationDockTab
(
Window
*
w
,
SurfaceDeformationPlugin
*
p
);
private:
Window
*
m_window
;
SurfaceDeformationPlugin
*
m_plugin
;
ParameterSet
*
m_currentParams
;
bool
b_refreshingUI
;
public
slots
:
void
refreshUI
(
ParameterSet
*
params
);
void
selectedMapChanged
();
void
positionAttributeChanged
(
int
index
);
void
selectLockedVertices
(
bool
b
);
void
selectHandleVertices
(
bool
b
);
void
addAttributeToList
(
unsigned
int
orbit
,
const
QString
&
nameAttr
);
};
}
// namespace SCHNApps
}
// namespace CGoGN
#endif
SCHNApps/Plugins/surface_deformation/src/surfaceDeformation.cpp
0 → 100644
View file @
3fa867c4
This diff is collapsed.
Click to expand it.
SCHNApps/Plugins/surface_deformation/src/surfaceDeformationDockTab.cpp
0 → 100644
View file @