Commit Graph

128 Commits

Author SHA1 Message Date
hasufell 6dc4fae415
ALGO: improve readability 2014-10-12 02:11:47 +02:00
hasufell 24810e5970
Move the function 'first' from Parser to MyPrelude
It is useful and generic.
2014-10-12 01:57:20 +02:00
hasufell 60f59bb2b7
ALGO: fix the algorithm
It was imprecise before and only worked by accident.
'grahamGetCHSteps' is a bit broken for now and caused duplicates.
2014-10-12 01:54:44 +02:00
hasufell d81e932d00 DIAGRAM: improve behavior for dimensions like (100,300) (100,300) 2014-10-11 13:49:53 +02:00
hasufell 6c66a7acb3 PARSER: add parser for negative doubles 2014-10-11 04:39:51 +02:00
hasufell 7fb3588300
DIAGRAM: improve style and readability 2014-10-11 03:59:21 +02:00
hasufell bfa3665985
DIAGRAM: fix grid/axis for negative dimensions 2014-10-11 03:24:18 +02:00
hasufell 5e5f305c65
GUI: merge callback functions into drawDiag/saveDiag 2014-10-11 02:01:17 +02:00
hasufell 0681b4d605
GUI: remove code duplication 2014-10-11 00:16:18 +02:00
hasufell 869cbd0af3
GUI: instantly redraw for enabling checkboxes and other stuff 2014-10-11 00:02:06 +02:00
hasufell b6aa9d9086
GUI: fix signal handling for onExpose
Doing the signal handling connect inside the callback function
was a bad idea. Instead do it in the makeGUI function and just
call onClickedDrawButton for every expose event.
2014-10-11 00:01:43 +02:00
hasufell ab2a0a331d
DIAGRAM: fix unfiltered vtable for pointText functions 2014-10-10 23:59:02 +02:00
hasufell 60843e5879
DIAGRAM: rm unnecessary square 2014-10-10 23:28:01 +02:00
hasufell eadbf76978
CABAL: rm unnecessary dependency from Gtk executable 2014-10-10 18:02:26 +02:00
hasufell 40313baa7d
CABAL: add missing JuicyPixels 2014-10-10 17:55:52 +02:00
hasufell 8494c106d9
Update .gitignore 2014-10-10 17:53:17 +02:00
hasufell 085b06a112
PARSER: eta reduction 2014-10-10 17:48:22 +02:00
hasufell 954b104642
Style 2014-10-10 17:40:25 +02:00
hasufell 6e4c7e47c2
Restructure modules 2014-10-10 17:40:08 +02:00
hasufell cb7d5269a0
DIAGRAM: add maybeDiag convenience function 2014-10-10 15:40:56 +02:00
hasufell 5d5d0b7643
DIAGRAM: improve haddock doc 2014-10-10 15:34:38 +02:00
hasufell 1540bf443e
DIAGRAM: abstract point to text conversion out a little 2014-10-10 15:34:18 +02:00
hasufell 01e2dd7802
Allow showing the coordinate points as text 2014-10-10 15:03:12 +02:00
hasufell 4137af7a7f
DIAGRAM: Fix haddock comment 2014-10-10 01:08:53 +02:00
hasufell 207360b4a5
Improve function names 2014-10-10 00:42:15 +02:00
hasufell dfb25a7a1d
DIAGRAM: make the grid size modifiable 2014-10-10 00:30:56 +02:00
hasufell 8338ab109f
Clarify some String types 2014-10-10 00:23:58 +02:00
hasufell 12da4040dc
Improve overall style and indenting 2014-10-10 00:19:05 +02:00
hasufell 22482f7c49
DIAGRAM: improve haddock doc 2014-10-09 21:37:58 +02:00
hasufell fa749ddd25
DIAGRAM: finalize x/y-axis wrt #1 2014-10-09 21:37:45 +02:00
hasufell ccbe034ef1
DIAGRAM: improve style 2014-10-09 18:55:55 +02:00
hasufell e2f1c865f3
DIAGRAM: fix filtering of points based on the dimensions 2014-10-09 18:51:32 +02:00
hasufell de5aba792e
Allow showing a grid 2014-10-09 18:45:37 +02:00
hasufell 4195404694
DIAGRAM: improve x/y-axis by showing segment lines 2014-10-09 18:13:33 +02:00
hasufell 9c9cb29e45
ALGO: improve style 2014-10-09 17:22:41 +02:00
hasufell 8a2ef92fa7
DIAGRAMS: add TODO note 2014-10-09 17:20:14 +02:00
hasufell fa3e498c45
DIAGRAM: rename functions to reflect their type 2014-10-09 17:19:58 +02:00
hasufell 5020778f60
DIAGRAM: fix crash when passed an empty array to showConvexHullLines 2014-10-09 17:09:49 +02:00
hasufell 143d514648
Add collinear.obj 2014-10-09 17:02:29 +02:00
hasufell d0e8c85a8d
PARSER: improve haddock comments 2014-10-09 17:00:03 +02:00
hasufell 9c724ec479
PARSER: improve style 2014-10-09 16:59:09 +02:00
hasufell 70665e4b29
PARSER: allow normal Integers for posDouble as well
1.0 => valid
1   => valid
2014-10-09 16:53:32 +02:00
hasufell 4877837f93
Fix step depth in grahamGetCHSteps
If we have 3 points and pass 1 to 'g' then 2 steps will be computed.
That means we have to substract 2 from the total length in the call
to 'g'.
2014-10-09 16:11:34 +02:00
hasufell 5ce94d36aa
Add missing Algorithms.ConvexHull to 'other-modules' 2014-10-09 03:31:15 +02:00
hasufell a5473eaf96
Fix haddock docs 2014-10-09 03:27:02 +02:00
hasufell 357c427f0b
Fix haddock comment 2014-10-09 03:15:27 +02:00
hasufell f230738e08
Add TODO note 2014-10-09 03:10:52 +02:00
hasufell 1fd0b9f27f
Allow generating gifs vor visualizing steps of the graham algo
TODO: this still requires us to hack on Main.hs, because
it isn't compatible with the GUI.
Also see https://github.com/diagrams/diagrams-cairo/issues/55
2014-10-09 03:10:21 +02:00
hasufell 8949d05b3b
Properly handle mempty in Monoid Diag instance 2014-10-09 00:59:18 +02:00
hasufell 9b566f2a63
Improve error handling 2014-10-08 22:07:37 +02:00