KiviatView::KiviatData Class Reference

List of all members.

Public Member Functions

 KiviatData (const KiviatView *view, const QVector< float > _data, QColor color)
 ~KiviatData ()
void setActive (bool active)
 Active Items are displayed on top and non-transparent.
QGraphicsPolygonItem * getPolygon () const
const QVector< float > & getData () const
void setToolTip (int axisNr, const QString &string)
void changeDataPoint (int axisNr, float newValue)
QColor getColor ()
void setColor (const QColor &color)
void redraw ()
void addToScene (QGraphicsScene &scene)
void resizeData (int newSize)

Protected Attributes

const KiviatViewview
QColor polygonColor
QGraphicsPolygonItem * polygon
 data polygon
QVector< QGraphicsEllipseItem * > cornerPoints
 black dots on intersection of axis and polygon
QVector< float > data

Static Protected Attributes

static const int ACTIVE_ZVALUE = 5
static const int INACTIVE_ZVALUE = 4

Detailed Description

Definition at line 20 of file KiviatView.cpp.


Constructor & Destructor Documentation

KiviatView::KiviatData::KiviatData ( const KiviatView view,
const QVector< float >  _data,
QColor  color 
)

Definition at line 79 of file KiviatView.cpp.

Here is the call graph for this function:

KiviatView::KiviatData::~KiviatData (  ) 

Definition at line 89 of file KiviatView.cpp.


Member Function Documentation

void KiviatView::KiviatData::addToScene ( QGraphicsScene &  scene  )  [inline]

Definition at line 49 of file KiviatView.cpp.

void KiviatView::KiviatData::changeDataPoint ( int  axisNr,
float  newValue 
)

Definition at line 158 of file KiviatView.cpp.

Here is the call graph for this function:

QColor KiviatView::KiviatData::getColor (  )  [inline]

Definition at line 37 of file KiviatView.cpp.

const QVector<float>& KiviatView::KiviatData::getData (  )  const [inline]

Definition at line 30 of file KiviatView.cpp.

QGraphicsPolygonItem* KiviatView::KiviatData::getPolygon (  )  const [inline]

Definition at line 29 of file KiviatView.cpp.

void KiviatView::KiviatData::redraw (  ) 

Definition at line 104 of file KiviatView.cpp.

Referenced by KiviatData(), and resizeData().

Here is the call graph for this function:

Here is the caller graph for this function:

void KiviatView::KiviatData::resizeData ( int  newSize  ) 

Changes dimension of data-array (if axisCount changed) if dim is increased the values are filled with zeros

Definition at line 97 of file KiviatView.cpp.

Referenced by KiviatView::removeAxis(), and KiviatView::setAxisCount().

Here is the call graph for this function:

void KiviatView::KiviatData::setActive ( bool  active  ) 

Active Items are displayed on top and non-transparent.

Definition at line 139 of file KiviatView.cpp.

Here is the call graph for this function:

void KiviatView::KiviatData::setColor ( const QColor &  color  )  [inline]

Definition at line 42 of file KiviatView.cpp.

void KiviatView::KiviatData::setToolTip ( int  axisNr,
const QString &  string 
) [inline]

Definition at line 32 of file KiviatView.cpp.


Member Data Documentation

const int KiviatView::KiviatData::ACTIVE_ZVALUE = 5 [static, protected]

All Items in the Scene have a Z-Value, highest Z-Value is displayed on top these are the zValue of active/inactive data-polygons

Definition at line 72 of file KiviatView.cpp.

Referenced by setActive().

QVector<QGraphicsEllipseItem*> KiviatView::KiviatData::cornerPoints [protected]

black dots on intersection of axis and polygon

Definition at line 64 of file KiviatView.cpp.

Referenced by changeDataPoint(), redraw(), setActive(), and setToolTip().

QVector<float> KiviatView::KiviatData::data [protected]

using float fix here (not templated) because there is only QPolygonF , so double makes no sense

Definition at line 68 of file KiviatView.cpp.

Referenced by changeDataPoint(), getData(), redraw(), and resizeData().

const int KiviatView::KiviatData::INACTIVE_ZVALUE = 4 [static, protected]

Definition at line 73 of file KiviatView.cpp.

Referenced by setActive().

QGraphicsPolygonItem* KiviatView::KiviatData::polygon [protected]

data polygon

Definition at line 61 of file KiviatView.cpp.

Referenced by addToScene(), changeDataPoint(), getPolygon(), KiviatData(), redraw(), setActive(), and ~KiviatData().

QColor KiviatView::KiviatData::polygonColor [protected]

Definition at line 58 of file KiviatView.cpp.

Referenced by getColor(), KiviatData(), redraw(), and setColor().

const KiviatView* KiviatView::KiviatData::view [protected]

Definition at line 56 of file KiviatView.cpp.

Referenced by changeDataPoint(), redraw(), and setActive().


The documentation for this class was generated from the following file:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7