CEDRIC  Revision_backup-2009-02
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
MDSItem Class Reference

#include <MDSItem.h>

Inheritance diagram for MDSItem:

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
 

Constructor & Destructor Documentation

MDSItem::MDSItem ( int  index,
const QColor &  color 
)

References index(), and s_pointSize.

Member Function Documentation

void MDSItem::adjustSize ( )

Call this after changing the static point size via MDSItem::setPointSize()

References s_pointSize.

Referenced by EventNavigator::showMap().

int MDSItem::index ( ) const
inline
void MDSItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
protected

References index(), and s_pivotIndex.

static int MDSItem::pivotIndex ( )
inlinestatic

Get event index of item currently drawn as "pivot element".

References s_pivotIndex.

static qreal MDSItem::pointSize ( )
inlinestatic

Get pixel size of points.

References s_pointSize.

Referenced by MDSView::mouseMoveEvent(), and MDSView::mouseReleaseEvent().

static void MDSItem::setPivotIndex ( int  index)
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().

void MDSItem::setPointSize ( qreal  size)
static

Set pixel size of points.

References s_pointSize.

Referenced by EventNavigator::showMap().

Member Data Documentation

int MDSItem::s_pivotIndex = -1
staticprotected

Referenced by paint(), pivotIndex(), and setPivotIndex().

qreal MDSItem::s_pointSize = 0.03
staticprotected