Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
507960ee
Verified
Commit
507960ee
authored
Oct 13, 2020
by
Tobias WEBER
Browse files
moldyn: disabled hull until it's finished
parent
b64c7d81
Changes
2
Hide whitespace changes
Inline
Side-by-side
tools/moldyn/CMakeLists.txt
View file @
507960ee
...
...
@@ -17,7 +17,7 @@ set(CMAKE_VERBOSE_MAKEFILE TRUE)
#find_package(Boost REQUIRED COMPONENTS system REQUIRED)
find_package
(
Boost REQUIRED
)
find_package
(
Qt5 REQUIRED COMPONENTS Core Gui Widgets OpenGL
)
find_package
(
Qhull
REQUIRED
)
#
find_package(Qhull
) # TODO
set
(
CMAKE_AUTOUIC TRUE
)
...
...
@@ -28,12 +28,17 @@ add_definitions(-std=c++20)
add_definitions
(
${
Boost_CXX_FLAGS
}
)
add_definitions
(
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY
)
add_definitions
(
-D_GL_MAJ_VER=3 -D_GL_MIN_VER=2
)
add_definitions
(
-DUSE_QHULL
)
if
(
Qhull_FOUND
)
add_definitions
(
-DUSE_QHULL
)
include_directories
(
"
${
Qhull_INCLUDE_DIRS
}
"
)
endif
()
include_directories
(
"
${
PROJECT_SOURCE_DIR
}
"
"
${
PROJECT_SOURCE_DIR
}
/.."
"
${
PROJECT_SOURCE_DIR
}
/../.."
"
${
Boost_INCLUDE_DIRS
}
/.."
"
${
Qhull_INCLUDE_DIRS
}
"
"ext"
"
${
Boost_INCLUDE_DIRS
}
/.."
"ext"
)
...
...
@@ -41,5 +46,5 @@ add_executable(takin_moldyn
moldyn.cpp moldyn.h
../../libs/glplot.cpp ../../libs/glplot.h
)
target_link_libraries
(
takin_moldyn
${
Qhull
_LIBRARIES
}
${
Boost
_LIBRARIES
}
)
target_link_libraries
(
takin_moldyn
${
Boost
_LIBRARIES
}
${
Qhull
_LIBRARIES
}
)
qt5_use_modules
(
takin_moldyn Core Gui Widgets OpenGL
)
tools/moldyn/moldyn.cpp
View file @
507960ee
...
...
@@ -155,8 +155,10 @@ MolDynDlg::MolDynDlg(QWidget* pParent) : QMainWindow{pParent},
menuCalc
->
addAction
(
acCalcDist
);
menuCalc
->
addAction
(
acCalcPos
);
menuCalc
->
addAction
(
acCalcDeltaDist
);
#ifdef USE_QHULL
menuCalc
->
addSeparator
();
menuCalc
->
addAction
(
acCalcHull
);
#endif
connect
(
acCalcDist
,
&
QAction
::
triggered
,
this
,
&
MolDynDlg
::
CalculateDistanceBetweenAtoms
);
connect
(
acCalcPos
,
&
QAction
::
triggered
,
this
,
&
MolDynDlg
::
CalculatePositionsOfAtoms
);
...
...
@@ -665,6 +667,7 @@ void MolDynDlg::CalculateConvexHullOfAtoms()
*/
void
MolDynDlg
::
CalculateConvexHulls
()
{
#ifdef USE_QHULL
std
::
size_t
frameidx
=
m_sliderFrame
->
value
();
for
(
auto
&
hull
:
m_hulls
)
...
...
@@ -706,6 +709,10 @@ void MolDynDlg::CalculateConvexHulls()
// TODO
}
#else
QMessageBox
::
critical
(
this
,
"Error"
,
"Calculation of convex hull is disabled."
);
#endif
}
// ----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment