QtCanvasPolygonalItem Class Referenceabstract

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

+ Inheritance diagram for QtCanvasPolygonalItem:

Public Member Functions

virtual QPolygon areaPoints () const =0
 
virtual QPolygon areaPoints () const =0
 
virtual QPolygon areaPointsAdvanced () const
 
virtual QPolygon areaPointsAdvanced () const
 
QRect boundingRect () const
 
QRect boundingRect () const
 
QBrush brush () const
 
QBrush brush () const
 
bool collidesWith (const QtCanvasItem *) const
 
bool collidesWith (const QtCanvasItem *) const
 
QPen pen () const
 
QPen pen () const
 
 QtCanvasPolygonalItem (QtCanvas *canvas)
 
 QtCanvasPolygonalItem (QtCanvas *canvas)
 
int rtti () const
 
int rtti () const
 
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_PolygonalItem
 
- Static Public Attributes inherited from QtCanvasItem
static int RTTI = Rtti_Item
 

Protected Member Functions

void draw (QPainter &)
 
void draw (QPainter &)
 
virtual void drawShape (QPainter &)=0
 
virtual void drawShape (QPainter &)=0
 
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 707 of file qtcanvas.h.

Constructor & Destructor Documentation

◆ QtCanvasPolygonalItem() [1/2]

Definition at line 4032 of file qtcanvas.cpp.

◆ ~QtCanvasPolygonalItem() [1/2]

~QtCanvasPolygonalItem ( )
virtual

Definition at line 4042 of file qtcanvas.cpp.

◆ QtCanvasPolygonalItem() [2/2]

◆ ~QtCanvasPolygonalItem() [2/2]

virtual ~QtCanvasPolygonalItem ( )
virtual

Member Function Documentation

◆ areaPoints() [1/2]

virtual QPolygon areaPoints ( ) const
pure virtual

Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.

+ Here is the caller graph for this function:

◆ areaPoints() [2/2]

virtual QPolygon areaPoints ( ) const
pure virtual

◆ areaPointsAdvanced() [1/2]

virtual QPolygon areaPointsAdvanced ( ) const
virtual

◆ areaPointsAdvanced() [2/2]

QPolygon areaPointsAdvanced ( ) const
virtual

Definition at line 4105 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ boundingRect() [1/2]

QRect boundingRect ( ) const
virtual

Implements QtCanvasItem.

Definition at line 4363 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ boundingRect() [2/2]

QRect boundingRect ( ) const
virtual

Implements QtCanvasItem.

◆ brush() [1/2]

QBrush brush ( ) const
inline

Definition at line 725 of file qtcanvas.h.

◆ brush() [2/2]

QBrush brush ( ) const
inline

Definition at line 725 of file qtcanvas.h.

◆ collidesWith() [1/2]

bool collidesWith ( const QtCanvasItem i) const
virtual

Implements QtCanvasItem.

Reimplemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasRectangle, and QtCanvasRectangle.

Definition at line 2581 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ collidesWith() [2/2]

bool collidesWith ( const QtCanvasItem ) const
virtual

Implements QtCanvasItem.

Reimplemented in QtCanvasEllipse, and QtCanvasRectangle.

◆ draw() [1/2]

void draw ( QPainter &  p)
protectedvirtual

Implements QtCanvasItem.

Definition at line 4374 of file qtcanvas.cpp.

+ Here is the call graph for this function:

◆ draw() [2/2]

void draw ( QPainter &  )
protectedvirtual

Implements QtCanvasItem.

◆ drawShape() [1/2]

virtual void drawShape ( QPainter &  )
protectedpure virtual

Implemented in QtCanvasEllipse, QtCanvasEllipse, QtCanvasLine, QtCanvasLine, QtCanvasPolygon, QtCanvasPolygon, QtCanvasRectangle, and QtCanvasRectangle.

+ Here is the caller graph for this function:

◆ drawShape() [2/2]

virtual void drawShape ( QPainter &  )
protectedpure virtual

◆ invalidate() [1/2]

void invalidate ( )
protected

◆ invalidate() [2/2]

void invalidate ( )
protected

Definition at line 4084 of file qtcanvas.cpp.

◆ isValid() [1/2]

bool isValid ( ) const
inlineprotected

Definition at line 747 of file qtcanvas.h.

◆ isValid() [2/2]

bool isValid ( ) const
inlineprotected

Definition at line 747 of file qtcanvas.h.

◆ pen() [1/2]

QPen pen ( ) const
inline

Definition at line 719 of file qtcanvas.h.

◆ pen() [2/2]

QPen pen ( ) const
inline

Definition at line 719 of file qtcanvas.h.

+ Here is the caller graph for this function:

◆ rtti() [1/2]

int rtti ( ) const
virtual

◆ rtti() [2/2]

int rtti ( ) const
virtual

◆ setBrush() [1/2]

void setBrush ( QBrush  b)
virtual

Definition at line 4430 of file qtcanvas.cpp.

◆ setBrush() [2/2]

virtual void setBrush ( QBrush  b)
virtual

◆ setPen() [1/2]

virtual void setPen ( QPen  p)
virtual

Reimplemented in QtCanvasLine, and QtCanvasLine.

◆ setPen() [2/2]

void setPen ( QPen  p)
virtual

Reimplemented in QtCanvasLine, and QtCanvasLine.

Definition at line 4414 of file qtcanvas.cpp.

+ Here is the caller graph for this function:

◆ setWinding() [1/2]

void setWinding ( bool  enable)
protected

Definition at line 4071 of file qtcanvas.cpp.

◆ setWinding() [2/2]

void setWinding ( bool  )
protected

◆ winding() [1/2]

bool winding ( ) const
protected

Definition at line 4056 of file qtcanvas.cpp.

◆ winding() [2/2]

bool winding ( ) const
protected

Member Data Documentation

◆ RTTI

static int RTTI = Rtti_PolygonalItem
static

Definition at line 735 of file qtcanvas.h.


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