hgeometry-ipe-0.13: Reading and Writing ipe7 files.
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Data.PlaneGraph.Draw

Description

Helper functions to draw a PlaneGraph in ipe

Synopsis

Documentation

drawPlaneGraph :: forall s r. (Fractional r, Ord r) => IpeOut (PlaneGraph s (Maybe (IpeAttributes IpeSymbol r)) (Maybe (IpeAttributes Path r)) (Maybe (IpeAttributes Path r)) r) Group r Source #

Draws only the values for which we have a Just attribute

drawPlaneGraph' :: forall s v e f r. (Ord r, Fractional r) => IpeOut (PlaneGraph s v e f r) Group r Source #

Draw everything using the defaults

drawPlaneGraphWith :: (ToObject vi, ToObject ei, ToObject fi, Fractional r, Ord r) => IpeOut' Maybe (VertexId' s, VertexData r v) vi r -> IpeOut' Maybe (Dart s, LineSegment 2 v r :+ e) ei r -> IpeOut' Maybe (FaceId' s, SimplePolygon v r :+ f) fi r -> IpeOut' Maybe (FaceId' s, MultiPolygon (Maybe v) r :+ f) fi r -> IpeOut (PlaneGraph s v e f r) Group r Source #

Function to draw a graph by giving functions that specify how to render vertices, edges, and faces.

drawPlaneGraphWith' Source #

Arguments

:: (ToObject vi, ToObject ei, ToObject fi, Num r, Ord r) 
=> FaceId' s

outerface Id

-> IpeOut' Maybe (VertexId' s, VertexData r v) vi r 
-> IpeOut' Maybe (Dart s, LineSegment 2 v r :+ e) ei r 
-> IpeOut' Maybe (FaceId' s, SimplePolygon v r :+ f) fi r 
-> IpeOut' Maybe (FaceId' s, MultiPolygon (Maybe v) r :+ f) fi r 
-> IpeOut (PlaneGraph s v e f r) Group r 

Function to draw a graph by giving the outer faceId and the functions that specify how to render vertices, edges, and faces.