Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Shape::dg_point Struct Reference

A point or vertex in the directed graph. More...

#include <Shape.h>

Public Member Functions

int totalDegree () const
 

Public Attributes

Geom::Point x
 
int dI
 
int dO
 
int incidentEdge [2]
 
int oldDegree
 

Detailed Description

A point or vertex in the directed graph.

Each point keeps track of the first edge that got connected to it and the last edge that got connected to it. By connecting we mean both an edge starting at the point or an edge ending at the point. This is needed for maintaining a linked list at each point.

At each point, we maintain a linked list of edges that connect to that edge. incidentEdge keeps the first and last edge of this double-linked list. The rest of the edge pointers are stored in dg_arete.

Definition at line 447 of file Shape.h.

Member Function Documentation

◆ totalDegree()

Member Data Documentation

◆ dI

int Shape::dg_point::dI

Number of edges ending on this point.

Definition at line 450 of file Shape.h.

Referenced by Shape::AddPoint(), Shape::Booleen(), Shape::CalcBBox(), Shape::ConvertToShape(), directedEulerian(), and totalDegree().

◆ dO

int Shape::dg_point::dO

Number of edges starting from this point.

Definition at line 451 of file Shape.h.

Referenced by Shape::AddPoint(), Shape::Booleen(), Shape::CalcBBox(), Shape::ConvertToShape(), directedEulerian(), and totalDegree().

◆ incidentEdge

◆ oldDegree

int Shape::dg_point::oldDegree

TODO: Not exactly sure why this is needed. Probably somewhere the degree changes and we retain the old degree for some reason.

Definition at line 453 of file Shape.h.

Referenced by Shape::AddPoint().

◆ x


The documentation for this struct was generated from the following file: