Vector math utilities used in Draft workbench. More...
Functions | |
def DraftVecUtils.angle (u, v=Vector(1, 0, 0), normal=Vector(0, 0, 1)) | |
def DraftVecUtils.closest (vector, vlist) | |
def DraftVecUtils.dist (u, v) | |
def DraftVecUtils.equals (u, v) | |
def DraftVecUtils.find (vector, vlist) | |
def DraftVecUtils.getPlaneRotation (u, v, w=None) | |
def DraftVecUtils.getRotation (vector, reference=Vector(1, 0, 0)) | |
def DraftVecUtils.isColinear (vlist) | |
def DraftVecUtils.isNull (vector) | |
def DraftVecUtils.neg (u) | |
def DraftVecUtils.precision () | |
def DraftVecUtils.project (u, v) | |
def DraftVecUtils.removeDoubles (vlist) | |
def DraftVecUtils.rotate (u, angle, axis=Vector(0, 0, 1)) | |
def DraftVecUtils.rotate2D (u, angle) | |
def DraftVecUtils.rounded (v, d=None) | |
def DraftVecUtils.scale (u, scalar) | |
def DraftVecUtils.scaleTo (u, l) | |
def DraftVecUtils.toString (u) | |
def DraftVecUtils.tup (u, array=False) | |
def DraftVecUtils.typecheck (args_and_types, name="?") | |
Detailed Description
Vector math utilities used in Draft workbench.
Vector math utilities used primarily in the Draft workbench but which can also be used in other workbenches and in macros.
Function Documentation
◆ angle()
def DraftVecUtils.angle | ( | u, | |
v = Vector(1, 0, 0) , |
|||
normal = Vector(0, 0, 1) |
|||
) |
References DraftVecUtils.typecheck().
Referenced by draftguitools.gui_offset.Offset.action(), importDXF.addText(), draftgeoutils.intersections.angleBisection(), importSVG.arcend2center(), DraftGui.DraftToolBar.changeAngleValue(), StdMeshers_Quadrangle_2D.check(), draftgeoutils.circles.circleFrom2LinesRadius(), AdaptivePath::Interpolation.clampAngle(), draftguitools.gui_labels.Label.create(), exportIFC.createCurve(), Import::ExportOCAF.createNode(), draftguitools.gui_rectangles.Rectangle.createObject(), DraftGui.DraftToolBar.displayPoint(), SketcherGui::ViewProviderSketch.draw(), draftgeoutils.geometry.findDistance(), importIFCHelper.get2DShape(), Base::VectorPy.getAngle(), Base::RotationPy.getAngle(), SMESH_MesherHelper.GetAngle(), draftguitools.gui_trackers.arcTracker.getAngle(), importDXF.getArcData(), Base::RotationPy.getAxis(), draftgeoutils.cuboids.getCubicDimensions(), WorkingPlane.Plane.getDeviation(), importIFClegacy.getIfcExtrusionData(), Part::Feature.getLocation(), Part::FeatureReference.getLocation(), Part::TopoShape.getPlacemet(), App::PropertyPlacement.getPyPathValue(), exportIFC.getRepresentation(), TechDraw::DrawProjGroupItem.getRotateAngle(), FCSphereSheetProjector.getRotation(), draftgeoutils.geometry.getRotation(), TechDraw::PATLineSpec.getSlope(), getSVG.getSVG(), importIFClegacy.getTuples(), PartGui.goDimensionAngularNoTask(), draftgeoutils.arcs.isClockwise(), draftmake.make_sketch.make_sketch(), TechDrawGui::QGISectionLine.makeArrowsISO(), TechDrawGui::QGISectionLine.makeArrowsTrad(), TechDraw::DrawGeomHatch.makeEdgeOverlay(), ArchRoof.makeRoof(), TechDrawGui::QGISectionLine.makeSymbolsISO(), TechDrawGui::QGISectionLine.makeSymbolsTrad(), PathScripts.PathJobGui.TaskPanel.modelSetAxis(), draftgeoutils.edges.orientEdge(), Base::PlacementPy.PyInit(), Base::RotationPy.PyInit(), draftguitools.gui_trimex.Trimex.redraw(), Part::GeometryPy.rotate(), Part::Geometry2dPy.rotate(), Part::TopoShapePy.rotate(), Import::ExportOCAF.saveShape(), MeshCore::MeshOutput.SaveX3D(), Base::RotationPy.setAngle(), Base::RotationPy.setAxis(), Part::TopoShape.setPlacement(), Gui::PropertyEditor::PropertyPlacementItem.toolTip(), Gui::PropertyEditor::PropertyPlacementItem.toString(), draftguitools.gui_trimex.Trimex.trimObjects(), draftguitools.gui_edit_draft_objects.updateCircle(), Gui::PropertyEditor::PropertyPlacementItem.value(), and Path::PathSegmentWalker.walk().
◆ closest()
def DraftVecUtils.closest | ( | vector, | |
vlist | |||
) |
References DraftVecUtils.typecheck().
Referenced by draftgeoutils.intersections.connect(), SketcherGui::ViewProviderSketch.drawMergedConstraintIcons(), and draftguitools.gui_trimex.Trimex.trimObjects().
◆ dist()
def DraftVecUtils.dist | ( | u, | |
v | |||
) |
References DraftVecUtils.typecheck().
Referenced by draftguitools.gui_polygons.Polygon.action(), draftguitools.gui_arcs.Arc.action(), CmdSketcherConstrainAngle.activated(), NETGENPlugin_Mesher.AddIntVerticesInSolids(), CmdSketcherConstrainAngle.applyConstraint(), Drawing::DrawingOutput.asCircle(), Attacher::AttachEngineLine.calculateAttachedPlacement(), CArea.ChangeStartToNearest(), StdMeshers_QuadToTriaAdaptor.CheckIntersection(), SMESH_MesherHelper.CheckNodeU(), SMESH_MesherHelper.CheckNodeUV(), VISCOUS_3D::_LayerEdge.ChooseSmooFunction(), draftgeoutils.circles.circlefrom1Line2Points(), draftgeoutils.circles.circleFrom2PointsRadius(), draftgeoutils.circles.circleFromPointLineRadius(), draftgeoutils.circle_inversion.circleInversion(), StdMeshers_QuadToTriaAdaptor.Compute(), SMESH_Block.ComputeParameters(), StdMeshers_Quadrangle_2D.computeQuadDominant(), ConstraintItem.data(), geoff_geometry.Dist(), triplet.distance_to(), Base::VectorPy.distanceToLine(), Base::Vector3< float >.DistanceToLineSegment(), Base::VectorPy.distanceToPlane(), Base::VectorPy.distanceToPoint(), GCS::ConstraintP2PDistance.error(), GCS::ConstraintP2LDistance.error(), Mesh::SegmentByMesh.execute(), Sketcher::SketchObject.fillet(), TechDraw::DrawDimHelper.findClosestPoint(), SMESH_ElementSearcherImpl.FindClosestTo(), VISCOUS_3D::_LayerEdge.FindIntersection(), MeshCore::MeshKDTree.FindNearest(), draftgeoutils.circles.findRadicalAxis(), SMESH_Block.findUVAround(), TechDraw::GeometryObject.findVertex(), lscmrelax.get_max_distance(), Fem::Constraint.getBasePoint(), MeshCore::CylinderFit.GetBounding(), SMESH_MeshAlgos.GetDistance(), MeshCore::CylinderSurfaceFit.GetDistanceToSurface(), MeshCore::SphereSurfaceFit.GetDistanceToSurface(), GEOMUtils.GetMinDistance(), SMESH_MesherHelper.GetNodeUV(), SandboxGui::SoWidgetShape.getQuad(), SMESH_ElementSearcherImpl.getTolerance(), draftguitools.gui_rotate.Rotate.handle_mouse_move_event(), InspectionGui::ViewProviderInspection.inspectDistance(), TechDraw::Vertex.isEqual(), Fem::Tools.isLinear(), TechDraw::DrawProjectSplit.isOnEdge(), SMESH_MeshAlgos.IsOut(), Fem::Tools.isPlanar(), MeshCore::MeshGeomFacet.IsPointOfSphere(), VISCOUS_3D::_Curvature.lenDeltaByDist(), SMESH_Pattern.Load(), Part::TopoShapeFacePy.makeOffset(), Part::TopoShapeWirePy.makeOffset(), TechDrawGui::QGISectionLine.makeSymbolsISO(), GCS::ConstraintP2PDistance.maxStep(), CArea.NearestPoint(), CCurve.NearestPoint(), geoff_geometry::Plane.Plane(), cLineSegment.PointAt(), draftgeoutils.circle_inversion.pointInversion(), CCurve.PointToPerim(), AdaptivePath.PopPathWithClosestPoint(), Part::CylinderPy.PyInit(), Part::CirclePy.PyInit(), Part::Circle2dPy.PyInit(), Part::PlanePy.PyInit(), SketcherGui::ViewProviderSketch.setEditViewer(), SMESH_MeshEditor.SewFreeBorder(), SMESH_MeshEditor.SewSideElements(), Part::TopoShapePy.slices(), and PathScripts.PathUtils.sort_jobs().
◆ equals()
def DraftVecUtils.equals | ( | u, | |
v | |||
) |
References DraftVecUtils.isNull(), and DraftVecUtils.typecheck().
Referenced by WorkingPlane.Plane.alignToFace(), draftguitools.gui_trackers.dimTracker.calc(), draftgeoutils.circles.circleFrom2PointsRadius(), draftgeoutils.circles.circleFrom3LineTangents(), draftgeoutils.circle_inversion.circleInversion(), exportIFC.createCurve(), importDXF.drawLine(), importDXF.drawPolyline(), draftguitools.gui_lines.Line.drawSegment(), draftgeoutils.general.edg(), draftobjects.clone.Clone.execute(), draftobjects.wire.Wire.execute(), draftobjects.patharray.PathArray.execute(), DraftVecUtils.find(), draftgeoutils.edges.findEdge(), draftgeoutils.circles.findHomotheticCenterOfCircles(), draftgeoutils.intersections.findIntersection(), draftgeoutils.circles.findRadicalAxis(), draftgeoutils.wires.findWiresOld2(), draftobjects.patharray.get_parameter_from_v0(), importIFClegacy.getIfcExtrusionData(), PartDesign::SubShapeBinder.getSubObject(), draftgeoutils.wires.isReallyClosed(), draftgeoutils.edges.isSameLine(), draftmake.make_sketch.make_sketch(), ArchFloor.makeFloor(), draftguitools.gui_arcs.Arc.numericRadius(), draftgeoutils.offsets.offsetWire(), draftgeoutils.circle_inversion.pointInversion(), DraftVecUtils.removeDoubles(), and draftguitools.gui_snapper.Snapper.snapToCrossExtensions().
◆ find()
def DraftVecUtils.find | ( | vector, | |
vlist | |||
) |
References DraftVecUtils.equals(), and DraftVecUtils.typecheck().
Referenced by StdCmdOpen.activated(), Gui::Translator.activateLanguage(), Sketcher::SketchObject.addCopy(), SMESHDS_Mesh.AddHypothesis(), Gui::ViewProviderVRMLObject.addResource(), Sketcher::SketchObject.addSymmetric(), PointsGui::ViewProviderScattered.attach(), PointsGui::ViewProviderStructured.attach(), NETGENPlugin_NETGEN_2D3D.CheckHypothesis(), draftgeoutils.faces.cleanFaces(), TechDraw::DrawViewSpreadsheet.colInList(), MeshCore::MeshTopoAlgorithm.CollapseEdge(), MeshCore::MeshTopoAlgorithm.CollapseVertex(), StdMeshers_Projection_2D.Compute(), StdMeshers_Regular_1D.Compute(), SMESH_ProxyMesh::SubMesh.Contains(), Gui::Document.detachView(), TechDrawGui::QGIViewClip.drawClip(), KDTree::KDTree< 3, Point3d >.erase(), Drawing::FeatureViewSpreadsheet.execute(), Fem::FemPostScalarClipFilter.execute(), Fem::FemPostWarpVectorFilter.execute(), App::Document.exportGraphviz(), App::PropertyLinkList.find(), App::DocumentP.findAllPathsAt(), StdMeshers_ProjectionUtils.FindFaceAssociation(), Gui::DocumentItem.findItem(), SMESH_HypoFilter::IsMoreLocalThanPredicate.findPreferable(), MeshCore::MeshSurfaceSegment.FindSegment(), MeshCore::MeshPointArray.Get(), Fem::FemMesh.getccxVolumesByFace(), PartDesign::DressUp.getContiniusEdges(), StdMeshers_CompositeSegment_1D.GetFaceSide(), MeshCore::MeshEvalTopology.GetFacetManifolds(), Gui::ExpressionBinding.getIcon(), ExpressionDelegate.getIcon(), Gui::ViewProviderVRMLObject.getLocalResources(), PartDesign::Body.getNextSolidFeature(), App::Document.getPathsByOutList(), PartDesign::Body.getPrevSolidFeature(), importIFClegacy.IfcEntity.getProperties(), importIFClegacy.IfcEntity.getProperty(), TechDraw::DrawViewSpreadsheet.getSheetImage(), DriverMED.GetSMDSType(), Base::Writer.getUniqueFileName(), App::Branding.getUserDefines(), App::Origin.hasObject(), Gui::PropertyEditor::PropertyItem.hasProperty(), PartDesign::Body.insertObject(), PartDesignGui.isAnyNonPartDesignLinksTo(), StdMeshers_Prism_3D.IsApplicable(), SMDS_VolumeTool.IsLinked(), Gui::WaitCursorP.isModalDialog(), Gui::ProgressBarPrivate.isModalDialog(), SMESH_Mesh.IsOrderOK(), StdMeshers_ViscousLayers.IsShapeWithLayers(), SMESH_Mesh.IsUsedHypothesis(), SMESHDS_Mesh.IsUsedHypothesis(), SMESH_Block.LoadMeshBlock(), SMESH_ProxyMesh.NbFaces(), SMESH_Mesh.NotifySubMeshesHypothesisModification(), PartDesignGui::TaskBooleanParameters.onSelectionChanged(), PartDesignGui::TaskTransformedParameters.originalSelected(), Points::PlyReader.read(), Points::PcdReader.read(), gzip_utf8.GzipFile.readline(), Gui::Dialog::DocumentRecoveryPrivate.readXmlFile(), PartDesignGui::TaskShapeBinder.referenceSelected(), PartDesignGui::TaskPipeParameters.referenceSelected(), PartDesignGui::TaskDressUpParameters.referenceSelected(), PartDesignGui::TaskPipeOrientation.referenceSelected(), PartDesignGui::TaskPipeScaling.referenceSelected(), GCS::System.removeConstraint(), SMESHDS_Mesh.RemoveHypothesis(), Base::SequencerP.removeInstance(), PartDesign::Body.removeObject(), Gui::PropertyEditor::PropertyEditor.removeProperty(), Gui::PropertyEditor::PropertyItem.removeProperty(), StdMeshers_ViscousLayers2D.RestoreListeners(), MeshCore::MeshOutput.SaveOBJ(), Gui::Document.setActiveWindow(), StdMeshers_ProjectionUtils.SetEventListener(), App::LinkBaseExtension.setLink(), PartGui::DlgFilletEdges.setupFillet(), App::PropertyString.setValue(), Gui::Application.sGetMarkerIndex(), FaceQuadStruct.shift(), PartDesignGui::TaskFeaturePick.slotDeletedObject(), SMESH_Mesh.SortByMeshOrder(), ArchRebar.strprocessOfCustomSpacing(), Gui::SelectionFilter.test(), VISCOUS_3D.ToClearSubWithMain(), App::Origin.unsetupObject(), and SketcherGui::TaskDlgEditSketch.~TaskDlgEditSketch().
◆ getPlaneRotation()
def DraftVecUtils.getPlaneRotation | ( | u, | |
v, | |||
w = None |
|||
) |
References DraftVecUtils.typecheck().
Referenced by importDXF.drawEllipse(), importIFCHelper.getPlacement(), importIFClegacy.getPlacement(), and WorkingPlane.Plane.getRotation().
◆ getRotation()
def DraftVecUtils.getRotation | ( | vector, | |
reference = Vector(1, 0, 0) |
|||
) |
References DraftVecUtils.isNull().
Referenced by FCSphereSheetProjector.getRotation().
◆ isColinear()
def DraftVecUtils.isColinear | ( | vlist | ) |
References DraftVecUtils.typecheck().
Referenced by importDXF.drawPolyline().
◆ isNull()
def DraftVecUtils.isNull | ( | vector | ) |
Referenced by draftguitools.gui_polygons.Polygon.action(), draftguitools.gui_arcs.Arc.action(), importDXF.addText(), draftgeoutils.general.areColinear(), ArchWall.areSameWallTypes(), importDXF.calcBulge(), ArchVRM.Renderer.compare(), draftguitools.gui_stretch.Stretch.doStretch(), DraftVecUtils.equals(), draftobjects.shape2dview.Shape2DView.execute(), draftgeoutils.intersections.findIntersection(), draftutils.utils.get_DXF(), draftgeoutils.circles.getCircleFromSpline(), exportIFC.getRepresentation(), DraftVecUtils.getRotation(), draftguitools.gui_rotate.Rotate.handle_mouse_move_event(), draftgeoutils.arcs.isClockwise(), draftgeoutils.geometry.isPlanar(), PathScripts.PathUtil.isValidBaseObject(), ArchFrame.makeFrame(), ArchRebar.makeRebar(), ArchRoof.makeRoof(), Gui::PrefWidget.onRestore(), draftobjects.array.polar_placements(), ArchWindow.recolorize(), ArchSpace.removeSpaceBoundaries(), Gui::PrefSpinBox.restorePreferences(), Gui::PrefDoubleSpinBox.restorePreferences(), Gui::PrefLineEdit.restorePreferences(), Gui::PrefFileChooser.restorePreferences(), Gui::PrefComboBox.restorePreferences(), Gui::PrefCheckBox.restorePreferences(), Gui::PrefRadioButton.restorePreferences(), Gui::PrefSlider.restorePreferences(), Gui::PrefColorButton.restorePreferences(), Gui::PrefUnitSpinBox.restorePreferences(), Gui::PrefFontBox.restorePreferences(), Gui::PrefSpinBox.savePreferences(), Gui::PrefDoubleSpinBox.savePreferences(), Gui::PrefLineEdit.savePreferences(), Gui::PrefFileChooser.savePreferences(), Gui::PrefComboBox.savePreferences(), Gui::PrefCheckBox.savePreferences(), Gui::PrefRadioButton.savePreferences(), Gui::PrefSlider.savePreferences(), Gui::PrefColorButton.savePreferences(), Gui::PrefUnitSpinBox.savePreferences(), Gui::PrefFontBox.savePreferences(), draftguitools.gui_snapper.Snapper.snapToExtensions(), draftguitools.gui_snapper.Snapper.snapToPolar(), draftviewproviders.view_wire.ViewProviderWire.updateData(), and draftviewproviders.view_dimension.ViewProviderAngularDimension.updateData().
◆ neg()
def DraftVecUtils.neg | ( | u | ) |
References DraftVecUtils.typecheck().
Referenced by ArchPanel.PanelView.execute(), importIFClegacy.getIfcBrepFacesData(), exportIFC.getRepresentation(), ArchStairs.makeRailing(), Fem::ConstraintPulley.onChanged(), and Base::Rotation.slerp().
◆ precision()
def DraftVecUtils.precision | ( | ) |
Referenced by Gui::PropertyEditor::PropertyItem.decimals(), draftgeoutils.fillets.fillet(), SMESH_OctreeNode.FindCoincidentNodes(), draftgeoutils.intersections.findIntersection(), draftgeoutils.cuboids.getCubicDimensions(), TechDraw::DrawViewDimension.getDefaultFormatSpec(), ArchVRM.Renderer.getPathData(), TechDrawGui::QGIDatumLabel.getPrecision(), draftgeoutils.faces.isCoplanar(), draftgeoutils.cuboids.isCubic(), SMESH_OctreeNode.NodesAround(), WorkingPlane.Plane.projectPointOld(), draftgeoutils.wires.removeInterVertices(), and Path::Command.toGCode().
◆ project()
def DraftVecUtils.project | ( | u, | |
v | |||
) |
References DraftVecUtils.typecheck().
Referenced by draftguitools.gui_polygons.Polygon.action(), draftguitools.gui_arcs.Arc.action(), draftguitools.gui_dimensions.Dimension.action(), StdCmdMergeProjects.activated(), ArchSectionPlane.closeViewer(), ArchVRM.Renderer.compare(), draftguitools.gui_snapper.Snapper.constrain(), draftguitools.gui_ellipses.Ellipse.createObject(), draftguitools.gui_rectangles.Rectangle.createObject(), draftgeoutils.geometry.findDistance(), draftutils.utils.get_DXF(), draftguitools.gui_selectplane.Draft_SelectPlane.getCenterPoint(), ArchSectionPlane.getCoinSVG(), ArchCommands.getCutVolume(), StdMeshers_Quadrangle_2D.getEnforcedUV(), WorkingPlane.Plane.getLocalCoords(), WorkingPlane.Plane.getLocalRot(), draftguitools.gui_snapper.Snapper.getPerpendicular(), getSVG.getProj(), ArchCurtainWall.CurtainWall.getProjectedLength(), draftguitools.gui_trackers.rectangleTracker.getSize(), draftguitools.gui_rotate.Rotate.handle_mouse_move_event(), draftgeoutils.faces.isCoplanar(), draftguitools.gui_trackers.rectangleTracker.isInside(), draftgeoutils.geometry.isPlanar(), SMESH_Pattern.Load(), Drawing::Module.Module(), draftfunctions.offset.offset(), ArchBuildingPart.ViewProviderBuildingPart.onChanged(), ArchNesting.Nester.order(), FCSphereSheetProjector.project(), ArchCommands.projectToVector(), ArchWindow.recolorize(), draftguitools.gui_trimex.Trimex.redraw(), draftfunctions.scale.scale(), draftguitools.gui_rotate.Rotate.set_rotation_angle(), SMESH_MeshEditor.Smooth(), draftguitools.gui_trackers.rectangleTracker.update(), draftguitools.gui_edit_draft_objects.updateCircle(), draftguitools.gui_edit.Edit.updateGhost(), draftguitools.gui_edit_part_objects.updatePartBox(), draftguitools.gui_edit_part_objects.updatePartCone(), draftguitools.gui_edit_part_objects.updatePartCylinder(), draftguitools.gui_edit_draft_objects.updateRectangle(), and draftguitools.gui_edit_arch_objects.updateWall().
◆ removeDoubles()
def DraftVecUtils.removeDoubles | ( | vlist | ) |
References DraftVecUtils.equals(), and DraftVecUtils.typecheck().
Referenced by ArchRoof.makeRoof().
◆ rotate()
def DraftVecUtils.rotate | ( | u, | |
angle, | |||
axis = Vector(0, 0, 1) |
|||
) |
References DraftVecUtils.typecheck().
Referenced by draftguitools.gui_offset.Offset.action(), WorkingPlane.Plane.alignToPointAndAxis(), WorkingPlane.Plane.alignToPointAndAxis_SVG(), draftgeoutils.intersections.angleBisection(), TechDraw::CenterLine.calcEndPoints(), TechDraw::CenterLine.calcEndPoints2Lines(), TechDraw::CenterLine.calcEndPoints2Points(), DraftGui.DraftToolBar.changeAngleValue(), draftgeoutils.circles.circleFrom2LinesRadius(), draftgeoutils.circles.circleFrom3LineTangents(), draftgeoutils.circles.getCircleFromSpline(), getSVG.getSVG(), draftmake.make_sketch.make_sketch(), draftguitools.gui_arcs.Arc.numericRadius(), draftfunctions.offset.offset(), ArchWindow.recolorize(), draftguitools.gui_trimex.Trimex.redraw(), draftfunctions.rotate.rotate(), geoff_geometry::Matrix.Rotate(), draftfunctions.rotate.rotate_vector_from_center(), draftguitools.gui_snapper.Snapper.snapToPolar(), and ArchPanel.ViewProviderPanelSheet.updateData().
◆ rotate2D()
def DraftVecUtils.rotate2D | ( | u, | |
angle | |||
) |
◆ rounded()
def DraftVecUtils.rounded | ( | v, | |
d = None |
|||
) |
Referenced by ArchEquipment.createMeshView(), importIFClegacy.getIfcExtrusionData(), and importIFClegacy.getTuples().
◆ scale()
def DraftVecUtils.scale | ( | u, | |
scalar | |||
) |
References DraftVecUtils.typecheck().
Referenced by Gui::NavigationStyle.boxZoom(), TechDraw::CenterLine.calcEndPoints(), TechDraw::CenterLine.calcEndPoints2Lines(), TechDraw::CenterLine.calcEndPoints2Points(), TechDrawGui::TaskRichAnno.calcTextStartPos(), TechDrawGui::QGCustomSvg.centerAt(), TechDrawGui::QGCustomImage.centerAt(), StdMeshers_Regular_1D.computeInternalParameters(), TechDrawGui::QGILeaderLine.draw(), TechDrawGui::QGIViewBalloon.draw(), TechDrawGui::QGIViewPart.drawMatting(), TechDrawGui::QGIViewPart.drawSectionLine(), TechDraw::DrawViewDimExtent.execute(), DrawingGui::OrthoViews.get_configs(), TechDrawGui::TaskDetail.getAnchorScene(), DrawingGui::orthoview.getScale(), SketcherGui::SoZoomTranslation.getScaleFactor(), Gui::SoAutoZoomTranslation.getScaleFactor(), SketcherGui::ViewProviderSketch.getScaleFactor(), SketcherGui::SoDatumLabel.GLRender(), TechDrawGui::QGVPage.keyPressEvent(), SMESH_Pattern.Load(), TechDraw::DrawGeomHatch.makeEdgeOverlay(), ArchStairs.makeRailing(), TechDrawGui::TaskCosVertex.onTrackerFinished(), TechDrawGui::TaskLeaderLine.onTrackerFinished(), Gui::NavigationStyle.processMotionEvent(), ArchWindow.recolorize(), TechDraw::DrawViewDimension.saveArrowPositions(), Base::Rotation.setValue(), AdaptivePath.SmoothPaths(), Path::Command.toGCode(), geoff_geometry::Circle.Transform(), RotTransDragger.valueChangedCB(), Gui::View3DInventorPy.viewDefaultOrientation(), DrawingGui::SvgView.wheelEvent(), and TechDrawGui::QGVPage.wheelEvent().
◆ scaleTo()
def DraftVecUtils.scaleTo | ( | u, | |
l | |||
) |
References DraftVecUtils.typecheck().
Referenced by ArchPanel.CommandPanelSheet.Activated(), importDXF.addText(), ArchWall.areSameWallTypes(), ArchRebar.CalculatePlacement(), draftgeoutils.circles.circleFromPointLineRadius(), ArchRebar.CustomSpacingPlacement(), draftobjects.wire.Wire.execute(), draftobjects.dimension.LinearDimension.execute(), draftgeoutils.edges.findMidpoint(), draftguitools.gui_selectplane.Draft_SelectPlane.getCenterPoint(), ArchCommands.getCutVolume(), getSVG.getSVG(), ArchStairs.makeRailing(), ArchRebar.makeRebar(), draftguitools.gui_arcs.Arc.numericRadius(), draftgeoutils.offsets.offsetWire(), draftobjects.wire.Wire.onChanged(), WorkingPlane.Plane.projectPoint(), ArchCommands.projectToVector(), ArchWindow.recolorize(), draftguitools.gui_trimex.Trimex.redraw(), draftguitools.gui_snapper.Snapper.snapToPerpendicular(), draftguitools.gui_trackers.boxTracker.update(), and importDXF.writeShape().
◆ toString()
def DraftVecUtils.toString | ( | u | ) |
Referenced by draftguitools.gui_offset.Offset.action(), draftguitools.gui_move.Move.build_copy_subelements_command(), draftguitools.gui_scale.Scale.build_copy_subelements_command(), draftguitools.gui_rotate.Rotate.build_copy_subelements_command(), draftguitools.gui_move.Move.build_move_subelements_command(), draftguitools.gui_rotate.Rotate.build_rotate_subelements_command(), draftguitools.gui_scale.Scale.build_scale_subelements_command(), drafttaskpanels.task_polararray.TaskPanelPolarArray.create_object(), drafttaskpanels.task_orthoarray.TaskPanelOrthoArray.create_object(), drafttaskpanels.task_circulararray.TaskPanelCircularArray.create_object(), draftguitools.gui_ellipses.Ellipse.createObject(), draftguitools.gui_rectangles.Rectangle.createObject(), draftguitools.gui_texts.Text.createObject(), draftguitools.gui_shapestrings.ShapeString.createObject(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel.createObject(), draftguitools.gui_dimensions.Dimension.createObject(), draftguitools.gui_dimensions.Dimension.createOnMeasures(), Gui::PropertyEditor::PropertyItem.data(), draftguitools.gui_arcs.Arc.drawArc(), draftguitools.gui_polygons.Polygon.drawPolygon(), Gui::QuantitySpinBox.event(), draftguitools.gui_lines.Line.finish(), TechDrawGui::TaskProjGroup.formatVector(), ArchPanel.CommandPanel.getPoint(), PartGui::DlgExtrusion.getShapesToExtrude(), PartGui::DlgRevolution.getShapesToRevolve(), draftguitools.gui_base_original.DraftTool.getStrings(), draftguitools.gui_mirror.Mirror.mirror(), draftguitools.gui_move.Move.move_object(), draftguitools.gui_offset.Offset.numericRadius(), Gui::UIntSpinBox.onChange(), Gui::QuantitySpinBox.onChange(), ArchStructure.placeAlongEdge(), draftguitools.gui_shape2dview.Shape2DView.proceed(), draftguitools.gui_split.Split.proceed(), draftguitools.gui_patharray.PathArray.proceed(), Gui::UIntSpinBox.resizeEvent(), Gui::IntSpinBox.resizeEvent(), Gui::QuantitySpinBox.resizeEvent(), Gui::DoubleSpinBox.resizeEvent(), Gui::ExpLineEdit.resizeEvent(), draftguitools.gui_rotate.Rotate.rotate_object(), draftguitools.gui_scale.Scale.scale_object(), draftguitools.gui_scale.Scale.scale_with_clone(), Gui::Dialog::DlgSettingsColorGradientImp.setRange(), Gui::PropertyEditor::PropertyIntegerItem.toString(), Gui::PropertyEditor::PropertyIntegerConstraintItem.toString(), and Gui::SoFCOffscreenRenderer.writeToImageFile().
◆ tup()
def DraftVecUtils.tup | ( | u, | |
array = False |
|||
) |
References DraftVecUtils.typecheck().
Referenced by draftguitools.gui_trackers.dimTracker.calc(), Part::TopoShapePy.distToShape(), importDXF.export(), importDXF.getArcData(), App::PropertyLinkSub.getPyObject(), App::PropertyLinkSubList.getPyObject(), App::PropertyXLinkSubList.getPyObject(), FemGui::ViewProviderFemMeshPy.getVisibleElementFaces(), importIFC.insert(), ArchFrame.makeFrame(), Part::TopoShapePy.makeShapeFromMesh(), ArchComponent.Component.onChanged(), draftobjects.array.polar_placements(), draftguitools.gui_trackers.boxTracker.pos(), draftfunctions.rotate.rotate(), draftguitools.gui_trackers.ghostTracker.rotate(), and importDXF.writeShape().
◆ typecheck()
def DraftVecUtils.typecheck | ( | args_and_types, | |
name = "?" |
|||
) |
Referenced by DraftVecUtils.angle(), DraftVecUtils.closest(), DraftVecUtils.dist(), DraftVecUtils.equals(), DraftVecUtils.find(), DraftVecUtils.getPlaneRotation(), DraftVecUtils.isColinear(), DraftVecUtils.neg(), DraftVecUtils.project(), DraftVecUtils.removeDoubles(), DraftVecUtils.rotate(), DraftVecUtils.scale(), DraftVecUtils.scaleTo(), and DraftVecUtils.tup().