Version: 9.12.0
OCCViewer_PolygonSketcher Class Reference

#include <OCCViewer_ViewSketcher.h>

Inheritance diagram for OCCViewer_PolygonSketcher:
Inheritance graph

Public Types

enum  SketchMode { Poligone , Circle }
 
- Public Types inherited from OCCViewer_ViewSketcher
enum  { Neutral , Accept , Reject }
 

Public Member Functions

 OCCViewer_PolygonSketcher (OCCViewer_ViewWindow *, int)
 
virtual ~OCCViewer_PolygonSketcher ()
 
virtual void setSketcherMode (int theMode)
 
virtual int sketcherMode () const
 
- 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
 
QtxPolyRubberBandmypPolyRB
 
QtxCircleRubberBandmypCircleRB
 
SketchMode myMode
 

Additional Inherited Members

- Protected Types inherited from OCCViewer_ViewSketcher
enum  SketchState { Debut , EnTrain , Fin }
 
- Protected Attributes inherited from OCCViewer_ViewSketcher
int mySketchButton
 
OCCViewer_ViewWindowmypViewWindow
 
int myType
 
void * mypData
 
int myResult
 
QCursor mySavedCursor
 
QPoint myStart
 
QPoint myCurr
 
int myButtonState
 
bool myHasShift
 

Member Enumeration Documentation

◆ SketchMode

Enumerator
Poligone 
Circle 

Constructor & Destructor Documentation

◆ OCCViewer_PolygonSketcher()

◆ ~OCCViewer_PolygonSketcher()

OCCViewer_PolygonSketcher::~OCCViewer_PolygonSketcher ( )
virtual

Member Function Documentation

◆ isIntersect()

bool OCCViewer_PolygonSketcher::isIntersect ( const QPoint &  aStart1,
const QPoint &  anEnd1,
const QPoint &  aStart2,
const QPoint &  anEnd2 
) const
private

◆ isValid()

bool OCCViewer_PolygonSketcher::isValid ( const QPolygon *  aPoints,
const QPoint &  aCur 
) const
private

References isIntersect().

◆ onActivate()

void OCCViewer_PolygonSketcher::onActivate ( )
protectedvirtual

◆ onDeactivate()

void OCCViewer_PolygonSketcher::onDeactivate ( )
protectedvirtual

◆ onKey()

◆ onMouse()

◆ onSketch()

◆ setSketcherMode()

void OCCViewer_PolygonSketcher::setSketcherMode ( int  theMode)
virtual

Reimplemented from OCCViewer_ViewSketcher.

References myMode.

◆ sketcherMode()

virtual int OCCViewer_PolygonSketcher::sketcherMode ( ) const
inlinevirtual

Reimplemented from OCCViewer_ViewSketcher.

Member Data Documentation

◆ myAddButton

int OCCViewer_PolygonSketcher::myAddButton
private

◆ myDbl

bool OCCViewer_PolygonSketcher::myDbl
private

◆ myDelButton

int OCCViewer_PolygonSketcher::myDelButton
private

◆ myMode

SketchMode OCCViewer_PolygonSketcher::myMode
private

◆ mypCircleRB

QtxCircleRubberBand* OCCViewer_PolygonSketcher::mypCircleRB
private

◆ mypPoints

QPolygon* OCCViewer_PolygonSketcher::mypPoints
private

◆ mypPolyRB

QtxPolyRubberBand* OCCViewer_PolygonSketcher::mypPolyRB
private

◆ myToler

QSize OCCViewer_PolygonSketcher::myToler
private

The documentation for this class was generated from the following files: