GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
HoverPoints Class Reference

#include <Code/GUI/lib/TransferFunctionEditor/hoverpoints.h>

Inheritance diagram for HoverPoints:
Inheritance graph
[legend]
Collaboration diagram for HoverPoints:
Collaboration graph
[legend]

Public Types

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

Public Slots

void setEnabled (bool enabled)
 

Signals

void pointsChanged (const QPolygonF &points)
 

Public Member Functions

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

Private Member Functions

void movePoint (int i, const QPointF &newPos, bool emitChange=true)
 
QRectF pointBoundingRect (int i) const
 

Private Attributes

QRectF m_bounds
 
QPen m_connectionPen
 
ConnectionType m_connectionType
 
int m_currentIndex
 
bool m_editable
 
bool m_enabled
 
QHash< int, int > m_fingerPointMapping
 
QVector< uint > m_locks
 
double m_oldSize [2]
 
QBrush m_pointBrush
 
QPen m_pointPen
 
QPolygonF m_points
 
QSizeF m_pointSize
 
PointShape m_shape
 
SortType m_sortType
 
QWidget * m_widget
 

Detailed Description

Definition at line 83 of file hoverpoints.h.

Member Enumeration Documentation

Enumerator
NoConnection 
LineConnection 
CurveConnection 

Definition at line 105 of file hoverpoints.h.

Enumerator
LockToLeft 
LockToRight 
LockToTop 
LockToBottom 

Definition at line 92 of file hoverpoints.h.

Enumerator
CircleShape 
RectangleShape 

Definition at line 87 of file hoverpoints.h.

Enumerator
NoSort 
XSort 
YSort 

Definition at line 99 of file hoverpoints.h.

Constructor & Destructor Documentation

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

Definition at line 84 of file hoverpoints.cpp.

Member Function Documentation

QRectF HoverPoints::boundingRect ( ) const
inline

Definition at line 189 of file hoverpoints.h.

ConnectionType HoverPoints::connectionType ( ) const
inline

Definition at line 129 of file hoverpoints.h.

bool HoverPoints::editable ( ) const
inline

Definition at line 139 of file hoverpoints.h.

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

Definition at line 124 of file hoverpoints.cpp.

void HoverPoints::firePointChange ( )

Definition at line 415 of file hoverpoints.cpp.

void HoverPoints::movePoint ( int  i,
const QPointF &  newPos,
bool  emitChange = true 
)
private

Definition at line 396 of file hoverpoints.cpp.

void HoverPoints::paintPoints ( )

Definition at line 336 of file hoverpoints.cpp.

QRectF HoverPoints::pointBoundingRect ( int  i) const
inlineprivate

Definition at line 179 of file hoverpoints.h.

QPolygonF HoverPoints::points ( ) const
inline

Definition at line 120 of file hoverpoints.h.

void HoverPoints::pointsChanged ( const QPolygonF &  points)
signal
QSizeF HoverPoints::pointSize ( ) const
inline

Definition at line 123 of file hoverpoints.h.

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

Definition at line 118 of file hoverpoints.h.

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

Definition at line 132 of file hoverpoints.h.

void HoverPoints::setConnectionType ( ConnectionType  connectionType)
inline

Definition at line 130 of file hoverpoints.h.

void HoverPoints::setEditable ( bool  editable)
inline

Definition at line 138 of file hoverpoints.h.

void HoverPoints::setEnabled ( bool  enabled)
slot

Definition at line 115 of file hoverpoints.cpp.

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

Definition at line 136 of file hoverpoints.h.

void HoverPoints::setPoints ( const QPolygonF &  points)

Definition at line 379 of file hoverpoints.cpp.

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

Definition at line 124 of file hoverpoints.h.

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

Definition at line 134 of file hoverpoints.h.

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

Definition at line 133 of file hoverpoints.h.

void HoverPoints::setSortType ( SortType  sortType)
inline

Definition at line 127 of file hoverpoints.h.

SortType HoverPoints::sortType ( ) const
inline

Definition at line 126 of file hoverpoints.h.

Member Data Documentation

QRectF HoverPoints::m_bounds
private

Definition at line 157 of file hoverpoints.h.

QPen HoverPoints::m_connectionPen
private

Definition at line 173 of file hoverpoints.h.

ConnectionType HoverPoints::m_connectionType
private

Definition at line 160 of file hoverpoints.h.

int HoverPoints::m_currentIndex
private

Definition at line 165 of file hoverpoints.h.

bool HoverPoints::m_editable
private

Definition at line 166 of file hoverpoints.h.

bool HoverPoints::m_enabled
private

Definition at line 167 of file hoverpoints.h.

QHash<int, int> HoverPoints::m_fingerPointMapping
private

Definition at line 169 of file hoverpoints.h.

QVector<uint> HoverPoints::m_locks
private

Definition at line 162 of file hoverpoints.h.

double HoverPoints::m_oldSize[2]
private

Definition at line 175 of file hoverpoints.h.

QBrush HoverPoints::m_pointBrush
private

Definition at line 172 of file hoverpoints.h.

QPen HoverPoints::m_pointPen
private

Definition at line 171 of file hoverpoints.h.

QPolygonF HoverPoints::m_points
private

Definition at line 156 of file hoverpoints.h.

QSizeF HoverPoints::m_pointSize
private

Definition at line 164 of file hoverpoints.h.

PointShape HoverPoints::m_shape
private

Definition at line 158 of file hoverpoints.h.

SortType HoverPoints::m_sortType
private

Definition at line 159 of file hoverpoints.h.

QWidget* HoverPoints::m_widget
private

Definition at line 154 of file hoverpoints.h.


The documentation for this class was generated from the following files: