Computer Assited Medical Intervention Tool Kit  version 5.0
QtCanvasEllipse Class Reference

#include <qtcanvas.h>

+ Inheritance diagram for QtCanvasEllipse:
+ Collaboration diagram for QtCanvasEllipse:

Public Member Functions

int angleLength () const
 
int angleLength () const
 
int angleStart () const
 
int angleStart () const
 
QPolygon areaPoints () const
 
QPolygon areaPoints () const
 
bool collidesWith (const QtCanvasItem *) const
 
bool collidesWith (const QtCanvasItem *) const
 
int height () const
 
int height () const
 
 QtCanvasEllipse (int width, int height, int startangle, int angle, QtCanvas *canvas)
 
 QtCanvasEllipse (int width, int height, int startangle, int angle, QtCanvas *canvas)
 
 QtCanvasEllipse (int width, int height, QtCanvas *canvas)
 
 QtCanvasEllipse (int width, int height, QtCanvas *canvas)
 
 QtCanvasEllipse (QtCanvas *canvas)
 
 QtCanvasEllipse (QtCanvas *canvas)
 
int rtti () const
 
int rtti () const
 
void setAngles (int start, int length)
 
void setAngles (int start, int length)
 
void setSize (int w, int h)
 
void setSize (int w, int h)
 
int width () const
 
int width () const
 
 ~QtCanvasEllipse ()
 
 ~QtCanvasEllipse ()
 
- Public Member Functions inherited from QtCanvasPolygonalItem
virtual QPolygon areaPointsAdvanced () const
 
virtual QPolygon areaPointsAdvanced () const
 
QRect boundingRect () const
 
QRect boundingRect () const
 
QBrush brush () const
 
QBrush brush () const
 
QPen pen () const
 
QPen pen () const
 
 QtCanvasPolygonalItem (QtCanvas *canvas)
 
 QtCanvasPolygonalItem (QtCanvas *canvas)
 
virtual void setBrush (QBrush b)
 
virtual void setBrush (QBrush b)
 
virtual void setPen (QPen p)
 
virtual void setPen (QPen p)
 
virtual ~QtCanvasPolygonalItem ()
 
virtual ~QtCanvasPolygonalItem ()
 
- Public Member Functions inherited from QtCanvasItem
bool active () const
 
bool active () const
 
virtual void advance (int stage)
 
virtual void advance (int stage)
 
bool animated () const
 
bool animated () const
 
virtual QRect boundingRectAdvanced () const
 
virtual QRect boundingRectAdvanced () const
 
QtCanvascanvas () const
 
QtCanvascanvas () const
 
QtCanvasItemList collisions (bool exact) const
 
QtCanvasItemList collisions (bool exact) const
 
bool enabled () const
 
bool enabled () const
 
void hide ()
 
void hide ()
 
bool isActive () const
 
bool isActive () const
 
bool isEnabled () const
 
bool isEnabled () const
 
bool isSelected () const
 
bool isSelected () const
 
bool isVisible () const
 
bool isVisible () const
 
void move (double x, double y)
 
void move (double x, double y)
 
virtual void moveBy (double dx, double dy)
 
virtual void moveBy (double dx, double dy)
 
 QtCanvasItem (QtCanvas *canvas)
 
 QtCanvasItem (QtCanvas *canvas)
 
bool selected () const
 
bool selected () const
 
virtual void setActive (bool yes)
 
virtual void setActive (bool yes)
 
virtual void setAnimated (bool y)
 
virtual void setAnimated (bool y)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setCanvas (QtCanvas *)
 
virtual void setEnabled (bool yes)
 
virtual void setEnabled (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setSelected (bool yes)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVelocity (double vx, double vy)
 
virtual void setVisible (bool yes)
 
virtual void setVisible (bool yes)
 
void setX (double a)
 
void setX (double a)
 
void setXVelocity (double vx)
 
void setXVelocity (double vx)
 
void setY (double a)
 
void setY (double a)
 
void setYVelocity (double vy)
 
void setYVelocity (double vy)
 
void setZ (double a)
 
void setZ (double a)
 
void show ()
 
void show ()
 
bool visible () const
 
bool visible () const
 
double x () const
 
double x () const
 
double xVelocity () const
 
double xVelocity () const
 
double y () const
 
double y () const
 
double yVelocity () const
 
double yVelocity () const
 
double z () const
 
double z () const
 
virtual ~QtCanvasItem ()
 
virtual ~QtCanvasItem ()
 

Static Public Attributes

static int RTTI = Rtti_Ellipse
 
- Static Public Attributes inherited from QtCanvasPolygonalItem
static int RTTI = Rtti_PolygonalItem
 
- Static Public Attributes inherited from QtCanvasItem
static int RTTI = Rtti_Item
 

Protected Member Functions

void drawShape (QPainter &)
 
void drawShape (QPainter &)
 
- Protected Member Functions inherited from QtCanvasPolygonalItem
void draw (QPainter &)
 
void draw (QPainter &)
 
void invalidate ()
 
void invalidate ()
 
bool isValid () const
 
bool isValid () const
 
void setWinding (bool)
 
void setWinding (bool)
 
bool winding () const
 
bool winding () const
 
- Protected Member Functions inherited from QtCanvasItem
void update ()
 
void update ()
 

Private Member Functions

bool collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const
 
bool collidesWith (const QtCanvasSprite *, const QtCanvasPolygonalItem *, const QtCanvasRectangle *, const QtCanvasEllipse *, const QtCanvasText *) const
 

Private Attributes

int a1
 
int a2
 
int h
 
int w
 

Additional Inherited Members

- Public Types inherited from QtCanvasItem
enum  RttiValues {
  Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3,
  Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7,
  Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2,
  Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6,
  Rtti_Line = 7, Rtti_Spline = 8
}
 
enum  RttiValues {
  Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2, Rtti_Text = 3,
  Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6, Rtti_Line = 7,
  Rtti_Spline = 8, Rtti_Item = 0, Rtti_Sprite = 1, Rtti_PolygonalItem = 2,
  Rtti_Text = 3, Rtti_Polygon = 4, Rtti_Rectangle = 5, Rtti_Ellipse = 6,
  Rtti_Line = 7, Rtti_Spline = 8
}
 

Constructor & Destructor Documentation

◆ QtCanvasEllipse() [1/6]

QtCanvasEllipse::QtCanvasEllipse ( QtCanvas canvas)

◆ QtCanvasEllipse() [2/6]

QtCanvasEllipse::QtCanvasEllipse ( int  width,
int  height,
QtCanvas canvas 
)

◆ QtCanvasEllipse() [3/6]

QtCanvasEllipse::QtCanvasEllipse ( int  width,
int  height,
int  startangle,
int  angle,
QtCanvas canvas 
)

◆ ~QtCanvasEllipse() [1/2]

QtCanvasEllipse::~QtCanvasEllipse ( )

References QtCanvasItem::hide().

+ Here is the call graph for this function:

◆ QtCanvasEllipse() [4/6]

QtCanvasEllipse::QtCanvasEllipse ( QtCanvas canvas)

◆ QtCanvasEllipse() [5/6]

QtCanvasEllipse::QtCanvasEllipse ( int  width,
int  height,
QtCanvas canvas 
)

◆ QtCanvasEllipse() [6/6]

QtCanvasEllipse::QtCanvasEllipse ( int  width,
int  height,
int  startangle,
int  angle,
QtCanvas canvas 
)

◆ ~QtCanvasEllipse() [2/2]

QtCanvasEllipse::~QtCanvasEllipse ( )

Member Function Documentation

◆ angleLength() [1/2]

int QtCanvasEllipse::angleLength ( ) const
inline

References a2.

Referenced by collision_double_dispatch().

+ Here is the caller graph for this function:

◆ angleLength() [2/2]

int QtCanvasEllipse::angleLength ( ) const
inline

References a2.

◆ angleStart() [1/2]

int QtCanvasEllipse::angleStart ( ) const
inline

References a1.

◆ angleStart() [2/2]

int QtCanvasEllipse::angleStart ( ) const
inline

References a1.

◆ areaPoints() [1/2]

QPolygon QtCanvasEllipse::areaPoints ( ) const
virtual

Implements QtCanvasPolygonalItem.

◆ areaPoints() [2/2]

QPolygon QtCanvasEllipse::areaPoints ( ) const
virtual

Implements QtCanvasPolygonalItem.

References a1, a2, h, w, QtCanvasItem::x(), and QtCanvasItem::y().

+ Here is the call graph for this function:

◆ collidesWith() [1/4]

bool QtCanvasEllipse::collidesWith ( const QtCanvasItem i) const
virtual

Reimplemented from QtCanvasPolygonalItem.

References QtCanvasItem::collidesWith().

+ Here is the call graph for this function:

◆ collidesWith() [2/4]

bool QtCanvasEllipse::collidesWith ( const QtCanvasItem ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

◆ collidesWith() [3/4]

bool QtCanvasEllipse::collidesWith ( const QtCanvasSprite s,
const QtCanvasPolygonalItem p,
const QtCanvasRectangle r,
const QtCanvasEllipse e,
const QtCanvasText t 
) const
privatevirtual

Reimplemented from QtCanvasPolygonalItem.

References collision_double_dispatch().

+ Here is the call graph for this function:

◆ collidesWith() [4/4]

bool QtCanvasEllipse::collidesWith ( const QtCanvasSprite ,
const QtCanvasPolygonalItem ,
const QtCanvasRectangle ,
const QtCanvasEllipse ,
const QtCanvasText  
) const
privatevirtual

Reimplemented from QtCanvasPolygonalItem.

◆ drawShape() [1/2]

void QtCanvasEllipse::drawShape ( QPainter &  p)
protectedvirtual

Implements QtCanvasPolygonalItem.

References a1, a2, h, w, QtCanvasItem::x(), and QtCanvasItem::y().

+ Here is the call graph for this function:

◆ drawShape() [2/2]

void QtCanvasEllipse::drawShape ( QPainter &  )
protectedvirtual

Implements QtCanvasPolygonalItem.

◆ height() [1/2]

int QtCanvasEllipse::height ( ) const

References h.

Referenced by collision_double_dispatch(), MainWindow::itemClicked(), and setSize().

+ Here is the caller graph for this function:

◆ height() [2/2]

int QtCanvasEllipse::height ( ) const

◆ rtti() [1/2]

int QtCanvasEllipse::rtti ( ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

◆ rtti() [2/2]

int QtCanvasEllipse::rtti ( ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

References RTTI.

◆ setAngles() [1/2]

void QtCanvasEllipse::setAngles ( int  start,
int  length 
)

◆ setAngles() [2/2]

void QtCanvasEllipse::setAngles ( int  start,
int  length 
)

References a1, a2, QtCanvasItem::addToChunks(), and QtCanvasItem::removeFromChunks().

+ Here is the call graph for this function:

◆ setSize() [1/2]

void QtCanvasEllipse::setSize ( int  w,
int  h 
)

◆ setSize() [2/2]

void QtCanvasEllipse::setSize ( int  w,
int  h 
)

References QtCanvasItem::addToChunks(), h, height(), QtCanvasItem::removeFromChunks(), w, and width().

Referenced by MainWindow::valueChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ width() [1/2]

int QtCanvasEllipse::width ( ) const

References w.

Referenced by collision_double_dispatch(), MainWindow::itemClicked(), and setSize().

+ Here is the caller graph for this function:

◆ width() [2/2]

int QtCanvasEllipse::width ( ) const

Member Data Documentation

◆ a1

int QtCanvasEllipse::a1
private

◆ a2

int QtCanvasEllipse::a2
private

◆ h

int QtCanvasEllipse::h
private

Referenced by areaPoints(), drawShape(), height(), and setSize().

◆ RTTI

static int QtCanvasEllipse::RTTI = Rtti_Ellipse
static

Referenced by rtti().

◆ w

int QtCanvasEllipse::w
private

Referenced by areaPoints(), drawShape(), setSize(), and width().


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