25 #ifndef WTRANSFERFUNCTIONCOLORPOINT_H 
   26 #define WTRANSFERFUNCTIONCOLORPOINT_H 
   28 #include <QGraphicsItem> 
   29 #include <QGraphicsObject> 
  103     virtual void paint( QPainter *painter, 
const QStyleOptionGraphicsItem *option, QWidget* widget = 0x0 );
 
  113     virtual void dragEnterEvent( QGraphicsSceneDragDropEvent* event );
 
  120     virtual void dropEvent( QGraphicsSceneDragDropEvent* event );
 
  157     QVariant 
itemChange( GraphicsItemChange change, 
const QVariant &value );
 
A control point for the color function.
 
void colorSelected(const QColor &color)
Called by the color dialog every time the user changes the color.
 
QColor color
the color entry
 
QGraphicsObject BaseClass
type of our base class
 
WTransferFunctionWidget * _parent
the parent widget
 
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Handles press move events.
 
virtual void dropEvent(QGraphicsSceneDragDropEvent *event)
Drop implementation for items that contain a color.
 
void clampToLeftAndRight()
Helper for item changed.
 
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Handles change notifications.
 
void setLeft(WTransferFunctionColorPoint *left)
Set the item left of us.
 
virtual ~WTransferFunctionColorPoint()
Default destructor.
 
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Handler for context menu envents.
 
void showColorPicker()
Show the color picker dialog.
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0x0)
Paint the handle and additional item hints.
 
WTransferFunctionColorPoint * right
the entry to the right of our entry
 
void clampToRectangle(const QRectF &rectangle)
Helper for item changed.
 
WTransferFunctionColorPoint * getRight() const
Returns the item right of this item.
 
double radius
the radius used for paining of the handle
 
void setRight(WTransferFunctionColorPoint *right)
Set the item right of us.
 
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event)
Drag enter implementation for items that contain a color.
 
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Handles mouse double click events by opening a color selector if the item is clicked.
 
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Handles mouse move events.
 
WTransferFunctionColorPoint * getLeft() const
Returns the item left of the this item.
 
QRectF boundingRect() const
The bounding rectangle used for paint and click events.
 
WTransferFunctionColorPoint * left
the entry left of this entry
 
WTransferFunctionColorPoint(WTransferFunctionWidget *parent=0x0)
Default constructor.
 
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Handles mouse move events.