Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

DrawingCanvas Class Reference

#include <DrawingCanvas.h>

List of all members.

Public Member Functions

 DrawingCanvas (const LabelSet *labelSet, const std::string name)
void setDrawingMedia (std::string name)
double getWidth ()
double getHeight ()
void startLayer ()
void endLayer ()
void startGroup (const std::string &cssClass=std::string(""))
void endGroup ()
void drawTitle (const std::string title)
void drawLine (double x1, double y1, double x2, double y2)
void drawHorizontalLine (double y, double x1, double x2)
void drawVerticalLine (double x, double y1, double y2, const std::string &className=std::string(""), const std::string &id=std::string(""))
void drawPolyline (const std::string points, const std::string &id=std::string(""), const std::string &myclass=std::string(""))
void drawText (double x, double y, std::string text, std::string myclass="")
void drawIconText (double x, double y, std::string text, std::string myclass="")
void drawRectangle (double x, double y, double width, double height)
void drawIndividual (Individual *pIndividual, double x, double y, bool isDashed=false)
void drawDivorcedLine (double x, double y)
void drawSeparatedLine (double x, double y)
void drawRelationshipEndedLine (double x, double y)
void drawLabelSet (Individual *pIndividual)
void drawSuperscriptData (Individual *pIndividual, double x, double y)
void drawEncircledText (std::string text, double x, double y, double xradius, double yradius, const std::string &myclass=std::string(""))
void show (const char *filename)
double getXMinimum ()
double getYMinimum ()
double getXMaximum ()
double getYMaximum ()
double getXRange ()
double getYRange ()
void arc (double x, double y, double r, double startAngle, double endAngle, const std::string &color, const std::string &arcLabel, const std::string &arcClass, bool isMale)
void setClipPath (double x, double y, const std::string &id)
void iconPie (double x, double y, Individual *pIndividual)
void iconQuadrantFill (double x, double y, Individual *pIndividual)

Private Member Functions

void _setHeader ()
void _setFooter ()
void _setJavascript ()
void _setCSS ()
void _setSVGDefinitions ()
void _trackMinimaAndMaxima (double x, double y)
void _drawDeceasedLine (double x, double y)
void _drawProbandArrow (double x, double y)
void _drawConsultandArrow (double x, double y)
void _drawNorthEastArrow (double x, double y, double scale)
void _drawLegends (void)
void _drawSampledIndicator (double x, double y)
void _drawSuperScript (const std::string &label, double x, double y)

Private Attributes

std::ostringstream _header
std::ostringstream _body
std::ostringstream _footer
std::ostringstream _layer
std::ostringstream _bottomLayer
bool _layerFlag
DrawingMedia _media
const LabelSet_labelSet
bool _iconLegendFlag
LASiWrapper _lasiWrapper
DrawingLabelManager _labelManager
LabelLegend _labelLegend
IconLegend _iconLegend
SVG _svg
std::vector< std::string > _layers
double _xMinimum
double _xMaximum
double _yMinimum
double _yMaximum


Constructor & Destructor Documentation

DrawingCanvas::DrawingCanvas const LabelSet labelSet,
const std::string  name
 


Member Function Documentation

void DrawingCanvas::_drawConsultandArrow double  x,
double  y
[private]
 

void DrawingCanvas::_drawDeceasedLine double  x,
double  y
[private]
 

void DrawingCanvas::_drawLegends void   )  [private]
 

void DrawingCanvas::_drawNorthEastArrow double  x,
double  y,
double  scale
[private]
 

void DrawingCanvas::_drawProbandArrow double  x,
double  y
[private]
 

void DrawingCanvas::_drawSampledIndicator double  x,
double  y
[private]
 

void DrawingCanvas::_drawSuperScript const std::string &  label,
double  x,
double  y
[private]
 

void DrawingCanvas::_setCSS  )  [private]
 

void DrawingCanvas::_setFooter  )  [private]
 

void DrawingCanvas::_setHeader  )  [private]
 

void DrawingCanvas::_setJavascript  )  [private]
 

void DrawingCanvas::_setSVGDefinitions  )  [private]
 

void DrawingCanvas::_trackMinimaAndMaxima double  x,
double  y
[private]
 

void DrawingCanvas::arc double  x,
double  y,
double  r,
double  startAngle,
double  endAngle,
const std::string &  color,
const std::string &  arcLabel,
const std::string &  arcClass,
bool  isMale
 

arc(): Draws the arc and displays the text in the center.

void DrawingCanvas::drawDivorcedLine double  x,
double  y
 

void DrawingCanvas::drawEncircledText std::string  text,
double  x,
double  y,
double  xradius,
double  yradius,
const std::string &  myclass = std::string("")
 

drawEncircledText(): Draws a circle around a given text string. This is used to display birth order.

void DrawingCanvas::drawHorizontalLine double  y,
double  x1,
double  x2
 

void DrawingCanvas::drawIconText double  x,
double  y,
std::string  text,
std::string  myclass = ""
 

void DrawingCanvas::drawIndividual Individual pIndividual,
double  x,
double  y,
bool  isDashed = false
 

drawIndividual: Draws the individual icon, accompanying labelset and icon slices. This method also draws indicators for individuals who are sampled, deceased, etc.

void DrawingCanvas::drawLabelSet Individual pIndividual  ) 
 

void DrawingCanvas::drawLine double  x1,
double  y1,
double  x2,
double  y2
 

void DrawingCanvas::drawPolyline const std::string  points,
const std::string &  id = std::string(""),
const std::string &  myclass = std::string("")
 

void DrawingCanvas::drawRectangle double  x,
double  y,
double  width,
double  height
 

void DrawingCanvas::drawRelationshipEndedLine double  x,
double  y
 

void DrawingCanvas::drawSeparatedLine double  x,
double  y
 

void DrawingCanvas::drawSuperscriptData Individual pIndividual,
double  x,
double  y
 

void DrawingCanvas::drawText double  x,
double  y,
std::string  text,
std::string  myclass = ""
 

void DrawingCanvas::drawTitle const std::string  title  ) 
 

void DrawingCanvas::drawVerticalLine double  x,
double  y1,
double  y2,
const std::string &  className = std::string(""),
const std::string &  id = std::string("")
 

void DrawingCanvas::endGroup  ) 
 

void DrawingCanvas::endLayer  ) 
 

double DrawingCanvas::getHeight  ) 
 

double DrawingCanvas::getWidth  ) 
 

double DrawingCanvas::getXMaximum  ) 
 

double DrawingCanvas::getXMinimum  ) 
 

double DrawingCanvas::getXRange  ) 
 

double DrawingCanvas::getYMaximum  ) 
 

double DrawingCanvas::getYMinimum  ) 
 

double DrawingCanvas::getYRange  ) 
 

void DrawingCanvas::iconPie double  x,
double  y,
Individual pIndividual
 

iconPie(): Draws a pie with a given color on the individual icon. Each pie corresponds to one categorical variable. The color corresponds to the level in that variable.

void DrawingCanvas::iconQuadrantFill double  x,
double  y,
Individual pIndividual
 

iconQuadrantFill(): Shade quadrants of the icon to indicate specific levels. This method has a limit of 16 distinct levels.

void DrawingCanvas::setClipPath double  x,
double  y,
const std::string &  id
 

setClipPath() : Sets the clipping path for a MALE icon

void DrawingCanvas::setDrawingMedia std::string  name  ) 
 

void DrawingCanvas::show const char *  filename  ) 
 

show(): Generates the SVG drawing output file for each pedigree.

void DrawingCanvas::startGroup const std::string &  cssClass = std::string("")  ) 
 

void DrawingCanvas::startLayer  ) 
 


Member Data Documentation

std::ostringstream DrawingCanvas::_body [private]
 

std::ostringstream DrawingCanvas::_bottomLayer [private]
 

std::ostringstream DrawingCanvas::_footer [private]
 

std::ostringstream DrawingCanvas::_header [private]
 

IconLegend DrawingCanvas::_iconLegend [private]
 

bool DrawingCanvas::_iconLegendFlag [private]
 

LabelLegend DrawingCanvas::_labelLegend [private]
 

DrawingLabelManager DrawingCanvas::_labelManager [private]
 

const LabelSet* DrawingCanvas::_labelSet [private]
 

LASiWrapper DrawingCanvas::_lasiWrapper [private]
 

std::ostringstream DrawingCanvas::_layer [private]
 

bool DrawingCanvas::_layerFlag [private]
 

std::vector< std::string > DrawingCanvas::_layers [private]
 

DrawingMedia DrawingCanvas::_media [private]
 

SVG DrawingCanvas::_svg [private]
 

double DrawingCanvas::_xMaximum [private]
 

double DrawingCanvas::_xMinimum [private]
 

double DrawingCanvas::_yMaximum [private]
 

double DrawingCanvas::_yMinimum [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4