QtCanvasRectangle Class Reference

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

+ Inheritance diagram for QtCanvasRectangle:

Public Member Functions

QPolygon areaPoints () const
 
QPolygon areaPoints () const
 
bool collidesWith (const QtCanvasItem *) const
 
bool collidesWith (const QtCanvasItem *) const
 
int height () const
 
int height () const
 
 QtCanvasRectangle (const QRect &, QtCanvas *canvas)
 
 QtCanvasRectangle (const QRect &, QtCanvas *canvas)
 
 QtCanvasRectangle (int x, int y, int width, int height, QtCanvas *canvas)
 
 QtCanvasRectangle (int x, int y, int width, int height, QtCanvas *canvas)
 
 QtCanvasRectangle (QtCanvas *canvas)
 
 QtCanvasRectangle (QtCanvas *canvas)
 
QRect rect () const
 
QRect rect () const
 
int rtti () const
 
int rtti () const
 
void setSize (int w, int h)
 
void setSize (int w, int h)
 
QSize size () const
 
QSize size () const
 
int width () const
 
int width () const
 
 ~QtCanvasRectangle ()
 
 ~QtCanvasRectangle ()
 
- 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_Rectangle
 
- 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

QPolygon chunks () const
 
QPolygon chunks () const
 
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 ()
 

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
}
 

Detailed Description

Definition at line 679 of file qtcanvas.h.

Constructor & Destructor Documentation

◆ QtCanvasRectangle() [1/6]

QtCanvasRectangle ( QtCanvas canvas)

Definition at line 4702 of file qtcanvas.cpp.

◆ QtCanvasRectangle() [2/6]

QtCanvasRectangle ( const QRect &  r,
QtCanvas canvas 
)

Definition at line 4711 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ QtCanvasRectangle() [3/6]

QtCanvasRectangle ( int  x,
int  y,
int  width,
int  height,
QtCanvas canvas 
)

Definition at line 4722 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ ~QtCanvasRectangle() [1/2]

Definition at line 4733 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ QtCanvasRectangle() [4/6]

QtCanvasRectangle ( QtCanvas canvas)

◆ QtCanvasRectangle() [5/6]

QtCanvasRectangle ( const QRect &  ,
QtCanvas canvas 
)

◆ QtCanvasRectangle() [6/6]

QtCanvasRectangle ( int  x,
int  y,
int  width,
int  height,
QtCanvas canvas 
)

◆ ~QtCanvasRectangle() [2/2]

Member Function Documentation

◆ areaPoints() [1/2]

QPolygon areaPoints ( ) const
virtual

Implements QtCanvasPolygonalItem.

Definition at line 4787 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ areaPoints() [2/2]

QPolygon areaPoints ( ) const
virtual

Implements QtCanvasPolygonalItem.

◆ chunks() [1/2]

QPolygon chunks ( ) const
protectedvirtual

Reimplemented from QtCanvasPolygonalItem.

Definition at line 4213 of file qtcanvas.cpp.

◆ chunks() [2/2]

QPolygon chunks ( ) const
protectedvirtual

Reimplemented from QtCanvasPolygonalItem.

◆ collidesWith() [1/2]

bool collidesWith ( const QtCanvasItem ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

◆ collidesWith() [2/2]

bool collidesWith ( const QtCanvasItem i) const
virtual

Reimplemented from QtCanvasPolygonalItem.

Definition at line 2530 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ drawShape() [1/2]

void drawShape ( QPainter &  )
protectedvirtual

Implements QtCanvasPolygonalItem.

◆ drawShape() [2/2]

void drawShape ( QPainter &  p)
protectedvirtual

Implements QtCanvasPolygonalItem.

Definition at line 4812 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ height() [1/2]

int height ( ) const

Definition at line 4750 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ height() [2/2]

int height ( ) const

◆ rect() [1/2]

QRect rect ( ) const
inline

Definition at line 696 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ rect() [2/2]

QRect rect ( ) const
inline

Definition at line 696 of file qtcanvas.h.

+ Here is the call graph for this function:

◆ rtti() [1/2]

int rtti ( ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

◆ rtti() [2/2]

int rtti ( ) const
virtual

Reimplemented from QtCanvasPolygonalItem.

Definition at line 5347 of file qtcanvas.cpp.

◆ setSize() [1/2]

void setSize ( int  w,
int  h 
)

◆ setSize() [2/2]

void setSize ( int  w,
int  h 
)

Definition at line 4758 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ size() [1/2]

QSize size ( ) const
inline

Definition at line 691 of file qtcanvas.h.

◆ size() [2/2]

QSize size ( ) const
inline

Definition at line 691 of file qtcanvas.h.

◆ width() [1/2]

int width ( ) const

Definition at line 4742 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ width() [2/2]

int width ( ) const

Member Data Documentation

◆ RTTI

static int RTTI = Rtti_Rectangle
static

Definition at line 704 of file qtcanvas.h.


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