Class implementing logical layer for interactive dragging of annotation labels. It includes two components: listener for GUI events occuring inside of OCCT 3D viewer and processor for hooked events to perform interactive modification of the selected annotation within current AIS context.
#include <MeasureGUI_AnnotationInteractor.h>
|
void | ConnectView (SUIT_ViewWindow *theWindow) |
| Connect interactor's event handler to the view window given. More...
|
|
void | DisconnectView (SUIT_ViewWindow *theWindow) |
| Disconnect interactor's event handler from the view window given. More...
|
|
virtual bool | eventFilter (QObject *, QEvent *) |
| Hooks and process events from OCCT viewer prior to their coming into the base viewer class. More...
|
|
MeasureGUI_AnnotationInteractor::MeasureGUI_AnnotationInteractor |
( |
GeometryGUI * |
theGUI, |
|
|
QObject * |
theOwner |
|
) |
| |
Connects to existing viewer/view windows to process events.
- Parameters
-
theGUI | [in] the geometry module's GUI interface. |
theOwner | [in] the owner of the instance. |
MeasureGUI_AnnotationInteractor::~MeasureGUI_AnnotationInteractor |
( |
| ) |
|
|
virtual |
void MeasureGUI_AnnotationInteractor::ConnectView |
( |
SUIT_ViewWindow * |
theWindow | ) |
|
|
protected |
void MeasureGUI_AnnotationInteractor::Disable |
( |
| ) |
|
void MeasureGUI_AnnotationInteractor::DisconnectView |
( |
SUIT_ViewWindow * |
theWindow | ) |
|
|
protected |
void MeasureGUI_AnnotationInteractor::Enable |
( |
| ) |
|
bool MeasureGUI_AnnotationInteractor::eventFilter |
( |
QObject * |
theObject, |
|
|
QEvent * |
theEvent |
|
) |
| |
|
protectedvirtual |
It handles the events coming to viewport and identifies whether the events can invoke an interaction operation or not. If yes, the operation is performed within the interactor class and events are "accepted". Otherwise, the events are passed to viewer's subroutines.
References anIO, Handle(), myActiveViewPort, myEditEntry, mySelection, myStartPoint, myViewer, NULL, SignalInteractionFinished(), and SignalInteractionStarted().
void MeasureGUI_AnnotationInteractor::OnViewCreated |
( |
SUIT_ViewWindow * |
theView | ) |
|
|
protectedslot |
void MeasureGUI_AnnotationInteractor::OnViewRemoved |
( |
SUIT_ViewWindow * |
theView | ) |
|
|
protectedslot |
void MeasureGUI_AnnotationInteractor::SetEditEntry |
( |
const QString & |
theEntry | ) |
|
|
inline |
void MeasureGUI_AnnotationInteractor::SignalInteractionFinished |
( |
Handle_GEOM_Annotation |
theIO | ) |
|
|
signal |
void MeasureGUI_AnnotationInteractor::SignalInteractionStarted |
( |
Handle_GEOM_Annotation |
theIO | ) |
|
|
signal |
OCCViewer_ViewPort3d* MeasureGUI_AnnotationInteractor::myActiveViewPort |
|
private |
QString MeasureGUI_AnnotationInteractor::myEditEntry |
|
private |
GeometryGUI* MeasureGUI_AnnotationInteractor::myGeomGUI |
|
private |
bool MeasureGUI_AnnotationInteractor::myIsEnabled |
|
private |
SelectMgr_SequenceOfOwner MeasureGUI_AnnotationInteractor::mySelection |
|
private |
QPoint MeasureGUI_AnnotationInteractor::myStartPoint |
|
private |
OCCViewer_Viewer* MeasureGUI_AnnotationInteractor::myViewer |
|
private |
OCCViewer_ViewManager* MeasureGUI_AnnotationInteractor::myVM |
|
private |
The documentation for this class was generated from the following files: