The Conley-Morse Graphs Software
Functions
plotmdec.h File Reference

Plotting a Morse decomposition in a PNG picture. More...

#include "pngimage.h"
#include "chomp/bitmaps/colorpal.h"

Go to the source code of this file.

Functions

template<class MorseDecType >
void plotMorseDecompositionPNG (const MorseDecType &m, const char *filename, int xCoord, int yCoord, int size=0, bool colorBar=true)
 Saves all the Morse sets in the provided Morse decomposition to a PNG file. More...
 

Detailed Description

Plotting a Morse decomposition in a PNG picture.

This file contains the definition of a procedure which can be used to save a Morse decomposition to a PNG bitmap picture file.

Author
Pawel Pilarczyk

Definition in file plotmdec.h.

Function Documentation

◆ plotMorseDecompositionPNG()

template<class MorseDecType >
void plotMorseDecompositionPNG ( const MorseDecType &  m,
const char *  filename,
int  xCoord,
int  yCoord,
int  size = 0,
bool  colorBar = true 
)
inline

Saves all the Morse sets in the provided Morse decomposition to a PNG file.

The coordinates of all the boxes in the Morse sets must be non-negative and they should not exceed the size provided unless the size is zero and then the size of the file is adjusted so that all the Morse sets are contained in the picture. Throws an error message in case of failure.

Definition at line 51 of file plotmdec.h.

Referenced by Worker::Process(), and runSingleComp().