C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
VSN::Painter Class Reference

. Canvas painting tool More...

#include <vsn_painter.h>

Public Member Functions

 Painter ()
 Default constructor.
 
 Painter (Canvas &init)
 Default constructor.
 
void DrawLine (const PointF &p1, const PointF &p2)
 Draw the line segment.
 
void DrawRect (const PointF &lb, const PointF &rt)
 Draw the rectangle.
 
void DrawFillRect (const PointF &lb, const PointF &rt)
 Fill the rectangle.
 
void DrawAroundRect (const PointF &lb, const PointF &rt, float r)
 Draw the rectangle.
 
void DrawFillAroundRect (const PointF &lb, const PointF &rt, float r)
 Fill the rectangle.
 
void DrawFillCircle (const PointF &origin, float r)
 Fill the circle.
 
void DrawCircle (const PointF &origin, float r)
 Draw the circle.
 
void DrawArc (const PointF &origin, float r, float begin, float end)
 Draw the arc of circle.
 
void DrawImage (const PointF &pos, const Image &img)
 Draw the image.
 
void DrawLinesPath (const std::vector< PointF > &points)
 Draw lines by points array.
 
void DrawTrianglesPath (const std::vector< PointF > &points)
 Draw triangles by points array.
 
void DrawMarker (PlaneMarkers, const PointF &pos, const MbDirection &xAxis)
 Draw the marker.
 
void DrawMathCurve (const MbCurve &curve)
 Draw math curve.
 
void DrawMathRegion (const MbRegion &region)
 Draw math region.
 
void SetPen (const Pen &pen, bool correct=false, bool endDash=false)
 Set parameters of the pen.
 
void SetFillBrush (const BaseBrush &params)
 Set parameters of the brush.
 

Protected Member Functions

void Begin (Canvas &init)
 Activate the painter before drawing.
 
void End ()
 Stop the drawing.
 

Detailed Description

. Canvas painting tool

Provides the following features:

  • draw standard primitives (circles, rectangles, etc.) on canvas, as well as mathematical curves(MbCurve)
  • draw image
  • set fills
  • draw markers

The documentation for this class was generated from the following file: