Public Member Functions | |
def | getNormal (self) |
def | getSize (self) |
def | isInside (self, point) |
def | p1 (self, point=None) |
def | p2 (self) |
def | p3 (self, point=None) |
def | p4 (self) |
def | setorigin (self, point) |
def | setPlane (self, u, v=None) |
def | update (self, point) |
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 | |
coords | |
origin | |
u | |
v | |
Public Attributes inherited from draftguitools.gui_trackers.Tracker | |
ontop | |
switch | |
Visible | |
Detailed Description
A Rectangle tracker, used by the rectangle tool.
Member Function Documentation
◆ getNormal()
def draftguitools.gui_trackers.rectangleTracker.getNormal | ( | self | ) |
Return the normal of the rectangle.
References uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< Rotation >.v, Base::vec_traits< SbColor >.v, Base::Vector2dPy.v, Base::vec_traits< App::Color >.v, Gui::ViewProviderIndex.v, uvPtStruct.v, and draftguitools.gui_trackers.rectangleTracker.v.
◆ getSize()
def draftguitools.gui_trackers.rectangleTracker.getSize | ( | self | ) |
Return (length, width) of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, DraftVecUtils.project(), uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< Rotation >.v, Base::vec_traits< SbColor >.v, Base::Vector2dPy.v, Base::vec_traits< App::Color >.v, Gui::ViewProviderIndex.v, uvPtStruct.v, and draftguitools.gui_trackers.rectangleTracker.v.
◆ isInside()
def draftguitools.gui_trackers.rectangleTracker.isInside | ( | self, | |
point | |||
) |
Return True if the given point is inside the rectangle.
References SimpleMeshFacet.p1, MeshPart::CurveProjector::FaceSplitEdge.p1, KDL::VelocityProfile_Dirac.p1, GCS::Line.p1, VISCOUS_2D::_Segment.p1(), draftguitools.gui_trackers.lineTracker.p1(), draftguitools.gui_trackers.rectangleTracker.p1(), draftviewproviders.view_dimension.ViewProviderLinearDimension.p1, MeshCore::Edge_Index.p1, draftguitools.gui_trackers.dimTracker.p1, geoff_geometry::Span.p1, WireJoiner::EdgeInfo.p1, SimpleMeshFacet.p2, MeshPart::CurveProjector::FaceSplitEdge.p2, KDL::VelocityProfile_Dirac.p2, GCS::Line.p2, VISCOUS_2D::_Segment.p2(), draftguitools.gui_trackers.lineTracker.p2(), draftguitools.gui_trackers.rectangleTracker.p2(), draftviewproviders.view_dimension.ViewProviderLinearDimension.p2, draftguitools.gui_trackers.dimTracker.p2, WireJoiner::EdgeInfo.p2, draftviewproviders.view_dimension.ViewProviderAngularDimension.p2, draftguitools.gui_trackers.rectangleTracker.p4(), draftviewproviders.view_dimension.ViewProviderLinearDimension.p4, and DraftVecUtils.project().
◆ p1()
def draftguitools.gui_trackers.rectangleTracker.p1 | ( | self, | |
point = None |
|||
) |
Set or get the base point of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, and draftguitools.gui_trackers.rectangleTracker.setorigin().
Referenced by draftguitools.gui_trackers.rectangleTracker.isInside().
◆ p2()
def draftguitools.gui_trackers.rectangleTracker.p2 | ( | self | ) |
Get the second point (on u axis) of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, and ArchPanel.ViewProviderPanelSheet.coords.
Referenced by draftguitools.gui_trackers.rectangleTracker.isInside().
◆ p3()
def draftguitools.gui_trackers.rectangleTracker.p3 | ( | self, | |
point = None |
|||
) |
Set or get the opposite (diagonal) point of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, Gui::ViewProviderDocumentObjectPy.update(), Gui::ViewProviderDocumentObject.update(), SMESHDS_GroupOnFilter.update(), Gui::DocumentPy.update(), ArchNesting.Nester.update(), AddonManager.CommandAddonManager.update(), draftguitools.gui_trackers.rectangleTracker.update(), ArchPanel.CommandPanel.update(), ArchWindow._CommandWindow.update(), App::LinkBaseExtension.update(), Gui::ViewProvider.update(), ArchWall._CommandWall.update(), Gui::LinkInfo.update(), ArchStructure._CommandStructure.update(), ArchAxis._AxisTaskPanel.update(), ArchRoof._RoofTaskPanel.update(), ArchAxis.AxisSystemTaskPanel.update(), draftguitools.gui_edit.Edit.update(), ArchCommands.SurveyTaskPanel.update(), ArchSectionPlane.SectionPlaneTaskPanel.update(), ArchWindow._ArchWindowTaskPanel.update(), ArchAxis.ArchGridTaskPanel.update(), ArchComponent.ComponentTaskPanel.update(), and DraftGui.FacebinderTaskPanel.update().
◆ p4()
def draftguitools.gui_trackers.rectangleTracker.p4 | ( | self | ) |
Get the fourth point (on v axis) of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, and ArchPanel.ViewProviderPanelSheet.coords.
Referenced by draftguitools.gui_trackers.rectangleTracker.isInside().
◆ setorigin()
def draftguitools.gui_trackers.rectangleTracker.setorigin | ( | self, | |
point | |||
) |
Set the base point of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, draftguitools.gui_trackers.rectangleTracker.origin, and ArchComponent.ArchSelectionObserver.origin.
Referenced by draftguitools.gui_trackers.rectangleTracker.p1().
◆ setPlane()
def draftguitools.gui_trackers.rectangleTracker.setPlane | ( | self, | |
u, | |||
v = None |
|||
) |
Set given (u,v) vectors as working plane. You can give only `u` and `v` will be deduced automatically given the current working plane.
References uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< Rotation >.v, Base::vec_traits< SbColor >.v, Base::Vector2dPy.v, Base::vec_traits< App::Color >.v, Gui::ViewProviderIndex.v, uvPtStruct.v, and draftguitools.gui_trackers.rectangleTracker.v.
◆ update()
def draftguitools.gui_trackers.rectangleTracker.update | ( | self, | |
point | |||
) |
Set the opposite (diagonal) point of the rectangle.
References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, draftguitools.gui_trackers.rectangleTracker.origin, ArchComponent.ArchSelectionObserver.origin, DraftVecUtils.project(), uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< Rotation >.v, Base::vec_traits< SbColor >.v, Base::Vector2dPy.v, Base::vec_traits< App::Color >.v, Gui::ViewProviderIndex.v, uvPtStruct.v, and draftguitools.gui_trackers.rectangleTracker.v.
Referenced by femtaskpanels.task_result_mechanical._TaskPanel.calculate(), Spreadsheet_legacy.SpreadsheetView.changeCell(), draftguitools.gui_trackers.boxTracker.height(), ArchAxis.CommandArchGrid.IsActive(), draftguitools.gui_trackers.rectangleTracker.p3(), Plot.Plot.plot(), Spreadsheet_legacy.SpreadsheetView.recompute(), and draftguitools.gui_trackers.gridTracker.reset().
Member Data Documentation
◆ coords
draftguitools.gui_trackers.rectangleTracker.coords |
Referenced by ArchSite.Compass.buildCoordinates(), draftguitools.gui_trackers.dimTracker.calc(), draftguitools.gui_trackers.editTracker.get(), draftguitools.gui_trackers.rectangleTracker.getSize(), draftviewproviders.view_wire.ViewProviderWire.onChanged(), draftguitools.gui_trackers.rectangleTracker.p1(), draftguitools.gui_trackers.rectangleTracker.p2(), draftguitools.gui_trackers.rectangleTracker.p3(), draftguitools.gui_trackers.rectangleTracker.p4(), draftguitools.gui_trackers.editTracker.set(), draftguitools.gui_trackers.rectangleTracker.setorigin(), draftguitools.gui_trackers.rectangleTracker.update(), draftguitools.gui_trackers.wireTracker.update(), draftviewproviders.view_wire.ViewProviderWire.updateData(), FeaturePython.ViewProviderCircleSet.updateData(), and draftguitools.gui_trackers.wireTracker.updateFromPointlist().
◆ origin
draftguitools.gui_trackers.rectangleTracker.origin |
◆ u
draftguitools.gui_trackers.rectangleTracker.u |
Referenced by WorkingPlane.Plane.alignToEdges(), WorkingPlane.Plane.alignToFace(), WorkingPlane.Plane.alignToPointAndAxis(), WorkingPlane.Plane.alignToPointAndAxis_SVG(), WorkingPlane.Plane.copy(), WorkingPlane.Plane.getClosestAxis(), WorkingPlane.Plane.getDeviation(), WorkingPlane.Plane.getGlobalCoords(), WorkingPlane.Plane.getGlobalRot(), WorkingPlane.Plane.getLocalCoords(), WorkingPlane.Plane.getLocalRot(), draftguitools.gui_trackers.rectangleTracker.getNormal(), WorkingPlane.Plane.getPlacement(), WorkingPlane.Plane.getRotation(), draftguitools.gui_trackers.rectangleTracker.getSize(), WorkingPlane.Plane.inverse(), WorkingPlane.Plane.isGlobal(), WorkingPlane.Plane.isOrtho(), WorkingPlane.Plane.restore(), WorkingPlane.Plane.save(), WorkingPlane.Plane.setFromPlacement(), draftguitools.gui_trackers.rectangleTracker.setPlane(), and draftguitools.gui_trackers.rectangleTracker.update().
◆ v
draftguitools.gui_trackers.rectangleTracker.v |
Referenced by WorkingPlane.Plane.alignToEdges(), WorkingPlane.Plane.alignToFace(), WorkingPlane.Plane.alignToPointAndAxis(), WorkingPlane.Plane.alignToPointAndAxis_SVG(), WorkingPlane.Plane.copy(), WorkingPlane.Plane.getClosestAxis(), WorkingPlane.Plane.getGlobalCoords(), WorkingPlane.Plane.getGlobalRot(), WorkingPlane.Plane.getLocalCoords(), WorkingPlane.Plane.getLocalRot(), draftguitools.gui_trackers.rectangleTracker.getNormal(), WorkingPlane.Plane.getPlacement(), WorkingPlane.Plane.getRotation(), draftguitools.gui_trackers.rectangleTracker.getSize(), WorkingPlane.Plane.isGlobal(), WorkingPlane.Plane.isOrtho(), WorkingPlane.Plane.restore(), WorkingPlane.Plane.save(), WorkingPlane.Plane.setFromPlacement(), draftguitools.gui_trackers.rectangleTracker.setPlane(), and draftguitools.gui_trackers.rectangleTracker.update().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_trackers.py