draftguitools.gui_trackers.gridTracker Class Reference

Public Member Functions

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
 
 font
 
 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

◆ 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(), MeshGui::MeshRenderer::Private.update(), MeshGui::MeshRenderer.update(), TechDrawGui::TaskDlgActiveView.update(), TechDrawGui::TaskDlgBalloon.update(), TechDrawGui::TaskDlgCenterLine.update(), TechDrawGui::TaskDlgCosmeticLine.update(), TechDrawGui::TaskDlgCosVertex.update(), TechDrawGui::TaskDlgDetail.update(), TechDrawGui::TaskDlgDimension.update(), TechDrawGui::TaskDlgGeomHatch.update(), TechDrawGui::TaskDlgHatch.update(), TechDrawGui::TaskDlgLeaderLine.update(), TechDrawGui::TaskDlgLinkDim.update(), TechDrawGui::TaskDlgProjGroup.update(), TechDrawGui::TaskDlgRichAnno.update(), TechDrawGui::TaskDlgSectionView.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(), Gui::CommandPy.update(), Gui::DocumentPy.update(), Gui::ViewProviderDocumentObjectPy.update(), AddonManager.CommandAddonManager.update(), ArchAxis._AxisTaskPanel.update(), ArchAxis.AxisSystemTaskPanel.update(), ArchAxis.ArchGridTaskPanel.update(), ArchComponent.ComponentTaskPanel.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(), draftguitools.gui_trackers.radiusTracker.update(), ArchCommands.SurveyTaskPanel.update(), shipAreasCurve.Preview.Preview.update(), Mod.PartDesign.WizardShaft.ShaftDiagram.Diagram.update(), shipCreateShip.Preview.Preview.update(), shipOutlineDraw.Preview.Preview.update(), draftguitools.gui_trackers.boxTracker.update(), draftguitools.gui_trackers.ghostTracker.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.Tracker.on(), SIM::Coin3D::Quarter::InteractionMode.on(), KDTree::squared_difference_counted< _Tp, _Dist >.reset(), Gui::DocumentWeakPtrT::Private.reset(), App::DocumentObjectWeakPtrT::Private.reset(), App::DocumentObjectWeakPtrT.reset(), App::WeakPtrT< T >.reset(), App::ExpressionVisitor.reset(), Gui::Dialog::DemoMode.reset(), Gui::DocumentModelIndex.reset(), Gui::ViewProviderWeakPtrT::Private.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(), TestGui::UnitTestDialog.reset(), WebGui::FcCookieJar.reset(), App::DocumentWeakPtrT.reset(), Gui::DocumentWeakPtrT.reset(), Gui::ViewProviderWeakPtrT.reset(), nlohmann::detail::lexer< BasicJsonType, InputAdapterType >.reset(), App::ExpressionModifier< P >.reset(), zipios::InflateInputStreambuf.reset(), Gui::LinkViewPy.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.

◆ setSize()

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

◆ setSpacing()

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

◆ update()

def draftguitools.gui_trackers.gridTracker.update (   self)
Redraw the grid.

References draftguitools.gui_trackers.gridTracker.coords1, draftguitools.gui_trackers.gridTracker.coords2, draftguitools.gui_trackers.gridTracker.coords3, iisIconLabelScheme.font, ArchSpace._ViewProviderSpace.font, draftguitools.gui_trackers.gridTracker.font, draftviewproviders.view_dimension.ViewProviderLinearDimension.font, draftviewproviders.view_dimension.ViewProviderAngularDimension.font, draftviewproviders.view_label.ViewProviderLabel.font, draftviewproviders.view_text.ViewProviderText.font, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.text_literal.font, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.character_glyph_font_usage.font, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.text_font_in_family.font, automotive_design.text_literal.font, PartDesignGui::ViewProviderDatumCoordinateSystem.font, draftguitools.gui_trackers.gridTracker.lines1, draftguitools.gui_trackers.gridTracker.lines2, draftguitools.gui_trackers.gridTracker.mainlines, draftguitools.gui_trackers.gridTracker.numlines, draftguitools.gui_dimensions.Dimension.pts, draftguitools.gui_trackers.gridTracker.pts, draftguitools.gui_trackers.gridTracker.setAxesColor(), draftguitools.gui_trackers.gridTracker.space, ArchSpace._ViewProviderSpace.text1, draftguitools.gui_trackers.gridTracker.text1, ArchSpace._ViewProviderSpace.text2, draftguitools.gui_trackers.gridTracker.text2, draftguitools.gui_trackers.gridTracker.textpos1, and draftguitools.gui_trackers.gridTracker.textpos2.

Referenced by ArchAxis.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(), ArchAxis.CommandArchGrid.IsActive(), draftguitools.gui_trackers.rectangleTracker.p3(), Plot.Plot.plot(), Spreadsheet_legacy.SpreadsheetView.recompute(), ArchAxis.AxisSystemTaskPanel.removeElement(), ArchComponent.ComponentTaskPanel.removeElement(), ArchSectionPlane.SectionPlaneTaskPanel.removeElement(), DraftGui.FacebinderTaskPanel.removeElement(), draftguitools.gui_trackers.gridTracker.reset(), and ArchNesting.Nester.run().

Member Data Documentation

◆ coords1

draftguitools.gui_trackers.gridTracker.coords1

◆ coords2

draftguitools.gui_trackers.gridTracker.coords2

◆ coords3

draftguitools.gui_trackers.gridTracker.coords3

◆ font

◆ lines1

draftguitools.gui_trackers.gridTracker.lines1

◆ lines2

draftguitools.gui_trackers.gridTracker.lines2

◆ lines3

draftguitools.gui_trackers.gridTracker.lines3

◆ mainlines

draftguitools.gui_trackers.gridTracker.mainlines

◆ numlines

draftguitools.gui_trackers.gridTracker.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:
  • Sources/FreeCAD/src/Mod/Draft/draftguitools/gui_trackers.py