implicit-0.4.0.0: A math-inspired programmatic 2D & 3D CAD system.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Implicit.Export.OutputFormat

Synopsis

Documentation

data OutputFormat Source #

A type serving to enumerate our output formats.

Constructors

SVG 
SCAD 
PNG 
GCode 
ASCIISTL 
STL 
THREEJS 
OBJ 
DXF 

Instances

Instances details
Eq OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Read OutputFormat Source #

A Read instance for our output format. Used by auto in our command line parser. Reads a string, and evaluates to the appropriate OutputFormat.

Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Show OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Default OutputFormat Source # 
Instance details

Defined in Graphics.Implicit.Export.OutputFormat

Methods

def :: OutputFormat #

guessOutputFormat :: FilePath -> OutputFormat Source #

Lookup an output format for a given output file. Throw an error if one cannot be found.

formatExtensions :: [(String, OutputFormat)] Source #

A list mapping file extensions to output formats.

formatExtension :: OutputFormat -> String Source #

Get filename extension for OutputFormat

formats2D :: [OutputFormat] Source #

All supported 2D formats

formatIs2D :: OutputFormat -> Bool Source #

True for 2D capable OutputFormats

def2D :: OutputFormat Source #

Default 2D output format

formats3D :: [OutputFormat] Source #

All supported 3D formats

formatIs3D :: OutputFormat -> Bool Source #

True for 3D capable OutputFormats

def3D :: OutputFormat Source #

Default 3D output format