WordDraw Class Reference

#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

Definition at line 19 of file WordDraw.h.


Constructor & Destructor Documentation

WordDraw::WordDraw int  n,
const Word w,
bool  draw_grid = true
[inline]
 

Definition at line 22 of file WordDraw.h.

References drawCompressedBraid(), drawHorizontalGrid(), drawVerticalGrid(), Word::length(), CImage::setBluePixel(), CImage::setGreenPixel(), CImage::setRedPixel(), ss, theImage, and theLength.

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

Definition at line 49 of file WordDraw.h.

References betBraids, drawCompressedBraid(), drawHorizontalGrid(), drawVerticalGrid(), CImage::setBluePixel(), CImage::setGreenPixel(), CImage::setRedPixel(), ss, theImage, and theLength.

WordDraw::~WordDraw  )  [inline]
 

Definition at line 90 of file WordDraw.h.

References theImage.


Member Function Documentation

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

Definition at line 101 of file WordDraw.h.

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

Referenced by WordDraw().

void WordDraw::drawGenerator Generator  g,
int  pos,
int  vert_offset
[inline, private]
 

Definition at line 116 of file WordDraw.h.

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

Referenced by drawCompressedBraid().

void WordDraw::drawHorizontalGrid int  hpos  )  [inline, private]
 

Definition at line 140 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]
 

Definition at line 131 of file WordDraw.h.

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

Referenced by WordDraw().

void WordDraw::saveTo const string &  f_name  )  [inline]
 

Definition at line 91 of file WordDraw.h.

References CImage::saveTo(), and theImage.


Member Data Documentation

int WordDraw::betBraids [private]
 

Definition at line 153 of file WordDraw.h.

Referenced by WordDraw().

int WordDraw::N [private]
 

Definition at line 149 of file WordDraw.h.

Referenced by drawCompressedBraid().

int WordDraw::ss [private]
 

Definition at line 151 of file WordDraw.h.

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

CImage* WordDraw::theImage [private]
 

Definition at line 150 of file WordDraw.h.

Referenced by drawGenerator(), drawHorizontalGrid(), drawVerticalGrid(), saveTo(), WordDraw(), and ~WordDraw().

int WordDraw::theLength [private]
 

Definition at line 152 of file WordDraw.h.

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


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 22:47:21 2006 for CRyptography And Groups (CRAG) by  doxygen 1.4.4