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:
[legend]
Collaboration diagram for HoverPoints:
[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
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
const QObjectList & children () const
const char * className () const
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
void deleteLater ()
void destroyed (QObject *obj)
bool disconnect (const QObject *receiver, const char *method)
bool disconnect (const char *signal, const QObject *receiver, const char *method)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool event (QEvent *e)
findChild (const QString &name) const
QList< T > findChildren (const QRegExp &regExp) const
QList< T > findChildren (const QString &name) const
bool inherits (const char *className) const
void insertChild (QObject *object)
void installEventFilter (QObject *filterObj)
bool isA (const char *className) const
bool isWidgetType () const
void killTimer (int id)
virtual const QMetaObjectmetaObject () const
void moveToThread (QThread *targetThread)
const char * name () const
const char * name (const char *defaultName) const
QString objectName () const
QObjectparent () const
QVariant property (const char *name) const
 QObject (QObject *parent)
 QObject (QObject *parent, const char *name)
void removeChild (QObject *object)
void removeEventFilter (QObject *obj)
void setName (const char *name)
void setObjectName (const QString &name)
void setParent (QObject *parent)
bool setProperty (const char *name, const QVariant &value)
bool signalsBlocked () const
int startTimer (int interval)
QThreadthread () const
virtual  ~QObject ()

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
QWidgetm_widget

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
QString tr (const char *sourceText, const char *disambiguation, int n)
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
virtual void childEvent (QChildEvent *event)
virtual void connectNotify (const char *signal)
virtual void customEvent (QEvent *event)
virtual void disconnectNotify (const char *signal)
int receivers (const char *signal) const
QObjectsender () const
int senderSignalIndex () const
virtual void timerEvent (QTimerEvent *event)
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
- Properties inherited from QObject
 objectName

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 
)
virtual

Reimplemented from QObject.

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: