|
CEDRIC
Revision_backup-2009-02
|
#include <MDSItem.h>
Public Member Functions | |
| MDSItem (int index, const QColor &color) | |
| int | index () const |
| void | adjustSize () |
| Call this after changing the static point size via MDSItem::setPointSize() More... | |
Static Public Member Functions | |
| static void | setPointSize (qreal size) |
| Set pixel size of points. More... | |
| static qreal | pointSize () |
| Get pixel size of points. More... | |
| static void | setPivotIndex (int index) |
| Specify which item to draw as "pivot element", set index to -1 to deselect current one. More... | |
| static int | pivotIndex () |
| Get event index of item currently drawn as "pivot element". More... | |
Protected Member Functions | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Static Protected Attributes | |
| static qreal | s_pointSize = 0.03 |
| static int | s_pivotIndex = -1 |
| MDSItem::MDSItem | ( | int | index, |
| const QColor & | color | ||
| ) |
References index(), and s_pointSize.
| void MDSItem::adjustSize | ( | ) |
Call this after changing the static point size via MDSItem::setPointSize()
References s_pointSize.
Referenced by EventNavigator::showMap().
|
inline |
Referenced by EventNavigator::MapSelection::MapSelection(), MDSItem(), MDSView::mousePressEvent(), paint(), and setPivotIndex().
|
protected |
References index(), and s_pivotIndex.
|
inlinestatic |
Get event index of item currently drawn as "pivot element".
References s_pivotIndex.
|
inlinestatic |
Get pixel size of points.
References s_pointSize.
Referenced by MDSView::mouseMoveEvent(), and MDSView::mouseReleaseEvent().
|
inlinestatic |
Specify which item to draw as "pivot element", set index to -1 to deselect current one.
References index(), and s_pivotIndex.
Referenced by EventNavigator::immerse(), MDSView::mousePressEvent(), and EventNavigator::overview().
|
static |
|
staticprotected |
Referenced by paint(), pivotIndex(), and setPivotIndex().
|
staticprotected |
Referenced by adjustSize(), MDSItem(), pointSize(), and setPointSize().
1.8.6