25 #ifndef WTRANSFERFUNCTIONPOINT_H 
   26 #define WTRANSFERFUNCTIONPOINT_H 
   28 #include "QGraphicsItem" 
  113     virtual void paint( QPainter *painter, 
const QStyleOptionGraphicsItem *option, QWidget* );
 
  120     virtual void setPos( QPointF point );
 
  145     QVariant 
itemChange( GraphicsItemChange change, 
const QVariant &value );
 
Line object for the connection of alpha control points.
 
A control point for the alpha function.
 
QRectF boundingRect() const
Get the bounding rectangle.
 
WTransferFunctionPoint * getLeft() const
Get point to the left.
 
WTransferFunctionPoint * left
pointer to point to the left
 
virtual ~WTransferFunctionPoint()
Default destructor.
 
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Handle mouse press events for selections and highlighting.
 
WTransferFunctionLine * getLine() const
The current line if there is one.
 
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Handle item changes and change requests.
 
WTransferFunctionLine * line
pointer to line to the right
 
WTransferFunctionPoint * getRight() const
Get point to the right.
 
WTransferFunctionPoint * right
pointer to point to the right
 
virtual void setPos(QPointF point)
Overloaded form base class for debugging.
 
void clampToLeftAndRight(QPointF *const pos) const
Helper to itemChange.
 
void setLeft(WTransferFunctionPoint *left)
Set point to the left.
 
void setRight(WTransferFunctionPoint *right)
Set point to the right.
 
void setLine(WTransferFunctionLine *line)
Set the line pointing to the right.
 
double radius
the radius of the object
 
WTransferFunctionPoint(WTransferFunctionWidget *parent=NULL)
Default constructor.
 
WTransferFunctionWidget * _parent
reference to the parent widget
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *)
Paint the object.
 
void clampToRectangle(QPointF *const pos, const QRectF &rectangle) const
Helper to itemChange.
 
QGraphicsItem BaseClass
type of the base class