Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
medicalphysics committed Aug 18, 2019
1 parent 8c3111e commit b220ea3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/dxmclib/include/source.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class CTDualSource :public CTSource
double m_pitch = 1.0;
double m_tubeAmas = 100.0;
double m_tubeBmas = 100.0;
double m_tubeBweight;
double m_tubeAweight;
double m_tubeBweight = -1.0;
double m_tubeAweight = -1.0;
std::shared_ptr<BeamFilter> m_bowTieFilterB;
};
2 changes: 1 addition & 1 deletion src/dxmclib/src/beamfilters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void BowTieFilter::normalizeData()
XCareFilter::XCareFilter()
:BeamFilter()
{
m_filterAngle = 0.0;
m_filterAngle = 180.0 * DEG_TO_RAD;
m_spanAngle = 120.0 * DEG_TO_RAD;
m_rampAngle = 20.0 * DEG_TO_RAD;
m_lowWeight = 0.6;
Expand Down
10 changes: 5 additions & 5 deletions src/opendxmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ include_directories("thirdparty/spdlog/*")


# Define an executable (WIN32 argument to prevent console window on windows)
add_executable(app WIN32
add_executable(OpenDXMC WIN32
src/app.cpp
src/mainwindow.h
src/mainwindow.cpp
Expand Down Expand Up @@ -96,7 +96,7 @@ add_executable(app WIN32
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/opendxmc")

# Define the libraries this project depends upon
target_link_libraries(app
target_link_libraries(OpenDXMC
PRIVATE dxmclib
PRIVATE vtkextension
${VTK_LIBRARIES}
Expand All @@ -106,13 +106,13 @@ target_link_libraries(app
Qt5::Charts
)

target_include_directories(app PRIVATE
target_include_directories(OpenDXMC PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/thirdparty>
)

#making version available in code

target_compile_definitions(app PRIVATE APP_VERSION="${PROJECT_VERSION}")
target_compile_definitions(OpenDXMC PRIVATE APP_VERSION="${PROJECT_VERSION}")



Expand All @@ -124,7 +124,7 @@ if (WIN32)
get_filename_component(QT5_WINDEPLOYQT_EXECUTABLE ${QT5_QMAKE_EXECUTABLE} PATH)
set(QT5_WINDEPLOYQT_EXECUTABLE "${QT5_WINDEPLOYQT_EXECUTABLE}/windeployqt.exe")
add_custom_target(qtdeploy ALL
COMMAND ${QT5_WINDEPLOYQT_EXECUTABLE} --qmldir ${CMAKE_BINARY_DIR} $<TARGET_FILE_DIR:app>)
COMMAND ${QT5_WINDEPLOYQT_EXECUTABLE} --qmldir ${CMAKE_BINARY_DIR} $<TARGET_FILE_DIR:OpenDXMC>)
endif(WIN32)

#adding target to copy vtk dlls
Expand Down

0 comments on commit b220ea3

Please sign in to comment.