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

OCCViewer_RectSketcher Class Reference

#include <OCCViewer_ViewSketcher.h>

Inheritance diagram for OCCViewer_RectSketcher:
Inheritance graph

Public Types

enum  { Neutral, Accept, Reject }

Public Member Functions

 OCCViewer_RectSketcher (OCCViewer_ViewWindow *, int)
virtual ~OCCViewer_RectSketcher ()
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 Attributes

QtxRectRubberBandmypRectRB

Member Enumeration Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

bool OCCViewer_RectSketcher::onKey ( QKeyEvent *  e) [protected, virtual]
void OCCViewer_RectSketcher::onMouse ( QMouseEvent *  e) [protected, virtual]
void OCCViewer_RectSketcher::onSketch ( SketchState  state) [protected, virtual]
void OCCViewer_RectSketcher::onActivate ( ) [protected, virtual]

Reimplemented from OCCViewer_ViewSketcher.

References OCCViewer_ViewSketcher.mypData.

void OCCViewer_RectSketcher::onDeactivate ( ) [protected, virtual]
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