draftguitools.gui_trackers.rectangleTracker Class Reference

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
 color
 
 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, WorkingPlane.Plane.u, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_3d.u(), ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_2d.u(), automotive_design.cartesian_transformation_operator_3d.u(), automotive_design.cartesian_transformation_operator_2d.u(), config_control_design.cartesian_transformation_operator_3d.u(), ifc2x3.ifccartesiantransformationoperator3d.u(), ifc2x3.ifccartesiantransformationoperator2d.u(), ifc4.ifccartesiantransformationoperator3d.u(), ifc4.ifccartesiantransformationoperator2d.u(), KDL::ChainIdSolver_Vereshchagin::segment_info.u, GCS::ConstraintCurveValue.u(), uvPtStruct.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< Rotation >.v, Base::Vector2dPy.v, Gui::ViewProviderIndex.v, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< SbColor >.v, Base::vec_traits< App::Color >.v, draftguitools.gui_trackers.rectangleTracker.v, WorkingPlane.Plane.v, Simplify::Triangle.v, Base::vec_traits< Wm4::Vector3d >.v, Base::vec_traits< Wm4::Vector3f >.v, Base::vec_traits< gp_Pnt >.v, Base::vec_traits< gp_Vec >.v, Base::vec_traits< gp_Dir >.v, Base::vec_traits< gp_XYZ >.v, nlohmann::detail::output_vector_adapter< CharType >.v, Line.v, geoff_geometry::CLine.v, geoff_geometry::Line.v, KDL::ChainIdSolver_RNE.v, KDL::ChainIdSolver_Vereshchagin::segment_info.v, KDL::VectorAcc.v, KDL::VectorVel.v, KDL::VelocityProfile_Rectangular.v, Sketcher::ConstraintIds.v, Sketcher::SketchAnalysis::VertexIds.v, and TechDraw::splitPoint.v.

◆ getSize()

def draftguitools.gui_trackers.rectangleTracker.getSize (   self)
Return (length, width) of the rectangle.

References Gui::SoFCColorGradient.coords, Gui::SoFCColorLegend.coords, ArchEquipment._ViewProviderEquipment.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, ArchSite._ViewProviderSite.coords, ArchSpace._ViewProviderSpace.coords, ArchStructure._ViewProviderStructure.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, draftguitools.gui_trackers.dimTracker.coords, draftguitools.gui_trackers.ghostTracker.coords, draftguitools.gui_trackers.editTracker.coords, draftguitools.gui_trackers.wireTracker.coords, draftviewproviders.view_dimension.ViewProviderLinearDimension.coords, draftviewproviders.view_dimension.ViewProviderAngularDimension.coords, draftviewproviders.view_wire.ViewProviderWire.coords, MeshPartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderPartExt.coords, ObjectObserver.coords, FeaturePython.ViewProviderCircleSet.coords, DraftVecUtils.project(), uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, WorkingPlane.Plane.u, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_3d.u(), ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_2d.u(), automotive_design.cartesian_transformation_operator_3d.u(), automotive_design.cartesian_transformation_operator_2d.u(), config_control_design.cartesian_transformation_operator_3d.u(), ifc2x3.ifccartesiantransformationoperator3d.u(), ifc2x3.ifccartesiantransformationoperator2d.u(), ifc4.ifccartesiantransformationoperator3d.u(), ifc4.ifccartesiantransformationoperator2d.u(), KDL::ChainIdSolver_Vereshchagin::segment_info.u, GCS::ConstraintCurveValue.u(), uvPtStruct.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< Rotation >.v, Base::Vector2dPy.v, Gui::ViewProviderIndex.v, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< SbColor >.v, Base::vec_traits< App::Color >.v, draftguitools.gui_trackers.rectangleTracker.v, WorkingPlane.Plane.v, Simplify::Triangle.v, Base::vec_traits< Wm4::Vector3d >.v, Base::vec_traits< Wm4::Vector3f >.v, Base::vec_traits< gp_Pnt >.v, Base::vec_traits< gp_Vec >.v, Base::vec_traits< gp_Dir >.v, Base::vec_traits< gp_XYZ >.v, nlohmann::detail::output_vector_adapter< CharType >.v, Line.v, geoff_geometry::CLine.v, geoff_geometry::Line.v, KDL::ChainIdSolver_RNE.v, KDL::ChainIdSolver_Vereshchagin::segment_info.v, KDL::VectorAcc.v, KDL::VectorVel.v, KDL::VelocityProfile_Rectangular.v, Sketcher::ConstraintIds.v, Sketcher::SketchAnalysis::VertexIds.v, and TechDraw::splitPoint.v.

◆ isInside()

◆ p1()

◆ p2()

◆ p3()

def draftguitools.gui_trackers.rectangleTracker.p3 (   self,
  point = None 
)
Set or get the opposite (diagonal) point of the rectangle.

References Gui::SoFCColorGradient.coords, Gui::SoFCColorLegend.coords, ArchEquipment._ViewProviderEquipment.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, ArchSite._ViewProviderSite.coords, ArchSpace._ViewProviderSpace.coords, ArchStructure._ViewProviderStructure.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, draftguitools.gui_trackers.dimTracker.coords, draftguitools.gui_trackers.ghostTracker.coords, draftguitools.gui_trackers.editTracker.coords, draftguitools.gui_trackers.wireTracker.coords, draftviewproviders.view_dimension.ViewProviderLinearDimension.coords, draftviewproviders.view_dimension.ViewProviderAngularDimension.coords, draftviewproviders.view_wire.ViewProviderWire.coords, MeshPartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderPartExt.coords, ObjectObserver.coords, FeaturePython.ViewProviderCircleSet.coords, Gui::LinkInfo.update(), package_details.PackageDetails.update, MeshGui::MeshRenderer::Private.update(), MeshGui::MeshRenderer.update(), TechDrawGui::TaskDlgActiveView.update(), TechDrawGui::TaskDlgBalloon.update(), TechDrawGui::TaskDlgCenterLine.update(), TechDrawGui::TaskDlgCosmeticLine.update(), TechDrawGui::TaskDlgCosVertex.update(), TechDrawGui::TaskDlgCustomizeFormat.update(), TechDrawGui::TaskDlgDetail.update(), TechDrawGui::TaskDlgDimension.update(), TechDrawGui::TaskDlgGeomHatch.update(), TechDrawGui::TaskDlgHatch.update(), TechDrawGui::TaskDlgLeaderLine.update(), TechDrawGui::TaskDlgLinkDim.update(), TechDrawGui::TaskDlgProjection.update(), TechDrawGui::TaskDlgProjGroup.update(), TechDrawGui::TaskDlgRichAnno.update(), TechDrawGui::TaskDlgSectionView.update(), TechDrawGui::TaskDlgSelectLineAttributes.update(), TechDrawGui::TaskDlgWeldingSymbol.update(), SMESHDS_GroupOnFilter.update(), App::LinkBaseExtension.update(), Gui::ViewProvider.update(), Gui::ViewProviderDocumentObject.update(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >.update(), ArchAxis._AxisTaskPanel.update(), ArchAxisSystem.AxisSystemTaskPanel.update(), ArchComponent.ComponentTaskPanel.update(), ArchGrid.ArchGridTaskPanel.update(), ArchNesting.Nester.update(), ArchRoof._RoofTaskPanel.update(), ArchSectionPlane.SectionPlaneTaskPanel.update(), ArchWindow._ArchWindowTaskPanel.update(), DraftGui.FacebinderTaskPanel.update(), draftguitools.gui_trackers.gridTracker.update(), femtaskpanels.task_mesh_gmsh._TaskPanel.update(), femtaskpanels.task_result_mechanical._TaskPanel.update(), femtaskpanels.task_solver_ccxtools._TaskPanel.update(), Mod.PartDesign.InvoluteGearFeature._InvoluteGearTaskPanel.update(), Mod.PartDesign.SprocketFeature.SprocketTaskPanel.update(), Plot.Plot.update(), Spreadsheet_legacy.SpreadsheetView.update(), DocumentObject.ViewProvider.update(), AddonManager.CommandAddonManager.update(), draftguitools.gui_trackers.radiusTracker.update(), ArchCommands.SurveyTaskPanel.update(), Mod.PartDesign.WizardShaft.ShaftDiagram.Diagram.update(), addonmanager_workers.GitProgressMonitor.update(), draftguitools.gui_trackers.boxTracker.update(), draftguitools.gui_edit.Edit.update(), draftguitools.gui_trackers.rectangleTracker.update(), ArchPanel.CommandPanel.update(), ArchStructure._CommandStructure.update(), ArchWall._CommandWall.update(), ArchWindow._CommandWindow.update(), draftguitools.gui_trackers.bsplineTracker.update(), draftguitools.gui_trackers.bezcurveTracker.update(), draftguitools.gui_trackers.dimTracker.update(), draftguitools.gui_trackers.wireTracker.update(), and PartDesign::SubShapeBinder.update().

Referenced by draftguitools.gui_trackers.dimTracker.calc(), draftviewproviders.view_dimension.ViewProviderLinearDimension.draw_dim_arrows(), and draftguitools.gui_trackers.dimTracker.update().

◆ p4()

def draftguitools.gui_trackers.rectangleTracker.p4 (   self)

◆ setorigin()

◆ 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, WorkingPlane.Plane.u, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_3d.u(), ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_2d.u(), automotive_design.cartesian_transformation_operator_3d.u(), automotive_design.cartesian_transformation_operator_2d.u(), config_control_design.cartesian_transformation_operator_3d.u(), ifc2x3.ifccartesiantransformationoperator3d.u(), ifc2x3.ifccartesiantransformationoperator2d.u(), ifc4.ifccartesiantransformationoperator3d.u(), ifc4.ifccartesiantransformationoperator2d.u(), KDL::ChainIdSolver_Vereshchagin::segment_info.u, GCS::ConstraintCurveValue.u(), uvPtStruct.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< Rotation >.v, Base::Vector2dPy.v, Gui::ViewProviderIndex.v, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< SbColor >.v, Base::vec_traits< App::Color >.v, draftguitools.gui_trackers.rectangleTracker.v, WorkingPlane.Plane.v, Simplify::Triangle.v, Base::vec_traits< Wm4::Vector3d >.v, Base::vec_traits< Wm4::Vector3f >.v, Base::vec_traits< gp_Pnt >.v, Base::vec_traits< gp_Vec >.v, Base::vec_traits< gp_Dir >.v, Base::vec_traits< gp_XYZ >.v, nlohmann::detail::output_vector_adapter< CharType >.v, Line.v, geoff_geometry::CLine.v, geoff_geometry::Line.v, KDL::ChainIdSolver_RNE.v, KDL::ChainIdSolver_Vereshchagin::segment_info.v, KDL::VectorAcc.v, KDL::VectorVel.v, KDL::VelocityProfile_Rectangular.v, Sketcher::ConstraintIds.v, Sketcher::SketchAnalysis::VertexIds.v, and TechDraw::splitPoint.v.

◆ update()

def draftguitools.gui_trackers.rectangleTracker.update (   self,
  point 
)
Set the opposite (diagonal) point of the rectangle.

References Gui::SoFCColorGradient.coords, Gui::SoFCColorLegend.coords, ArchEquipment._ViewProviderEquipment.coords, ArchPanel.ViewProviderPanelCut.coords, ArchPanel.ViewProviderPanelSheet.coords, ArchSite._ViewProviderSite.coords, ArchSpace._ViewProviderSpace.coords, ArchStructure._ViewProviderStructure.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, draftguitools.gui_trackers.rectangleTracker.coords, draftguitools.gui_trackers.dimTracker.coords, draftguitools.gui_trackers.ghostTracker.coords, draftguitools.gui_trackers.editTracker.coords, draftguitools.gui_trackers.wireTracker.coords, draftviewproviders.view_dimension.ViewProviderLinearDimension.coords, draftviewproviders.view_dimension.ViewProviderAngularDimension.coords, draftviewproviders.view_wire.ViewProviderWire.coords, MeshPartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderCrossSections.coords, PartGui::ViewProviderPartExt.coords, ObjectObserver.coords, FeaturePython.ViewProviderCircleSet.coords, ArchComponent.ArchSelectionObserver.origin, draftguitools.gui_trackers.rectangleTracker.origin, PartGui::DimensionLinear.origin, PartGui::VectorAdapter.origin, PathScripts.PathStock.StockFromBase.origin, KDL::Joint.origin, TechDraw::DrawViewBalloon.origin, DraftVecUtils.project(), uvPtStruct.u, draftguitools.gui_trackers.rectangleTracker.u, WorkingPlane.Plane.u, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_3d.u(), ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cartesian_transformation_operator_2d.u(), automotive_design.cartesian_transformation_operator_3d.u(), automotive_design.cartesian_transformation_operator_2d.u(), config_control_design.cartesian_transformation_operator_3d.u(), ifc2x3.ifccartesiantransformationoperator3d.u(), ifc2x3.ifccartesiantransformationoperator2d.u(), ifc4.ifccartesiantransformationoperator3d.u(), ifc4.ifccartesiantransformationoperator2d.u(), KDL::ChainIdSolver_Vereshchagin::segment_info.u, GCS::ConstraintCurveValue.u(), uvPtStruct.v, Base::vec_traits< Vector3f >.v, Base::vec_traits< Vector3d >.v, Base::vec_traits< Rotation >.v, Base::Vector2dPy.v, Gui::ViewProviderIndex.v, Base::vec_traits< SbVec3f >.v, Base::vec_traits< SbVec3d >.v, Base::vec_traits< SbRotation >.v, Base::vec_traits< SbColor >.v, Base::vec_traits< App::Color >.v, draftguitools.gui_trackers.rectangleTracker.v, WorkingPlane.Plane.v, Simplify::Triangle.v, Base::vec_traits< Wm4::Vector3d >.v, Base::vec_traits< Wm4::Vector3f >.v, Base::vec_traits< gp_Pnt >.v, Base::vec_traits< gp_Vec >.v, Base::vec_traits< gp_Dir >.v, Base::vec_traits< gp_XYZ >.v, nlohmann::detail::output_vector_adapter< CharType >.v, Line.v, geoff_geometry::CLine.v, geoff_geometry::Line.v, KDL::ChainIdSolver_RNE.v, KDL::ChainIdSolver_Vereshchagin::segment_info.v, KDL::VectorAcc.v, KDL::VectorVel.v, KDL::VelocityProfile_Rectangular.v, Sketcher::ConstraintIds.v, Sketcher::SketchAnalysis::VertexIds.v, and TechDraw::splitPoint.v.

Referenced by ArchStructure.CommandStructuralSystem.Activated(), ArchAxisSystem.AxisSystemTaskPanel.addElement(), ArchComponent.ComponentTaskPanel.addElement(), ArchSectionPlane.SectionPlaneTaskPanel.addElement(), DraftGui.FacebinderTaskPanel.addElement(), femtaskpanels.task_result_mechanical._TaskPanel.calculate(), Spreadsheet_legacy.SpreadsheetView.changeCell(), draftguitools.gui_edit.Edit.endEditing(), draftguitools.gui_trackers.boxTracker.height(), draftguitools.gui_trackers.rectangleTracker.p3(), Plot.Plot.plot(), Spreadsheet_legacy.SpreadsheetView.recompute(), ArchAxisSystem.AxisSystemTaskPanel.removeElement(), ArchComponent.ComponentTaskPanel.removeElement(), ArchSectionPlane.SectionPlaneTaskPanel.removeElement(), DraftGui.FacebinderTaskPanel.removeElement(), draftguitools.gui_trackers.gridTracker.reset(), ArchNesting.Nester.run(), draftguitools.gui_trackers.gridTracker.setMainlines(), draftguitools.gui_trackers.gridTracker.setSize(), draftguitools.gui_trackers.gridTracker.setSpacing(), and draftguitools.gui_edit_arch_objects.ArchWallGuiTools.update_object_from_edit_points().

Member Data Documentation

◆ coords

◆ origin

◆ u

◆ v


The documentation for this class was generated from the following file: