Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GraphicsArcItem Class Reference

Draw an arc as an ellipse but without lines from the center to the start and end points. More...

#include <GraphicsArcItem.h>

Inheritance diagram for GraphicsArcItem:

Public Member Functions

 GraphicsArcItem (double x, double y, double width, double height, QGraphicsItem *parent=0)
 Constructor with individual coordinates.
 
 GraphicsArcItem (const QRectF &rect, QGraphicsItem *parent=0)
 Constructor with coordinates specified as rectangle.
 
virtual QRectF boundingRect () const
 QGraphicsEllipseItem ignored transformation when computing bounding rectangle, although it should so we must make boundingRect smarter.
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 Paint without interior fill.
 

Detailed Description

Draw an arc as an ellipse but without lines from the center to the start and end points.

Definition at line 13 of file GraphicsArcItem.h.

Constructor & Destructor Documentation

◆ GraphicsArcItem() [1/2]

GraphicsArcItem::GraphicsArcItem ( double  x,
double  y,
double  width,
double  height,
QGraphicsItem *  parent = 0 
)

Constructor with individual coordinates.

Definition at line 12 of file GraphicsArcItem.cpp.

◆ GraphicsArcItem() [2/2]

GraphicsArcItem::GraphicsArcItem ( const QRectF &  rect,
QGraphicsItem *  parent = 0 
)

Constructor with coordinates specified as rectangle.

Definition at line 25 of file GraphicsArcItem.cpp.

Member Function Documentation

◆ boundingRect()

QRectF GraphicsArcItem::boundingRect ( ) const
virtual

QGraphicsEllipseItem ignored transformation when computing bounding rectangle, although it should so we must make boundingRect smarter.

Definition at line 32 of file GraphicsArcItem.cpp.

◆ paint()

void GraphicsArcItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
virtual

Paint without interior fill.

Definition at line 43 of file GraphicsArcItem.cpp.


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