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 | |
A grid tracker.
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().
def draftguitools.gui_trackers.gridTracker.getClosestNode | ( | self, | |
point | |||
) |
Return the closest node from the given point.
References draftguitools.gui_trackers.gridTracker.space.
def draftguitools.gui_trackers.gridTracker.getGridColor | ( | self | ) |
Get the grid color from the parameter editor.
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().
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().
def draftguitools.gui_trackers.gridTracker.setAxesColor | ( | self | ) |
set axes color
References draftguitools.gui_trackers.gridTracker.lines3.
Referenced by draftguitools.gui_trackers.gridTracker.set().
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().
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().
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().
def draftguitools.gui_trackers.gridTracker.update | ( | self | ) |
Redraw the grid.
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().
draftguitools.gui_trackers.gridTracker.coords1 |
draftguitools.gui_trackers.gridTracker.coords2 |
draftguitools.gui_trackers.gridTracker.coords3 |
draftguitools.gui_trackers.gridTracker.coords_human |
Referenced by draftguitools.gui_trackers.gridTracker.displayHumanFigure().
draftguitools.gui_trackers.gridTracker.font |
Referenced by draftviewproviders.view_dimension.ViewProviderLinearDimension.onChanged(), draftviewproviders.view_dimension.ViewProviderAngularDimension.onChanged(), draftviewproviders.view_label.ViewProviderLabel.onChanged(), draftviewproviders.view_text.ViewProviderText.onChanged(), draftviewproviders.view_label.ViewProviderLabel.update_frame(), and draftviewproviders.view_label.ViewProviderLabel.update_label().
draftguitools.gui_trackers.gridTracker.human |
Referenced by draftguitools.gui_trackers.gridTracker.displayHumanFigure().
draftguitools.gui_trackers.gridTracker.lines1 |
draftguitools.gui_trackers.gridTracker.lines2 |
draftguitools.gui_trackers.gridTracker.lines3 |
Referenced by draftguitools.gui_trackers.gridTracker.setAxesColor().
draftguitools.gui_trackers.gridTracker.mainlines |
draftguitools.gui_trackers.gridTracker.numlines |
draftguitools.gui_trackers.gridTracker.pts |
draftguitools.gui_trackers.gridTracker.space |
draftguitools.gui_trackers.gridTracker.text1 |
draftguitools.gui_trackers.gridTracker.text2 |
draftguitools.gui_trackers.gridTracker.textpos1 |
draftguitools.gui_trackers.gridTracker.textpos2 |
draftguitools.gui_trackers.gridTracker.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.gridTracker.set(), draftguitools.gui_trackers.PlaneTracker.set(), draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.arcTracker.setRadius(), draftguitools.gui_trackers.boxTracker.setRotation(), draftguitools.gui_trackers.radiusTracker.update(), draftguitools.gui_trackers.boxTracker.update(), and draftviewproviders.view_text.ViewProviderText.updateData().