◆ SEGMENT_MODE
Enumerator |
---|
SEGMENT_MODE_Arc | |
SEGMENT_MODE_Line | |
◆ SELECT_MODE
mode table
Enumerator |
---|
STATUS_SEEK_First | enum value -—.
|
STATUS_SEEK_Second | enum value -—.
|
STATUS_Do | |
STATUS_Close | |
◆ SNAP_MODE
Enumerator |
---|
SNAP_MODE_Free | |
SNAP_MODE_45Degree | |
◆ TRANSITION_MODE
Enumerator |
---|
TRANSITION_MODE_Free | |
TRANSITION_MODE_Tangent | |
TRANSITION_MODE_Perpendicular_L | |
TRANSITION_MODE_Perpendicular_R | |
◆ DrawSketchHandlerLineSet()
DrawSketchHandlerLineSet::DrawSketchHandlerLineSet |
( |
| ) |
|
◆ ~DrawSketchHandlerLineSet()
virtual DrawSketchHandlerLineSet::~DrawSketchHandlerLineSet |
( |
| ) |
|
|
virtual |
◆ activated()
◆ mouseMove()
virtual void DrawSketchHandlerLineSet::mouseMove |
( |
Base::Vector2d |
onSketchPos | ) |
|
|
virtual |
Implements SketcherGui::DrawSketchHandler.
References SketcherGui::DrawSketchHandler::applyCursor(), arcRadius, CenterPoint, dirVec, SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, endAngle, Mode, SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), SketcherGui::DrawSketchHandler::seekAutoConstraint(), SEGMENT_MODE_Arc, SEGMENT_MODE_Line, SegmentMode, SketcherGui::DrawSketchHandler::setPositionText(), SketcherGui::DrawSketchHandler::sketchgui, SNAP_MODE_45Degree, SNAP_MODE_Free, startAngle, STATUS_SEEK_First, STATUS_SEEK_Second, sugConstr1, sugConstr2, suppressTransition, TRANSITION_MODE_Free, TRANSITION_MODE_Perpendicular_L, TRANSITION_MODE_Perpendicular_R, TRANSITION_MODE_Tangent, TransitionMode, Base::Vector2d::x, Base::Vector3< _Precision >::x, Base::Vector2d::y, and Base::Vector3< _Precision >::y.
Referenced by registerPressedKey(), and releaseButton().
◆ pressButton()
Implements SketcherGui::DrawSketchHandler.
References SketcherGui::DrawSketchHandler::applyCursor(), Sketcher::SketchObject::arePointsCoincident(), Sketcher::Coincident, SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, Sketcher::end, firstCurve, firstPosId, App::GetApplication(), ParameterGrp::GetBool(), Base::Persistence::getClassTypeId(), Sketcher::SketchObject::getGeometry(), Sketcher::SketchObject::getGeoVertexIndex(), SketcherGui::DrawSketchHandler::getHighestCurveIndex(), App::Application::GetParameterGroupByPath(), SketcherGui::ViewProviderSketch::getPreselectCross(), SketcherGui::ViewProviderSketch::getPreselectPoint(), SketcherGui::ViewProviderSketch::getSketchObject(), Base::Persistence::getTypeId(), Mode, Sketcher::none, previousCurve, previousPosId, SketcherGui::ViewProviderSketch::purgeHandler(), SketcherGui::DrawSketchHandler::resetPositionText(), SEGMENT_MODE_Arc, SEGMENT_MODE_Line, SegmentMode, SketcherGui::DrawSketchHandler::sketchgui, SNAP_MODE_Free, Sketcher::start, STATUS_Close, STATUS_Do, STATUS_SEEK_First, STATUS_SEEK_Second, sugConstr1, suppressTransition, TRANSITION_MODE_Free, TRANSITION_MODE_Tangent, TransitionMode, SketcherGui::DrawSketchHandler::unsetCursor(), updateTransitionData(), and virtualsugConstr1.
◆ quit()
virtual void DrawSketchHandlerLineSet::quit |
( |
void |
| ) |
|
|
virtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References SketcherGui::DrawSketchHandler::applyCursor(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, firstCurve, firstPosId, firstsegment, App::GetApplication(), ParameterGrp::GetBool(), App::Application::GetParameterGroupByPath(), Mode, Sketcher::none, previousCurve, previousPosId, SEGMENT_MODE_Line, SegmentMode, SketcherGui::DrawSketchHandler::sketchgui, SNAP_MODE_Free, STATUS_SEEK_First, suppressTransition, TRANSITION_MODE_Free, and TransitionMode.
◆ registerPressedKey()
virtual void DrawSketchHandlerLineSet::registerPressedKey |
( |
bool |
pressed, |
|
|
int |
key |
|
) |
| |
|
virtual |
Reimplemented from SketcherGui::DrawSketchHandler.
References EditCurve, Base::Persistence::getClassTypeId(), Sketcher::SketchObject::getGeometry(), SketcherGui::ViewProviderSketch::getSketchObject(), Base::Persistence::getTypeId(), Mode, mouseMove(), previousCurve, SEGMENT_MODE_Arc, SEGMENT_MODE_Line, SegmentMode, SketcherGui::DrawSketchHandler::sketchgui, SNAP_MODE_Free, STATUS_SEEK_Second, TRANSITION_MODE_Free, TRANSITION_MODE_Perpendicular_L, TRANSITION_MODE_Perpendicular_R, TRANSITION_MODE_Tangent, and TransitionMode.
◆ releaseButton()
Implements SketcherGui::DrawSketchHandler.
References Gui::Command::abortCommand(), SketcherGui::DrawSketchHandler::applyCursor(), arcRadius, SketcherGui::ViewProviderSketch::Autoconstraints, SketcherGui::ViewProviderSketch::AvoidRedundant, CenterPoint, Gui::cmdAppObjectArgs(), Sketcher::Coincident, Gui::Command::commitCommand(), Base::Console(), SketcherGui::Construction, SketcherGui::DrawSketchHandler::createAutoConstraints(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, Sketcher::end, endAngle, Base::ConsoleSingleton::Error(), firstCurve, firstPosId, firstsegment, SketcherGui::geometryCreationMode, App::GetApplication(), ParameterGrp::GetBool(), SketcherGui::DrawSketchHandler::getHighestCurveIndex(), Gui::ViewProviderDocumentObject::getObject(), App::Application::GetParameterGroupByPath(), App::PropertyBool::getValue(), Mode, mouseMove(), Sketcher::none, Gui::Command::openCommand(), previousCurve, previousPosId, SketcherGui::ViewProviderSketch::purgeHandler(), SketcherGui::DrawSketchHandler::resetPositionText(), SEGMENT_MODE_Arc, SEGMENT_MODE_Line, SegmentMode, SketcherGui::DrawSketchHandler::sketchgui, SNAP_MODE_45Degree, SNAP_MODE_Free, Sketcher::start, startAngle, STATUS_Close, STATUS_Do, STATUS_SEEK_First, STATUS_SEEK_Second, sugConstr1, sugConstr2, suppressTransition, TRANSITION_MODE_Free, TRANSITION_MODE_Perpendicular_L, TRANSITION_MODE_Perpendicular_R, TRANSITION_MODE_Tangent, TransitionMode, SketcherGui::tryAutoRecomputeIfNotSolve(), SketcherGui::DrawSketchHandler::unsetCursor(), updateTransitionData(), virtualsugConstr1, Base::Vector2d::x, and Base::Vector2d::y.
◆ updateTransitionData()
void DrawSketchHandlerLineSet::updateTransitionData |
( |
int |
GeoId, |
|
|
Sketcher::PointPos |
PosId |
|
) |
| |
|
protected |
References dirVec, EditCurve, Part::GeomArcOfConic::getCenter(), Base::Persistence::getClassTypeId(), Part::GeomArcOfConic::getEndPoint(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getGeometry(), SketcherGui::ViewProviderSketch::getSketchObject(), Part::GeomArcOfConic::getStartPoint(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Base::Vector3< _Precision >::Normalize(), Base::Vector3< _Precision >::Set(), SketcherGui::DrawSketchHandler::sketchgui, Sketcher::start, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by pressButton(), and releaseButton().
◆ arcRadius
double DrawSketchHandlerLineSet::arcRadius |
|
protected |
◆ CenterPoint
◆ dirVec
◆ EditCurve
◆ endAngle
double DrawSketchHandlerLineSet::endAngle |
|
protected |
◆ firstCurve
int DrawSketchHandlerLineSet::firstCurve |
|
protected |
◆ firstPosId
◆ firstsegment
bool DrawSketchHandlerLineSet::firstsegment |
|
protected |
◆ Mode
◆ previousCurve
int DrawSketchHandlerLineSet::previousCurve |
|
protected |
◆ previousPosId
◆ SegmentMode
◆ SnapMode
◆ startAngle
double DrawSketchHandlerLineSet::startAngle |
|
protected |
◆ sugConstr1
◆ sugConstr2
◆ suppressTransition
bool DrawSketchHandlerLineSet::suppressTransition |
|
protected |
◆ TransitionMode
◆ virtualsugConstr1
std::vector<AutoConstraint> DrawSketchHandlerLineSet::virtualsugConstr1 |
|
protected |
The documentation for this class was generated from the following file:
- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp