SketcherGui Namespace Reference

Classes

struct  AutoConstraint
 
class  ConstraintView
 
class  DrawSketchHandler
 Handler to create new sketch geometry This class has to be reimplemented to create geometry in the sketcher while its in editing. More...
 
class  EditDatumDialog
 
class  ElementView
 
class  ExceptionWrongInput
 
class  ExternalSelection
 
class  FilletSelection
 
class  GenericConstraintSelection
 The GenericConstraintSelection class SelectionFilterGate with changeable filters. More...
 
class  Module
 
class  PropertyConstraintListItem
 
struct  SelIdPair
 
class  SketcherGeneralWidget
 
class  SketcherSettings
 The SketcherSettings class implements a preference page to change sketcher settings. More...
 
class  SketcherValidation
 
class  SketchMirrorDialog
 
class  SketchOrientationDialog
 
class  SketchRectangularArrayDialog
 
struct  SketchSelection
 
class  SoDatumLabel
 
class  SoZoomTranslation
 
class  TaskDlgEditSketch
 simulation dialog for the TaskView More...
 
class  TaskSketcherConstrains
 
class  TaskSketcherElements
 
class  TaskSketcherGeneral
 
class  TaskSketcherMessages
 
class  TaskSketcherSolverAdvanced
 
class  TaskSketcherValidation
 
class  TrimmingSelection
 
class  ViewProviderCustom
 
class  ViewProviderSketch
 The Sketch ViewProvider This class handles mainly the drawing and editing of the sketch. More...
 
class  Workbench
 

Typedefs

typedef Gui::ViewProviderPythonFeatureT< ViewProviderCustomViewProviderCustomPython
 
typedef Gui::ViewProviderPythonFeatureT< ViewProviderSketchViewProviderPython
 

Enumerations

Functions

void addSketcherWorkbenchConstraints (Gui::MenuItem &cons)
 
void addSketcherWorkbenchConstraints (Gui::ToolBarItem &cons)
 
void addSketcherWorkbenchGeometries (Gui::MenuItem &geom)
 
void addSketcherWorkbenchGeometries (Gui::ToolBarItem &geom)
 
void addSketcherWorkbenchSketchActions (Gui::MenuItem &sketch)
 
void addSketcherWorkbenchSketchActions (Gui::ToolBarItem &sketch)
 
void addSketcherWorkbenchTools (Gui::MenuItem &consaccel)
 
void addSketcherWorkbenchTools (Gui::ToolBarItem &consaccel)
 
 DEF_STD_CMD_A (CmdSketcherToggleConstruction)
 
void makeTangentToArcOfEllipseviaNewPoint (const Sketcher::SketchObject *Obj, const Part::Geometry *geom1, const Part::Geometry *geom2, int geoId1, int geoId2)
 Makes a tangency constraint using external construction line between geom1 => an arc of ellipse geom2 => any of an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate. More...
 
void makeTangentToArcOfHyperbolaviaNewPoint (const Sketcher::SketchObject *Obj, const Part::Geometry *geom1, const Part::Geometry *geom2, int geoId1, int geoId2)
 Makes a tangency constraint using external construction line between geom1 => an arc of hyperbola geom2 => any of an arc of hyperbola, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate. More...
 
void makeTangentToArcOfParabolaviaNewPoint (const Sketcher::SketchObject *Obj, const Part::Geometry *geom1, const Part::Geometry *geom2, int geoId1, int geoId2)
 Makes a simple tangency constraint using extra point + tangent via point geom1 => an arc of parabola geom2 => any of an arc of parabola, an arc of hyperbola an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate. More...
 
void makeTangentToEllipseviaNewPoint (const Sketcher::SketchObject *Obj, const Part::Geometry *geom1, const Part::Geometry *geom2, int geoId1, int geoId2)
 Makes a tangency constraint using external construction line between geom1 => an ellipse geom2 => any of an ellipse, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate. More...
 
template<typename T >
void Sketcher_addWorkbenchSketchActions (T &sketch)
 
template<typename T >
void SketcherAddWorkbenchConstraints (T &cons)
 
template<>
void SketcherAddWorkbenchConstraints< Gui::MenuItem > (Gui::MenuItem &cons)
 
template<>
void SketcherAddWorkbenchConstraints< Gui::ToolBarItem > (Gui::ToolBarItem &cons)
 
template<typename T >
void SketcherAddWorkbenchGeometries (T &geom)
 
template<typename T >
void SketcherAddWorkbenchTools (T &consaccel)
 
template<>
void SketcherAddWorkbenchTools< Gui::MenuItem > (Gui::MenuItem &consaccel)
 
template<>
void SketcherAddWorkbenchTools< Gui::ToolBarItem > (Gui::ToolBarItem &consaccel)
 
template<typename T >
void SketcherAddWorkspaceArcs (T &geom)
 
template<>
void SketcherAddWorkspaceArcs< Gui::MenuItem > (Gui::MenuItem &geom)
 
template<>
void SketcherAddWorkspaceArcs< Gui::ToolBarItem > (Gui::ToolBarItem &geom)
 
template<typename T >
void SketcherAddWorkspaceRegularPolygon (T &geom)
 
template<>
void SketcherAddWorkspaceRegularPolygon< Gui::MenuItem > (Gui::MenuItem &geom)
 
template<>
void SketcherAddWorkspaceRegularPolygon< Gui::ToolBarItem > (Gui::ToolBarItem &geom)
 
template<typename T >
void SketcherAddWorkspaceSketchExtra (T &)
 
template<>
void SketcherAddWorkspaceSketchExtra< Gui::MenuItem > (Gui::MenuItem &sketch)
 
Attacher::eMapMode SuggestAutoMapMode (Attacher::SuggestResult::eSuggestResult *pMsgId=0, QString *message=0, std::vector< Attacher::eMapMode > *allmodes=0)
 

Variables

GeometryCreationMode geometryCreationMode =Normal
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
Driving 
Reference 
Enumerator
Normal 
Construction 

The SelType enum Types of sketch elements that can be (pre)selected.

The root/origin and the axes are put up separately so that they can be specifically disallowed, for example, when in lock, horizontal, or vertical constraint modes.

Enumerator
SelUnknown 
SelVertex 
SelRoot 
SelEdge 
SelHAxis 
SelVAxis 
SelExternalEdge 

Function Documentation

void SketcherGui::addSketcherWorkbenchConstraints ( Gui::MenuItem cons)
void SketcherGui::addSketcherWorkbenchConstraints ( Gui::ToolBarItem cons)
void SketcherGui::addSketcherWorkbenchGeometries ( Gui::MenuItem geom)
void SketcherGui::addSketcherWorkbenchGeometries ( Gui::ToolBarItem geom)
void SketcherGui::addSketcherWorkbenchSketchActions ( Gui::MenuItem sketch)
void SketcherGui::addSketcherWorkbenchSketchActions ( Gui::ToolBarItem sketch)
void SketcherGui::addSketcherWorkbenchTools ( Gui::MenuItem consaccel)
void SketcherGui::addSketcherWorkbenchTools ( Gui::ToolBarItem consaccel)
SketcherGui::DEF_STD_CMD_A ( CmdSketcherToggleConstruction  )
void SketcherGui::makeTangentToArcOfEllipseviaNewPoint ( const Sketcher::SketchObject Obj,
const Part::Geometry geom1,
const Part::Geometry geom2,
int  geoId1,
int  geoId2 
)

Makes a tangency constraint using external construction line between geom1 => an arc of ellipse geom2 => any of an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

Makes a simple tangency constraint using extra point + tangent via point geom1 => an arc of ellipse geom2 => any of an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

The reason is for compatibility reasons with other code e.g. "Autoconstraints" in DrawSketchHandler.cpp

References Gui::Command::abortCommand(), Gui::Command::commitCommand(), Base::Console(), Gui::Command::Doc, Gui::Command::doCommand(), Base::ConsoleSingleton::Error(), App::GetApplication(), ParameterGrp::GetBool(), Part::GeomArcOfConic::getCenter(), Base::Persistence::getClassTypeId(), Sketcher::SketchObject::getHighestCurveIndex(), Part::GeomArcOfEllipse::getMajorAxisDir(), Part::GeomArcOfEllipse::getMajorRadius(), Part::GeomArcOfEllipse::getMinorRadius(), App::DocumentObject::getNameInDocument(), App::Application::GetParameterGroupByPath(), Base::Persistence::getTypeId(), Sketcher::start, Gui::Command::updateActive(), Base::Exception::what(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.

Referenced by SketcherGui::DrawSketchHandler::createAutoConstraints().

void SketcherGui::makeTangentToArcOfHyperbolaviaNewPoint ( const Sketcher::SketchObject Obj,
const Part::Geometry geom1,
const Part::Geometry geom2,
int  geoId1,
int  geoId2 
)

Makes a tangency constraint using external construction line between geom1 => an arc of hyperbola geom2 => any of an arc of hyperbola, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

Makes a simple tangency constraint using extra point + tangent via point geom1 => an arc of hyperbola geom2 => any of an arc of hyperbola, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

The reason is for compatibility reasons with other code e.g. "Autoconstraints" in DrawSketchHandler.cpp

References Gui::Command::abortCommand(), Gui::Command::commitCommand(), Base::Console(), Gui::Command::Doc, Gui::Command::doCommand(), Base::ConsoleSingleton::Error(), App::GetApplication(), ParameterGrp::GetBool(), Part::GeomArcOfConic::getCenter(), Base::Persistence::getClassTypeId(), Part::GeomLineSegment::getEndPoint(), Sketcher::SketchObject::getHighestCurveIndex(), Part::GeomArcOfHyperbola::getMajorAxisDir(), Part::GeomArcOfHyperbola::getMajorRadius(), Part::GeomArcOfHyperbola::getMinorRadius(), App::DocumentObject::getNameInDocument(), App::Application::GetParameterGroupByPath(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Sketcher::start, Gui::Command::updateActive(), Base::Exception::what(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.

Referenced by CmdSketcherConstrainPerpendicular::applyConstraint().

void SketcherGui::makeTangentToArcOfParabolaviaNewPoint ( const Sketcher::SketchObject Obj,
const Part::Geometry geom1,
const Part::Geometry geom2,
int  geoId1,
int  geoId2 
)
void SketcherGui::makeTangentToEllipseviaNewPoint ( const Sketcher::SketchObject Obj,
const Part::Geometry geom1,
const Part::Geometry geom2,
int  geoId1,
int  geoId2 
)

Makes a tangency constraint using external construction line between geom1 => an ellipse geom2 => any of an ellipse, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

Makes a simple tangency constraint using extra point + tangent via point geom1 => an ellipse geom2 => any of an ellipse, an arc of ellipse, a circle, or an arc (of circle) NOTE: A command must be opened before calling this function, which this function commits or aborts as appropriate.

The reason is for compatibility reasons with other code e.g. "Autoconstraints" in DrawSketchHandler.cpp

References Gui::Command::abortCommand(), Gui::Command::commitCommand(), Base::Console(), Gui::Command::Doc, Gui::Command::doCommand(), Base::ConsoleSingleton::Error(), App::GetApplication(), ParameterGrp::GetBool(), Part::GeomConic::getCenter(), Base::Persistence::getClassTypeId(), Sketcher::SketchObject::getHighestCurveIndex(), Part::GeomEllipse::getMajorAxisDir(), Part::GeomEllipse::getMajorRadius(), Part::GeomEllipse::getMinorRadius(), App::DocumentObject::getNameInDocument(), App::Application::GetParameterGroupByPath(), Base::Persistence::getTypeId(), Sketcher::start, Gui::Command::updateActive(), Base::Exception::what(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.

Referenced by CmdSketcherConstrainPerpendicular::applyConstraint(), and SketcherGui::DrawSketchHandler::createAutoConstraints().

template<typename T >
void SketcherGui::Sketcher_addWorkbenchSketchActions ( T &  sketch)
inline
template<typename T >
void SketcherGui::SketcherAddWorkbenchConstraints ( T &  cons)
inline
template<typename T >
void SketcherGui::SketcherAddWorkbenchGeometries ( T &  geom)
inline
template<typename T >
void SketcherGui::SketcherAddWorkbenchTools ( T &  consaccel)
inline
template<>
void SketcherGui::SketcherAddWorkbenchTools< Gui::MenuItem > ( Gui::MenuItem consaccel)
inline
template<>
void SketcherGui::SketcherAddWorkbenchTools< Gui::ToolBarItem > ( Gui::ToolBarItem consaccel)
inline
template<typename T >
void SketcherGui::SketcherAddWorkspaceArcs ( T &  geom)
template<>
void SketcherGui::SketcherAddWorkspaceArcs< Gui::MenuItem > ( Gui::MenuItem geom)
inline
template<typename T >
void SketcherGui::SketcherAddWorkspaceRegularPolygon ( T &  geom)
template<typename T >
void SketcherGui::SketcherAddWorkspaceSketchExtra ( T &  )
inline
Attacher::eMapMode SketcherGui::SuggestAutoMapMode ( Attacher::SuggestResult::eSuggestResult pMsgId = 0,
QString *  message = 0,
std::vector< Attacher::eMapMode > *  allmodes = 0 
)

References Gui::CommandManager::addCommand(), Sketcher::SketchObject::addGeometry(), Attacher::SuggestResult::allApplicableModes, Attacher::SuggestResult::bestFitMode, Gui::Application::commandManager(), Sketcher::SketchObject::Constraints, Gui::Control(), Gui::SelectionSingleton::countObjectsOfType(), SketcherGui::SketchOrientationDialog::DirType, SketcherGui::ExceptionWrongInput::ErrMsg, DraftVecUtils::find(), Sketcher::Constraint::First, Sketcher::Constraint::GeoUndef, App::Application::getActiveDocument(), App::GetApplication(), Gui::SelectionSingleton::getAsPropertyLinkSubList(), Base::Persistence::getClassTypeId(), App::DocumentObject::getGroup(), Gui::Document::getInEdit(), Sketcher::SketchObject::getInternalGeometry(), Gui::getMainWindow(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), App::Document::getObject(), App::Document::getObjectsOfType(), Gui::SelectionSingleton::getObjectsOfType(), App::DocumentObject::getOutList(), Base::Placement::getPosition(), App::PropertyLinkSubList::getPyReprString(), Base::Placement::getRotation(), Draft::getSelection(), Gui::SelectionSingleton::getSelectionEx(), SketcherGui::ViewProviderSketch::getSketchMode(), App::PropertyLinkSubList::getSubValues(), App::PropertyEnumeration::getValue(), App::PropertyPlacement::getValue(), App::PropertyLinkSubList::getValue(), Sketcher::PropertyConstraintList::getValues(), Sketcher::GeoEnum::HAxis, Gui::Application::Instance, Part::AttachExtension::MapMode, Gui::SelectionFilter::match(), Attacher::SuggestResult::message, Attacher::mmDeactivated, Attacher::mmDummy_NumberOfModes, Sketcher::none, App::GeoFeature::Placement, SketcherGui::SketchOrientationDialog::Pos, SketcherGui::ViewProviderSketch::purgeHandler(), SketcherGui::SketchMirrorDialog::RefGeoid, SketcherGui::SketchMirrorDialog::RefPosid, Gui::SelectionFilter::Result, Sketcher::Constraint::Second, Gui::Selection(), Attacher::AttachEngine::setUp(), App::PropertyLinkSubList::setValue(), Gui::ControlSingleton::showDialog(), Attacher::SuggestResult::srIncompatibleGeometry, Attacher::SuggestResult::srLinkBroken, Attacher::SuggestResult::srNoModesFit, Attacher::SuggestResult::srOK, Attacher::SuggestResult::srUnexpectedError, SuggestAutoMapMode(), Attacher::AttachEngine::suggestMapModes(), Part::AttachExtension::Support, Sketcher::Constraint::Third, Sketcher::GeoEnum::VAxis, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.

Referenced by SuggestAutoMapMode().

Variable Documentation