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

#include <OCCViewer_ViewSketcher.h>

Inheritance diagram for OCCViewer_ViewSketcher:
Inheritance graph

Public Types

enum  { Neutral, Accept, Reject }
 

Public Member Functions

 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 Types

enum  SketchState { Debut, EnTrain, Fin }
 

Protected Member Functions

virtual bool onKey (QKeyEvent *)
 
virtual void onMouse (QMouseEvent *)
 
virtual void onSketch (SketchState)=0
 
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
 
bool myHasShift
 

Private Slots

void onDrawViewPort ()
 

Member Enumeration Documentation

anonymous enum
Enumerator
Neutral 
Accept 
Reject 
Enumerator
Debut 
EnTrain 
Fin 

Constructor & Destructor Documentation

OCCViewer_ViewSketcher::OCCViewer_ViewSketcher ( OCCViewer_ViewWindow vw,
int  type 
)
OCCViewer_ViewSketcher::~OCCViewer_ViewSketcher ( )
virtual

Member Function Documentation

void OCCViewer_ViewSketcher::activate ( )
int OCCViewer_ViewSketcher::buttonState ( ) const

References myButtonState.

void * OCCViewer_ViewSketcher::data ( ) const

References mypData.

void OCCViewer_ViewSketcher::deactivate ( )
bool OCCViewer_ViewSketcher::eventFilter ( QObject o,
QEvent e 
)
virtual
bool OCCViewer_ViewSketcher::isDefault ( ) const
virtual
bool OCCViewer_ViewSketcher::isHasShift ( ) const

References myHasShift.

void OCCViewer_ViewSketcher::onActivate ( )
protectedvirtual
void OCCViewer_ViewSketcher::onDeactivate ( )
protectedvirtual
void OCCViewer_ViewSketcher::onDrawViewPort ( )
privateslot

References Debut, and onSketch().

bool OCCViewer_ViewSketcher::onKey ( QKeyEvent *  )
protectedvirtual
void OCCViewer_ViewSketcher::onMouse ( QMouseEvent *  )
protectedvirtual
virtual void OCCViewer_ViewSketcher::onSketch ( SketchState  )
protectedpure virtual
int OCCViewer_ViewSketcher::result ( ) const

References myResult.

void OCCViewer_ViewSketcher::setSketchButton ( int  b)

References mySketchButton.

int OCCViewer_ViewSketcher::sketchButton ( )

References mySketchButton.

int OCCViewer_ViewSketcher::type ( ) const

References myType.

Member Data Documentation

int OCCViewer_ViewSketcher::myButtonState
protected
QPoint OCCViewer_ViewSketcher::myCurr
protected
bool OCCViewer_ViewSketcher::myHasShift
protected
void* OCCViewer_ViewSketcher::mypData
protected
OCCViewer_ViewWindow* OCCViewer_ViewSketcher::mypViewWindow
protected
int OCCViewer_ViewSketcher::myResult
protected
QCursor OCCViewer_ViewSketcher::mySavedCursor
protected
int OCCViewer_ViewSketcher::mySketchButton
protected
QPoint OCCViewer_ViewSketcher::myStart
protected
int OCCViewer_ViewSketcher::myType
protected

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