QtCanvasItem Class Referenceabstract

#include <ArmarXGui/libraries/qtpropertybrowser/examples/canvas_typed/qtcanvas.h>

+ Inheritance diagram for QtCanvasItem:

Public Types

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
}
 

Public Member Functions

bool active () const
 
bool active () const
 
virtual void advance (int stage)
 
virtual void advance (int stage)
 
bool animated () const
 
bool animated () const
 
virtual QRect boundingRect () const =0
 
virtual QRect boundingRect () const =0
 
virtual QRect boundingRectAdvanced () const
 
virtual QRect boundingRectAdvanced () const
 
QtCanvascanvas () const
 
QtCanvascanvas () const
 
virtual bool collidesWith (const QtCanvasItem *) const =0
 
virtual bool collidesWith (const QtCanvasItem *) const =0
 
QtCanvasItemList collisions (bool exact) const
 
QtCanvasItemList collisions (bool exact) const
 
virtual void draw (QPainter &)=0
 
virtual void draw (QPainter &)=0
 
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)
 
virtual int rtti () const
 
virtual int rtti () const
 
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_Item
 

Protected Member Functions

void update ()
 
void update ()
 

Friends

class QtCanvasEllipse
 
class QtCanvasLine
 
class QtCanvasPolygon
 
class QtCanvasPolygonalItem
 
class QtCanvasRectangle
 
class QtCanvasSprite
 
class QtCanvasText
 

Detailed Description

Definition at line 67 of file qtcanvas.h.

Member Enumeration Documentation

◆ RttiValues [1/2]

enum RttiValues
Enumerator
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 

Definition at line 165 of file qtcanvas.h.

◆ RttiValues [2/2]

enum RttiValues
Enumerator
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 
Rtti_Item 
Rtti_Sprite 
Rtti_PolygonalItem 
Rtti_Text 
Rtti_Polygon 
Rtti_Rectangle 
Rtti_Ellipse 
Rtti_Line 
Rtti_Spline 

Definition at line 165 of file qtcanvas.h.

Constructor & Destructor Documentation

◆ QtCanvasItem() [1/2]

QtCanvasItem ( QtCanvas canvas)

Definition at line 1824 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ ~QtCanvasItem() [1/2]

~QtCanvasItem ( )
virtual

Definition at line 1846 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ QtCanvasItem() [2/2]

QtCanvasItem ( QtCanvas canvas)

◆ ~QtCanvasItem() [2/2]

virtual ~QtCanvasItem ( )
virtual

Member Function Documentation

◆ active() [1/2]

bool active ( ) const
inline

Definition at line 160 of file qtcanvas.h.

◆ active() [2/2]

bool active ( ) const
inline

Definition at line 160 of file qtcanvas.h.

◆ advance() [1/2]

void advance ( int  stage)
virtual

Reimplemented in QtCanvasSprite, and QtCanvasSprite.

Definition at line 2037 of file qtcanvas.cpp.

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

◆ advance() [2/2]

virtual void advance ( int  stage)
virtual

Reimplemented in QtCanvasSprite, and QtCanvasSprite.

◆ animated() [1/2]

bool animated ( ) const

Definition at line 1945 of file qtcanvas.cpp.

◆ animated() [2/2]

bool animated ( ) const

◆ boundingRect() [1/2]

virtual QRect boundingRect ( ) const
pure virtual

Implemented in QtCanvasText, QtCanvasText, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.

+ Here is the caller graph for this function:

◆ boundingRect() [2/2]

virtual QRect boundingRect ( ) const
pure virtual

◆ boundingRectAdvanced() [1/2]

QRect boundingRectAdvanced ( ) const
virtual

Definition at line 2772 of file qtcanvas.cpp.

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

◆ boundingRectAdvanced() [2/2]

virtual QRect boundingRectAdvanced ( ) const
virtual

◆ canvas() [1/2]

QtCanvas* canvas ( ) const
inline

Definition at line 184 of file qtcanvas.h.

◆ canvas() [2/2]

QtCanvas* canvas ( ) const
inline

Definition at line 184 of file qtcanvas.h.

+ Here is the caller graph for this function:

◆ collidesWith() [1/2]

virtual bool collidesWith ( const QtCanvasItem ) const
pure virtual

Implemented in QtCanvasText, QtCanvasText, QtCanvasEllipse, QtCanvasEllipse, QtCanvasRectangle, QtCanvasRectangle, QtCanvasPolygonalItem, QtCanvasPolygonalItem, QtCanvasSprite, and QtCanvasSprite.

+ Here is the caller graph for this function:

◆ collidesWith() [2/2]

◆ collisions() [1/2]

QtCanvasItemList collisions ( bool  exact) const

Definition at line 2617 of file qtcanvas.cpp.

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

◆ collisions() [2/2]

QtCanvasItemList collisions ( bool  exact) const

◆ draw() [1/2]

virtual void draw ( QPainter &  )
pure virtual

Implemented in QtCanvasSprite, QtCanvasSprite, QtCanvasText, QtCanvasText, QtCanvasPolygonalItem, and QtCanvasPolygonalItem.

+ Here is the caller graph for this function:

◆ draw() [2/2]

virtual void draw ( QPainter &  )
pure virtual

◆ enabled() [1/2]

bool enabled ( ) const
inline

Definition at line 156 of file qtcanvas.h.

◆ enabled() [2/2]

bool enabled ( ) const
inline

Definition at line 156 of file qtcanvas.h.

◆ hide() [1/2]

void hide ( )

Definition at line 2099 of file qtcanvas.cpp.

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

◆ hide() [2/2]

void hide ( )

◆ isActive() [1/2]

bool isActive ( ) const
inline

Definition at line 144 of file qtcanvas.h.

◆ isActive() [2/2]

bool isActive ( ) const
inline

Definition at line 144 of file qtcanvas.h.

◆ isEnabled() [1/2]

bool isEnabled ( ) const
inline

Definition at line 139 of file qtcanvas.h.

◆ isEnabled() [2/2]

bool isEnabled ( ) const
inline

Definition at line 139 of file qtcanvas.h.

◆ isSelected() [1/2]

bool isSelected ( ) const
inline

Definition at line 134 of file qtcanvas.h.

◆ isSelected() [2/2]

bool isSelected ( ) const
inline

Definition at line 134 of file qtcanvas.h.

◆ isVisible() [1/2]

bool isVisible ( ) const
inline

Definition at line 129 of file qtcanvas.h.

+ Here is the caller graph for this function:

◆ isVisible() [2/2]

bool isVisible ( ) const
inline

Definition at line 129 of file qtcanvas.h.

◆ move() [1/2]

void move ( double  x,
double  y 
)

Definition at line 1933 of file qtcanvas.cpp.

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

◆ move() [2/2]

void move ( double  x,
double  y 
)

◆ moveBy() [1/2]

void moveBy ( double  dx,
double  dy 
)
virtual

Reimplemented in QtCanvasText, QtCanvasText, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, and QtCanvasPolygon.

Definition at line 1918 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ moveBy() [2/2]

virtual void moveBy ( double  dx,
double  dy 
)
virtual

◆ rtti() [1/2]

◆ rtti() [2/2]

◆ selected() [1/2]

bool selected ( ) const
inline

Definition at line 152 of file qtcanvas.h.

◆ selected() [2/2]

bool selected ( ) const
inline

Definition at line 152 of file qtcanvas.h.

◆ setActive() [1/2]

virtual void setActive ( bool  yes)
virtual

◆ setActive() [2/2]

void setActive ( bool  yes)
virtual

Definition at line 2230 of file qtcanvas.cpp.

◆ setAnimated() [1/2]

void setAnimated ( bool  y)
virtual

Definition at line 1957 of file qtcanvas.cpp.

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

◆ setAnimated() [2/2]

virtual void setAnimated ( bool  y)
virtual

◆ setCanvas() [1/2]

void setCanvas ( QtCanvas c)
virtual

Definition at line 2056 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ setCanvas() [2/2]

virtual void setCanvas ( QtCanvas )
virtual

◆ setEnabled() [1/2]

virtual void setEnabled ( bool  yes)
virtual

◆ setEnabled() [2/2]

void setEnabled ( bool  yes)
virtual

Definition at line 2199 of file qtcanvas.cpp.

◆ setSelected() [1/2]

void setSelected ( bool  yes)
virtual

Definition at line 2168 of file qtcanvas.cpp.

◆ setSelected() [2/2]

virtual void setSelected ( bool  yes)
virtual

◆ setVelocity() [1/2]

void setVelocity ( double  vx,
double  vy 
)
virtual

Definition at line 1996 of file qtcanvas.cpp.

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

◆ setVelocity() [2/2]

virtual void setVelocity ( double  vx,
double  vy 
)
virtual

◆ setVisible() [1/2]

virtual void setVisible ( bool  yes)
virtual

◆ setVisible() [2/2]

void setVisible ( bool  yes)
virtual

Definition at line 2109 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ setX() [1/2]

void setX ( double  a)
inline

Definition at line 88 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setX() [2/2]

void setX ( double  a)
inline

Definition at line 88 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setXVelocity() [1/2]

void setXVelocity ( double  vx)
inline

Definition at line 105 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setXVelocity() [2/2]

void setXVelocity ( double  vx)
inline

Definition at line 105 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setY() [1/2]

void setY ( double  a)
inline

Definition at line 92 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setY() [2/2]

void setY ( double  a)
inline

Definition at line 92 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setYVelocity() [1/2]

void setYVelocity ( double  vy)
inline

Definition at line 109 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setYVelocity() [2/2]

void setYVelocity ( double  vy)
inline

Definition at line 109 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setZ() [1/2]

void setZ ( double  a)
inline

Definition at line 96 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ setZ() [2/2]

void setZ ( double  a)
inline

Definition at line 96 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ show() [1/2]

void show ( )

Definition at line 2093 of file qtcanvas.cpp.

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

◆ show() [2/2]

void show ( )

◆ update() [1/2]

void update ( )
inlineprotected

Definition at line 190 of file qtcanvas.h.

◆ update() [2/2]

void update ( )
inlineprotected

Definition at line 190 of file qtcanvas.h.

◆ visible() [1/2]

bool visible ( ) const
inline

Definition at line 148 of file qtcanvas.h.

◆ visible() [2/2]

bool visible ( ) const
inline

Definition at line 148 of file qtcanvas.h.

◆ x() [1/2]

double x ( ) const
inline

Definition at line 73 of file qtcanvas.h.

◆ x() [2/2]

double x ( ) const
inline

Definition at line 73 of file qtcanvas.h.

+ Here is the caller graph for this function:

◆ xVelocity() [1/2]

double xVelocity ( ) const

◆ xVelocity() [2/2]

double xVelocity ( ) const

Definition at line 2013 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ y() [1/2]

double y ( ) const
inline

Definition at line 77 of file qtcanvas.h.

+ Here is the caller graph for this function:

◆ y() [2/2]

double y ( ) const
inline

Definition at line 77 of file qtcanvas.h.

◆ yVelocity() [1/2]

double yVelocity ( ) const

◆ yVelocity() [2/2]

double yVelocity ( ) const

Definition at line 2021 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ z() [1/2]

double z ( ) const
inline

Definition at line 81 of file qtcanvas.h.

◆ z() [2/2]

double z ( ) const
inline

Definition at line 81 of file qtcanvas.h.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ QtCanvasEllipse

Definition at line 202 of file qtcanvas.h.

◆ QtCanvasLine

QtCanvasLine
friend

Definition at line 204 of file qtcanvas.h.

◆ QtCanvasPolygon

Definition at line 201 of file qtcanvas.h.

◆ QtCanvasPolygonalItem

Definition at line 198 of file qtcanvas.h.

◆ QtCanvasRectangle

Definition at line 200 of file qtcanvas.h.

◆ QtCanvasSprite

Definition at line 199 of file qtcanvas.h.

◆ QtCanvasText

QtCanvasText
friend

Definition at line 203 of file qtcanvas.h.

Member Data Documentation

◆ RTTI

static int RTTI = Rtti_Item
static

Definition at line 179 of file qtcanvas.h.


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