Envision
A visual programming IDE for object-oriented languages
List of all members | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
Drawing Class Reference

Static Public Member Functions

static QPolygonF arrowRotatedBoundingRect (QPointF from, QPointF to, int width, bool arrowTipAtStart, bool arrowTipAtEnd)
 
static void drawArrow (QPainter *painter, QPointF begin, QPointF end, const QBrush &arrowBrush, const QPen &linePen, bool startArrow, bool endArrow, int outlineSize)
 Draws an arrow on screen. More...
 

Static Private Member Functions

static QPointF drawHead (QPainter *painter, QPolygonF arrowHead, QPointF position, double angle)
 

Static Private Attributes

static int ARROW_TIP_EXTRA_LENGTH_ = 10
 
static int ARROW_TIP_EXTRA_WIDTH_ = 2
 

Member Function Documentation

◆ arrowRotatedBoundingRect()

QPolygonF Drawing::arrowRotatedBoundingRect ( QPointF  from,
QPointF  to,
int  width,
bool  arrowTipAtStart,
bool  arrowTipAtEnd 
)
static

◆ drawArrow()

void Drawing::drawArrow ( QPainter *  painter,
QPointF  begin,
QPointF  end,
const QBrush &  arrowBrush,
const QPen &  linePen,
bool  startArrow,
bool  endArrow,
int  outlineSize 
)
static

Draws an arrow on screen.

Parameters
painterThe QPainter to use for the drawing
beginThe start point of the arrow
endThe end point of the arrow
arrowPenThe pen to use for drawing the arrow head
linePenThe pen to use for drawing the line
startArrowIs there an arrow to the start point?
endArrowIs there an arrow to the end point?
outlineSizeThe size of the arrow head

◆ drawHead()

QPointF Drawing::drawHead ( QPainter *  painter,
QPolygonF  arrowHead,
QPointF  position,
double  angle 
)
staticprivate

Member Data Documentation

◆ ARROW_TIP_EXTRA_LENGTH_

int Drawing::ARROW_TIP_EXTRA_LENGTH_ = 10
staticprivate

◆ ARROW_TIP_EXTRA_WIDTH_

int Drawing::ARROW_TIP_EXTRA_WIDTH_ = 2
staticprivate