#include <OCCViewer_ViewSketcher.h>
Public Member Functions | |
OCCViewer_RectSketcher (OCCViewer_ViewWindow *, int) | |
virtual | ~OCCViewer_RectSketcher () |
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 Attributes | |
QtxRectRubberBand * | mypRectRB |
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_RectSketcher::OCCViewer_RectSketcher | ( | OCCViewer_ViewWindow * | vw, |
int | typ | ||
) |
|
virtual |
References OCCViewer_ViewSketcher::mypData.
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References OCCViewer_ViewSketcher::mypData.
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References QtxRectRubberBand::clearGeometry(), OCCViewer_ViewSketcher::mypData, and mypRectRB.
|
protectedvirtual |
Reimplemented from OCCViewer_ViewSketcher.
References OCCViewer_ViewSketcher::Accept, OCCViewer_ViewSketcher::myResult, and OCCViewer_ViewSketcher::Reject.
|
protectedvirtual |
|
protectedvirtual |
Implements OCCViewer_ViewSketcher.
References OCCViewer_ViewWindow::activateSketching(), OCCViewer_ViewSketcher::data(), OCCViewer_ViewSketcher::Fin, QtxRectRubberBand::initGeometry(), OCCViewer_ViewSketcher::myButtonState, OCCViewer_ViewSketcher::myCurr, mypRectRB, OCCViewer_ViewSketcher::mypViewWindow, OCCViewer_ViewSketcher::myStart, OCCViewer_ViewWindow::NoSketching, and OCCViewer_ViewSketcher::sketchButton().
|
private |