MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mgx::gui::QTransferFunctionViewer Class Reference
+ Inheritance diagram for mgx::gui::QTransferFunctionViewer:

Public Types

enum  BackgroundType { BG_CHECKS, BG_WHITE, BG_BLACK }
 
typedef TransferFunction::Colorf Colorf
 

Public Slots

void changeNbValues (int n)
 
void reverseFunction ()
 
void changeTransferFunction (const TransferFunction &fct)
 
void setupGradient ()
 
void setHistogram (const std::vector< double > &h)
 
void setBounds (double min, double max)
 
void setStickers (const std::vector< double > &s)
 
void setMarkerSize (int s)
 
void setCheckSize (int s)
 
void setBackgroundType (BackgroundType type)
 
void setInterpolation (TransferFunction::Interpolation i)
 
void setSelectionColor (QColor col)
 
void editMarkers ()
 
void autoAdjust ()
 

Signals

void changedTransferFunction (const TransferFunction &fct)
 

Public Member Functions

 QTransferFunctionViewer (QWidget *parent=0, Qt::WindowFlags f=0)
 
size_t nbValues () const
 
const TransferFunctiontransferFunction () const
 
- Public Member Functions inherited from QWidget
 ContextMenuPolicy
 
 FocusPolicy
 
 InputMethodHints
 
 LayoutDirection
 
 WindowFlags
 
 WindowModality
 
 QWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 actionEvent (QActionEvent *event)
 
 actions ()
 
 activateWindow ()
 
 addAction (QAction *action)
 
 addActions (QList< QAction * > actions)
 
 adjustSize ()
 
 ColorRole QWidget::backgroundRole()
 
 changeEvent (QEvent *event)
 
 childAt (int x, int y)
 
 childAt (const QPoint &p)
 
 clearFocus ()
 
 clearMask ()
 
 close ()
 
 closeEvent (QCloseEvent *event)
 
 contentsMargins ()
 
 contentsRect ()
 
 contextMenuEvent (QContextMenuEvent *event)
 
 create (WId window=0, bool initializeWindow=true, bool destroyOldWindow=true)
 
 customContextMenuRequested (const QPoint &pos)
 
 destroy (bool destroyWindow=true, bool destroySubWindows=true)
 
 dragEnterEvent (QDragEnterEvent *event)
 
 dragLeaveEvent (QDragLeaveEvent *event)
 
 dragMoveEvent (QDragMoveEvent *event)
 
 dropEvent (QDropEvent *event)
 
 effectiveWinId ()
 
 ensurePolished ()
 
 enterEvent (QEvent *event)
 
 event (QEvent *event)
 
 find (WId id)
 
 focusInEvent (QFocusEvent *event)
 
 focusNextChild ()
 
 focusNextPrevChild (bool next)
 
 focusOutEvent (QFocusEvent *event)
 
 focusPreviousChild ()
 
 focusProxy ()
 
 focusWidget ()
 
 fontInfo ()
 
 fontMetrics ()
 
 ColorRole QWidget::foregroundRole()
 
 getContentsMargins (int *left, int *top, int *right, int *bottom)
 
 getDC ()
 
 grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags=Qt::GestureFlags()
 
 grabKeyboard ()
 
 grabMouse ()
 
 grabMouse (const QCursor &cursor)
 
 grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
 
 graphicsEffect ()
 
 graphicsProxyWidget ()
 
 hasEditFocus ()
 
 heightForWidth (int w)
 
 hide ()
 
 hideEvent (QHideEvent *event)
 
 inputContext ()
 
 inputMethodEvent (QInputMethodEvent *event)
 
 inputMethodQuery (Qt::InputMethodQuery query)
 
 insertAction (QAction *before, QAction *action)
 
 insertActions (QAction *before, QList< QAction * > actions)
 
 isAncestorOf (const QWidget *child)
 
 isEnabledTo (QWidget *ancestor)
 
 isHidden ()
 
 isVisibleTo (QWidget *ancestor)
 
 isWindow ()
 
 keyPressEvent (QKeyEvent *event)
 
 keyReleaseEvent (QKeyEvent *event)
 
 keyboardGrabber ()
 
 layout ()
 
 leaveEvent (QEvent *event)
 
 lower ()
 
 HANDLE QWidget::macCGHandle()
 
 macEvent (EventHandlerCallRef caller, EventRef event)
 
 HANDLE QWidget::macQDHandle()
 
 mapFrom (QWidget *parent, const QPoint &pos)
 
 mapFromGlobal (const QPoint &pos)
 
 mapFromParent (const QPoint &pos)
 
 mapTo (QWidget *parent, const QPoint &pos)
 
 mapToGlobal (const QPoint &pos)
 
 mapToParent (const QPoint &pos)
 
 mask ()
 
 metric (PaintDeviceMetric m)
 
 mouseDoubleClickEvent (QMouseEvent *event)
 
 mouseGrabber ()
 
 mouseMoveEvent (QMouseEvent *event)
 
 mousePressEvent (QMouseEvent *event)
 
 mouseReleaseEvent (QMouseEvent *event)
 
 moveEvent (QMoveEvent *event)
 
 nativeParentWidget ()
 
 nextInFocusChain ()
 
 overrideWindowFlags (Qt::WindowFlags flags)
 
 paintEngine ()
 
 paintEvent (QPaintEvent *event)
 
 parentWidget ()
 
 previousInFocusChain ()
 
 qwsEvent (QWSEvent *event)
 
 raise ()
 
 releaseDC (HDC hdc)
 
 releaseKeyboard ()
 
 releaseMouse ()
 
 releaseShortcut (int id)
 
 removeAction (QAction *action)
 
 render (QPaintDevice *target, const QPoint &targetOffset=QPoint()
 
 render (QPainter *painter, const QPoint &targetOffset=QPoint()
 
 repaint ()
 
 repaint (int x, int y, int w, int h)
 
 repaint (const QRect &rect)
 
 repaint (const QRegion &rgn)
 
 resizeEvent (QResizeEvent *event)
 
 restoreGeometry (const QByteArray &geometry)
 
 saveGeometry ()
 
 scroll (int dx, int dy)
 
 scroll (int dx, int dy, const QRect &r)
 
 setAttribute (Qt::WidgetAttribute attribute, bool on=true)
 
 setBackgroundRole (QPalette::ColorRole role)
 
 setContentsMargins (int left, int top, int right, int bottom)
 
 setContentsMargins (const QMargins &margins)
 
 setDisabled (bool disable)
 
 setEditFocus (bool enable)
 
 setFixedHeight (int h)
 
 setFixedSize (const QSize &s)
 
 setFixedSize (int w, int h)
 
 setFixedWidth (int w)
 
 setFocus (Qt::FocusReason reason)
 
 setFocus ()
 
 setFocusProxy (QWidget *w)
 
 setForegroundRole (QPalette::ColorRole role)
 
 setGraphicsEffect (QGraphicsEffect *effect)
 
 setHidden (bool hidden)
 
 setInputContext (QInputContext *context)
 
 setLayout (QLayout *layout)
 
 setMask (const QBitmap &bitmap)
 
 setMask (const QRegion &region)
 
 setParent (QWidget *parent)
 
 setParent (QWidget *parent, Qt::WindowFlags f)
 
 setShortcutAutoRepeat (int id, bool enable=true)
 
 setShortcutEnabled (int id, bool enable=true)
 
 setStyle (QStyle *style)
 
 setTabOrder (QWidget *first, QWidget *second)
 
 setWindowRole (const QString &role)
 
 setWindowState (Qt::WindowStates windowState)
 
 setWindowSurface (QWindowSurface *surface)
 
 setupUi (QWidget *widget)
 
 show ()
 
 showEvent (QShowEvent *event)
 
 showFullScreen ()
 
 showMaximized ()
 
 showMinimized ()
 
 showNormal ()
 
 stackUnder (QWidget *w)
 
 style ()
 
 tabletEvent (QTabletEvent *event)
 
 testAttribute (Qt::WidgetAttribute attribute)
 
 underMouse ()
 
 ungrabGesture (Qt::GestureType gesture)
 
 update ()
 
 update (int x, int y, int w, int h)
 
 update (const QRect &rect)
 
 update (const QRegion &rgn)
 
 updateGeometry ()
 
 updateMicroFocus ()
 
 visibleRegion ()
 
 wheelEvent (QWheelEvent *event)
 
 winEvent (MSG *message, long *result)
 
 winId ()
 
 window ()
 
 windowRole ()
 
 WindowStates QWidget::windowState()
 
 windowSurface ()
 
 WindowType QWidget::windowType()
 
 x11Event (XEvent *event)
 
 x11Info ()
 
 HANDLE QWidget::x11PictureHandle()
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
void mouseDoubleClickEvent (QMouseEvent *e)
 
void mousePressEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void resetMouseInteraction ()
 
void prepareHistogram ()
 
void createBackground ()
 
QPixmap createChecks ()
 

Protected Attributes

TransferFunction transfer_fct
 
std::vector< double > histogram
 
std::vector< double > hist_values
 
double minValue
 
double maxValue
 
QPainterPath hist_shape
 
bool use_histogram
 
std::vector< double > stickers
 
bool sticking
 
int marker_size
 
bool select_pos
 
double current_pos
 
int bg_size
 
double bg_bright
 
double bg_dark
 
QColor activ_pos_color
 
Colorf saved_color
 
double saved_pos
 
QActionreverse_act
 
QActionedit_markers
 
QLinearGradient gradient
 
BackgroundType bg_type
 
size_t _nb_values
 

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