leistungsnachweis-cas
 All Classes Functions Variables Friends
Classes | Public Member Functions | Friends | List of all members
LabGraph Class Reference

Public Member Functions

 LabGraph (int height, int width)
 
 ~LabGraph ()
 
void initGraph ()
 
void buildLabWithPrim ()
 
void buildLabWithRecBac ()
 
void graphToPic (string format)
 
void makeVideo ()
 
void setLab (bool **)
 
void setDimensions (int, int)
 
void easyTest ()
 

Friends

std::ostream & operator<< (std::ostream &, const LabGraph &)
 

Constructor & Destructor Documentation

LabGraph::LabGraph ( int  height,
int  width 
)

Constructor.

Parameters
heightHeight of the graph.
widthWidth of the graph.
LabGraph::~LabGraph ( )
default

Destructor of the graph.

Member Function Documentation

void LabGraph::buildLabWithPrim ( )

Creates a Labyrinth on the Graph with prims algorithm.

void LabGraph::buildLabWithRecBac ( )

Creates a Labyrinth on the Graph with recursive backtracing algorithm.

void LabGraph::easyTest ( )

Once a simple test method this became the starter:).

void LabGraph::graphToPic ( string  format)

Creates a picture of the current graph using graphviz.

Parameters
formatOutputformat of the picture e.g. "jpg" "png"...
void LabGraph::initGraph ( )

Creates a square with heigt x width nodes connected by edges.

void LabGraph::makeVideo ( )

Makes a video of the graph creation.

void LabGraph::setDimensions ( int  x,
int  y 
)

Can only be used on an uninizialized graph. Sets the height and width and initializes the graph. This is used to diplay the labyrinth created by recursive division.

void LabGraph::setLab ( bool **  boolArray)

Sets the color of all edges to black or white. This is used to diplay the labyrinth created by recursive division.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const LabGraph graph 
)
friend

Outputs the graph in DOT-form so it can be interpreted by graphviz.

Returns

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