#include <guide.h>

Inheritance diagram for Guide:
Collaboration diagram for Guide:

Public Types

enum  { Type = UserType + 7 }
 

Public Member Functions

 Guide (GraphicsWidget *, const double &x0, const double &y0, const double &radius)
 
 Guide (GraphicsWidget *, const double &y0, const int &width)
 
bool isCircle ()
 
void setCircle (const QPointF &center, const double &radius)
 
void setHorizontalLine (const QPointF &origin, const int &width)
 
double radius ()
 
int width ()
 
int type () const
 
void die ()
 

Protected Member Functions

QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 

Private Attributes

GraphicsWidgetgraphicsWidget
 
double m_radius
 
int m_width
 
bool circle
 

Member Enumeration Documentation

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

Guide::Guide ( GraphicsWidget gw,
const double &  x0,
const double &  y0,
const double &  radius 
)
Guide::Guide ( GraphicsWidget gw,
const double &  y0,
const int &  width 
)

Member Function Documentation

QRectF Guide::boundingRect ( ) const
protected

Returns the bounding rectangle of the background circle

void Guide::die ( )
bool Guide::isCircle ( )
void Guide::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
protected
double Guide::radius ( )
void Guide::setCircle ( const QPointF &  center,
const double &  radius 
)
void Guide::setHorizontalLine ( const QPointF &  origin,
const int &  width 
)
int Guide::type ( ) const
inline
int Guide::width ( )

Member Data Documentation

bool Guide::circle
private
GraphicsWidget* Guide::graphicsWidget
private
double Guide::m_radius
private
int Guide::m_width
private

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