Add HACK notes
This commit is contained in:
parent
0f0362322e
commit
9fca3ccaa9
@ -138,6 +138,7 @@ rangeSearch kd' sq' = (goPt kd' sq', goTree kd' sq' True)
|
|||||||
(goTree rn sq False)]
|
(goTree rn sq False)]
|
||||||
where
|
where
|
||||||
treeText
|
treeText
|
||||||
|
-- HACK: in order to give specific nodes a specific color
|
||||||
| vis && inRange sq pt = "** " ++ (show . unp2 $ pt)
|
| vis && inRange sq pt = "** " ++ (show . unp2 $ pt)
|
||||||
| vis = "* " ++ (show . unp2 $ pt)
|
| vis = "* " ++ (show . unp2 $ pt)
|
||||||
| otherwise = show . unp2 $ pt
|
| otherwise = show . unp2 $ pt
|
||||||
|
@ -214,6 +214,7 @@ quadTreeToRoseTree z' = go (rootNode z')
|
|||||||
, go (fromJust . goSE $ z)]
|
, go (fromJust . goSE $ z)]
|
||||||
where
|
where
|
||||||
markAndPrintOrigin
|
markAndPrintOrigin
|
||||||
|
-- HACK: in order to give specific nodes a specific color
|
||||||
| z' == z = "* " ++ printOrigin
|
| z' == z = "* " ++ printOrigin
|
||||||
| otherwise = printOrigin
|
| otherwise = printOrigin
|
||||||
printOrigin
|
printOrigin
|
||||||
|
@ -222,6 +222,7 @@ kdTreeDiag = Diag f
|
|||||||
where
|
where
|
||||||
f _ (Object []) = mempty
|
f _ (Object []) = mempty
|
||||||
f p (Object vt) =
|
f p (Object vt) =
|
||||||
|
-- HACK: in order to give specific nodes a specific color
|
||||||
renderTree (\n -> case n of
|
renderTree (\n -> case n of
|
||||||
'*':'*':_ -> (text n # fontSizeL 5.0)
|
'*':'*':_ -> (text n # fontSizeL 5.0)
|
||||||
<> rect 50.0 20.0 # fc green
|
<> rect 50.0 20.0 # fc green
|
||||||
@ -300,6 +301,7 @@ treePretty = Diag f
|
|||||||
Left x -> getCurQT qs (fromMaybe z (goQuad x z))
|
Left x -> getCurQT qs (fromMaybe z (goQuad x z))
|
||||||
prettyRoseTree :: Tree String -> Diagram Cairo R2
|
prettyRoseTree :: Tree String -> Diagram Cairo R2
|
||||||
prettyRoseTree tree =
|
prettyRoseTree tree =
|
||||||
|
-- HACK: in order to give specific nodes a specific color
|
||||||
renderTree (\n -> case head n of
|
renderTree (\n -> case head n of
|
||||||
'*' -> (text n # fontSizeL 5.0)
|
'*' -> (text n # fontSizeL 5.0)
|
||||||
<> rect 50.0 20.0 # fc red
|
<> rect 50.0 20.0 # fc red
|
||||||
|
Loading…
Reference in New Issue
Block a user