Graphviz 13.0.0~dev.20250204.0809
Loading...
Searching...
No Matches
viewport.h File Reference
#include "smyrnadefs.h"
#include <gtk/gtk.h>
#include <xdot/xdot.h>
#include <cgraph/cgraph.h>
Include dependency graph for viewport.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ add_graph_to_viewport()

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().

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

◆ add_graph_to_viewport_from_file()

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().

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

◆ close_graph()

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().

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

◆ do_graph_layout()

int do_graph_layout ( Agraph_t graph,
int  Engine,
int  keeppos 
)

◆ get_attribute_value()

char * get_attribute_value ( char *  attr,
ViewInfo view,
Agraph_t g 
)
extern

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().

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

◆ getcolorfromschema()

void getcolorfromschema ( const colorschemaset  sc,
float  l,
float  maxl,
glCompColor c 
)

Definition at line 549 of file viewport.c.

◆ glexpose()

void glexpose ( void  )

Definition at line 539 of file viewport.c.

◆ init_viewport()

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().

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

◆ refreshViewport()

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().

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

◆ save_as_graph()

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().

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

◆ 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().

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

◆ save_graph_with_file_name()

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().

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

◆ set_viewport_settings_from_template()

◆ switch_graph()

void switch_graph ( int  graphId)

Definition at line 448 of file viewport.c.

References activate(), _ViewInfo::graphCount, and view.

Referenced by on_btnActivateGraph_clicked().

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

◆ updateRecord()

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().

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