Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1440 commits
Select commit Hold shift + click to select a range
147c56a
Remove and suppress warnings in genlib and tests (#252)
blsemo Oct 19, 2018
bff1565
Split off local visibility analysis and put it (along with global) in…
Oct 22, 2018
438c020
Replace functions in pointdata
Oct 23, 2018
ac6f881
Make .h and .cpp reference relative
Oct 23, 2018
750e51f
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Oct 23, 2018
cf6cdf0
Make miscs and extents local variables
Oct 23, 2018
8e9eb6a
Write the miscs and extents back into the nodes for binary compatibil…
Oct 23, 2018
27ebdda
Add missing headers
Oct 23, 2018
9a77819
Change the actual getRows() and getCols() to size_t
Oct 24, 2018
2308898
Merge pull request #257 from orange-vertex/size_t_rows_cols
pklampros Oct 24, 2018
1de3a53
Merge pull request #253 from orange-vertex/explicit_casts
pklampros Oct 31, 2018
e6a6892
Merge pull request #251 from orange-vertex/topomet_no_paftl
pklampros Oct 31, 2018
9669066
Remove commented out code
pklampros Oct 31, 2018
1f81621
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Oct 31, 2018
a7e1ed6
Merge branch 'apply_matrix_class' of https://github.com/orange-vertex…
Oct 31, 2018
5ab94fb
Merge pull request #250 from orange-vertex/apply_matrix_class
pklampros Oct 31, 2018
b357a3c
Merge pull request #255 from orange-vertex/git_commit_in_version
pklampros Oct 31, 2018
dcb68f2
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Oct 31, 2018
d07f001
Remove debug leftover
Oct 31, 2018
eb9e377
Rename variables to agree with types
Oct 31, 2018
5b0e976
Run ClangFormat on AxialAnalysisOptionsDlg.cpp
Oct 31, 2018
76e8751
Move one-line function to header
Oct 31, 2018
0d4ac43
Better format of string
Oct 31, 2018
fb178f9
Remove pointless computations
Oct 31, 2018
32c61f1
Remove comment
Oct 31, 2018
f610094
Merge pull request #254 from orange-vertex/axialmap_remove_paftl
pklampros Oct 31, 2018
b0fcd52
Remove blank lines
pklampros Oct 31, 2018
e7a9aa9
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Oct 31, 2018
821d608
Merge branch 'modularise_vga' of https://github.com/orange-vertex/dep…
Oct 31, 2018
babd255
Merge pull request #256 from orange-vertex/modularise_vga
pklampros Oct 31, 2018
1080286
Break metric analysis out of pointmap
Oct 31, 2018
3951758
Break angular analysis out of pointmap
Oct 31, 2018
6df67d6
Break through-vision analysis out of pointmap
Oct 31, 2018
6b0af85
Fix spacing
Oct 31, 2018
c8061fc
Remove some warnings
Oct 31, 2018
3d4d3db
Break isovist analysis out of pointmap
Oct 31, 2018
e05d39e
Break the various depth calculations out of pointmap
Nov 1, 2018
18470c6
Break segment and axial analyses out of shapegraph
Nov 1, 2018
c07025d
Move the parsers in a separate folder
Nov 2, 2018
9c79880
Remove the MetaGraph input from the vga interface and for isovists ta…
Nov 2, 2018
9f684d4
Fix formatting in genlib using ClangFormat
Nov 2, 2018
58e1a6c
Move all the dialogs in a separate folder
Nov 3, 2018
beb1ef3
Move the dethmapX views into separate folders
Nov 3, 2018
d98b17f
Update case for renamed headers
Nov 3, 2018
aa075a9
Do not write m_misc into the graph file
Nov 4, 2018
2807638
Actually don't write m_misc
Nov 4, 2018
75120e3
Also test local visibility (map only)
Nov 4, 2018
b1981c1
Add radius for metric vga test
Nov 4, 2018
d50a8f2
Move the xml parser back into genlib
Nov 8, 2018
8b710e4
Merge pull request #262 from orange-vertex/depthmapx_dialogs
pklampros Nov 8, 2018
de5c40e
Merge pull request #261 from orange-vertex/genlib_clangformat
pklampros Nov 8, 2018
2b03099
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Nov 8, 2018
ee07513
Return Base Matrix for points
Nov 8, 2018
325389f
Move chunky functions in the .cpp file
Nov 8, 2018
a3e893b
Move helpers into the helpers file
Nov 8, 2018
33dfc0d
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Nov 8, 2018
c857570
Merge pull request #258 from orange-vertex/parsers_folder
pklampros Nov 8, 2018
0d8580a
Merge branch 'master' into vga_analyses
pklampros Nov 8, 2018
d044c2f
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Nov 8, 2018
35a0274
Remove most c arrays from the transferred code
Nov 8, 2018
9b9c722
Update the linux binary
Nov 8, 2018
5c83b51
Return a reference instead of a pointer to the pointmap drawing files
Nov 8, 2018
19d9d96
Merge branch 'vga_analyses' of https://github.com/orange-vertex/depth…
Nov 8, 2018
70fc6d4
Merge pull request #263 from orange-vertex/dont_write_m_misc
pklampros Nov 8, 2018
ac410f3
Merge pull request #260 from orange-vertex/vga_analyses
pklampros Nov 8, 2018
7fd4ab0
Merge branch 'master' into axial_analyses
pklampros Nov 8, 2018
82ba21d
Merge pull request #259 from orange-vertex/axial_analyses
pklampros Nov 8, 2018
8dd1fbe
Fix compilation on Windows (#264)
blsemo Nov 9, 2018
b75aad5
Update the darwin binary
Nov 15, 2018
b6d76e1
Merge pull request #265 from orange-vertex/master
pklampros Nov 15, 2018
88ad871
Remove all paftl containers except in attributes
Nov 15, 2018
e5b6ac8
Make icon background transparent
Nov 21, 2018
ab0be6d
Merge pull request #266 from orange-vertex/master
pklampros Nov 21, 2018
8909fb7
Make the attribute map non-templated (#268)
blsemo Nov 28, 2018
e406ef0
Fix polygon shape selection
Dec 1, 2018
97b7c64
Merge pull request #269 from orange-vertex/fix_polygon_shape_selection
pklampros Dec 1, 2018
330cdda
Make sure a displayed data map is set when importing or creating
Dec 4, 2018
b337829
Show the Shapemap points in the GLView
Dec 5, 2018
94956a6
Fix sala script (#270)
blsemo Dec 5, 2018
0a8144e
Don't call MakeGraphTree twice
Dec 15, 2018
bf27de0
Actually calculate everything if not in simple mode
Jan 8, 2019
78874a6
Include connector.h directly instead of forward declaring it
Jan 26, 2019
5029523
Write agent trails to a map instead of to a file
Jan 26, 2019
7ef6f68
Allow exporting the Agent trails (and another map) from the GUI
Jan 26, 2019
23dd625
Make g_trails a member of the agent program and remove the trails cap
Jan 26, 2019
ee8dc37
For agent trails store events instead of just points
Jan 27, 2019
f659423
Revert to original capitalised version of CAT
Jan 27, 2019
a53d990
Break apart nagent.h/.cpp
Jan 27, 2019
59678b5
Fix graph grammar to accept more layers
Jan 31, 2019
80230ce
Merge pull request #280 from orange-vertex/fix_grammar
pklampros Jan 31, 2019
cbf77bc
Change the codebase to use the new attributes table
Jan 29, 2019
cc7cb34
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Feb 3, 2019
6add59b
Allow "unmaking" the VGA graph
Feb 13, 2019
ac20968
Inform the user that their data will be removed
Feb 13, 2019
095843f
Provide a specific function for unmerging a pixel and unmerge the pix…
Feb 14, 2019
588e437
Allow linking after filling the grid
Feb 14, 2019
554221d
Make removing links optional, and ask the user when unmaking the graph
Feb 14, 2019
a287d10
Don't ask the user to remove links if there are no links
Feb 14, 2019
f577026
Right-click to unfill a pixel in the GLView (as in the legacy view)
Feb 14, 2019
8e2691c
use the proper mouse event button
Feb 17, 2019
f7a33f6
Allow defining the step depth type in the CLI
Feb 25, 2019
66807b8
Provide step-depth regression tests
Feb 25, 2019
b0ffa96
Make sure there are shapes before accessing first object
Mar 4, 2019
6114082
Use empty() instead of size()
pklampros Mar 4, 2019
a6697f8
Make sure there are axes selected for regression line
Mar 9, 2019
8058c29
Abstract away the function for finding keys in a range
Mar 9, 2019
d783b75
Remove unusued variable
Mar 9, 2019
c17c0c1
Use hasColumn to check if column exists
Mar 9, 2019
1ae2a4f
Use clear instead of making a new table
Mar 9, 2019
3ba2180
Use pointers and references the rows themselves
Mar 9, 2019
eb96632
Make all containers std in MapInfoData
Mar 9, 2019
f4dc6d7
Fetch the last key-row pair from the attributes
Mar 9, 2019
617e95e
Remove unnecessary ifdef
Mar 9, 2019
24a96d0
Remove unused variables
Mar 9, 2019
d2d251c
Catch the specific exceptions thrown by stoi
Mar 9, 2019
7b3fc79
Use the safe getline function
Mar 9, 2019
9805499
Allow finding the index of a key in the index of the currently displa…
Mar 9, 2019
a22ca6d
Remove unused variable
Mar 9, 2019
13d9a24
Make sorted column index retrieval more efficient
Mar 9, 2019
70549f3
Convert pointer arrays to vectors
Mar 9, 2019
a8fc5c0
Merge pull request #290 from orange-vertex/write_empty_shapemap
pklampros Mar 13, 2019
78b639f
Minor cleanup
Mar 23, 2019
8faa95c
Iterate the attribute rows directly
Mar 23, 2019
90763e3
Update comment to add TODO
Mar 23, 2019
c641c60
Iterate directly on the attribute rows where possible
Mar 23, 2019
980d996
Change all requests for attribute row from index to go through a func…
Mar 24, 2019
7b40b88
Make sure shapemap POD fields are initialised
Mar 24, 2019
e09100f
Merge pull request #276 from orange-vertex/isovists_calculate_all
pklampros Mar 24, 2019
96d19f5
Merge pull request #274 from orange-vertex/layer_delete_dupes
pklampros Mar 24, 2019
eef2e46
Remove unused functions
Mar 24, 2019
e454f48
Remove includes of attributes.h
Mar 24, 2019
77ae7ec
Remove attributes.h
Mar 24, 2019
239fa40
Add missing include
Mar 24, 2019
a0ce49c
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Mar 24, 2019
29da9c4
Update the linux binary
Mar 24, 2019
89aa2d9
Merge pull request #281 from orange-vertex/apply_new_attrib
pklampros Mar 24, 2019
f251e75
Merge branch 'master' into interface_fixes
pklampros Mar 24, 2019
68c76b4
Merge branch 'master' into gl_points
pklampros Mar 24, 2019
d8d5a90
Update the darwin binary
Mar 24, 2019
0ca9ea3
Merge pull request #291 from orange-vertex/master
pklampros Mar 24, 2019
e689d9e
Remove the dXreimpl namespace from the attributes table
Mar 24, 2019
5d1c6d6
Merge pull request #292 from orange-vertex/remove_dxreimpl
pklampros Mar 24, 2019
d41bc17
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Mar 24, 2019
f16ddff
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Mar 24, 2019
be3f2fb
Minor fix for last merge
Mar 24, 2019
4b4418c
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Mar 24, 2019
a621d9c
Remove paftl.h includes from sala
Mar 24, 2019
c0ef9f1
Remove paftl entirely
Mar 24, 2019
c978444
Make sure we don't catch eof as bad
Mar 25, 2019
65aeaa0
Fix the visual depth algorithm
Mar 25, 2019
646482e
Cleanup commented code
Apr 3, 2019
801b4fd
Merge pull request #277 from orange-vertex/agent_trails_file
pklampros Apr 3, 2019
356d62a
Use static std::string instead of char []
Apr 3, 2019
27bc26a
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Apr 3, 2019
eccdc37
Write into existing shapemap as the copy does not save data
Apr 3, 2019
689cd71
Merge pull request #279 from orange-vertex/breakup_nagent
pklampros Apr 3, 2019
9d39a75
Merge pull request #271 from orange-vertex/gl_points
pklampros Apr 3, 2019
aa0d11e
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Apr 3, 2019
3eb14d3
Fix formatting according to ClangFormat
Apr 3, 2019
3265966
Merge pull request #272 from orange-vertex/interface_fixes
pklampros Apr 3, 2019
4123317
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Apr 3, 2019
6886f5d
Apply ClangFormat
Apr 3, 2019
a54e64a
Replace multiple catch statements with catch(std::logic_error&) to ca…
Apr 3, 2019
d971255
Check if a gate exists on the pixel and then look for the column
Apr 3, 2019
3527d4b
Use the existing findBinary function
Apr 3, 2019
aa1d497
Apply ClangFormat
Apr 3, 2019
e63c2dc
Restore legacy converter and transfer paftl-related tests to mgraph440
Apr 3, 2019
76e4cd3
Change the order of subdirs to satisfy dependencies
Apr 3, 2019
d608b99
Merge pull request #273 from orange-vertex/no_paftl
pklampros Apr 3, 2019
fd3db7b
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Apr 3, 2019
b98ede3
Minor fix
Apr 3, 2019
79d612a
Update travis to speak to the depthmapX matrix room
pklampros Apr 5, 2019
7c21574
Update .travis.yml
pklampros Apr 5, 2019
639f105
Point to the depthmapX-build room instead
pklampros Apr 6, 2019
dd8b032
Allow the various output streams to be more generic
Apr 6, 2019
8232f30
Merge pull request #285 from orange-vertex/step_depth_type
pklampros Apr 7, 2019
e17b9d5
Extend the CLI to make/unmake the graph
Apr 7, 2019
09a7894
Merge branch 'master' of https://github.com/SpaceGroupUCL/depthmapX i…
Apr 7, 2019
bdd8280
Update the darwin CLI
Apr 7, 2019
0c909b8
Merge pull request #283 from orange-vertex/unmake_vga
pklampros Apr 7, 2019
ad04260
Update the linux binary
Apr 7, 2019
8243e37
Merge pull request #293 from orange-vertex/master
pklampros Apr 7, 2019
f05bc2b
Add a new file for testing point csv imports
Apr 9, 2019
513d327
Merge pull request #295 from orange-vertex/master
pklampros Apr 9, 2019
d3483e1
Make sure the view_class is also cleared
pklampros Apr 9, 2019
3ebbc09
Make all ifndefs MSVC specific
Apr 10, 2019
245a083
Make warnings MSVC specific
Apr 10, 2019
e48f2dc
Separate MSVC from GCC when including OpenGL
Apr 10, 2019
0d1e1f9
Don't cast pointer to smaller type
Apr 10, 2019
bdc67b1
Make sure depthmapX also has access to the OpenGL bindings
Apr 10, 2019
4c85bad
Use the common QKeyEvent class
Apr 10, 2019
45e448a
Remove unused function
Apr 10, 2019
bcd9047
Search for -lopengl32
Apr 10, 2019
c4a053f
Revert to lowercase opengl for all win32 and acc c++11 to all libraries
Apr 10, 2019
792f12f
Update README to include matrix/riot channels
pklampros Apr 10, 2019
6037913
Actually move the various ShapeMap fields
Apr 10, 2019
e11cc43
Merge pull request #297 from orange-vertex/move_shapemap
pklampros May 1, 2019
b94da19
Merge pull request #296 from orange-vertex/mingw_build
pklampros May 8, 2019
3de0366
Move the build system to CMake and the build to docker (#299)
blsemo May 12, 2019
80a8109
Allow attaching to existing attribute tables
May 17, 2019
9c030c4
Expose attribute attachment via CLI
May 17, 2019
159cc34
Make sure the input files are parsed
May 17, 2019
2017b40
Minor fix
May 17, 2019
afa9534
Delete mgraph440Test.pro
pklampros May 18, 2019
2193074
Make the tooltips show as fixed notation
May 18, 2019
9caaff9
Merge pull request #301 from orange-vertex/tooltip_non_scientific
pklampros May 18, 2019
87159d1
Create a macos bundle and reattach the Info.plist
May 19, 2019
aec2a45
Merge pull request #302 from orange-vertex/apple_bundle_cmake
pklampros May 19, 2019
e03fff9
Fix File->Exit
May 19, 2019
3cd0b46
Merge pull request #303 from orange-vertex/fix_file_exit
pklampros May 19, 2019
a048200
Put the options directly in the analysis object (VGA)
May 20, 2019
236c748
Put the options directly in the analysis object (Segment)
May 20, 2019
2b58645
Put the options directly in the analysis object (Axial)
May 20, 2019
07b2caa
Remove options.h inclusion where unnecessary
May 20, 2019
7f87006
Merge pull request #304 from orange-vertex/options_in_analysis
pklampros May 22, 2019
56d697a
Also time adding attributes
May 23, 2019
d681356
Merge pull request #300 from orange-vertex/attach_attributes
pklampros May 23, 2019
41a4544
Update build_and_upload.sh to call cmake instead
pklampros May 23, 2019
83b91e4
Fix bug on copying attributes axial to segment
pklampros Jun 5, 2019
1e86386
Bump up version number
Jun 5, 2019
8fd6133
Merge pull request #305 from orange-vertex/master
pklampros Jun 5, 2019
fb1e21b
Remove duplicate version.h
Jun 5, 2019
750becc
Merge pull request #306 from orange-vertex/master
pklampros Jun 5, 2019
49858d2
Remove reference to duplicate version.h
Jun 5, 2019
c8acc43
Merge pull request #307 from orange-vertex/master
pklampros Jun 5, 2019
705d6c6
Fix application icon on windows
pklampros Jun 5, 2019
ff970de
Make sure no command line appears in windows GUI
pklampros Jun 5, 2019
4ef2daf
Make sure the result of the analysis is used to refresh the interface
Jun 7, 2019
d0fd363
Replace "retvar" with appropriate variable names
Jun 8, 2019
c54902f
Merge pull request #308 from orange-vertex/analysis_refresh_interface
pklampros Jun 8, 2019
bbb82ba
Replace "retvar" with appropriate variable names
Jun 8, 2019
eab8c2b
Merge pull request #309 from orange-vertex/analysis_refresh_interface
pklampros Jun 8, 2019
22bd6c4
Move the progress check inside the filled-point test
Jul 21, 2019
c113675
Merge pull request #323 from orange-vertex/global_visibility_progress…
pklampros Jul 21, 2019
902e110
Rename tableView to TableView
Aug 17, 2019
48aca55
Get the default size from the depthmapView
Aug 17, 2019
7fbce63
Match table and attribute index
Aug 17, 2019
c0f6e77
Choose the correct graphDoc to match to newly focused table
Aug 17, 2019
e9b7c0e
Auto-format tableview.h/.cpp and add copyright header
Aug 17, 2019
98a6e1e
Fix diagonal line handling (#326)
ppiastucki Dec 5, 2019
1aa902a
Cleanup warnings (#294)
pklampros Dec 18, 2019
43f9a00
Fix minor import
Dec 18, 2019
fd36dfe
Remove unecessary destructor
Jan 21, 2020
9d7e350
Move i in the for-loop and remove unnecessary variable
Jan 21, 2020
433ec2c
Move updating variable inside the class
Jan 21, 2020
16a4420
Reformulate conditional to make it more readable
Jan 21, 2020
c481656
Use the qt interface for changing attributes
Jan 21, 2020
73750f4
Use Qt's internal focus system for redoing the table instead of a cus…
Jan 22, 2020
e2288ba
Merge pull request #327 from orange-vertex/fix_tableview
pklampros Jan 22, 2020
4575805
Fix pixelateLine
Jan 23, 2020
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
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
.idea
.DS_Store
depthmapX-build
depthmapX-build
build
RegressionTest/rundir
__pycache__
depthmapX.pro.user
*_BACKUP_*
*_BASE_*
*_LOCAL_*
*_REMOTE_*

26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
sudo: required
dist: trusty
dist: xenial
language: c++
services:
- docker

before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt571-trusty
- sudo add-apt-repository --yes ppa:fkrull/deadsnakes
- sudo apt-get update -qq
notifications:
slack: depthmapx:B3CKNlNDLrNz1vSOU5yoQQqA
webhooks:
urls:
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MG9yYW5nZS12ZXJ0ZXglM0FtYXRyaXgub3JnLyUyMUVZQUZRaEVrV3lDZm1hcm9QaCUzQW1hdHJpeC5vcmc"
on_success: always # always|never|change
on_failure: always
on_start: never

install:
- sudo apt-get -y install qt573d qt57tools libgl1-mesa-dev libglu1-mesa-dev python3.5

script:
- source /opt/qt57/bin/qt57-env.sh
- mkdir build && cd build
- /opt/qt57/bin/qmake ../depthmapX.pro
- make
- ./cliTest/cliTest && ./GuiUnitTest/GuiUnitTest
- cd ../RegressionTest && python3.5 test_main.py && python3.5 RegressionTestRunner.py
- docker run --security-opt seccomp:unconfined --user $UID -v $PWD:/mnt/code blackseamonster/depthmapx-buildenv:0.3 bash -c ci/build.sh
50 changes: 50 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
project(depthmapX)
cmake_minimum_required(VERSION 3.13.0)
set(CMAKE_CXX_STANDARD 11)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(warnings "-Wall -Wextra")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(warnings "/W4 /EHsc")
execute_process(COMMAND make_version_header.bat WORKING_DIRECTORY depthmapX)
endif()

# policy for target sources - we don't expect any old CMakes
cmake_policy(SET CMP0076 NEW)

include_directories(".")

# Get the current working branch
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE APP_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Get the latest abbreviated commit hash of the working branch
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE APP_COMMIT
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# generate version_defs.h
include_directories(${CMAKE_BINARY_DIR})
configure_file("${CMAKE_SOURCE_DIR}/version_defs.h.in" "${CMAKE_BINARY_DIR}/version_defs.h" @ONLY)

string(TIMESTAMP APP_DATE %Y-%m-%d)

add_subdirectory(genlib)
add_subdirectory(genlibTest)
add_subdirectory(salalib)
add_subdirectory(mgraph440)
add_subdirectory(mgraph440Test)
add_subdirectory(salaTest)
add_subdirectory(depthmapXcli)
add_subdirectory(cliTest)
add_subdirectory(depthmapXTest)
add_subdirectory(depthmapX)
add_subdirectory(GuiUnitTest)
24 changes: 0 additions & 24 deletions GuiApp/GuiApp.pro

This file was deleted.

63 changes: 0 additions & 63 deletions GuiApp/main.cpp

This file was deleted.

22 changes: 22 additions & 0 deletions GuiUnitTest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set(GuiUnitTest GuiUnitTest)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Find the QtWidgets library
find_package(Qt5 COMPONENTS Core Widgets Gui OpenGL REQUIRED)
# Instruct CMake to run moc automatically when needed
set(CMAKE_AUTOMOC ON)

set(guiUnitTest_SRCS
main.cpp
testviewhelpers.cpp
testsettings.cpp
../depthmapX/settingsimpl.cpp
../depthmapX/views/viewhelpers.cpp)

include_directories("../ThirdParty/Catch" "../ThirdParty/FakeIt" "../depthmapX")

set(LINK_LIBS salalib genlib mgraph440 Qt5::Core)

add_executable(${GuiUnitTest} ${guiUnitTest_SRCS})
target_link_libraries(${GuiUnitTest} ${LINK_LIBS})

33 changes: 0 additions & 33 deletions GuiUnitTest/GuiUnitTest.pro

This file was deleted.

57 changes: 57 additions & 0 deletions GuiUnitTest/testsettings.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Copyright (C) 2017 Christian Sailer

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#include <catch.hpp>
#include <../cliTest/selfcleaningfile.h>
#include <../depthmapX/settingsimpl.h>


class TestSettingsFactory : public QSettingsFactory
{
public:
TestSettingsFactory(const QString &filename) : mFilename(filename)
{}
virtual std::unique_ptr<QSettings> getSettings() const
{
return std::unique_ptr<QSettings>(new QSettings(mFilename, QSettings::IniFormat));
}
private:
QString mFilename;
};

TEST_CASE("Test simple settings")
{
SelfCleaningFile scf("./test.ini");
SettingsImpl settings(new TestSettingsFactory(scf.Filename().c_str()));

REQUIRE(settings.readSetting("test1", "bar").toString().toStdString() == "bar");
settings.writeSetting("test1", "foo");
REQUIRE(settings.readSetting("test1", "bar").toString().toStdString() == "foo");
}


TEST_CASE("Test settings transaction")
{
SelfCleaningFile scf("./test.ini");
SettingsImpl settings(new TestSettingsFactory(scf.Filename().c_str()));

REQUIRE(settings.readSetting("test1", "bar").toString() == "bar");
{
auto transaction = settings.getTransaction();
transaction->writeSetting("test1", "foo");
}
REQUIRE(settings.readSetting("test1", "bar").toString() == "foo");

}
14 changes: 7 additions & 7 deletions GuiUnitTest/testviewhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "viewhelpers.h"
#include "depthmapX/views/viewhelpers.h"
#include "catch.hpp"
#include <time.h>
#include <sstream>
Expand All @@ -22,12 +22,12 @@
TEST_CASE("Calculating the new center", "[calculateCenter]"){
auto point = QPoint(100, 100);
auto oldCenter = QPoint(200,200);
auto newCenter = QPoint(150,150);
auto newCenter = Point2f(150,150);

REQUIRE(ViewHelpers::calculateCenter(point, oldCenter, 0.5) == newCenter);

newCenter.rx() = 300;
newCenter.ry() = 300;
newCenter.x = 300;
newCenter.y = 300;

REQUIRE(ViewHelpers::calculateCenter(point, oldCenter, 2.0) == newCenter);

Expand All @@ -38,9 +38,9 @@ TEST_CASE("Date string format", "[getCurrentDate]"){
const tm* ltime = localtime(&now);
std::stringstream sstream;
sstream << ltime->tm_year + 1900 << "/" <<
setfill('0') << setw(2) << ltime->tm_mon + 1 << "/" <<
setfill('0') << setw(2) << ltime->tm_mday << std::flush;
std::setfill('0') << std::setw(2) << ltime->tm_mon + 1 << "/" <<
std::setfill('0') << std::setw(2) << ltime->tm_mday << std::flush;

REQUIRE(ViewHelpers::getCurrentDate() == pstring(sstream.str().c_str()));
REQUIRE(ViewHelpers::getCurrentDate() == sstream.str().c_str());
}

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## depthmapX - multi-platform spatial network analyses software


This is the home for the development of depthmapX.


Latest releases can be found at the [releases page](https://github.com/SpaceGroupUCL/depthmapX/releases)


For any issues/bugs/crashes please create [a new issue](https://github.com/SpaceGroupUCL/depthmapX/issues/new)


For more information please check the [documentation](./docs/index.md) and the [wiki](https://github.com/SpaceGroupUCL/depthmapX/wiki)

[About depthmapX](./docs/about.md)


##

depthmapX is licensed under the [GPLv3](http://www.gnu.org/licenses/gpl-3.0.html) licence.

depthmapX uses [Qt5](http://www.qt.io) as UI toolkit and build system, [Catch](https://github.com/philsquared/catch) as unit testing framework and [FakeIt](https://github.com/eranpeer/FakeIt) for test mocks.

Please join the depthmapX mail distribution list at www.jiscmail.ac.uk/lists/DEPTHMAP.html for updates.

The developers and users of depthmapX can also be found on matrix/riot for more direct and extended discussions in the following channels:
- [depthmapX-users](https://riot.im/app/#/room/#depthmapX-users:matrix.org) - for general discussion, and questions about using depthmapX
- [depthmapX-devel](https://riot.im/app/#/room/#depthmapX-devel:matrix.org) - for development discussion
Binary file not shown.
Binary file modified RegressionTest/BaselineBinaries/Linux/depthmapXcli
Binary file not shown.
Binary file modified RegressionTest/BaselineBinaries/Windows/depthmapXcli.exe
Binary file not shown.
Loading