20 #ifndef OCCVIEWER_VIEWSKETCHER_H
21 #define OCCVIEWER_VIEWSKETCHER_H
39 #pragma warning ( disable:4251 )
60 int buttonState()
const;
61 bool isHasShift()
const;
68 void setSketchButton(
int );
70 virtual bool isDefault()
const;
77 void onDrawViewPort();
81 virtual bool onKey( QKeyEvent* );
82 virtual void onMouse( QMouseEvent* );
84 virtual void onActivate();
85 virtual void onDeactivate();
110 virtual bool onKey( QKeyEvent* );
111 virtual void onMouse( QMouseEvent* );
113 virtual void onActivate();
114 virtual void onDeactivate();
131 virtual void setSketcherMode(
int theMode);
137 virtual bool onKey( QKeyEvent* );
138 virtual void onMouse( QMouseEvent* );
139 virtual void onSketch( SketchState );
140 virtual void onActivate();
141 virtual void onDeactivate();
144 bool isValid(
const QPolygon*,
const QPoint& )
const;
146 const QPoint&,
const QPoint& )
const;
162 #pragma warning( default:4251 )
#define OCCVIEWER_EXPORT
Definition: OCCViewer.h:33
bool isValid(const QPolygon *thePoints, const QPoint &theCurrent)
Definition: SVTK_InteractorStyle.cxx:1762
bool isIntersect(const QPoint &theStart1, const QPoint &theEnd1, const QPoint &theStart2, const QPoint &theEnd2)
Definition: SVTK_InteractorStyle.cxx:1711
Definition: OCCViewer_ViewSketcher.h:124
bool myDbl
Definition: OCCViewer_ViewSketcher.h:149
QtxPolyRubberBand * mypPolyRB
Definition: OCCViewer_ViewSketcher.h:155
SketchMode myMode
Definition: OCCViewer_ViewSketcher.h:158
QPolygon * mypPoints
Definition: OCCViewer_ViewSketcher.h:151
QSize myToler
Definition: OCCViewer_ViewSketcher.h:150
virtual int sketcherMode() const
Definition: OCCViewer_ViewSketcher.h:132
int myDelButton
Definition: OCCViewer_ViewSketcher.h:153
SketchMode
Definition: OCCViewer_ViewSketcher.h:126
QtxCircleRubberBand * mypCircleRB
Definition: OCCViewer_ViewSketcher.h:156
int myAddButton
Definition: OCCViewer_ViewSketcher.h:152
Definition: OCCViewer_ViewSketcher.h:104
QtxRectRubberBand * mypRectRB
Definition: OCCViewer_ViewSketcher.h:116
Definition: OCCViewer_ViewSketcher.h:47
int mySketchButton
Definition: OCCViewer_ViewSketcher.h:88
QPoint myCurr
Definition: OCCViewer_ViewSketcher.h:94
int myType
Definition: OCCViewer_ViewSketcher.h:90
@ Accept
Definition: OCCViewer_ViewSketcher.h:51
virtual void setSketcherMode(int)
Definition: OCCViewer_ViewSketcher.h:73
int myResult
Definition: OCCViewer_ViewSketcher.h:92
virtual int sketcherMode() const
Definition: OCCViewer_ViewSketcher.h:74
virtual void onSketch(SketchState)=0
int myButtonState
Definition: OCCViewer_ViewSketcher.h:95
bool myHasShift
Definition: OCCViewer_ViewSketcher.h:96
QCursor mySavedCursor
Definition: OCCViewer_ViewSketcher.h:93
SketchState
Definition: OCCViewer_ViewSketcher.h:80
@ Debut
Definition: OCCViewer_ViewSketcher.h:80
void * mypData
Definition: OCCViewer_ViewSketcher.h:91
OCCViewer_ViewWindow * mypViewWindow
Definition: OCCViewer_ViewSketcher.h:89
Definition: OCCViewer_ViewWindow.h:147
For more information see QT documentation.
Definition: SUIT_Application.h:42
Definition: QtxRubberBand.h:98
Definition: QtxRubberBand.h:76
Definition: QtxRubberBand.h:61
@ Circle
Definition: Plot2d.h:75