draftguitools.gui_trackers.gridTracker Class Reference

Public Member Functions

def displayHumanFigure (self)
 
def getClosestNode (self, point)
 
def getGridColor (self)
 
def reset (self)
 
def set (self)
 
def setAxesColor (self)
 
def setMainlines (self, ml)
 
def setSize (self, size)
 
def setSpacing (self, space)
 
def update (self)
 
- 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

 coords1
 
 coords2
 
 coords3
 
 coords_human
 
 font
 
 human
 
 lines1
 
 lines2
 
 lines3
 
 mainlines
 
 numlines
 
 pts
 
 space
 
 text1
 
 text2
 
 textpos1
 
 textpos2
 
 trans
 
- Public Attributes inherited from draftguitools.gui_trackers.Tracker
 color
 
 ontop
 
 switch
 
 Visible
 

Detailed Description

A grid tracker.

Member Function Documentation

◆ displayHumanFigure()

def draftguitools.gui_trackers.gridTracker.displayHumanFigure (   self)
 Display the human figure at the grid corner.
The silhouette is displayed only if:
- BIM Workbench is available;
- preference BaseApp/Preferences/Mod/Draft/gridShowHuman is True;
- the working plane normal is vertical.

References draftguitools.gui_trackers.gridTracker.coords_human, draftguitools.gui_trackers.gridTracker.human, draftguitools.gui_trackers.gridTracker.mainlines, draftguitools.gui_trackers.gridTracker.numlines, and draftguitools.gui_trackers.gridTracker.space.

Referenced by draftguitools.gui_trackers.gridTracker.set().

◆ getClosestNode()

def draftguitools.gui_trackers.gridTracker.getClosestNode (   self,
  point 
)
Return the closest node from the given point.

References draftguitools.gui_trackers.gridTracker.space.

◆ getGridColor()

def draftguitools.gui_trackers.gridTracker.getGridColor (   self)
Get the grid color from the parameter editor.

◆ reset()

def draftguitools.gui_trackers.gridTracker.reset (   self)
Reset the grid according to preferences settings.

References draftguitools.gui_trackers.gridTracker.mainlines, draftguitools.gui_trackers.gridTracker.numlines, draftguitools.gui_trackers.gridTracker.space, 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.gridTracker.set().

◆ set()

def draftguitools.gui_trackers.gridTracker.set (   self)
Move and rotate the grid according to the current working plane.

References draftguitools.gui_trackers.gridTracker.displayHumanFigure(), SIM::Coin3D::Quarter::InteractionMode.on(), draftguitools.gui_trackers.Tracker.on(), e57::DataPacketHeader.reset(), KDTree::squared_difference_counted< _Tp, _Dist >.reset(), Gui::DocumentWeakPtrT::Private.reset(), App::DocumentObjectWeakPtrT::Private.reset(), App::DocumentObjectWeakPtrT.reset(), App::WeakPtrT< T >.reset(), App::WeakPtrT< Sketcher::SketchObject >.reset(), App::ExpressionVisitor.reset(), Gui::Dialog::DemoMode.reset(), Gui::DocumentModelIndex.reset(), Gui::ViewProviderWeakPtrT::Private.reset(), Gui::ViewProviderWeakPtrT.reset(), Gui::WeakPtrT< FemGui::ViewProviderFemConstraint >.reset(), Gui::WeakPtrT< PartDesignGui::ViewProviderShapeBinder >.reset(), Gui::WeakPtrT< T >.reset(), Gui::ManualAlignment.reset(), Gui::PropertyEditor::PropertyEditor.reset(), Gui::PropertyEditor::PropertyItem.reset(), Gui::Dialog::PropertyPage.reset(), Gui::ElementColors::Private.reset(), TimingInfo.reset(), WireJoiner::EdgeInfo.reset(), SketcherGui::GeometryLayerParameters.reset(), SketcherGui::ViewProviderSketch::Preselection.reset(), SketcherGui::ViewProviderSketch::Selection.reset(), TestGui::UnitTestDialog.reset(), WebGui::FcCookieJar.reset(), App::DocumentWeakPtrT.reset(), Gui::DocumentWeakPtrT.reset(), nlohmann::detail::lexer< BasicJsonType, InputAdapterType >.reset(), App::ExpressionModifier< P >.reset(), zipios::InflateInputStreambuf.reset(), ArchVRM.Renderer.reset(), draftguitools.gui_trackers.gridTracker.reset(), WorkingPlane.Plane.reset(), femsolver.run.Machine.reset(), Robot::Simulation.reset(), draftguitools.gui_trackers.gridTracker.setAxesColor(), 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.editTracker.move().

◆ setAxesColor()

def draftguitools.gui_trackers.gridTracker.setAxesColor (   self)

◆ setMainlines()

def draftguitools.gui_trackers.gridTracker.setMainlines (   self,
  ml 
)
Set mainlines and update.

References draftguitools.gui_trackers.gridTracker.mainlines, 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().

◆ setSize()

def draftguitools.gui_trackers.gridTracker.setSize (   self,
  size 
)
Set size of the lines and update.

References draftguitools.gui_trackers.gridTracker.numlines, 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().

◆ setSpacing()

def draftguitools.gui_trackers.gridTracker.setSpacing (   self,
  space 
)
Set spacing and update.

References draftguitools.gui_trackers.gridTracker.space, 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().

◆ update()

Member Data Documentation

◆ coords1

draftguitools.gui_trackers.gridTracker.coords1

◆ coords2

draftguitools.gui_trackers.gridTracker.coords2

◆ coords3

draftguitools.gui_trackers.gridTracker.coords3

◆ coords_human

draftguitools.gui_trackers.gridTracker.coords_human

◆ font

◆ human

draftguitools.gui_trackers.gridTracker.human

◆ lines1

draftguitools.gui_trackers.gridTracker.lines1

◆ lines2

draftguitools.gui_trackers.gridTracker.lines2

◆ lines3

draftguitools.gui_trackers.gridTracker.lines3

◆ mainlines

◆ numlines

◆ pts

draftguitools.gui_trackers.gridTracker.pts

◆ space

◆ text1

draftguitools.gui_trackers.gridTracker.text1

◆ text2

draftguitools.gui_trackers.gridTracker.text2

◆ textpos1

draftguitools.gui_trackers.gridTracker.textpos1

◆ textpos2

draftguitools.gui_trackers.gridTracker.textpos2

◆ trans


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