Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OCCViewer_PolygonSketcher Class Reference

#include <OCCViewer_ViewSketcher.h>

Inheritance diagram for OCCViewer_PolygonSketcher:
Inheritance graph

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
 
QtxPolyRubberBandmypPolyRB
 

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_ViewWindowmypViewWindow
 
int myType
 
void * mypData
 
int myResult
 
QCursor mySavedCursor
 
QPoint myStart
 
QPoint myCurr
 
int myButtonState
 
bool myHasShift
 

Constructor & Destructor Documentation

OCCViewer_PolygonSketcher::OCCViewer_PolygonSketcher ( OCCViewer_ViewWindow vw,
int  typ 
)
OCCViewer_PolygonSketcher::~OCCViewer_PolygonSketcher ( )
virtual

Member Function Documentation

bool OCCViewer_PolygonSketcher::isIntersect ( const QPoint &  aStart1,
const QPoint &  anEnd1,
const QPoint &  aStart2,
const QPoint &  anEnd2 
) const
private
bool OCCViewer_PolygonSketcher::isValid ( const QPolygon *  aPoints,
const QPoint &  aCur 
) const
private

References isIntersect().

void OCCViewer_PolygonSketcher::onActivate ( )
protectedvirtual
void OCCViewer_PolygonSketcher::onDeactivate ( )
protectedvirtual
bool OCCViewer_PolygonSketcher::onKey ( QKeyEvent *  e)
protectedvirtual

Member Data Documentation

int OCCViewer_PolygonSketcher::myAddButton
private
bool OCCViewer_PolygonSketcher::myDbl
private
int OCCViewer_PolygonSketcher::myDelButton
private
QPolygon* OCCViewer_PolygonSketcher::mypPoints
private
QtxPolyRubberBand* OCCViewer_PolygonSketcher::mypPolyRB
private
QSize OCCViewer_PolygonSketcher::myToler
private

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