HoverPoints Class Reference

#include <HoverPoints.h>

List of all members.

Public Types

enum  PointShape { CircleShape, RectangleShape }
enum  LockType { LockToLeft = 0x01, LockToRight = 0x02, LockToTop = 0x04, LockToBottom = 0x08 }
enum  SortType { NoSort, XSort, YSort }
enum  ConnectionType { NoConnection, LineConnection, CurveConnection }

Public Slots

void setEnabled (bool enabled)
void setDisabled (bool disabled)

Signals

void pointsChanged (const QPolygonF &points)

Public Member Functions

 HoverPoints (QWidget *widget, PointShape shape)
bool eventFilter (QObject *object, QEvent *event)
void paintPoints ()
QRectF boundingRect () const
void setBoundingRect (const QRectF &boundingRect)
QPolygonF points () const
void setPoints (const QPolygonF &points)
QSizeF pointSize () const
void setPointSize (const QSizeF &size)
SortType sortType () const
void setSortType (SortType sortType)
ConnectionType connectionType () const
void setConnectionType (ConnectionType connectionType)
void setConnectionPen (const QPen &pen)
void setShapePen (const QPen &pen)
void setShapeBrush (const QBrush &brush)
void setPointLock (int pos, LockType lock)
void setEditable (bool editable)
bool editable () const
void firePointChange ()


Detailed Description

Definition at line 48 of file HoverPoints.h.


Member Enumeration Documentation

enum HoverPoints::PointShape

Enumerator:
CircleShape 
RectangleShape 

Definition at line 52 of file HoverPoints.h.

enum HoverPoints::LockType

Enumerator:
LockToLeft 
LockToRight 
LockToTop 
LockToBottom 

Definition at line 57 of file HoverPoints.h.

enum HoverPoints::SortType

Enumerator:
NoSort 
XSort 
YSort 

Definition at line 64 of file HoverPoints.h.

enum HoverPoints::ConnectionType

Enumerator:
NoConnection 
LineConnection 
CurveConnection 

Definition at line 70 of file HoverPoints.h.


Constructor & Destructor Documentation

HoverPoints::HoverPoints ( QWidget *  widget,
PointShape  shape 
)

Creates Overlay Points for selecting GradientPath

Definition at line 48 of file HoverPoints.cpp.

References LineConnection, NoSort, and pointsChanged().


Member Function Documentation

bool HoverPoints::eventFilter ( QObject *  object,
QEvent *  event 
)

Event Filter - Repaint/Mouse/Resize-Events

Definition at line 85 of file HoverPoints.cpp.

References CircleShape, firePointChange(), paintPoints(), XSort, and YSort.

Here is the call graph for this function:

void HoverPoints::paintPoints (  ) 

Definition at line 200 of file HoverPoints.cpp.

References CircleShape, CurveConnection, and NoConnection.

Referenced by eventFilter().

QRectF HoverPoints::boundingRect (  )  const [inline]

Definition at line 151 of file HoverPoints.h.

Referenced by setPoints().

void HoverPoints::setBoundingRect ( const QRectF &  boundingRect  )  [inline]

Definition at line 83 of file HoverPoints.h.

QPolygonF HoverPoints::points (  )  const [inline]

Definition at line 85 of file HoverPoints.h.

Referenced by ShadeWidget::colorAt(), and ShadeWidget::points().

void HoverPoints::setPoints ( const QPolygonF &  points  ) 

Definition at line 266 of file HoverPoints.cpp.

References boundingRect().

Referenced by ShadeWidget::setPoints(), and ShadeWidget::ShadeWidget().

Here is the call graph for this function:

QSizeF HoverPoints::pointSize (  )  const [inline]

Definition at line 88 of file HoverPoints.h.

void HoverPoints::setPointSize ( const QSizeF &  size  )  [inline]

Definition at line 89 of file HoverPoints.h.

SortType HoverPoints::sortType (  )  const [inline]

Definition at line 91 of file HoverPoints.h.

void HoverPoints::setSortType ( SortType  sortType  )  [inline]

Definition at line 92 of file HoverPoints.h.

Referenced by ShadeWidget::ShadeWidget().

ConnectionType HoverPoints::connectionType (  )  const [inline]

Definition at line 94 of file HoverPoints.h.

void HoverPoints::setConnectionType ( ConnectionType  connectionType  )  [inline]

Definition at line 95 of file HoverPoints.h.

void HoverPoints::setConnectionPen ( const QPen &  pen  )  [inline]

Definition at line 97 of file HoverPoints.h.

void HoverPoints::setShapePen ( const QPen &  pen  )  [inline]

Definition at line 98 of file HoverPoints.h.

void HoverPoints::setShapeBrush ( const QBrush &  brush  )  [inline]

Definition at line 99 of file HoverPoints.h.

void HoverPoints::setPointLock ( int  pos,
LockType  lock 
) [inline]

Definition at line 101 of file HoverPoints.h.

Referenced by ShadeWidget::ShadeWidget().

void HoverPoints::setEditable ( bool  editable  )  [inline]

Definition at line 103 of file HoverPoints.h.

bool HoverPoints::editable (  )  const [inline]

Definition at line 104 of file HoverPoints.h.

void HoverPoints::setEnabled ( bool  enabled  )  [slot]

Definition at line 74 of file HoverPoints.cpp.

Referenced by setDisabled().

void HoverPoints::setDisabled ( bool  disabled  )  [inline, slot]

Definition at line 108 of file HoverPoints.h.

References setEnabled().

void HoverPoints::pointsChanged ( const QPolygonF &  points  )  [signal]

Referenced by firePointChange(), and HoverPoints().

void HoverPoints::firePointChange (  ) 

Sort points X-direction on pointChange

Definition at line 303 of file HoverPoints.cpp.

References NoSort, pointsChanged(), XSort, and YSort.

Referenced by eventFilter().


The documentation for this class was generated from the following files:
Generated on Mon Dec 10 18:18:21 2007 for VisLU by  doxygen 1.5.4