gfsmDraw.h
Go to the documentation of this file.
1 
2 /*=============================================================================*\
3  * File: gfsmDraw.h
4  * Author: Bryan Jurish <moocow.bovine@gmail.com>
5  * Description: finite state machine library: automata: visualization
6  *
7  * Copyright (c) 2004-2007 Bryan Jurish.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 3 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  *=============================================================================*/
23 
28 #ifndef _GFSM_DRAW_H
29 #define _GFSM_DRAW_H
30 
31 #include <gfsmAutomaton.h>
32 
33 /*======================================================================
34  * Automaton Methods: Visualization: vcg
35  */
37 
38 
41  FILE *f,
42  gfsmAlphabet *lo_alphabet,
43  gfsmAlphabet *hi_alphabet,
44  gfsmAlphabet *state_alphabet,
45  const gchar *title,
46  int xspace, // ?
47  int yspace, // ?
48  const gchar *orientation, // "(top|bottom|left|right)_to_(ditto)"
49  const gchar *state_shape,
50  const gchar *state_color,
51  const gchar *final_color,
52  gfsmError **errp);
53 
56  const gchar *filename,
57  gfsmAlphabet *lo_alphabet,
58  gfsmAlphabet *hi_alphabet,
59  gfsmAlphabet *state_alphabet,
60  const gchar *title,
61  int xspace, // ?
62  int yspace, // ?
63  const gchar *orientation, // "(top|bottom|left|right)_to_(ditto)"
64  const gchar *state_shape,
65  const gchar *state_color,
66  const gchar *final_color,
67  gfsmError **errp);
69 
70 
71 /*======================================================================
72  * Automaton Methods: Visualization: dot
73  */
75 
76 
79  FILE *f,
80  gfsmAlphabet *lo_alphabet,
81  gfsmAlphabet *hi_alphabet,
82  gfsmAlphabet *state_alphabet,
83  const gchar *title,
84  float width,
85  float height,
86  int fontsize,
87  const gchar *fontname,
88  gboolean portrait,
89  gboolean vertical,
90  float nodesep,
91  float ranksep,
92  gfsmError **errp);
93 
96  const gchar *filename,
97  gfsmAlphabet *lo_alphabet,
98  gfsmAlphabet *hi_alphabet,
99  gfsmAlphabet *state_alphabet,
100  const gchar *title,
101  float width,
102  float height,
103  int fontsize,
104  const gchar *fontname,
105  gboolean portrait,
106  gboolean vertical,
107  float nodesep,
108  float ranksep,
109  gfsmError **errp);
111 
112 
113 #endif /* _GFSM_DRAW_H */