Version: 6.3.1
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

OCCViewer_PolygonSketcher Class Reference

#include <OCCViewer_ViewSketcher.h>

Inheritance diagram for OCCViewer_PolygonSketcher:
Inheritance graph

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_ViewWindowmypViewWindow
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
QtxPolyRubberBandmypPolyRB

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
Neutral 
Accept 
Reject 
enum OCCViewer_ViewSketcher::SketchState [protected, inherited]
Enumerator:
Debut 
EnTrain 
Fin 

Constructor & Destructor Documentation

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

Member Function Documentation

bool OCCViewer_PolygonSketcher::onKey ( QKeyEvent *  e) [protected, virtual]
void OCCViewer_PolygonSketcher::onMouse ( QMouseEvent *  e) [protected, virtual]
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]

References isIntersect().

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]

Field Documentation

int OCCViewer_ViewSketcher.mySketchButton [protected, inherited]
int OCCViewer_ViewSketcher.myType [protected, inherited]
void* OCCViewer_ViewSketcher.mypData [protected, inherited]
int OCCViewer_ViewSketcher.myResult [protected, inherited]
QCursor OCCViewer_ViewSketcher.mySavedCursor [protected, inherited]
QPoint OCCViewer_ViewSketcher.myStart [protected, inherited]
QPoint OCCViewer_ViewSketcher.myCurr [protected, inherited]
int OCCViewer_ViewSketcher.myButtonState [protected, inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS