All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NetworKit::PostscriptWriter Class Reference

EPS output of graphs with 2D coordinates. More...

#include <PostscriptWriter.h>

Public Member Functions

 PostscriptWriter (bool isTorus=false)
 
void write (Graph &g, Partition &clustering, std::string filename)
 Outputs an EPS file with name filename of the graph g with 2D coordinates. More...
 
void write (Graph &g, std::string filename)
 Outputs an EPS file with name filename of the graph g with 2D coordinates. More...
 

Protected Member Functions

void init (std::string filename, std::ofstream &file)
 
void writeHeader (std::ofstream &file)
 
void writeMacros (std::ofstream &file)
 
void writeClustering (Graph &g, Partition &clustering, std::ofstream &file)
 

Protected Attributes

bool wrapAround
 
count numColors
 
std::vector< float_triple > psColor
 
Point< float > ps_size
 
Point< float > ps_border
 
Point< float > ps_min
 
Point< float > ps_max
 

Detailed Description

EPS output of graphs with 2D coordinates.

Constructor & Destructor Documentation

NetworKit::PostscriptWriter::PostscriptWriter ( bool  isTorus = false)
Parameters
[in]isTorusSpecifies whether the visualization square is treated as torus, i.e. with wrap-around boundaries (edge can leave the square and enter at the opposite side. By default, it is set to false.

Member Function Documentation

void NetworKit::PostscriptWriter::init ( std::string  filename,
std::ofstream &  file 
)
protected
void NetworKit::PostscriptWriter::write ( Graph g,
Partition clustering,
std::string  filename 
)

Outputs an EPS file with name filename of the graph g with 2D coordinates.

The colors are chosen to visualize the specified clustering.

Parameters
[in]gGraph to be visualized.
[in]clusteringClustering of the graph, visualized by different colors.
[in]filenameName of file to write to.
void NetworKit::PostscriptWriter::write ( Graph g,
std::string  filename 
)

Outputs an EPS file with name filename of the graph g with 2D coordinates.

Parameters
[in]gGraph to be visualized.
[in]filenameName of file to write to.
void NetworKit::PostscriptWriter::writeClustering ( Graph g,
Partition clustering,
std::ofstream &  file 
)
protected
void NetworKit::PostscriptWriter::writeHeader ( std::ofstream &  file)
protected
void NetworKit::PostscriptWriter::writeMacros ( std::ofstream &  file)
protected

Member Data Documentation

count NetworKit::PostscriptWriter::numColors
protected
Point<float> NetworKit::PostscriptWriter::ps_border
protected
Point<float> NetworKit::PostscriptWriter::ps_max
protected
Point<float> NetworKit::PostscriptWriter::ps_min
protected
Point<float> NetworKit::PostscriptWriter::ps_size
protected
std::vector<float_triple> NetworKit::PostscriptWriter::psColor
protected
bool NetworKit::PostscriptWriter::wrapAround
protected

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