#include <DrawSketchHandlerExtend.h>
Public Types | |
enum | SelectMode { STATUS_SEEK_First , STATUS_SEEK_Second } |
Protected Attributes | |
int | BaseGeoId |
std::vector< Base::Vector2d > | EditCurve |
bool | ExtendFromStart |
ExtendSelection * | filterGate = nullptr |
double | Increment |
SelectMode | Mode |
bool | SavedExtendFromStart |
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::DrawSketchHandlerExtend::DrawSketchHandlerExtend | ( | ) |
|
virtual |
References Gui::SelectionSingleton::rmvSelectionGate(), and Gui::Selection().
|
overridevirtual |
If in-curve, the intuitive behavior is for the line to shrink an amount from the original click-point.
If out-of-curve, the intuitive behavior is for the closest line endpoint to expand.
Implements SketcherGui::DrawSketchHandler.
References BaseGeoId, Base::Vector2d::Distance(), SketcherGui::DrawSketchHandler::drawEdit(), EditCurve, ExtendFromStart, Base::Vector2d::GetAngle(), Base::Persistence::getClassTypeId(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getGeometry(), SketcherGui::DrawSketchHandler::getPreselectCurve(), SketcherGui::ViewProviderSketch::getSketchObject(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Increment, Base::Vector2d::Length(), Mode, Base::Vector2d::ProjectToLine(), SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), SavedExtendFromStart, SketcherGui::DrawSketchHandler::seekAutoConstraint(), SketcherGui::DrawSketchHandler::sketchgui, STATUS_SEEK_Second, SugConstr, Base::Vector2d::x, Base::Vector3< _Precision >::x, Base::Vector2d::y, and Base::Vector3< _Precision >::y.
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
|
overridevirtual |
Implements SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), SketcherGui::DrawSketchHandler::applyCursor(), BaseGeoId, Gui::cmdAppObjectArgs(), Gui::Command::commitCommand(), Base::Console(), SketcherGui::DrawSketchHandler::createAutoConstraints(), Base::Vector2d::Distance(), SketcherGui::DrawSketchHandler::drawEdit(), EditCurve, Sketcher::end, Base::ConsoleSingleton::Error(), ExtendFromStart, filterGate, App::GetApplication(), ParameterGrp::GetBool(), Base::Persistence::getClassTypeId(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getGeometry(), Gui::ViewProviderDocumentObject::getObject(), App::Application::GetParameterGroupByPath(), SketcherGui::DrawSketchHandler::getPreselectCurve(), SketcherGui::ViewProviderSketch::getSketchObject(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Increment, Mode, Gui::Command::openCommand(), SketcherGui::ViewProviderSketch::purgeHandler(), draftutils.translate::QT_TRANSLATE_NOOP, SavedExtendFromStart, SketcherGui::ExtendSelection::setDisabled(), SketcherGui::DrawSketchHandler::sketchgui, Sketcher::start, STATUS_SEEK_First, STATUS_SEEK_Second, SugConstr, Gui::Command::updateActive(), Base::Vector2d::x, Base::Vector3< _Precision >::x, Base::Vector2d::y, and Base::Vector3< _Precision >::y.
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().
|
protected |
Referenced by mouseMove(), and releaseButton().