| Return Type | Function name | Arguments |
|---|---|---|
| void | hdsGraphic::Draw | (hzChain&,) |
Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp
Function Logic:
Function body:
void hdsGraphic::Draw (hzChain& Z)
{
_hzfunc("hdsGraphic::Draw") ;
threadLog("ok .. \n") ;
switch (m_eShape)
{
case HDSGRAPH_DIAMOND: Z.Printf("<polygon points="%u,%u %u,%u %u,%u %u,%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u"/>\n" ,
lftMidptX(), lftMidptY(),
topMidptX(), topMidptY(),
rhtMidptX(), rhtMidptY(),
botMidptX(), botMidptY(),
m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_HEXAGON: Z.Printf("<polygon points="%u,%u %u,%u %u,%u %u,%u, %u,%u, %u,%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u"/>\n" ,
m_Lft, m_Top + (m_Height/2),
m_Lft + (m_Height/2),m_Top,
m_Rht - (m_Height/2),m_Top,
m_Rht, m_Top + (m_Height/2),
m_Rht - (m_Height/2),m_Bot,
m_Lft + (m_Height/2),m_Bot,
m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_ARROW: Z.Printf("<polygon points="%u,%u %u,%u %u,%u %u,%u %u,%u %u,%u %u,%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u"/>\n" ,
m_Lft, m_Top + m_Height/3,
topMidptX(), m_Top + m_Height/3,
topMidptX(), m_Top,
rhtMidptX(), rhtMidptY(),
botMidptX(), botMidptY(),
botMidptX(), m_Bot - m_Height/3,
m_Lft, m_Bot - m_Height/3,
m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_RECT: Z.Printf("<rect x="%u" y="%u" width="%u" height="%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u;"/>\n" ,
m_Lft, m_Top, m_Width, m_Height, m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_VRECT: break ;
case HDSGRAPH_HRECT: break ;
case HDSGRAPH_RRECT: Z.Printf("<rect x="%u" y="%u" rx="%u" ry="%u" width="%u" height="%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u;"/>\n" ,
m_Lft, m_Top, m_Rad, m_Rad, m_Width, m_Height, m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_STADIUM: Z.Printf("<rect x="%u" y="%u" rx="%u" ry="%u" width="%u" height="%u" style="fill:#%06x;stroke:#%06x;stroke-width:%u;"/>\n" ,
m_Lft, m_Top, m_Height/2,m_Height/2,m_Width, m_Height, m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_CIRCLE: Z.Printf("<circle cx="%u" cy="%u" r="%u" stroke="#%06x" stroke-width="%u" fill="#%06x"/>\n" ,
m_Lft + (m_Width/2),m_Top + (m_Height/2),m_Rad, m_ColorFill, m_ColorLine, m_Thick) ;
break ;
case HDSGRAPH_LGATE_AND: break ;
case HDSGRAPH_LGATE_OR: break ;
case HDSGRAPH_LGATE_NOT: break ;
case HDSGRAPH_LGATE_NAND: break ;
case HDSGRAPH_LGATE_NOR: break ;
}
}