ConjectureChecker
VizualizerWPF.Edge Class Reference

Class to store edges in graph meaming all lines and points More...

Public Member Functions

 Edge ()
 
 Edge (List< Point > points, List< Line > lines)
 
void Shorten (in GraphCoordinates graphCoordinates)
 Function to go through the Edge and shorten if it is wanted. More...
 

Public Attributes

List< Point > points
 
List< Line > lines
 
int kEdge = 0
 

Static Public Attributes

static double smallestCosOfAngle = 0.8
 

Private Member Functions

bool IsSharp (Point point1, Point point2, Point point3)
 Function to detect, whether consectuive points point1, point2, point3 are at angle less then cca 30° More...
 
void CreateLinesFromPoints ()
 Function to connect points to create line segment between them. More...
 
bool IsShortEnough (Point point1, Point point2, Point point3)
 This function is called by Shorten to shorten only small enough lines More...
 

Detailed Description

Class to store edges in graph meaming all lines and points

Constructor & Destructor Documentation

◆ Edge() [1/2]

VizualizerWPF.Edge.Edge ( )
inline

◆ Edge() [2/2]

VizualizerWPF.Edge.Edge ( List< Point >  points,
List< Line >  lines 
)
inline

Member Function Documentation

◆ CreateLinesFromPoints()

void VizualizerWPF.Edge.CreateLinesFromPoints ( )
inlineprivate

Function to connect points to create line segment between them.

◆ IsSharp()

bool VizualizerWPF.Edge.IsSharp ( Point  point1,
Point  point2,
Point  point3 
)
inlineprivate

Function to detect, whether consectuive points point1, point2, point3 are at angle less then cca 30°

Parameters
point1
point2
point3
Returns

◆ IsShortEnough()

bool VizualizerWPF.Edge.IsShortEnough ( Point  point1,
Point  point2,
Point  point3 
)
inlineprivate

This function is called by Shorten to shorten only small enough lines

Parameters
point1
point2
point3
Returns

◆ Shorten()

void VizualizerWPF.Edge.Shorten ( in GraphCoordinates  graphCoordinates)
inline

Function to go through the Edge and shorten if it is wanted.

Parameters
graphCoordinates

Member Data Documentation

◆ kEdge

int VizualizerWPF.Edge.kEdge = 0

◆ lines

List<Line> VizualizerWPF.Edge.lines

◆ points

List<Point> VizualizerWPF.Edge.points

◆ smallestCosOfAngle

double VizualizerWPF.Edge.smallestCosOfAngle = 0.8
static

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