#include <DrawSketchHandlerBSpline.h>
Public Types | |
enum | MOUSE_PRESS_MODE { MOUSE_PRESSED , MOUSE_NOT_PRESSED } |
enum | SELECT_MODE { STATUS_SEEK_FIRST_CONTROLPOINT , STATUS_SEEK_ADDITIONAL_CONTROLPOINTS , STATUS_CLOSE } |
modes More... | |
Protected Attributes | |
std::vector< Base::Vector2d > | BSplinePoles |
int | ConstrMethod |
bool | IsClosed |
SELECT_MODE | Mode |
MOUSE_PRESS_MODE | MousePressMode |
std::vector< int > | poleGeoIds |
Base::Vector2d | prevCursorPosition |
int | SplineDegree |
std::vector< std::vector< AutoConstraint > > | sugConstr |
Protected Attributes inherited from SketcherGui::DrawSketchHandler | |
ViewProviderSketch * | sketchgui |
QCursor | oldCursor |
QCursor | actCursor |
QPixmap | actCursorPixmap |
Additional Inherited Members | |
Protected Member Functions inherited from SketcherGui::DrawSketchHandler | |
virtual QString | getCrosshairCursorSVGName () const |
void | setCursor (const QPixmap &pixmap, int x, int y, bool autoScale=true) |
void | updateCursor () |
updates the actCursor with the icon by calling getCrosshairCursorSVGName(), enabling to set data member dependent icons (i.e. More... | |
void | unsetCursor (void) |
restitutes the cursor that was in use at the moment of starting the DrawSketchHandler (i.e. oldCursor) More... | |
void | applyCursor (void) |
restitutes the DSH cached cursor (e.g. without any tail due to autoconstraints, ...) More... | |
unsigned long | getCrosshairColor () |
returns the color to be used for the crosshair (configurable as a parameter) More... | |
qreal | devicePixelRatio () |
functions to set the cursor to a given svgName (to be migrated to NVI style) More... | |
void | drawEdit (const std::vector< Base::Vector2d > &EditCurve) |
void | drawEdit (const std::list< std::vector< Base::Vector2d > > &list) |
void | drawEdit (const std::vector< Part::Geometry * > &geometries) |
void | drawEditMarkers (const std::vector< Base::Vector2d > &EditMarkers, unsigned int augmentationlevel=0) |
void | setAxisPickStyle (bool on) |
void | moveCursorToSketchPoint (Base::Vector2d point) |
void | preselectAtPoint (Base::Vector2d point) |
void | drawPositionAtCursor (const Base::Vector2d &position) |
void | drawDirectionAtCursor (const Base::Vector2d &position, const Base::Vector2d &origin) |
int | getPreselectPoint (void) const |
int | getPreselectCurve (void) const |
int | getPreselectCross (void) const |
Sketcher::SketchObject * | getSketchObject () |
std::vector< QPixmap > | suggestedConstraintsPixmaps (std::vector< AutoConstraint > &suggestedConstraints) |
Returns constraints icons scaled to width. More... | |
SketcherGui::DrawSketchHandlerBSpline::DrawSketchHandlerBSpline | ( | int | constructionMethod | ) |
References SketcherGui::DrawSketchHandler::applyCursor().
|
virtualdefault |
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References Mode, prevCursorPosition, SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), SketcherGui::DrawSketchHandler::seekAutoConstraint(), SketcherGui::DrawSketchHandler::setPositionText(), STATUS_SEEK_ADDITIONAL_CONTROLPOINTS, STATUS_SEEK_FIRST_CONTROLPOINT, and sugConstr.
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), BSplinePoles, Gui::cmdAppObjectArgs(), Sketcher::Coincident, Base::Console(), ConstrMethod, SketcherGui::DrawSketchHandler::createAutoConstraints(), Base::ConsoleSingleton::Error(), SketcherGui::DrawSketchHandler::getHighestCurveIndex(), Gui::ViewProviderDocumentObject::getObject(), IsClosed, Sketcher::mid, Mode, MOUSE_PRESSED, MousePressMode, Gui::Command::openCommand(), poleGeoIds, prevCursorPosition, draftutils.translate::QT_TRANSLATE_NOOP, SketcherGui::DrawSketchHandler::sketchgui, STATUS_CLOSE, STATUS_SEEK_ADDITIONAL_CONTROLPOINTS, STATUS_SEEK_FIRST_CONTROLPOINT, and sugConstr.
|
overridevirtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), App::GetApplication(), ParameterGrp::GetBool(), Gui::ViewProviderDocumentObject::getObject(), App::Application::GetParameterGroupByPath(), Mode, poleGeoIds, SketcherGui::DrawSketchHandler::quit(), SketcherGui::DrawSketchHandler::sketchgui, STATUS_CLOSE, and SketcherGui::tryAutoRecomputeIfNotSolve().
Referenced by registerPressedKey().
|
overridevirtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), BSplinePoles, Gui::cmdAppObjectArgs(), Base::Console(), Base::ConsoleSingleton::Error(), Gui::getMainWindow(), Gui::ViewProviderDocumentObject::getObject(), Mode, MOUSE_PRESSED, MousePressMode, poleGeoIds, prevCursorPosition, quit(), SketcherGui::DrawSketchHandler::sketchgui, SplineDegree, STATUS_CLOSE, STATUS_SEEK_FIRST_CONTROLPOINT, and sugConstr.
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References MOUSE_NOT_PRESSED, MousePressMode, and prevCursorPosition.
|
protected |
Referenced by pressButton(), and registerPressedKey().
|
protected |
Referenced by pressButton().
|
protected |
Referenced by pressButton().
|
protected |
Referenced by mouseMove(), pressButton(), quit(), and registerPressedKey().
|
protected |
Referenced by pressButton(), registerPressedKey(), and releaseButton().
|
protected |
Referenced by pressButton(), quit(), and registerPressedKey().
|
protected |
Referenced by mouseMove(), pressButton(), registerPressedKey(), and releaseButton().
|
protected |
Referenced by registerPressedKey().
|
protected |
Referenced by mouseMove(), pressButton(), and registerPressedKey().