|
Graphviz 14.0.3~dev.20251028.0232
|
#include <glcomp/glutils.h>#include <stdbool.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <glcomp/glcompdefs.h>#include <math.h>Go to the source code of this file.
Functions | |
| void | GetOGLPosRef (int x, int y, float *X, float *Y) |
| double | GetOGLDistance (double l) |
| void | to3D (int x, int y, float *X, float *Y, float *Z) |
| static glCompPoint | sub (glCompPoint p, glCompPoint q) |
| static double | dot (glCompPoint p, glCompPoint q) |
| static double | len (glCompPoint p) |
| static glCompPoint | blend (glCompPoint p, glCompPoint q, float m) |
| static double | dist (glCompPoint p, glCompPoint q) |
| double | point_to_lineseg_dist (glCompPoint p, glCompPoint a, glCompPoint b) |
| void | glCompCalcWidget (glCompCommon *parent, glCompCommon *child, glCompCommon *ref) |
| static void | glCompQuadVertex (glCompPoint p0, glCompPoint p1, glCompPoint p2, glCompPoint p3) |
| void | glCompSetColor (glCompColor c) |
| void | glCompDrawRectangle (glCompRect *r) |
| void | glCompDrawRectPrism (glCompPoint p, float w, float h, float b, glCompColor c, bool bumped) |
| double | distBetweenPts (glCompPoint A, glCompPoint B, double R) |
| int | is_point_in_rectangle (float X, float Y, float RX, float RY, float RW, float RH) |
|
static |
Definition at line 141 of file glutils.c.
References glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by point_to_lineseg_dist().
|
static |
Definition at line 151 of file glutils.c.
Referenced by point_to_lineseg_dist().
| double distBetweenPts | ( | glCompPoint | A, |
| glCompPoint | B, | ||
| double | R | ||
| ) |
Definition at line 326 of file glutils.c.
Referenced by pick_object().
|
static |
Definition at line 131 of file glutils.c.
References glCompPoint::x, glCompPoint::y, and glCompPoint::z.
| double GetOGLDistance | ( | double | l | ) |
Definition at line 47 of file glutils.c.
Referenced by close_poly(), glmotion_pan(), and pick_object().
| void GetOGLPosRef | ( | int | x, |
| int | y, | ||
| float * | X, | ||
| float * | Y | ||
| ) |
Definition at line 19 of file glutils.c.
Referenced by glupdatecamera().
| void glCompCalcWidget | ( | glCompCommon * | parent, |
| glCompCommon * | child, | ||
| glCompCommon * | ref | ||
| ) |
Definition at line 181 of file glutils.c.
References glCompCommon::align, glCompCommon::anchor, glCompAnchor::bottom, glCompAnchor::bottomAnchor, glAlignBottom, glAlignCenter, glAlignLeft, glAlignNone, glAlignParent, glAlignRight, glAlignTop, glCompCommon::height, glCompAnchor::left, glCompAnchor::leftAnchor, parent, glCompCommon::pos, glCompCommon::refPos, glCompAnchor::right, glCompAnchor::rightAnchor, glCompAnchor::top, glCompAnchor::topAnchor, glCompCommon::width, glCompPoint::x, and glCompPoint::y.
Referenced by glCompButtonDraw(), glCompImageDraw(), glCompLabelDraw(), and glCompPanelDraw().
| void glCompDrawRectangle | ( | glCompRect * | r | ) |
Definition at line 281 of file glutils.c.
References glCompRect::h, glCompRect::pos, glCompRect::w, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by glCompPanelDraw().
| void glCompDrawRectPrism | ( | glCompPoint | p, |
| float | w, | ||
| float | h, | ||
| float | b, | ||
| glCompColor | c, | ||
| bool | bumped | ||
| ) |
Definition at line 291 of file glutils.c.
References A, glCompColor::A, glCompColor::B, B, C, D, dim, E, F, glCompColor::G, G, glCompQuadVertex(), glCompColor::R, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by glCompButtonDraw(), and glCompPanelDraw().
|
static |
Definition at line 271 of file glutils.c.
References glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by glCompDrawRectPrism().
| void glCompSetColor | ( | glCompColor | c | ) |
Definition at line 279 of file glutils.c.
References glCompColor::A, glCompColor::B, glCompColor::G, and glCompColor::R.
Referenced by glCompRenderText().
| int is_point_in_rectangle | ( | float | X, |
| float | Y, | ||
| float | RX, | ||
| float | RY, | ||
| float | RW, | ||
| float | RH | ||
| ) |
Definition at line 334 of file glutils.c.
Referenced by pick_objects_in_rect().
|
static |
Definition at line 136 of file glutils.c.
References dot.
Referenced by adjust(), agwrite(), agxbnext(), agxbpop(), agxbput_int(), agxbput_n(), agxbputc(), agxbuf_trim_zeros(), attach_edge_label_coordinates(), bbOf(), computeoffset_qr(), cvtAndAppend(), dist(), edge_compatibility_full(), exprintf(), exsubstr(), gdk_set_mimedata_from_file(), genBundleColors(), getlength(), gLength(), gs_writer(), gv_arena_strdup(), gv_channel_writer(), gv_channel_writer(), gv_channel_writer(), gv_string_writer(), gv_string_writer(), gv_string_writer(), gvdevice_gd_putBuf(), gvplugin_library_load(), gvprintdouble(), gvprintf(), gvputs(), gvwrite(), gvwrite_no_z(), hash(), htmllex(), ideal_distance_matrix(), lasi_body_writer(), lasi_footer_writer(), lasi_head_writer(), Layout::Layout(), make_aux_edge(), make_msg(), myagxset(), myagxset(), pedge_double(), pedge_export_gv(), power_iteration(), put(), record_init(), renderresult(), setEdgeLen(), smooth_vec(), smyrnaPath(), splitBSpline(), storeFileName(), str_and(), str_ior(), str_mod(), str_mpy(), str_xor(), stress_majorization_kD_mkernel(), sumLengths_avoid_bad_angle(), Tcldot_channel_writer(), Tcldot_string_writer(), toLower(), toUpper(), update(), and xyOf().
| double point_to_lineseg_dist | ( | glCompPoint | p, |
| glCompPoint | a, | ||
| glCompPoint | b | ||
| ) |
|
static |
Definition at line 126 of file glutils.c.
References glCompPoint::x, glCompPoint::y, and glCompPoint::z.
| void to3D | ( | int | x, |
| int | y, | ||
| float * | X, | ||
| float * | Y, | ||
| float * | Z | ||
| ) |
Definition at line 91 of file glutils.c.
Referenced by appmouse_down(), appmouse_drag(), appmouse_move(), and appmouse_up().