Public Member Functions | |
def | getAngle (self, pt) |
def | getAngles (self) |
def | getDeviation (self) |
def | getRadius (self) |
def | recompute (self) |
def | setApertureAngle (self, ang) |
def | setBy3Points (self, p1, p2, p3) |
def | setCenter (self, cen) |
def | setEndAngle (self, ang) |
def | setEndPoint (self, pt) |
def | setRadius (self, rad) |
def | setStartAngle (self, ang) |
def | setStartPoint (self, pt) |
Public Member Functions inherited from draftguitools.gui_trackers.Tracker | |
def | finalize (self) |
def | lowerTracker (self) |
def | off (self) |
def | on (self) |
def | raiseTracker (self) |
Public Attributes | |
autoinvert | |
basevector | |
circle | |
endangle | |
normal | |
sep | |
startangle | |
trans | |
Public Attributes inherited from draftguitools.gui_trackers.Tracker | |
color | |
ontop | |
switch | |
Visible | |
An arc tracker.
def draftguitools.gui_trackers.arcTracker.getAngle | ( | self, | |
pt | |||
) |
Return the angle of a given vector in radians.
References DraftVecUtils.angle(), draftguitools.gui_trackers.arcTracker.basevector, Gui::PickedPoint.normal, Gui::SoRegPoint.normal, draftguitools.gui_arcs.Arc_3Points.normal, draftguitools.gui_trackers.arcTracker.normal, draftguitools.gui_trimex.Trimex.normal, MeshCore::MeshDistancePlanarSegment.normal, MeshCore::PlaneSurfaceFit.normal, MeshCore::MeshNearestIndexToPlane< T >.normal, MeshCore::MeshPlaneVisitor.normal, MeshPartGui::CurveOnMeshHandler::Private::PickedPoint.normal, Part::GeomSurface.normal(), Part::Geom2dCurve.normal(), PartDesign::Hole::UTSClearanceDefinition.normal, geoff_geometry::Plane.normal, draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by PathScripts.PathDressupDogbone.Chord.getAngleXY(), draftguitools.gui_trackers.arcTracker.setEndPoint(), and draftguitools.gui_trackers.arcTracker.setStartPoint().
def draftguitools.gui_trackers.arcTracker.getAngles | ( | self | ) |
Return the start and end angles in degrees.
References draftguitools.gui_trackers.arcTracker.endangle, and draftguitools.gui_trackers.arcTracker.startangle.
def draftguitools.gui_trackers.arcTracker.getDeviation | ( | self | ) |
Return a deviation vector that represents the base of the circle.
References Gui::PickedPoint.normal, Gui::SoRegPoint.normal, draftguitools.gui_arcs.Arc_3Points.normal, draftguitools.gui_trackers.arcTracker.normal, draftguitools.gui_trimex.Trimex.normal, MeshCore::MeshDistancePlanarSegment.normal, MeshCore::PlaneSurfaceFit.normal, MeshCore::MeshNearestIndexToPlane< T >.normal, MeshCore::MeshPlaneVisitor.normal, MeshPartGui::CurveOnMeshHandler::Private::PickedPoint.normal, Part::GeomSurface.normal(), Part::Geom2dCurve.normal(), PartDesign::Hole::UTSClearanceDefinition.normal, and geoff_geometry::Plane.normal.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
def draftguitools.gui_trackers.arcTracker.getRadius | ( | self | ) |
Return the current radius.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
def draftguitools.gui_trackers.arcTracker.recompute | ( | self | ) |
Recompute the tracker.
References draftguitools.gui_trackers.arcTracker.autoinvert, draftguitools.gui_trackers.arcTracker.circle, draftviewproviders.view_dimension.ViewProviderAngularDimension.circle, draftguitools.gui_trackers.arcTracker.endangle, Gui::PickedPoint.normal, Gui::SoRegPoint.normal, draftguitools.gui_arcs.Arc_3Points.normal, draftguitools.gui_trackers.arcTracker.normal, draftguitools.gui_trimex.Trimex.normal, MeshCore::MeshDistancePlanarSegment.normal, MeshCore::PlaneSurfaceFit.normal, MeshCore::MeshNearestIndexToPlane< T >.normal, MeshCore::MeshPlaneVisitor.normal, MeshPartGui::CurveOnMeshHandler::Private::PickedPoint.normal, Part::GeomSurface.normal(), Part::Geom2dCurve.normal(), PartDesign::Hole::UTSClearanceDefinition.normal, geoff_geometry::Plane.normal, ArchBuildingPart.ViewProviderBuildingPart.sep, draftguitools.gui_trackers.bsplineTracker.sep, draftguitools.gui_trackers.bezcurveTracker.sep, draftguitools.gui_trackers.arcTracker.sep, PathScripts.PathDressupDogbone.Marker.sep, PathScripts.PathDressupTagGui.HoldingTagMarker.sep, PathScripts.PathJobGui.ViewProvider.sep, and draftguitools.gui_trackers.arcTracker.startangle.
Referenced by draftguitools.gui_trackers.arcTracker.setApertureAngle(), draftguitools.gui_trackers.arcTracker.setEndAngle(), draftguitools.gui_trackers.arcTracker.setStartAngle(), draftguitools.gui_trackers.bsplineTracker.update(), and draftguitools.gui_trackers.bezcurveTracker.update().
def draftguitools.gui_trackers.arcTracker.setApertureAngle | ( | self, | |
ang | |||
) |
Set the end angle by giving the aperture angle.
References draftguitools.gui_trackers.arcTracker.endangle, Gui::Ui_TaskElementColors.recompute, FemGui::TaskPostBox.recompute(), FemGui::TaskDlgPost.recompute(), Sandbox::DocumentProtector.recompute(), Part::Feature.recompute(), Sandbox::DocumentProtectorPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), draftguitools.gui_trackers.arcTracker.recompute(), Spreadsheet_legacy.SpreadsheetView.recompute(), Spreadsheet_legacy.Spreadsheet.recompute(), App::DocumentObject.recompute(), Drawing::FeatureView.recompute(), and draftguitools.gui_trackers.arcTracker.startangle.
def draftguitools.gui_trackers.arcTracker.setBy3Points | ( | self, | |
p1, | |||
p2, | |||
p3 | |||
) |
Set the arc by three points.
References draftguitools.gui_trackers.arcTracker.autoinvert, draftguitools.gui_trackers.arcTracker.basevector, draftguitools.gui_trackers.arcTracker.getDeviation(), WorkingPlane.Plane.getDeviation(), Gui::PickedPoint.normal, Gui::SoRegPoint.normal, draftguitools.gui_arcs.Arc_3Points.normal, draftguitools.gui_trackers.arcTracker.normal, draftguitools.gui_trimex.Trimex.normal, MeshCore::MeshDistancePlanarSegment.normal, MeshCore::PlaneSurfaceFit.normal, MeshCore::MeshNearestIndexToPlane< T >.normal, MeshCore::MeshPlaneVisitor.normal, MeshPartGui::CurveOnMeshHandler::Private::PickedPoint.normal, Part::GeomSurface.normal(), Part::Geom2dCurve.normal(), PartDesign::Hole::UTSClearanceDefinition.normal, geoff_geometry::Plane.normal, Path::Command.setCenter(), Path::Toolpath.setCenter(), Part::GeomConic.setCenter(), Part::GeomArcOfConic.setCenter(), draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.arcTracker.setEndPoint(), TechDrawGui::QGIGhostHighlight.setRadius(), TechDrawGui::QGIMatting.setRadius(), Part::GeomCircle.setRadius(), Part::GeomArcOfCircle.setRadius(), Part::Geom2dCircle.setRadius(), Part::Geom2dArcOfCircle.setRadius(), TechDrawGui::QGIVertex.setRadius(), TechDrawGui::QGMarker.setRadius(), draftguitools.gui_trackers.arcTracker.setRadius(), and draftguitools.gui_trackers.arcTracker.setStartPoint().
def draftguitools.gui_trackers.arcTracker.setCenter | ( | self, | |
cen | |||
) |
Set the center point.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
def draftguitools.gui_trackers.arcTracker.setEndAngle | ( | self, | |
ang | |||
) |
Set the end angle.
References draftguitools.gui_trackers.arcTracker.endangle, Gui::Ui_TaskElementColors.recompute, FemGui::TaskPostBox.recompute(), FemGui::TaskDlgPost.recompute(), Sandbox::DocumentProtector.recompute(), Part::Feature.recompute(), Sandbox::DocumentProtectorPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), draftguitools.gui_trackers.arcTracker.recompute(), Spreadsheet_legacy.SpreadsheetView.recompute(), Spreadsheet_legacy.Spreadsheet.recompute(), App::DocumentObject.recompute(), and Drawing::FeatureView.recompute().
Referenced by draftguitools.gui_trackers.arcTracker.setEndPoint().
def draftguitools.gui_trackers.arcTracker.setEndPoint | ( | self, | |
pt | |||
) |
Set the end angle from a point.
References Gui::PropertyEditor::PropertyRotationItem.getAngle(), Gui::PropertyEditor::PropertyPlacementItem.getAngle(), MeshGui::GmshWidget.getAngle(), PartGui::DlgRevolution.getAngle(), Gui::PropertyEditor::RotationHelper.getAngle(), Base::Vector2dPy.getAngle(), draftguitools.gui_trackers.arcTracker.getAngle(), PathScripts.PathDressupDogbone.Chord.getAngle(), TechDraw::PATLineSpec.getAngle(), TechDraw::LineSet.getAngle(), PartDesignGui::TaskChamferParameters.getAngle(), PartDesignGui::TaskDraftParameters.getAngle(), PartDesignGui::TaskPolarPatternParameters.getAngle(), PartDesignGui::TaskRevolutionParameters.getAngle(), and draftguitools.gui_trackers.arcTracker.setEndAngle().
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
def draftguitools.gui_trackers.arcTracker.setRadius | ( | self, | |
rad | |||
) |
Set the radius.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
def draftguitools.gui_trackers.arcTracker.setStartAngle | ( | self, | |
ang | |||
) |
Set the start angle.
References Gui::Ui_TaskElementColors.recompute, FemGui::TaskPostBox.recompute(), FemGui::TaskDlgPost.recompute(), Sandbox::DocumentProtector.recompute(), Part::Feature.recompute(), Sandbox::DocumentProtectorPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), draftguitools.gui_trackers.arcTracker.recompute(), Spreadsheet_legacy.SpreadsheetView.recompute(), Spreadsheet_legacy.Spreadsheet.recompute(), App::DocumentObject.recompute(), Drawing::FeatureView.recompute(), and draftguitools.gui_trackers.arcTracker.startangle.
Referenced by draftguitools.gui_trackers.arcTracker.setStartPoint().
def draftguitools.gui_trackers.arcTracker.setStartPoint | ( | self, | |
pt | |||
) |
Set the start angle from a point.
References Gui::PropertyEditor::PropertyRotationItem.getAngle(), Gui::PropertyEditor::PropertyPlacementItem.getAngle(), MeshGui::GmshWidget.getAngle(), PartGui::DlgRevolution.getAngle(), Gui::PropertyEditor::RotationHelper.getAngle(), Base::Vector2dPy.getAngle(), draftguitools.gui_trackers.arcTracker.getAngle(), PathScripts.PathDressupDogbone.Chord.getAngle(), TechDraw::PATLineSpec.getAngle(), TechDraw::LineSet.getAngle(), PartDesignGui::TaskChamferParameters.getAngle(), PartDesignGui::TaskDraftParameters.getAngle(), PartDesignGui::TaskPolarPatternParameters.getAngle(), PartDesignGui::TaskRevolutionParameters.getAngle(), and draftguitools.gui_trackers.arcTracker.setStartAngle().
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
draftguitools.gui_trackers.arcTracker.autoinvert |
draftguitools.gui_trackers.arcTracker.basevector |
draftguitools.gui_trackers.arcTracker.circle |
Referenced by draftguitools.gui_trackers.arcTracker.recompute().
draftguitools.gui_trackers.arcTracker.endangle |
draftguitools.gui_trackers.arcTracker.normal |
draftguitools.gui_trackers.arcTracker.sep |
draftguitools.gui_trackers.arcTracker.startangle |
draftguitools.gui_trackers.arcTracker.trans |
Referenced by draftguitools.gui_trackers.ghostTracker.center(), draftguitools.gui_trackers.arcTracker.getAngle(), draftguitools.gui_trackers.ghostTracker.getMatrix(), draftguitools.gui_trackers.arcTracker.getRadius(), draftguitools.gui_trackers.ghostTracker.move(), draftguitools.gui_trackers.boxTracker.pos(), draftguitools.gui_trackers.ghostTracker.rotate(), draftguitools.gui_trackers.ghostTracker.scale(), draftguitools.gui_trackers.gridTracker.set(), draftguitools.gui_trackers.PlaneTracker.set(), draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.arcTracker.setRadius(), draftguitools.gui_trackers.boxTracker.setRotation(), draftguitools.gui_trackers.radiusTracker.update(), draftguitools.gui_trackers.boxTracker.update(), and draftviewproviders.view_text.ViewProviderText.updateData().