Graphviz 13.0.0~dev.20250204.0809
|
Go to the source code of this file.
Functions | |
void | init_viewport (ViewInfo *view) |
void | set_viewport_settings_from_template (ViewInfo *view, Agraph_t *) |
void | switch_graph (int) |
void | refreshViewport (void) |
int | add_graph_to_viewport_from_file (char *fileName) |
int | add_graph_to_viewport (Agraph_t *graph, char *) |
void | close_graph (ViewInfo *view) |
int | save_graph (void) |
int | save_graph_with_file_name (Agraph_t *graph, char *fileName) |
int | save_as_graph (void) |
int | do_graph_layout (Agraph_t *graph, int Engine, int keeppos) |
void | glexpose (void) |
void | getcolorfromschema (const colorschemaset sc, float l, float maxl, glCompColor *c) |
void | updateRecord (Agraph_t *g) |
char * | get_attribute_value (char *attr, ViewInfo *view, Agraph_t *g) |
int add_graph_to_viewport | ( | Agraph_t * | graph, |
char * | id | ||
) |
Definition at line 430 of file viewport.c.
References activate(), _ViewInfo::g, graph(), _ViewInfo::graphComboBox, _ViewInfo::graphCount, gv_recalloc(), and view.
Referenced by add_graph_to_viewport_from_file(), and run_gvpr().
int add_graph_to_viewport_from_file | ( | char * | fileName | ) |
Definition at line 363 of file viewport.c.
References add_graph_to_viewport(), fileName(), graph(), and loadGraph().
Referenced by cb_display(), expose_event(), and mOpenSlot().
void close_graph | ( | ViewInfo * | view | ) |
Definition at line 71 of file viewport.c.
References _ViewInfo::activeGraph, and clear_viewport().
Referenced by cb_display(), expose_event(), mCloseSlot(), and mQuitSlot().
int do_graph_layout | ( | Agraph_t * | graph, |
int | Engine, | ||
int | keeppos | ||
) |
Definition at line 77 of file viewport.c.
References agget(), systemgraphs::def_attrs, and _ViewInfo::systemGraphs.
Referenced by changetopfishfocus(), prepare_topological_fisheye(), and set_viewport_settings_from_template().
void getcolorfromschema | ( | const colorschemaset | sc, |
float | l, | ||
float | maxl, | ||
glCompColor * | c | ||
) |
Definition at line 549 of file viewport.c.
void glexpose | ( | void | ) |
Definition at line 539 of file viewport.c.
void init_viewport | ( | ViewInfo * | view | ) |
Definition at line 190 of file viewport.c.
References glCompColor::A, _ViewInfo::active_camera, _ViewInfo::active_frame, _ViewInfo::activeGraph, agread(), _ViewInfo::arcball, systemgraphs::attrs_widgets, glCompColor::B, _ViewInfo::bdVisible, _ViewInfo::bdxLeft, _ViewInfo::bdxRight, _ViewInfo::bdyBottom, _ViewInfo::bdyTop, _ViewInfo::bgColor, _ViewInfo::borderColor, _ViewInfo::camera_count, _ViewInfo::cameras, clear_color_theme(), levelparms_t::coarsening_rate, _ViewInfo::colschms, systemgraphs::def_attrs, hierparms_t::dist2_limit, reposition_t::distortion, glCompMouse::down, _ViewInfo::fillColor, topview::fisheyeParams, free(), topview::fs, _ViewInfo::g, glCompColor::G, get_data_dir(), gl_main_expose(), glcreate_gl_topview_menu(), _ViewInfo::graphCount, topview::Graphdata, _graph_data::GraphFileName, graphviz_exit(), _ViewInfo::gridColor, _ViewInfo::gridSize, _ViewInfo::gridVisible, GUI_FULLSCREEN, GUI_WINDOWED, _ViewInfo::guiMode, gv_alloc(), reposition_t::height, topview::hier, topview::level, _ViewInfo::LineWidth, load_mouse_actions(), _ViewInfo::mouse, NULL, levelparms_t::num_fine_nodes, _ViewInfo::panx, _ViewInfo::pany, _ViewInfo::penColor, glCompColor::R, topview::repos, _ViewInfo::selectedNodeColor, set_viewport_settings_from_template(), SIZE_MAX, smyrnaPath(), _ViewInfo::systemGraphs, _ViewInfo::template_file, _ViewInfo::timer, _ViewInfo::timer2, _ViewInfo::timer3, _ViewInfo::Topview, _ViewInfo::total_frames, _ViewInfo::widgets, reposition_t::width, topview::xDot, and _ViewInfo::zoom.
Referenced by main().
void refreshViewport | ( | void | ) |
Definition at line 410 of file viewport.c.
References _ViewInfo::activeGraph, _ViewInfo::drawing_area, expose_event(), _ViewInfo::g, graph(), graphRecord(), GUI_FULLSCREEN, _ViewInfo::guiMode, initSmGraph(), load_settings_from_graph(), NULL, set_viewport_settings_from_template(), _ViewInfo::Topview, update_graph_from_settings(), and view.
Referenced by activate(), and run_gvpr().
int save_as_graph | ( | void | ) |
Definition at line 509 of file viewport.c.
References _ViewInfo::activeGraph, _ViewInfo::g, NULL, save_graph_with_file_name(), and view.
Referenced by mSaveAsSlot(), and save_graph().
int save_graph | ( | void | ) |
Definition at line 489 of file viewport.c.
References _ViewInfo::activeGraph, _ViewInfo::g, topview::Graphdata, _graph_data::GraphFileName, save_as_graph(), save_graph_with_file_name(), _ViewInfo::Topview, and view.
Referenced by mSaveSlot().
int save_graph_with_file_name | ( | Agraph_t * | graph, |
char * | fileName | ||
) |
Definition at line 459 of file viewport.c.
References agwrite(), fileName(), graph(), topview::Graphdata, _graph_data::GraphFileName, NULL, _ViewInfo::Topview, update_graph_params(), and view.
Referenced by save_as_graph(), save_as_graph_clicked(), and save_graph().
Definition at line 85 of file viewport.c.
References glCompColor::A, glCompColor::B, _ViewInfo::bdVisible, _ViewInfo::bgColor, _ViewInfo::borderColor, colorxlate(), _ViewInfo::colschms, create_color_theme(), _ViewInfo::defaultnodealpha, _ViewInfo::drawedgelabels, _ViewInfo::drawedges, _ViewInfo::drawnodelabels, _ViewInfo::drawnodes, _ViewInfo::edgelabelcolor, glCompColor::G, get_attribute_value(), get_glut_font(), _ViewInfo::glutfont, _ViewInfo::graphCount, _ViewInfo::gridColor, _ViewInfo::gridSize, _ViewInfo::gridVisible, _ViewInfo::labelnumberofnodes, _ViewInfo::labelshowedges, _ViewInfo::labelshownodes, _ViewInfo::LineWidth, _ViewInfo::nodelabelcolor, _ViewInfo::nodeScale, glCompColor::R, color_s::RGBA, RGBA_DOUBLE, _ViewInfo::selectedNodeColor, and color_s::u.
Referenced by init_viewport(), on_settingsApplyBtn_clicked(), and refreshViewport().
void switch_graph | ( | int | graphId | ) |
Definition at line 448 of file viewport.c.
References activate(), _ViewInfo::graphCount, and view.
Referenced by on_btnActivateGraph_clicked().
void updateRecord | ( | Agraph_t * | g | ) |
Definition at line 373 of file viewport.c.
References agattr(), AGEDGE, AGNODE, GE_labelattribute, GE_pos, GE_selected, GE_visible, GN_labelattribute, GN_selected, GN_size, and GN_visible.
Referenced by graphRecord(), and run_gvpr().