23 #ifndef OCCVIEWER_CLIPPLANEINTERACTOR_H
24 #define OCCVIEWER_CLIPPLANEINTERACTOR_H
28 #include <AIS_Plane.hxx>
29 #include <Bnd_Box.hxx>
37 #include <V3d_View.hxx>
89 const QPoint& theDragPos,
91 const Handle(AIS_Plane)& thePlane,
92 const Handle(V3d_View)& theView );
95 const Handle(AIS_Plane)& thePlane,
96 const Handle(V3d_View)& theView );
The class provides mouse dragging operations with AIS_Plane: 1) Sliding plane by dragging it with poi...
Definition: OCCViewer_ClipPlaneInteractor.h:47
void planeClicked(const Handle_AIS_Plane &thePlane)
DragOperation
Definition: OCCViewer_ClipPlaneInteractor.h:65
@ DragOperation_Undef
Definition: OCCViewer_ClipPlaneInteractor.h:66
@ DragOperation_Slide
Definition: OCCViewer_ClipPlaneInteractor.h:67
@ DragOperation_Rotate
Definition: OCCViewer_ClipPlaneInteractor.h:68
virtual bool keyRelease(QKeyEvent *, OCCViewer_ViewPort3d *)
Handle key releasing events. Stops the event propagation if interaction with plane is in progress.
Definition: OCCViewer_ClipPlaneInteractor.cxx:680
bool startDragging(const QPoint &thePickPos, const QPoint &theDragPos, const DragOperation theOperation, const Handle(AIS_Plane)&thePlane, const Handle(V3d_View)&theView)
Checks whether it is possible to start interaction with plane.
Definition: OCCViewer_ClipPlaneInteractor.cxx:191
bool isPerforming() const
Checks whether the interactive operation is in progress.
Definition: OCCViewer_ClipPlaneInteractor.cxx:116
virtual bool keyPress(QKeyEvent *, OCCViewer_ViewPort3d *)
Handle key pressing events. Stops the event propagation if interaction with plane is in progress.
Definition: OCCViewer_ClipPlaneInteractor.cxx:650
SeqOfPlanes myPlanes
Definition: OCCViewer_ClipPlaneInteractor.h:118
gp_Pln myMouseDragPln
Definition: OCCViewer_ClipPlaneInteractor.h:111
virtual bool mousePress(QMouseEvent *, OCCViewer_ViewPort3d *)
Handle mouse press events. Starts interaction with detected plane.
Definition: OCCViewer_ClipPlaneInteractor.cxx:495
bool myIsClickable
Definition: OCCViewer_ClipPlaneInteractor.h:120
virtual bool mouseMove(QMouseEvent *, OCCViewer_ViewPort3d *)
Handle mouse move events. Performs dragging if interaction is in progress.
Definition: OCCViewer_ClipPlaneInteractor.cxx:557
void planeDragged(const Handle_AIS_Plane &thePlane)
bool isDraggable(const Handle(AIS_Plane)&thePlane)
Checks whether the interactive plane can be dragged.
Definition: OCCViewer_ClipPlaneInteractor.cxx:156
virtual bool mouseDoubleClick(QMouseEvent *, OCCViewer_ViewPort3d *)
Handle mouse double clicking events events. Stops the event propagation if interaction with plane is ...
Definition: OCCViewer_ClipPlaneInteractor.cxx:638
Handle(AIS_Plane) myInteractedPlane
void setRotationCenter(const gp_Pnt &)
Sets center of rotation for the scene.
Definition: OCCViewer_ClipPlaneInteractor.cxx:75
Bnd_Box myMinMax
Definition: OCCViewer_ClipPlaneInteractor.h:116
gp_Ax3 myPlaneReferenceCS
Definition: OCCViewer_ClipPlaneInteractor.h:109
OCCViewer_ClipPlaneInteractor(OCCViewer_ViewManager *, QObject *theParent)
Constructor.
Definition: OCCViewer_ClipPlaneInteractor.cxx:43
void adjustBounds(gp_Ax3 &, const Bnd_Box &)
Adjusts min-max bounds of the plane.
Definition: OCCViewer_ClipPlaneInteractor.cxx:471
bool myIsDraggable
Definition: OCCViewer_ClipPlaneInteractor.h:119
void performDragging(const QPoint &theDragPos, const DragOperation theOperation, const Handle(AIS_Plane)&thePlane, const Handle(V3d_View)&theView)
Performs dragging operation on the passed interactive plane.
Definition: OCCViewer_ClipPlaneInteractor.cxx:371
bool isClickable(const Handle(AIS_Plane)&thePlane)
Checks whether the interactive plane can be clicked.
Definition: OCCViewer_ClipPlaneInteractor.cxx:125
gp_Pnt myRotationCenter
Definition: OCCViewer_ClipPlaneInteractor.h:115
QPoint myDragPos
Definition: OCCViewer_ClipPlaneInteractor.h:112
std::vector< Handle(AIS_Plane)> SeqOfPlanes
Definition: OCCViewer_ClipPlaneInteractor.h:51
DragOperation myPerformingOp
Definition: OCCViewer_ClipPlaneInteractor.h:114
gp_Ax1 myRotationAxis
Definition: OCCViewer_ClipPlaneInteractor.h:110
virtual void setEnabled(const bool)
Enables or disables event processing within the viewer.
Definition: OCCViewer_ClipPlaneInteractor.cxx:94
void setPlanes(const SeqOfPlanes &)
Sets sequence of planes allowed for interaction.
Definition: OCCViewer_ClipPlaneInteractor.cxx:66
void setMinMax(const Bnd_Box &)
Sets minimum and maximum bounding of the scene. The sliding movements are limited to minimum and maxi...
Definition: OCCViewer_ClipPlaneInteractor.cxx:86
virtual bool mouseRelease(QMouseEvent *, OCCViewer_ViewPort3d *)
Handle mouse release events. Stops interaction.
Definition: OCCViewer_ClipPlaneInteractor.cxx:613
const SeqOfPlanes & planes() const
Get sequence of planes to interact with.
Definition: OCCViewer_ClipPlaneInteractor.cxx:57
QPoint myPickPos
Definition: OCCViewer_ClipPlaneInteractor.h:113
Definition: OCCViewer_ViewManager.h:33
Definition: OCCViewer_ViewPort3d.h:43
For more information see QT documentation.
Definition: SUIT_Application.h:42