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 | |
![]() | |
QCursor actCursor | |
QCursor oldCursor | |
ViewProviderSketch * sketchgui | |
Additional Inherited Members | |
![]() | |
void applyCursor (QCursor &newCursor) | |
void applyCursor (void) | |
void setCrosshairColor () | |
void setCursor (const QPixmap &p, int x, int y) | |
void unsetCursor (void) | |
Member Enumeration Documentation
◆ SelectMode
Constructor & Destructor Documentation
◆ DrawSketchHandlerExtend()
DrawSketchHandlerExtend::DrawSketchHandlerExtend | ( | ) |
◆ ~DrawSketchHandlerExtend()
|
virtual |
References Gui::SelectionSingleton::rmvSelectionGate(), and Gui::Selection().
Member Function Documentation
◆ activated()
|
virtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References Gui::SelectionSingleton::addSelectionGate(), Gui::SelectionSingleton::clearSelection(), filterGate, Gui::ViewProviderDocumentObject::getObject(), Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), SketcherGui::DrawSketchHandler::setCrosshairColor(), SketcherGui::DrawSketchHandler::setCursor(), and SketcherGui::DrawSketchHandler::sketchgui.
◆ mouseMove()
|
virtual |
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::ViewProviderSketch::drawEdit(), EditCurve, ExtendFromStart, Base::Vector2d::GetAngle(), Base::Persistence::getClassTypeId(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getGeometry(), SketcherGui::ViewProviderSketch::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.
◆ pressButton()
|
virtual |
Implements SketcherGui::DrawSketchHandler.
◆ releaseButton()
|
virtual |
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::ViewProviderSketch::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::ViewProviderSketch::getPreselectCurve(), SketcherGui::ViewProviderSketch::getSketchObject(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Increment, Mode, Gui::Command::openCommand(), SketcherGui::ViewProviderSketch::purgeHandler(), 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.
Member Data Documentation
◆ BaseGeoId
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ EditCurve
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ ExtendFromStart
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ filterGate
|
protected |
Referenced by activated(), and releaseButton().
◆ Increment
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ Mode
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ SavedExtendFromStart
|
protected |
Referenced by mouseMove(), and releaseButton().
◆ SugConstr
|
protected |
Referenced by mouseMove(), and releaseButton().
The documentation for this class was generated from the following file:
- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp