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 | |
ontop | |
switch | |
Visible | |
Detailed Description
An arc tracker.
Member Function Documentation
◆ getAngle()
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_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, and draftguitools.gui_trackers.arcTracker.trans.
Referenced by PathScripts.PathDressupDogbone.Chord.getAngleXY(), draftguitools.gui_trackers.arcTracker.setEndPoint(), and draftguitools.gui_trackers.arcTracker.setStartPoint().
◆ getAngles()
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.
◆ getDeviation()
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, and draftguitools.gui_trackers.arcTracker.normal.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
◆ getRadius()
def draftguitools.gui_trackers.arcTracker.getRadius | ( | self | ) |
Return the current radius.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, and draftguitools.gui_trackers.arcTracker.trans.
◆ recompute()
def draftguitools.gui_trackers.arcTracker.recompute | ( | self | ) |
Recompute the tracker.
References draftguitools.gui_trackers.arcTracker.autoinvert, draftguitools.gui_trackers.arcTracker.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_trackers.bsplineTracker.sep, draftguitools.gui_trackers.bezcurveTracker.sep, draftguitools.gui_trackers.arcTracker.sep, ArchBuildingPart.ViewProviderBuildingPart.sep, and draftguitools.gui_trackers.arcTracker.startangle.
Referenced by draftguitools.gui_trackers.arcTracker.setApertureAngle(), draftguitools.gui_trackers.arcTracker.setEndAngle(), and draftguitools.gui_trackers.arcTracker.setStartAngle().
◆ setApertureAngle()
def draftguitools.gui_trackers.arcTracker.setApertureAngle | ( | self, | |
ang | |||
) |
Set the end angle by giving the aperture angle.
References draftguitools.gui_trackers.arcTracker.endangle, App::DocumentObjectPy.recompute(), App::DocumentPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), App::DocumentObject.recompute(), draftguitools.gui_trackers.arcTracker.recompute(), and draftguitools.gui_trackers.arcTracker.startangle.
◆ setBy3Points()
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(), Gui::PickedPoint.normal, Gui::SoRegPoint.normal, draftguitools.gui_arcs.Arc_3Points.normal, draftguitools.gui_trackers.arcTracker.normal, draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.arcTracker.setEndPoint(), draftguitools.gui_trackers.arcTracker.setRadius(), and draftguitools.gui_trackers.arcTracker.setStartPoint().
◆ setCenter()
def draftguitools.gui_trackers.arcTracker.setCenter | ( | self, | |
cen | |||
) |
Set the center point.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, and draftguitools.gui_trackers.arcTracker.trans.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
◆ setEndAngle()
def draftguitools.gui_trackers.arcTracker.setEndAngle | ( | self, | |
ang | |||
) |
Set the end angle.
References draftguitools.gui_trackers.arcTracker.endangle, App::DocumentObjectPy.recompute(), App::DocumentPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), App::DocumentObject.recompute(), and draftguitools.gui_trackers.arcTracker.recompute().
Referenced by draftguitools.gui_trackers.arcTracker.setEndPoint().
◆ setEndPoint()
def draftguitools.gui_trackers.arcTracker.setEndPoint | ( | self, | |
pt | |||
) |
Set the end angle from a point.
References Base::VectorPy.getAngle(), Base::RotationPy.getAngle(), draftguitools.gui_trackers.arcTracker.getAngle(), Gui::PropertyEditor::PropertyPlacementItem.getAngle(), and draftguitools.gui_trackers.arcTracker.setEndAngle().
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
◆ setRadius()
def draftguitools.gui_trackers.arcTracker.setRadius | ( | self, | |
rad | |||
) |
Set the radius.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, and draftguitools.gui_trackers.arcTracker.trans.
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
◆ setStartAngle()
def draftguitools.gui_trackers.arcTracker.setStartAngle | ( | self, | |
ang | |||
) |
Set the start angle.
References App::DocumentObjectPy.recompute(), App::DocumentPy.recompute(), App::Document.recompute(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), App::DocumentObject.recompute(), draftguitools.gui_trackers.arcTracker.recompute(), and draftguitools.gui_trackers.arcTracker.startangle.
Referenced by draftguitools.gui_trackers.arcTracker.setStartPoint().
◆ setStartPoint()
def draftguitools.gui_trackers.arcTracker.setStartPoint | ( | self, | |
pt | |||
) |
Set the start angle from a point.
References Base::VectorPy.getAngle(), Base::RotationPy.getAngle(), draftguitools.gui_trackers.arcTracker.getAngle(), Gui::PropertyEditor::PropertyPlacementItem.getAngle(), and draftguitools.gui_trackers.arcTracker.setStartAngle().
Referenced by draftguitools.gui_trackers.arcTracker.setBy3Points().
Member Data Documentation
◆ autoinvert
draftguitools.gui_trackers.arcTracker.autoinvert |
◆ basevector
draftguitools.gui_trackers.arcTracker.basevector |
◆ circle
draftguitools.gui_trackers.arcTracker.circle |
Referenced by draftguitools.gui_trackers.arcTracker.recompute().
◆ endangle
draftguitools.gui_trackers.arcTracker.endangle |
◆ normal
draftguitools.gui_trackers.arcTracker.normal |
◆ sep
draftguitools.gui_trackers.arcTracker.sep |
◆ startangle
draftguitools.gui_trackers.arcTracker.startangle |
◆ trans
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.PlaneTracker.set(), draftguitools.gui_trackers.gridTracker.set(), draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.arcTracker.setRadius(), draftguitools.gui_trackers.boxTracker.setRotation(), draftguitools.gui_trackers.boxTracker.update(), draftguitools.gui_trackers.radiusTracker.update(), and draftviewproviders.view_text.ViewProviderText.updateData().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_trackers.py