#include <OCCViewer_ViewSketcher.h>
Public Types |
| enum | { Neutral,
Accept,
Reject
} |
Public Member Functions |
| | OCCViewer_PolygonSketcher (OCCViewer_ViewWindow *, int) |
| virtual | ~OCCViewer_PolygonSketcher () |
| int | type () const |
| int | result () const |
| int | buttonState () const |
| void * | data () const |
| void | activate () |
| void | deactivate () |
| int | sketchButton () |
| void | setSketchButton (int) |
| virtual bool | isDefault () const |
| virtual bool | eventFilter (QObject *, QEvent *) |
Protected Types |
| enum | SketchState { Debut,
EnTrain,
Fin
} |
Protected Member Functions |
| virtual bool | onKey (QKeyEvent *) |
| virtual void | onMouse (QMouseEvent *) |
| virtual void | onSketch (SketchState) |
| virtual void | onActivate () |
| virtual void | onDeactivate () |
Protected Attributes |
| int | mySketchButton |
| OCCViewer_ViewWindow * | mypViewWindow |
| int | myType |
| void * | mypData |
| int | myResult |
| QCursor | mySavedCursor |
| QPoint | myStart |
| QPoint | myCurr |
| int | myButtonState |
Private Member Functions |
| bool | isValid (const QPolygon *, const QPoint &) const |
| bool | isIntersect (const QPoint &, const QPoint &, const QPoint &, const QPoint &) const |
Private Attributes |
| bool | myDbl |
| QSize | myToler |
| QPolygon * | mypPoints |
| int | myAddButton |
| int | myDelButton |
| QtxPolyRubberBand * | mypPolyRB |
Member Enumeration Documentation
anonymous enum [inherited] |
Constructor & Destructor Documentation
| OCCViewer_PolygonSketcher::~OCCViewer_PolygonSketcher |
( |
| ) |
[virtual] |
Member Function Documentation
| bool OCCViewer_PolygonSketcher::onKey |
( |
QKeyEvent * |
e | ) |
[protected, virtual] |
| void OCCViewer_PolygonSketcher::onMouse |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
Reimplemented from OCCViewer_ViewSketcher.
References OCCViewer_ViewSketcher.Accept, OCCViewer_ViewSketcher.data(), OCCViewer_ViewWindow.getViewPort(), isValid(), myAddButton, OCCViewer_ViewSketcher.myCurr, myDbl, myDelButton, OCCViewer_ViewSketcher.mypViewWindow, OCCViewer_ViewSketcher.myResult, OCCViewer_ViewSketcher.myStart, myToler, OCCViewer_ViewSketcher.Reject, and OCCViewer_ViewSketcher.sketchButton().
| void OCCViewer_PolygonSketcher::onSketch |
( |
SketchState |
state | ) |
[protected, virtual] |
| void OCCViewer_PolygonSketcher::onActivate |
( |
| ) |
[protected, virtual] |
| void OCCViewer_PolygonSketcher::onDeactivate |
( |
| ) |
[protected, virtual] |
| bool OCCViewer_PolygonSketcher::isValid |
( |
const QPolygon * |
aPoints, |
|
|
const QPoint & |
aCur |
|
) |
| const [private] |
| bool OCCViewer_PolygonSketcher::isIntersect |
( |
const QPoint & |
aStart1, |
|
|
const QPoint & |
anEnd1, |
|
|
const QPoint & |
aStart2, |
|
|
const QPoint & |
anEnd2 |
|
) |
| const [private] |
| int OCCViewer_ViewSketcher::type |
( |
| ) |
const [inherited] |
| int OCCViewer_ViewSketcher::result |
( |
| ) |
const [inherited] |
| int OCCViewer_ViewSketcher::buttonState |
( |
| ) |
const [inherited] |
| void * OCCViewer_ViewSketcher::data |
( |
| ) |
const [inherited] |
| void OCCViewer_ViewSketcher::activate |
( |
| ) |
[inherited] |
| void OCCViewer_ViewSketcher::deactivate |
( |
| ) |
[inherited] |
| int OCCViewer_ViewSketcher::sketchButton |
( |
| ) |
[inherited] |
| void OCCViewer_ViewSketcher::setSketchButton |
( |
int |
b | ) |
[inherited] |
| bool OCCViewer_ViewSketcher::isDefault |
( |
| ) |
const [virtual, inherited] |
| bool OCCViewer_ViewSketcher::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| [virtual, inherited] |
References OCCViewer_ViewSketcher.Debut, OCCViewer_ViewSketcher.EnTrain, OCCViewer_ViewSketcher.Fin, OCCViewer_ViewWindow.getViewPort(), OCCViewer_ViewSketcher.myButtonState, OCCViewer_ViewSketcher.myCurr, OCCViewer_ViewSketcher.mypViewWindow, OCCViewer_ViewSketcher.myResult, OCCViewer_ViewSketcher.myStart, OCCViewer_ViewSketcher.Neutral, OCCViewer_ViewSketcher.onKey(), OCCViewer_ViewSketcher.onMouse(), OCCViewer_ViewSketcher.onSketch(), OCCViewer_ViewSketcher.Reject, and OCCViewer_ViewSketcher.sketchButton().
Field Documentation