Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
HoverPoints Class Reference

Hoverpoints for manipulating the transfer function (external from a Qt demo) More...

#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 ()

Private Member Functions

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

Private Attributes

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

Detailed Description

Hoverpoints for manipulating the transfer function (external from a Qt demo)


Member Enumeration Documentation

Enumerator:
NoConnection 
LineConnection 
CurveConnection 
Enumerator:
LockToLeft 
LockToRight 
LockToTop 
LockToBottom 
Enumerator:
CircleShape 
RectangleShape 
Enumerator:
NoSort 
XSort 
YSort 

Constructor & Destructor Documentation

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

Member Function Documentation

QRectF HoverPoints::boundingRect ( ) const
inline
ConnectionType HoverPoints::connectionType ( ) const
inline
bool HoverPoints::editable ( ) const
inline
bool HoverPoints::eventFilter ( QObject *  object,
QEvent *  event 
)
void HoverPoints::firePointChange ( )
void HoverPoints::movePoint ( int  i,
const QPointF &  newPos,
bool  emitChange = true 
)
private
void HoverPoints::paintPoints ( )
QRectF HoverPoints::pointBoundingRect ( int  i) const
inlineprivate
QPolygonF HoverPoints::points ( ) const
inline
void HoverPoints::pointsChanged ( const QPolygonF &  points)
signal
QSizeF HoverPoints::pointSize ( ) const
inline
void HoverPoints::setBoundingRect ( const QRectF &  boundingRect)
inline
void HoverPoints::setConnectionPen ( const QPen &  pen)
inline
void HoverPoints::setConnectionType ( ConnectionType  connectionType)
inline
void HoverPoints::setDisabled ( bool  disabled)
inlineslot
void HoverPoints::setEditable ( bool  editable)
inline
void HoverPoints::setEnabled ( bool  enabled)
slot
void HoverPoints::setPointLock ( int  pos,
LockType  lock 
)
inline
void HoverPoints::setPoints ( const QPolygonF &  points)
void HoverPoints::setPointSize ( const QSizeF &  size)
inline
void HoverPoints::setShapeBrush ( const QBrush &  brush)
inline
void HoverPoints::setShapePen ( const QPen &  pen)
inline
void HoverPoints::setSortType ( SortType  sortType)
inline
SortType HoverPoints::sortType ( ) const
inline

Member Data Documentation

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

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