#include <OCCViewer_ViewSketcher.h>
Public Member Functions | |
OCCViewer_PolygonSketcher (OCCViewer_ViewWindow *, int) | |
virtual | ~OCCViewer_PolygonSketcher () |
Public Member Functions inherited from OCCViewer_ViewSketcher | |
OCCViewer_ViewSketcher (OCCViewer_ViewWindow *, int) | |
virtual | ~OCCViewer_ViewSketcher () |
int | type () const |
int | result () const |
int | buttonState () const |
bool | isHasShift () const |
void * | data () const |
void | activate () |
void | deactivate () |
int | sketchButton () |
void | setSketchButton (int) |
virtual bool | isDefault () const |
virtual bool | eventFilter (QObject *, QEvent *) |
Protected Member Functions | |
virtual bool | onKey (QKeyEvent *) |
virtual void | onMouse (QMouseEvent *) |
virtual void | onSketch (SketchState) |
virtual void | onActivate () |
virtual void | onDeactivate () |
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 |
Additional Inherited Members | |
Public Types inherited from OCCViewer_ViewSketcher | |
enum | { Neutral, Accept, Reject } |
Protected Types inherited from OCCViewer_ViewSketcher | |
enum | SketchState { Debut, EnTrain, Fin } |
Protected Attributes inherited from OCCViewer_ViewSketcher | |
int | mySketchButton |
OCCViewer_ViewWindow * | mypViewWindow |
int | myType |
void * | mypData |
int | myResult |
QCursor | mySavedCursor |
QPoint | myStart |
QPoint | myCurr |
int | myButtonState |
bool | myHasShift |
OCCViewer_PolygonSketcher::OCCViewer_PolygonSketcher | ( | OCCViewer_ViewWindow * | vw, |
int | typ | ||
) |
|
virtual |
References OCCViewer_ViewSketcher::mypData.
|
private |
|
private |
References isIntersect().
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References myAddButton, myDbl, myDelButton, OCCViewer_ViewSketcher::mypData, and OCCViewer_ViewSketcher::sketchButton().
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References QtxAbstractRubberBand::clearGeometry(), OCCViewer_ViewSketcher::mypData, and mypPolyRB.
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References OCCViewer_ViewSketcher::Accept, OCCViewer_ViewSketcher::data(), OCCViewer_ViewSketcher::myCurr, OCCViewer_ViewSketcher::myResult, onMouse(), and OCCViewer_ViewSketcher::Reject.
|
protectedvirtual |
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().
|
protectedvirtual |
Implements OCCViewer_ViewSketcher.
References OCCViewer_ViewWindow::activateSketching(), QtxAbstractRubberBand::clearGeometry(), OCCViewer_ViewSketcher::data(), OCCViewer_ViewSketcher::Fin, QtxPolyRubberBand::initGeometry(), OCCViewer_ViewSketcher::myCurr, mypPolyRB, OCCViewer_ViewSketcher::mypViewWindow, and OCCViewer_ViewWindow::NoSketching.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |