Custom tooltip for AIS_InteractiveObjects and SelectMgr_EntityOwners in the OCC Viewer. More...
#include <OCCViewer_ToolTip.h>

Public Slots | |
| void | onToolTip (QPoint, QString &, QFont &, QRect &, QRect &) |
Signals | |
| void | toolTipFor (const Handle_SelectMgr_EntityOwner &, QString &) |
| void | toolTipFor (const Handle_AIS_InteractiveObject &, QString &) |
Signals inherited from QtxToolTip | |
| void | maybeTip (QPoint, QString &, QFont &, QRect &, QRect &) |
Public Member Functions | |
| OCCViewer_ToolTip (OCCViewer_ViewWindow *) | |
| virtual | ~OCCViewer_ToolTip () |
| QFont | font () const |
| void | setFont (const QFont &) |
Public Member Functions inherited from QtxToolTip | |
| QtxToolTip (QWidget *=0) | |
| virtual | ~QtxToolTip () |
| void | hideTip () |
| virtual void | showTip (const QPoint &aPos, const QString &text, const QRect &aWidgetRegion) |
| virtual void | showTip (const QRect &aRegion, const QString &text, const QRect &aWidgetRegion) |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
| void | setWakeUpDelayTime (int) |
| void | setShowDelayTime (int) |
| int | wakeUpDelayTime () const |
| int | showDelayTime () const |
Private Attributes | |
| OCCViewer_ViewWindow * | myWnd |
| QFont | myFont |
Additional Inherited Members | |
Protected Slots inherited from QtxToolTip | |
| void | onSleepTimeOut () |
| void | onWakeUpTimeOut () |
Protected Member Functions inherited from QtxToolTip | |
| virtual void | maybeTip (const QPoint &) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| QTimer * | sleepTimer () const |
| QTimer * | wakeUpTimer () const |
Custom tooltip for AIS_InteractiveObjects and SelectMgr_EntityOwners in the OCC Viewer.
| OCCViewer_ToolTip::OCCViewer_ToolTip | ( | OCCViewer_ViewWindow * | wnd | ) |
Constructor
| wnd | - window where the tooltip should be assigned |
References QtxToolTip::maybeTip(), and onToolTip().
|
virtual |
Destructor
| QFont OCCViewer_ToolTip::font | ( | ) | const |
References myFont.
|
slot |
Tooltip handler
| p | - current point |
| str | - returned tooltip text |
| f | - returned tooltip font |
| txtRect | - returned tooltip text rectangle |
| rect | - returned tooltip rectangle |
References SUIT_ViewWindow::getViewManager(), SUIT_ViewManager::getViewModel(), Handle(), myFont, myWnd, and toolTipFor().
| void OCCViewer_ToolTip::setFont | ( | const QFont & | f | ) |
|
signal |
Called when object is detected; allows to redefine tooltip text for object
|
signal |
Called when owner is detected; allows to redefine tooltip text for owner
|
private |
|
private |