Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
smyrnadefs.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <xdot/xdot.h>
#include <gtk/gtk.h>
#include <glcomp/opengl.h>
#include <gtk/gtkgl.h>
#include <cgraph/cgraph.h>
#include <cgraph/list.h>
#include <glcomp/glcompset.h>
#include "hier.h"
#include <glcomp/glutils.h>
Include dependency graph for smyrnadefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  attr_t
 
struct  attr_list
 
struct  sdot_op
 
struct  colorschema
 
struct  colorschemaset
 
struct  topviewcache
 
struct  mouse_action_t
 
struct  _viewport_camera
 
struct  _graph_data
 
struct  nodeRec
 
struct  edgeRec
 
struct  graphRec
 
struct  _selection
 
struct  topview
 
struct  systemgraphs
 
struct  _ViewInfo
 

Macros

#define _BB
 
#define GL_VIEWPORT_FACTOR   100
 
#define MM_PAN   0
 
#define MM_ZOOM   1
 
#define MM_ROTATE   2
 
#define MM_SINGLE_SELECT   3
 
#define MM_RECTANGULAR_SELECT   4
 
#define MM_RECTANGULAR_X_SELECT   5
 
#define MM_MOVE   10
 
#define MM_MAGNIFIER   20
 
#define MM_FISHEYE_MAGNIFIER   21
 
#define MM_FISHEYE_PICK   22 /*fisheye select foci point*/
 
#define MM_POLYGON_SELECT   30
 
#define MAX_ZOOM   500.0f
 
#define MIN_ZOOM   0.005f
 
#define DEG2RAD   G_PI/180
 
#define MAX_FILTERED_ATTR_COUNT   50
 
#define NREC(n)   ((nodeRec*)(aggetrec(n,"nodeRec",0)))
 
#define ND_visible(n)   (NREC(n)->visible)
 
#define ND_selected(n)   (NREC(n)->selected)
 
#define ND_printLabel(n)   (NREC(n)->printLabel)
 
#define ND_A(n)   (NREC(n)->A)
 
#define ND_size(n)   (NREC(n)->size)
 
#define ND_TVref(n)   (NREC(n)->TVref)
 
#define EREC(e)   ((edgeRec*)(aggetrec(e,"edgeRec",0)))
 
#define ED_selected(e)   (EREC(e)->selected)
 
#define ED_posTail(e)   (EREC(e)->posTail)
 
#define ED_posHead(e)   (EREC(e)->posHead)
 
#define GREC(g)   ((graphRec*)(AGDATA(g)))
 
#define GN_pos(g)   (GREC(g)->N_pos)
 
#define GN_size(g)   (GREC(g)->N_size)
 
#define GN_visible(g)   (GREC(g)->N_visible)
 
#define GN_selected(g)   (GREC(g)->N_selected)
 
#define GG_nodelabelcolor(g)   (GREC(g)->G_nodelabelcolor)
 
#define GN_labelattribute(g)   (GREC(g)->N_labelattribute)
 
#define GG_labelattribute(g)   (GREC(g)->GN_labelattribute)
 
#define GE_pos(g)   (GREC(g)->E_pos)
 
#define GE_visible(g)   (GREC(g)->E_visible)
 
#define GE_selected(g)   (GREC(g)->E_selected)
 
#define GG_edgelabelcolor(g)   (GREC(g)->G_edgelabelcolor)
 
#define GE_labelattribute(g)   (GREC(g)->E_labelattribute)
 
#define GG_elabelattribute(g)   (GREC(g)->GE_labelattribute)
 
#define GUI_WINDOWED   0
 
#define GUI_FULLSCREEN   1
 

Typedefs

typedef struct _ArcBall_t ArcBall_t
 
typedef struct _viewport_camera viewport_camera
 
typedef struct _graph_data graph_data
 
typedef struct _selection selection
 
typedef struct _ViewInfo ViewInfo
 

Enumerations

enum  attr_data_type { attr_alpha , attr_float , attr_int , attr_bool }
 
enum  smyrna_view_mode {
  smyrna_all , smyrna_2D , smyrna_3D , smyrna_fisheye ,
  smyrna_all_but_fisheye
}
 
enum  gvk_layout {
  GVK_DOT , GVK_NEATO , GVK_TWOPI , GVK_CIRCO ,
  GVK_FDP
}
 

Functions

char * smyrnaPath (char *suffix)
 
void glexpose (void)
 

Variables

ViewInfoview
 

Macro Definition Documentation

◆ _BB

#define _BB

Definition at line 34 of file smyrnadefs.h.

◆ DEG2RAD

#define DEG2RAD   G_PI/180

Definition at line 56 of file smyrnadefs.h.

◆ ED_posHead

#define ED_posHead (   e)    (EREC(e)->posHead)

Definition at line 177 of file smyrnadefs.h.

◆ ED_posTail

#define ED_posTail (   e)    (EREC(e)->posTail)

Definition at line 176 of file smyrnadefs.h.

◆ ED_selected

#define ED_selected (   e)    (EREC(e)->selected)

Definition at line 175 of file smyrnadefs.h.

◆ EREC

#define EREC (   e)    ((edgeRec*)(aggetrec(e,"edgeRec",0)))

Definition at line 174 of file smyrnadefs.h.

◆ GE_labelattribute

#define GE_labelattribute (   g)    (GREC(g)->E_labelattribute)

Definition at line 207 of file smyrnadefs.h.

◆ GE_pos

#define GE_pos (   g)    (GREC(g)->E_pos)

Definition at line 203 of file smyrnadefs.h.

◆ GE_selected

#define GE_selected (   g)    (GREC(g)->E_selected)

Definition at line 205 of file smyrnadefs.h.

◆ GE_visible

#define GE_visible (   g)    (GREC(g)->E_visible)

Definition at line 204 of file smyrnadefs.h.

◆ GG_edgelabelcolor

#define GG_edgelabelcolor (   g)    (GREC(g)->G_edgelabelcolor)

Definition at line 206 of file smyrnadefs.h.

◆ GG_elabelattribute

#define GG_elabelattribute (   g)    (GREC(g)->GE_labelattribute)

Definition at line 208 of file smyrnadefs.h.

◆ GG_labelattribute

#define GG_labelattribute (   g)    (GREC(g)->GN_labelattribute)

Definition at line 202 of file smyrnadefs.h.

◆ GG_nodelabelcolor

#define GG_nodelabelcolor (   g)    (GREC(g)->G_nodelabelcolor)

Definition at line 200 of file smyrnadefs.h.

◆ GL_VIEWPORT_FACTOR

#define GL_VIEWPORT_FACTOR   100

Definition at line 39 of file smyrnadefs.h.

◆ GN_labelattribute

#define GN_labelattribute (   g)    (GREC(g)->N_labelattribute)

Definition at line 201 of file smyrnadefs.h.

◆ GN_pos

#define GN_pos (   g)    (GREC(g)->N_pos)

Definition at line 196 of file smyrnadefs.h.

◆ GN_selected

#define GN_selected (   g)    (GREC(g)->N_selected)

Definition at line 199 of file smyrnadefs.h.

◆ GN_size

#define GN_size (   g)    (GREC(g)->N_size)

Definition at line 197 of file smyrnadefs.h.

◆ GN_visible

#define GN_visible (   g)    (GREC(g)->N_visible)

Definition at line 198 of file smyrnadefs.h.

◆ GREC

#define GREC (   g)    ((graphRec*)(AGDATA(g)))

Definition at line 195 of file smyrnadefs.h.

◆ GUI_FULLSCREEN

#define GUI_FULLSCREEN   1

Definition at line 211 of file smyrnadefs.h.

◆ GUI_WINDOWED

#define GUI_WINDOWED   0

Definition at line 210 of file smyrnadefs.h.

◆ MAX_FILTERED_ATTR_COUNT

#define MAX_FILTERED_ATTR_COUNT   50

Definition at line 58 of file smyrnadefs.h.

◆ MAX_ZOOM

#define MAX_ZOOM   500.0f

Definition at line 53 of file smyrnadefs.h.

◆ MIN_ZOOM

#define MIN_ZOOM   0.005f

Definition at line 54 of file smyrnadefs.h.

◆ MM_FISHEYE_MAGNIFIER

#define MM_FISHEYE_MAGNIFIER   21

Definition at line 49 of file smyrnadefs.h.

◆ MM_FISHEYE_PICK

#define MM_FISHEYE_PICK   22 /*fisheye select foci point*/

Definition at line 50 of file smyrnadefs.h.

◆ MM_MAGNIFIER

#define MM_MAGNIFIER   20

Definition at line 48 of file smyrnadefs.h.

◆ MM_MOVE

#define MM_MOVE   10

Definition at line 47 of file smyrnadefs.h.

◆ MM_PAN

#define MM_PAN   0

Definition at line 41 of file smyrnadefs.h.

◆ MM_POLYGON_SELECT

#define MM_POLYGON_SELECT   30

Definition at line 51 of file smyrnadefs.h.

◆ MM_RECTANGULAR_SELECT

#define MM_RECTANGULAR_SELECT   4

Definition at line 45 of file smyrnadefs.h.

◆ MM_RECTANGULAR_X_SELECT

#define MM_RECTANGULAR_X_SELECT   5

Definition at line 46 of file smyrnadefs.h.

◆ MM_ROTATE

#define MM_ROTATE   2

Definition at line 43 of file smyrnadefs.h.

◆ MM_SINGLE_SELECT

#define MM_SINGLE_SELECT   3

Definition at line 44 of file smyrnadefs.h.

◆ MM_ZOOM

#define MM_ZOOM   1

Definition at line 42 of file smyrnadefs.h.

◆ ND_A

#define ND_A (   n)    (NREC(n)->A)

Definition at line 164 of file smyrnadefs.h.

◆ ND_printLabel

#define ND_printLabel (   n)    (NREC(n)->printLabel)

Definition at line 163 of file smyrnadefs.h.

◆ ND_selected

#define ND_selected (   n)    (NREC(n)->selected)

Definition at line 162 of file smyrnadefs.h.

◆ ND_size

#define ND_size (   n)    (NREC(n)->size)

Definition at line 165 of file smyrnadefs.h.

◆ ND_TVref

#define ND_TVref (   n)    (NREC(n)->TVref)

Definition at line 166 of file smyrnadefs.h.

◆ ND_visible

#define ND_visible (   n)    (NREC(n)->visible)

Definition at line 161 of file smyrnadefs.h.

◆ NREC

#define NREC (   n)    ((nodeRec*)(aggetrec(n,"nodeRec",0)))

Definition at line 160 of file smyrnadefs.h.

Typedef Documentation

◆ ArcBall_t

typedef struct _ArcBall_t ArcBall_t

Definition at line 37 of file smyrnadefs.h.

◆ graph_data

typedef struct _graph_data graph_data

◆ selection

typedef struct _selection selection

◆ ViewInfo

typedef struct _ViewInfo ViewInfo

◆ viewport_camera

Enumeration Type Documentation

◆ attr_data_type

Enumerator
attr_alpha 
attr_float 
attr_int 
attr_bool 

Definition at line 60 of file smyrnadefs.h.

◆ gvk_layout

enum gvk_layout
Enumerator
GVK_DOT 
GVK_NEATO 
GVK_TWOPI 
GVK_CIRCO 
GVK_FDP 

Definition at line 104 of file smyrnadefs.h.

◆ smyrna_view_mode

Enumerator
smyrna_all 
smyrna_2D 
smyrna_3D 
smyrna_fisheye 
smyrna_all_but_fisheye 

Definition at line 61 of file smyrnadefs.h.

Function Documentation

◆ glexpose()

void glexpose ( void  )
extern

Definition at line 540 of file viewport.c.

References _ViewInfo::drawing_area, expose_event(), NULL, and view.

Referenced by appmouse_key_release(), btnToolFit_clicked(), glCompMouseMove(), glmotion_zoom_inc(), and scroll_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smyrnaPath()

char * smyrnaPath ( char *  suffix)
extern

Definition at line 68 of file main.c.

References gv_calloc(), len(), smyrnaDir, and suffix.

Referenced by get_data_dir(), glcreate_gl_topview_menu(), init_viewport(), load_attr_list(), load_mouse_actions(), and windowedMode().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ view

ViewInfo* view
extern

Definition at line 37 of file viewport.c.

Referenced by activate(), add_graph_to_viewport(), aglocaldictsym(), apply_actions(), appmouse_down(), appmouse_key_release(), appmouse_up(), arcmouseClick(), arcmouseDrag(), btnToolFit_clicked(), btnToolZoomFit_clicked(), button_press_event(), button_release_event(), cb_display(), cb_drag(), cb_keyboard(), cb_keyboard_up(), cb_mouseclick(), cb_reshape(), cb_special_key(), cb_special_key_up(), change_cursor(), changetopfishfocus(), configure_event(), create_color_theme(), create_save_subgraph_from_filter(), create_window(), deselect_all(), doApply(), draw_selpoly(), draw_xdot(), DrawBezier(), DrawBeziers(), drawCircle(), DrawEllipse(), DrawPolygon(), DrawPolyline(), drawRotatingAxis(), drawtopfishedges(), drawtopfishnodes(), dtview(), EmbedText(), expose_event(), get_active_frame(), get_button(), get_data_dir(), get_temp_coords(), GetglCompColor(), gl_main_expose(), glcreate_gl_topview_menu(), glexpose(), glmotion_zoom(), glmotion_zoom_inc(), graph_zoom(), gvpr_select(), initSmGraph(), key_press_event(), key_release_event(), load_attr_list(), load_graph_properties(), load_settings_from_graph(), loadGraph(), main(), mCloseSlot(), menu_click_add_camera(), menu_click_center(), menu_click_pan(), menu_switch_to_fisheye(), mGraphPropertiesSlot(), mNodeListSlot(), motion_notify_event(), mPropertiesSlot(), mQuitSlot(), mShowToolBoxSlot(), mTestgvpr(), object_color(), on_attrAddBtn_clicked(), on_attrRB0_clicked(), on_btnActivateGraph_clicked(), on_settingsApplyBtn_clicked(), on_txtAttr_changed(), pick_object(), pick_objects_in_rect(), pick_objects_rect(), prepare_topological_fisheye(), realize(), refreshViewport(), Render_Contour2(), renderEdgeLabels(), renderEdges(), renderNodeLabels(), renderNodes(), renderSelectedNodes(), renderSmGraph(), run_gvpr(), save_as_graph(), save_as_graph_clicked(), save_graph(), save_graph_with_file_name(), scroll_event(), select_polygon(), selectedges(), selectnodes(), set_boundaries(), set_checkbox_widget(), set_color_button_widget(), set_combobox_widget(), set_header_text(), set_options(), set_scalebtn_widget_to_attribute(), set_spinbtn_widget(), set_text_widget(), SetFillColor(), SetPenColor(), show_settings_form(), showAttrsWidget(), switch2D3D(), switch_graph(), tv_hide_all(), tv_show_all(), update_graph_from_settings(), update_graph_params(), updateSmGraph(), windowedMode(), write_dict(), and writeDict().