~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to cmd/smyrna/draw.h

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: draw.h,v 1.6 2008/04/25 17:14:52 arif Exp $ $Revision: 1.6 $ */
 
1
/* $Id: draw.h,v 1.19 2009/10/15 23:12:23 ellson Exp $ $Revision: 1.19 $ */
2
2
/* vim:set shiftwidth=4 ts=8: */
3
3
 
4
4
/**********************************************************
22
22
#include <stdlib.h>
23
23
#include <string.h>
24
24
#include <math.h>
25
 
 
26
 
typedef struct {
27
 
    xdot_op op;
28
 
    void *obj;
29
 
    int size;
30
 
} sdot_op;
31
 
 
 
25
#include "glcompfont.h"
 
26
 
 
27
#ifdef __cplusplus
 
28
extern "C" {
 
29
#endif
32
30
/* DRAWING FUNCTIONS 
33
31
 * these are opengl based xdot drawing functions 
34
32
 * topview drawings are not here
35
33
 */
36
 
extern drawfunc_t OpFns[];
37
 
extern void drawGraph(Agraph_t * g);
38
 
void draw_selection_box(ViewInfo * view);
39
 
void draw_magnifier(ViewInfo * view);
40
 
void draw_fisheye_magnifier(ViewInfo * view);
41
 
extern int randomize_color(RGBColor * c, int brightness);
42
 
extern void drawCircle(float x, float y, float radius, float zdepth);
43
 
extern RGBColor GetRGBColor(char *color);
44
 
extern void drawBorders(ViewInfo * view);
45
 
void drawEllipse(float xradius, float yradius,int angle1,int angle2);
46
 
int draw_node_hintbox(GLfloat x,GLfloat y,GLfloat fs,GLfloat pad,GLfloat z,GLfloat kts,GLfloat z_offset);
 
34
    extern drawfunc_t OpFns[];
 
35
    extern void drawGraph(Agraph_t * g);
 
36
    void scanGraph(Agraph_t * g);
 
37
    void draw_selection_box(ViewInfo * view);
 
38
    void draw_magnifier(ViewInfo * view);
 
39
    void draw_fisheye_magnifier(ViewInfo * view);
 
40
    extern int randomize_color(glCompColor * c, int brightness);
 
41
    extern void drawCircle(float x, float y, float radius, float zdepth);
 
42
    extern glCompColor GetglCompColor(char *color);
 
43
    extern void drawBorders(ViewInfo * view);
 
44
    void drawEllipse(float xradius, float yradius, int angle1, int angle2);
 
45
    int draw_node_hintbox(GLfloat x, GLfloat y, GLfloat z, GLfloat fs,
 
46
                          char *text);
 
47
        void draw_sphere(float x, float y, float z, float r);
 
48
 
 
49
        /*xdot drawing functions*/
 
50
        extern void DrawBeziers(sdot_op* o, int param);
 
51
        extern void DrawEllipse(sdot_op * op, int param);
 
52
        extern void DrawPolygon(sdot_op * op, int param);
 
53
        extern void DrawPolyline(sdot_op * op, int param);
 
54
        extern void SetFillColor(sdot_op*  o, int param);
 
55
        extern void SetPenColor(sdot_op* o, int param);
 
56
        extern void SetStyle(sdot_op* o, int param);
 
57
        extern void SetFont(sdot_op * o, int param);
 
58
        extern void InsertImage(sdot_op * o, int param);
 
59
        extern void EmbedText(sdot_op * o, int param);
 
60
 
 
61
        typedef struct 
 
62
        {
 
63
                glCompColor color;
 
64
                float width;
 
65
        }xdotstyle;
 
66
 
 
67
 
 
68
 
 
69
        typedef struct 
 
70
        {
 
71
                glCompColor penColor;
 
72
                glCompColor fillColor;
 
73
                xdotstyle style;
 
74
    } xdotstate;        
 
75
 
 
76
 
 
77
 
 
78
 
 
79
#ifdef __cplusplus
 
80
}                               /* end extern "C" */
 
81
#endif
47
82
#endif