WordDraw Class Reference

CREATES A PPM image of a table for braid word. More...

#include <WordDraw.h>

List of all members.

Public Member Functions

 WordDraw (int n, const Word &w, bool draw_grid=true)
 WordDraw (int n, const list< Word > &w, bool draw_grid=true)
 ~WordDraw ()
void saveTo (const string &f_name)

Private Member Functions

void drawCompressedBraid (const Word &theWord, int vert_offset=0)
void drawGenerator (Generator g, int pos, int vert_offset)
void drawVerticalGrid (int vpos, int color)
void drawHorizontalGrid (int hpos)

Private Attributes

int N
CImagetheImage
int ss
int theLength
int betBraids

Detailed Description

CREATES A PPM image of a table for braid word.

Definition at line 30 of file WordDraw.h.


Constructor & Destructor Documentation

WordDraw::WordDraw ( int  n,
const Word w,
bool  draw_grid = true 
) [inline]
WordDraw::WordDraw ( int  n,
const list< Word > &  w,
bool  draw_grid = true 
) [inline]
WordDraw::~WordDraw (  )  [inline]

Definition at line 101 of file WordDraw.h.

References theImage.


Member Function Documentation

void WordDraw::drawCompressedBraid ( const Word theWord,
int  vert_offset = 0 
) [inline, private]

Definition at line 113 of file WordDraw.h.

References Word::begin(), drawGenerator(), Word::end(), N, and theLength.

Referenced by WordDraw().

void WordDraw::drawGenerator ( Generator  g,
int  pos,
int  vert_offset 
) [inline, private]
void WordDraw::drawHorizontalGrid ( int  hpos  )  [inline, private]

Definition at line 152 of file WordDraw.h.

References CImage::setBluePixel(), CImage::setGreenPixel(), CImage::setRedPixel(), ss, theImage, and theLength.

Referenced by WordDraw().

void WordDraw::drawVerticalGrid ( int  vpos,
int  color 
) [inline, private]
void WordDraw::saveTo ( const string &  f_name  )  [inline]

Definition at line 102 of file WordDraw.h.

References CImage::saveTo(), and theImage.


Member Data Documentation

int WordDraw::betBraids [private]

Definition at line 165 of file WordDraw.h.

Referenced by WordDraw().

int WordDraw::N [private]

Definition at line 161 of file WordDraw.h.

Referenced by drawCompressedBraid().

int WordDraw::ss [private]

Definition at line 163 of file WordDraw.h.

Referenced by drawGenerator(), drawHorizontalGrid(), and WordDraw().

int WordDraw::theLength [private]

Definition at line 164 of file WordDraw.h.

Referenced by drawCompressedBraid(), drawHorizontalGrid(), and WordDraw().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:53 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1