#include <graphicsguide.h>

+ Inheritance diagram for GraphicsGuide:
+ Collaboration diagram for GraphicsGuide:

Public Types

enum  { Type = UserType + 7 }
 

Public Member Functions

 GraphicsGuide (GraphicsWidget *, const double &x0, const double &y0, const double &radius)
 
 GraphicsGuide (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

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

Member Function Documentation

QRectF GraphicsGuide::boundingRect ( ) const
protected

Returns the bounding rectangle of the background circle

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

Member Data Documentation

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

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