Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
glcompui.c File Reference
#include "glcompui.h"
#include <glcomp/glcompbutton.h>
#include <glcomp/glcomppanel.h>
#include <glcomp/glcomplabel.h>
#include <glcomp/glcompimage.h>
#include "gltemplate.h"
#include <glcomp/glutils.h>
#include "glmotion.h"
#include "topfisheyeview.h"
#include "toolboxcallbacks.h"
#include "viewportcamera.h"
#include "selectionfuncs.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "frmobjectui.h"
Include dependency graph for glcompui.c:

Go to the source code of this file.

Functions

void menu_click_pan (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void menu_click_zoom_minus (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void menu_click_zoom_plus (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void menu_switch_to_fisheye (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void menu_click_center (glCompObj *obj, float x, float y, glMouseButtonType t)
 
void switch2D3D (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void CBglCompMouseUp (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void CBglCompMouseRightClick (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void attrList (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void glCompMouseMove (glCompObj *obj, float x, float y)
 
static void selectedges (glCompObj *obj, float x, float y, glMouseButtonType t)
 
static void selectnodes (glCompObj *obj, float x, float y, glMouseButtonType t)
 
glCompSetglcreate_gl_topview_menu (void)
 

Variables

static glCompPanelsel = NULL
 
static glCompButtonto3DBtn
 
static glCompButtonto2DBtn
 
static glCompButtontoFisheye
 
static glCompButtontoNormal
 
static glCompImageimgFisheye
 
static glCompImageimg3D
 
static glCompButtonpanBtn
 

Function Documentation

◆ attrList()

static void attrList ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 169 of file glcompui.c.

References showAttrsWidget().

Referenced by glcreate_gl_topview_menu().

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

◆ CBglCompMouseRightClick()

static void CBglCompMouseRightClick ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 157 of file glcompui.c.

References glMouseRightButton, to3D(), X, and Y.

Referenced by glcreate_gl_topview_menu().

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

◆ CBglCompMouseUp()

static void CBglCompMouseUp ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 146 of file glcompui.c.

References glCompPanel::base, glCompObj_::common, glCompCommon::pos, sel, glCompCommon::visible, and glCompPoint::x.

Referenced by glcreate_gl_topview_menu().

Here is the caller graph for this function:

◆ glCompMouseMove()

static void glCompMouseMove ( glCompObj obj,
float  x,
float  y 
)
static

Definition at line 178 of file glcompui.c.

References glCompPanel::base, glCompObj_::common, glCompMouse::down, glCompMouse::dragX, glCompMouse::dragY, glexpose(), glMouseRightButton, glCompCommon::height, glCompCommon::pos, sel, glCompMouse::t, glCompCommon::visible, glCompCommon::width, glCompPoint::x, glCompMouse::x, glCompPoint::y, and glCompMouse::y.

Referenced by glcreate_gl_topview_menu().

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

◆ glcreate_gl_topview_menu()

◆ menu_click_center()

void menu_click_center ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 99 of file glcompui.c.

References _ViewInfo::active_camera, btnToolZoomFit_clicked(), _ViewInfo::cameras, NULL, _viewport_camera::r, SIZE_MAX, _viewport_camera::targetx, _viewport_camera::targety, and view.

Referenced by cb_keyboard(), and glcreate_gl_topview_menu().

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

◆ menu_click_pan()

void menu_click_pan ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 38 of file glcompui.c.

References _ViewInfo::activeGraph, deselect_all(), _ViewInfo::g, and view.

Referenced by cb_keyboard(), and glcreate_gl_topview_menu().

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

◆ menu_click_zoom_minus()

void menu_click_zoom_minus ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 47 of file glcompui.c.

References glmotion_zoom_inc().

Referenced by cb_keyboard(), and glcreate_gl_topview_menu().

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

◆ menu_click_zoom_plus()

void menu_click_zoom_plus ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 58 of file glcompui.c.

References glmotion_zoom_inc().

Referenced by cb_keyboard(), and glcreate_gl_topview_menu().

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

◆ menu_switch_to_fisheye()

static void menu_switch_to_fisheye ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 68 of file glcompui.c.

References topview::active, _ViewInfo::activeGraph, glCompImage::base, glCompObj_::common, topview::fisheyeParams, _ViewInfo::g, glCompButtonHide(), glCompButtonShow(), topview::h, imgFisheye, prepare_topological_fisheye(), _ViewInfo::timer, toFisheye, toNormal, _ViewInfo::Topview, view, and glCompCommon::visible.

Referenced by glcreate_gl_topview_menu().

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

◆ selectedges()

static void selectedges ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 196 of file glcompui.c.

References topview::sel, _selection::selectEdges, _ViewInfo::Topview, and view.

Referenced by glcreate_gl_topview_menu().

Here is the caller graph for this function:

◆ selectnodes()

static void selectnodes ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)
static

Definition at line 205 of file glcompui.c.

References topview::sel, _selection::selectNodes, _ViewInfo::Topview, and view.

Referenced by glcreate_gl_topview_menu().

Here is the caller graph for this function:

◆ switch2D3D()

void switch2D3D ( glCompObj obj,
float  x,
float  y,
glMouseButtonType  t 
)

Definition at line 116 of file glcompui.c.

References _ViewInfo::active_camera, glCompImage::base, glCompButton::base, glCompCommon::callbacks, _ViewInfo::camera_count, glCompCallBacks::click, glCompObj_::common, glCompButtonHide(), glCompButtonShow(), glMouseLeftButton, img3D, menu_click_add_camera(), panBtn, SIZE_MAX, to2DBtn, to3DBtn, view, and glCompCommon::visible.

Referenced by cb_keyboard(), and glcreate_gl_topview_menu().

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

Variable Documentation

◆ img3D

glCompImage* img3D
static

Definition at line 34 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and switch2D3D().

◆ imgFisheye

glCompImage* imgFisheye
static

Definition at line 33 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and menu_switch_to_fisheye().

◆ panBtn

glCompButton* panBtn
static

Definition at line 35 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and switch2D3D().

◆ sel

glCompPanel* sel = NULL
static

Definition at line 28 of file glcompui.c.

Referenced by CBglCompMouseUp(), glCompMouseMove(), and glcreate_gl_topview_menu().

◆ to2DBtn

glCompButton* to2DBtn
static

Definition at line 30 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and switch2D3D().

◆ to3DBtn

glCompButton* to3DBtn
static

Definition at line 29 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and switch2D3D().

◆ toFisheye

glCompButton* toFisheye
static

Definition at line 31 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and menu_switch_to_fisheye().

◆ toNormal

glCompButton* toNormal
static

Definition at line 32 of file glcompui.c.

Referenced by glcreate_gl_topview_menu(), and menu_switch_to_fisheye().