Graphviz 13.0.0~dev.20241220.2304
|
#include "draw.h"
#include <common/colorprocs.h>
#include <common/types.h>
#include <common/utils.h>
#include "smyrna_utils.h"
#include <glcomp/glutils.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <util/unreachable.h>
#include <xdot/xdot.h>
#include "viewport.h"
#include "topfisheyeview.h"
#include "appmouse.h"
#include "hotkeymap.h"
#include "polytess.h"
#include <glcomp/glcompimage.h>
Go to the source code of this file.
Macros | |
#define | LAYER_DIFF 0.001 |
Functions | |
static void | DrawBezier (xdot_point *pts, int filled, int param) |
static void | set_options (int param) |
static void | DrawBeziers (sdot_op *o, int param) |
static void | DrawEllipse (sdot_op *o, int param) |
static void | DrawPolygon (sdot_op *o, int param) |
static void | DrawPolyline (sdot_op *o, int param) |
static glCompColor | GetglCompColor (const char *color) |
static void | SetFillColor (sdot_op *o, int param) |
static void | SetPenColor (sdot_op *o, int param) |
static void | SetStyle (sdot_op *o, int param) |
static void | SetFont (sdot_op *o, int param) |
static void | InsertImage (sdot_op *o, int param) |
static int | put (void *buffer, const char *s) |
static void | EmbedText (sdot_op *o, int param) |
void | drawBorders (ViewInfo *vi) |
void | drawCircle (float x, float y, float radius, float zdepth) |
void | draw_selpoly (glCompPoly_t *selPoly) |
Variables | |
static float | dx = 0.0 |
static float | dy = 0.0 |
static sdot_op * | font_op |
drawfunc_t | OpFns [] |
void draw_selpoly | ( | glCompPoly_t * | selPoly | ) |
Definition at line 413 of file draw.c.
References glCompMouse::GLpos, last, _ViewInfo::mouse, view, glCompPoint::x, glCompPoint::y, and glCompPoint::z.
Referenced by glexpose_main().
|
static |
Definition at line 41 of file draw.c.
References glCompColor::A, glCompColor::B, _ViewInfo::fillColor, glCompColor::G, topview::global_z, _ViewInfo::LineWidth, _ViewInfo::penColor, glCompColor::R, _ViewInfo::selectedNodeColor, _ViewInfo::Topview, view, X, xdot_point::x, Y, xdot_point::y, and xdot_point::z.
Referenced by DrawBeziers().
|
static |
Definition at line 123 of file draw.c.
References _xdot_op::bezier, xdot_polyline::cnt, DrawBezier(), topview::global_z, _xdot_op::kind, sdot_op::layer, LAYER_DIFF, sdot_op::op, ps, xdot_polyline::pts, _ViewInfo::Topview, _xdot_op::u, view, and xd_filled_bezier.
void drawBorders | ( | ViewInfo * | vi | ) |
Definition at line 367 of file draw.c.
References glCompColor::A, glCompColor::B, _ViewInfo::bdVisible, _ViewInfo::bdxLeft, _ViewInfo::bdxRight, _ViewInfo::bdyBottom, _ViewInfo::bdyTop, _ViewInfo::borderColor, glCompColor::G, and glCompColor::R.
Referenced by glexpose_main().
void drawCircle | ( | float | x, |
float | y, | ||
float | radius, | ||
float | zdepth | ||
) |
Definition at line 384 of file draw.c.
References DEG2RAD, topview::global_z, _ViewInfo::Topview, and view.
Referenced by renderNodes(), and renderSelectedNodes().
|
static |
Definition at line 142 of file draw.c.
References glCompColor::A, glCompColor::B, DEG2RAD, dx, dy, _xdot_op::ellipse, _ViewInfo::fillColor, glCompColor::G, topview::global_z, xdot_rect::h, _xdot_op::kind, sdot_op::layer, LAYER_DIFF, sdot_op::op, _ViewInfo::penColor, glCompColor::R, _ViewInfo::selectedNodeColor, set_options(), _ViewInfo::Topview, _xdot_op::u, view, xdot_rect::w, xdot_rect::x, xd_filled_ellipse, and xdot_rect::y.
|
static |
Definition at line 188 of file draw.c.
References glCompColor::A, glCompColor::B, drawTessPolygon(), _ViewInfo::fillColor, glCompColor::G, topview::global_z, _xdot_op::kind, sdot_op::layer, LAYER_DIFF, _ViewInfo::LineWidth, sdot_op::op, _ViewInfo::penColor, glCompColor::R, _ViewInfo::selectedNodeColor, set_options(), _ViewInfo::Topview, view, and xd_filled_polygon.
|
static |
Definition at line 218 of file draw.c.
References glCompColor::A, glCompColor::B, xdot_polyline::cnt, dx, dy, glCompColor::G, topview::global_z, sdot_op::layer, LAYER_DIFF, _ViewInfo::LineWidth, sdot_op::op, _ViewInfo::penColor, _xdot_op::polyline, xdot_polyline::pts, glCompColor::R, _ViewInfo::selectedNodeColor, set_options(), _ViewInfo::Topview, _xdot_op::u, view, xdot_point::x, xdot_point::y, and xdot_point::z.
|
static |
Definition at line 322 of file draw.c.
References glCompColor::A, xdot_text::align, glCompColor::B, xml_flags_t::dash, flags, sdot_op::font, _xdot_op::font, font_op, glCompFont::fontdesc, free(), glCompColor::G, glCompDrawText3D(), glNewFont(), topview::global_z, sdot_op::layer, LAYER_DIFF, xdot_font::name, NULL, sdot_op::op, _ViewInfo::penColor, put(), glCompColor::R, xdot_font::size, xdot_text::text, _xdot_op::text, _ViewInfo::Topview, _xdot_op::u, UNREACHABLE, view, _ViewInfo::widgets, xdot_text::width, xdot_text::x, xd_center, xd_left, xd_right, xml_escape(), and xdot_text::y.
|
static |
Definition at line 240 of file draw.c.
References glCompColor::A, glCompColor::B, color(), colorxlate(), glCompColor::G, NULL, _ViewInfo::penColor, glCompColor::R, color_s::RGBA, RGBA_DOUBLE, color_s::u, and view.
Referenced by SetFillColor(), and SetPenColor().
|
static |
Definition at line 285 of file draw.c.
References glCompImage::base, glCompObj_::common, glCompCallBacks::draw, glCompCommon::functions, glCompImageNewFile(), xdot_rect::h, glCompImage::height, _xdot_op::image, sdot_op::img, xdot_image::name, sdot_op::obj, sdot_op::op, xdot_image::pos, _xdot_op::u, xdot_rect::w, glCompImage::width, xdot_rect::x, and xdot_rect::y.
|
static |
Definition at line 311 of file draw.c.
Referenced by EmbedText().
|
static |
Definition at line 108 of file draw.c.
References glCompMouse::down, dx, dy, get_mode(), glCompMouse::GLfinalPos, glCompMouse::GLinitPos, _ViewInfo::mouse, view, glCompPoint::x, and glCompPoint::y.
Referenced by DrawEllipse(), DrawPolygon(), and DrawPolyline().
|
static |
Definition at line 254 of file draw.c.
References _xdot_op::color, _ViewInfo::fillColor, GetglCompColor(), sdot_op::op, _xdot_op::u, and view.
|
static |
|
static |
Definition at line 261 of file draw.c.
References _xdot_op::color, GetglCompColor(), sdot_op::op, _ViewInfo::penColor, _xdot_op::u, and view.
|
static |
Definition at line 37 of file draw.c.
Referenced by alloc_interpolation_points(), arrow_bb(), calculate_stress(), dist(), dist(), dist_2(), distance(), DrawEllipse(), DrawPolyline(), epsf_init(), fillLine(), gdgen_ellipse(), gdiplusgen_ellipse(), genPoly(), getEdgeList(), glCompMouseDrag(), gvbisect(), gvevent_motion(), make_regular_edge(), makeScaledTransPoint(), makeStraightEdges(), polyOverlap(), ptToLine2(), quartzgen_ellipse(), selfBottom(), selfLeft(), selfRight(), selfTop(), set_options(), sgd(), shiftGraph(), shiftGraphs(), updatePos(), and vcmpid().
|
static |
Definition at line 38 of file draw.c.
Referenced by alloc_interpolation_points(), arrow_bb(), calculate_stress(), dist(), dist(), dist_2(), distance(), DrawEllipse(), DrawPolyline(), epsf_init(), fillLine(), gdgen_ellipse(), gdiplusgen_ellipse(), genPoly(), getEdgeList(), glCompMouseDrag(), gvbisect(), gvevent_motion(), hcmpid(), makeScaledTransPoint(), makeSimpleFlat(), polyOverlap(), ptToLine2(), quartzgen_ellipse(), selfBottom(), selfLeft(), selfRight(), selfTop(), set_options(), sgd(), shiftGraph(), shiftGraphs(), and updatePos().
|
static |
Definition at line 275 of file draw.c.
Referenced by EmbedText(), and SetFont().
drawfunc_t OpFns[] |
Definition at line 400 of file draw.c.
Referenced by makeXDotSpline(), and parseXdotwithattrs().