SketcherGui::DrawSketchHandler Class Reference

Handler to create new sketch geometry This class has to be reimplemented to create geometry in the sketcher while its in editing. More...

#include <DrawSketchHandler.h>

Inheritance diagram for SketcherGui::DrawSketchHandler:
DrawSketchHandlerArc DrawSketchHandlerBox DrawSketchHandlerCircle DrawSketchHandlerFillet DrawSketchHandlerLine DrawSketchHandlerLineSet DrawSketchHandlerTrimming

List of all members.

Public Member Functions

virtual void activated (ViewProviderSketch *sketchgui)
void createAutoConstraints (const std::vector< AutoConstraint > &autoConstrs, int geoId, Sketcher::PointPos pointPos=Sketcher::none)
 DrawSketchHandler ()
int getHighestCurveIndex (void)
int getHighestVertexIndex (void)
Sketcher::SketchObjectgetObject (void)
virtual void mouseMove (Base::Vector2D onSketchPos)=0
virtual bool pressButton (Base::Vector2D onSketchPos)=0
virtual void quit (void)
virtual bool releaseButton (Base::Vector2D onSketchPos)=0
void renderSuggestConstraintsCursor (std::vector< AutoConstraint > &suggestedConstraints)
void resetPositionText (void)
int seekAutoConstraint (std::vector< AutoConstraint > &suggestedConstraints, const Base::Vector2D &Pos, const Base::Vector2D &Dir, Type selType=VERTEX)
void setPositionText (const Base::Vector2D &Pos)
virtual ~DrawSketchHandler ()

Protected Member Functions

void applyCursor (QCursor &newCursor)
void applyCursor (void)
void setCursor (const QPixmap &p, int x, int y)
void unsetCursor (void)

Protected Attributes

QCursor actCursor
QCursor oldCursor
ViewProviderSketchsketchgui

Friends

class ViewProviderSketch

Detailed Description

Handler to create new sketch geometry This class has to be reimplemented to create geometry in the sketcher while its in editing.

Definition at line 63 of file DrawSketchHandler.h.


Constructor & Destructor Documentation

DrawSketchHandler::DrawSketchHandler (  ) 

Definition at line 61 of file DrawSketchHandler.cpp.

DrawSketchHandler::~DrawSketchHandler (  )  [virtual]

Definition at line 67 of file DrawSketchHandler.cpp.


Member Function Documentation

virtual void SketcherGui::DrawSketchHandler::activated ( ViewProviderSketch sketchgui  )  [inline, virtual]
void DrawSketchHandler::applyCursor ( QCursor &  newCursor  )  [protected]
void DrawSketchHandler::applyCursor ( void   )  [protected]
void DrawSketchHandler::createAutoConstraints ( const std::vector< AutoConstraint > &  autoConstrs,
int  geoId,
Sketcher::PointPos  pointPos = Sketcher::none 
)
int DrawSketchHandler::getHighestCurveIndex ( void   ) 
int DrawSketchHandler::getHighestVertexIndex ( void   ) 
Sketcher::SketchObject * DrawSketchHandler::getObject ( void   ) 
virtual void SketcherGui::DrawSketchHandler::mouseMove ( Base::Vector2D  onSketchPos  )  [pure virtual]
virtual bool SketcherGui::DrawSketchHandler::pressButton ( Base::Vector2D  onSketchPos  )  [pure virtual]
void DrawSketchHandler::quit ( void   )  [virtual]
virtual bool SketcherGui::DrawSketchHandler::releaseButton ( Base::Vector2D  onSketchPos  )  [pure virtual]
void DrawSketchHandler::renderSuggestConstraintsCursor ( std::vector< AutoConstraint > &  suggestedConstraints  ) 
void DrawSketchHandler::resetPositionText ( void   ) 
int DrawSketchHandler::seekAutoConstraint ( std::vector< AutoConstraint > &  suggestedConstraints,
const Base::Vector2D Pos,
const Base::Vector2D Dir,
Type  selType = VERTEX 
)
void DrawSketchHandler::setCursor ( const QPixmap &  p,
int  x,
int  y 
) [protected]
void DrawSketchHandler::setPositionText ( const Base::Vector2D Pos  ) 
void DrawSketchHandler::unsetCursor ( void   )  [protected]

Friends And Related Function Documentation

friend class ViewProviderSketch [friend]

Definition at line 76 of file DrawSketchHandler.h.


Member Data Documentation

Definition at line 102 of file DrawSketchHandler.h.

Referenced by applyCursor(), renderSuggestConstraintsCursor(), and setCursor().

Definition at line 101 of file DrawSketchHandler.h.

Referenced by setCursor(), and unsetCursor().


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

Generated on Wed Nov 23 19:02:47 2011 for FreeCAD by  doxygen 1.6.1