Public Member Functions | |
virtual const char * | className () const |
The C++ class name is needed as context for the translation framework. | |
CmdSketcherConstrainDistance () | |
virtual | ~CmdSketcherConstrainDistance () |
Protected Member Functions | |
virtual void | activated (int iMsg) |
Methods which gets called when activated, needs to be reimplemented! | |
virtual bool | isActive (void) |
Overite this method if your Cmd is not always active. |
Definition at line 488 of file CommandConstraints.cpp.
CmdSketcherConstrainDistance::CmdSketcherConstrainDistance | ( | ) |
Definition at line 490 of file CommandConstraints.cpp.
References Gui::Command::eType, Gui::Command::ForEdit, Gui::CommandBase::sAccel, Gui::Command::sAppModule, Gui::Command::sGroup, Gui::CommandBase::sMenuText, Gui::CommandBase::sPixmap, Gui::CommandBase::sStatusTip, Gui::CommandBase::sToolTipText, and Gui::CommandBase::sWhatsThis.
virtual CmdSketcherConstrainDistance::~CmdSketcherConstrainDistance | ( | ) | [inline, virtual] |
Definition at line 488 of file CommandConstraints.cpp.
void CmdSketcherConstrainDistance::activated | ( | int | iMsg | ) | [protected, virtual] |
Methods which gets called when activated, needs to be reimplemented!
Implements Gui::Command.
Definition at line 504 of file CommandConstraints.cpp.
References Py::abs(), Gui::SelectionSingleton::clearSelection(), Gui::Command::commitCommand(), Gui::Command::Doc, Gui::Command::doCommand(), Sketcher::SketchObject::Geometry, Gui::Command::getActiveGuiDocument(), Part::GeomLineSegment::getClassTypeId(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getGeoVertexIndex(), Gui::getMainWindow(), Sketcher::SketchObject::getPoint(), Gui::Command::getSelection(), Gui::SelectionSingleton::getSelectionEx(), Part::GeomLineSegment::getStartPoint(), Part::Geometry::getTypeId(), Part::PropertyGeometryList::getValues(), Base::Vector3< _Precision >::Length(), Base::Length, Gui::Command::openCommand(), SketcherGui::SketchSelection::setUp(), boost::numeric::bindings::atlas::swap(), updateDatumDistance(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
virtual const char* CmdSketcherConstrainDistance::className | ( | ) | const [inline, virtual] |
The C++ class name is needed as context for the translation framework.
Implements Gui::CommandBase.
Definition at line 488 of file CommandConstraints.cpp.
bool CmdSketcherConstrainDistance::isActive | ( | void | ) | [protected, virtual] |
Overite this method if your Cmd is not always active.
Reimplemented from Gui::Command.
Definition at line 636 of file CommandConstraints.cpp.
References Gui::Command::getActiveGuiDocument(), and isCreateConstraintActive().