LibreOffice Module vcl (master)  1
Functions
PictReaderShape Namespace Reference

Functions

static bool drawLineHQ (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
 
void drawLine (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
 draws a line from orig to dest knowing penSize More...
 
void drawRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &rect, Size const &pSize)
 draws a rectangle knowing penSize More...
 
void drawEllipse (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &pSize)
 draws an ellipse knowing penSize More...
 
void drawArc (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, const double &angle1, const double &angle2, Size const &pSize)
 draws an arc in a b2dpolygon knowing penSize More...
 
void drawRoundRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &ovalS, Size const &pSize)
 draws a rounded rectangle knowing penSize More...
 
void drawPolygon (VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize)
 draws a polygon knowing penSize More...
 

Function Documentation

void PictReaderShape::drawArc ( VirtualDevice dev,
bool  drawFrame,
tools::Rectangle const &  orig,
const double &  angle1,
const double &  angle2,
Size const &  pSize 
)
void PictReaderShape::drawEllipse ( VirtualDevice dev,
bool  drawFrame,
tools::Rectangle const &  orig,
Size const &  pSize 
)
void PictReaderShape::drawLine ( VirtualDevice dev,
Point const &  orig,
Point const &  dest,
Size const &  pSize 
)

draws a line from orig to dest knowing penSize

Attention: in order to draw horizontal/vertical/small lines, this function can instead draw a rectangle or a polygon. In this case, we retrieve the line information from VirtualDev ( GetLineColor ) and we use them as fill information ( SetFillColor ). We restore after the VirtualDev state.

This implies also that this function must be modified if we use real pattern to draw these primitives.

Definition at line 111 of file shape.cxx.

References basegfx::B2DPolygon::append(), drawLineHQ(), OutputDevice::DrawPolyLine(), Size::Height(), basegfx::NONE, and Size::Width().

Referenced by vcl::PDFWriterImpl::DrawHatchLine_DrawLine(), and vcl::PDFWriterImpl::drawLine().

static bool PictReaderShape::drawLineHQ ( VirtualDevice dev,
Point const &  orig,
Point const &  dest,
Size const &  pSize 
)
static
void PictReaderShape::drawPolygon ( VirtualDevice dev,
bool  drawFrame,
tools::Polygon const &  orig,
Size const &  pSize 
)
void PictReaderShape::drawRectangle ( VirtualDevice dev,
bool  drawFrame,
tools::Rectangle const &  orig,
Size const &  pSize 
)
void PictReaderShape::drawRoundRectangle ( VirtualDevice dev,
bool  drawFrame,
tools::Rectangle const &  orig,
Size const &  ovalS,
Size const &  pSize 
)