Public Types | |
enum | SelectMode { STATUS_SEEK_First, STATUS_SEEK_Second, STATUS_SEEK_Third, STATUS_End } |
mode table More... | |
Public Member Functions | |
virtual void | activated (ViewProviderSketch *sketchgui) |
DrawSketchHandlerArc () | |
virtual void | mouseMove (Base::Vector2D onSketchPos) |
virtual bool | pressButton (Base::Vector2D onSketchPos) |
virtual bool | releaseButton (Base::Vector2D onSketchPos) |
virtual | ~DrawSketchHandlerArc () |
Protected Attributes | |
float | arcAngle |
Base::Vector2D | CenterPoint |
std::vector< Base::Vector2D > | EditCurve |
float | endAngle |
SelectMode | Mode |
float | rx |
float | ry |
float | startAngle |
std::vector< AutoConstraint > | sugConstr1 |
std::vector< AutoConstraint > | sugConstr2 |
std::vector< AutoConstraint > | sugConstr3 |
Definition at line 709 of file CommandCreateGeo.cpp.
mode table
STATUS_SEEK_First |
enum value ----. |
STATUS_SEEK_Second |
enum value ----. |
STATUS_SEEK_Third |
enum value ----. |
STATUS_End |
Definition at line 716 of file CommandCreateGeo.cpp.
DrawSketchHandlerArc::DrawSketchHandlerArc | ( | ) | [inline] |
Definition at line 712 of file CommandCreateGeo.cpp.
virtual DrawSketchHandlerArc::~DrawSketchHandlerArc | ( | ) | [inline, virtual] |
Definition at line 714 of file CommandCreateGeo.cpp.
virtual void DrawSketchHandlerArc::activated | ( | ViewProviderSketch * | sketchgui | ) | [inline, virtual] |
Reimplemented from SketcherGui::DrawSketchHandler.
Definition at line 723 of file CommandCreateGeo.cpp.
References cursor_createarc, and SketcherGui::DrawSketchHandler::setCursor().
virtual void DrawSketchHandlerArc::mouseMove | ( | Base::Vector2D | onSketchPos | ) | [inline, virtual] |
Implements SketcherGui::DrawSketchHandler.
Definition at line 728 of file CommandCreateGeo.cpp.
References Py::abs(), draftlibs::fcvec::angle(), SketcherGui::DrawSketchHandler::applyCursor(), arcAngle, KDL::atan2(), CenterPoint, KDL::cos(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, SketcherExample::f, Base::Vector2D::fX, Base::Vector2D::fY, M_PI, Mode, SketcherGui::DrawSketchHandler::renderSuggestConstraintsCursor(), rx, ry, SketcherGui::DrawSketchHandler::seekAutoConstraint(), SketcherGui::DrawSketchHandler::setPositionText(), KDL::sin(), SketcherGui::DrawSketchHandler::sketchgui, startAngle, STATUS_SEEK_First, STATUS_SEEK_Second, STATUS_SEEK_Third, sugConstr1, sugConstr2, and sugConstr3.
virtual bool DrawSketchHandlerArc::pressButton | ( | Base::Vector2D | onSketchPos | ) | [inline, virtual] |
Implements SketcherGui::DrawSketchHandler.
Definition at line 776 of file CommandCreateGeo.cpp.
References Py::abs(), SketcherGui::DrawSketchHandler::applyCursor(), arcAngle, KDL::atan2(), CenterPoint, SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, endAngle, Base::Vector2D::fX, Base::Vector2D::fY, M_PI, Mode, rx, ry, SketcherGui::DrawSketchHandler::sketchgui, startAngle, STATUS_End, STATUS_SEEK_First, STATUS_SEEK_Second, and STATUS_SEEK_Third.
virtual bool DrawSketchHandlerArc::releaseButton | ( | Base::Vector2D | onSketchPos | ) | [inline, virtual] |
Implements SketcherGui::DrawSketchHandler.
Definition at line 815 of file CommandCreateGeo.cpp.
References arcAngle, CenterPoint, Gui::Command::commitCommand(), SketcherGui::DrawSketchHandler::createAutoConstraints(), Gui::Command::Doc, Gui::Command::doCommand(), SketcherGui::ViewProviderSketch::drawEdit(), EditCurve, Sketcher::end, endAngle, Base::Vector2D::fX, Base::Vector2D::fY, SketcherGui::DrawSketchHandler::getHighestCurveIndex(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), Sketcher::mid, Mode, Gui::Command::openCommand(), SketcherGui::ViewProviderSketch::purgeHandler(), SketcherGui::DrawSketchHandler::resetPositionText(), rx, ry, SketcherGui::DrawSketchHandler::sketchgui, KDL::sqrt(), Sketcher::start, startAngle, STATUS_End, sugConstr1, sugConstr2, sugConstr3, SketcherGui::DrawSketchHandler::unsetCursor(), and Gui::Command::updateActive().
float DrawSketchHandlerArc::arcAngle [protected] |
Definition at line 860 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
Base::Vector2D DrawSketchHandlerArc::CenterPoint [protected] |
Definition at line 859 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
std::vector<Base::Vector2D> DrawSketchHandlerArc::EditCurve [protected] |
Definition at line 858 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
float DrawSketchHandlerArc::endAngle [protected] |
Definition at line 860 of file CommandCreateGeo.cpp.
Referenced by pressButton(), and releaseButton().
SelectMode DrawSketchHandlerArc::Mode [protected] |
Definition at line 857 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
float DrawSketchHandlerArc::rx [protected] |
Definition at line 860 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
float DrawSketchHandlerArc::ry [protected] |
Definition at line 860 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
float DrawSketchHandlerArc::startAngle [protected] |
Definition at line 860 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), pressButton(), and releaseButton().
std::vector<AutoConstraint> DrawSketchHandlerArc::sugConstr1 [protected] |
Definition at line 861 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), and releaseButton().
std::vector<AutoConstraint> DrawSketchHandlerArc::sugConstr2 [protected] |
Definition at line 861 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), and releaseButton().
std::vector<AutoConstraint> DrawSketchHandlerArc::sugConstr3 [protected] |
Definition at line 861 of file CommandCreateGeo.cpp.
Referenced by mouseMove(), and releaseButton().