draftguitools.gui_lineslope.LineSlope Class Reference

Public Member Functions

def accept (self)
 
def Activated (self)
 
def GetResources (self)
 
- Public Member Functions inherited from draftguitools.gui_base.GuiCommandNeedsSelection
def IsActive (self)
 
def Activated (self)
 
def IsActive (self)
 

Public Attributes

 spinbox
 
- Public Attributes inherited from draftguitools.gui_base.GuiCommandSimplest
 command_name
 
 doc
 

Detailed Description

Gui Command for the Line slope tool.

For a line in the XY plane, it changes the height of one of its points
to create a sloped line.

To Do
-----
Make it work also with lines lying on the YZ and XZ planes,
or in an arbitrary plane, for which the normal is known.

Member Function Documentation

◆ accept()

def draftguitools.gui_lineslope.LineSlope.accept (   self)
Execute when clicking the OK button or pressing Enter key.

It changes the slope of the line that lies on the XY plane.

TODO: make it work also with lines lying on the YZ and XZ planes.

References App::DynamicProperty::PropData.doc, App::RelabelDocumentExpressionVisitor.doc, App::LinkBaseExtension::PropInfo.doc, Py::PythonType.doc(), ExpressionCompleterModel::Info.doc, Gui::GraphvizView.doc, ItemInfo.doc, ItemInfo2.doc, importIFClegacy.IfcEntity.doc, draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.doc, draftguitools.gui_base.GuiCommandSimplest.doc, draftguitools.gui_base.GuiCommandBase.doc, draftguitools.gui_base_original.DraftTool.doc, drafttests.test_airfoildat.DraftAirfoilDAT.doc, drafttests.test_creation.DraftCreation.doc, drafttests.test_dwg.DraftDWG.doc, drafttests.test_dxf.DraftDXF.doc, drafttests.test_modification.DraftModification.doc, drafttests.test_oca.DraftOCA.doc, drafttests.test_pivy.DraftPivy.doc, drafttests.test_svg.DraftSVG.doc, WorkingPlane.Plane.doc, Import::ImportOCAF.doc, Import::ImportXCAF.doc, Import::ImportOCAFAssembly.doc, MeshPartGui::Mesh2ShapeGmsh::Private.doc, PartGui::SectionCut.doc, PartGui::FaceColors::Private.doc, PartDesignGui::ComboLinks.doc, Mod.PartDesign.WizardShaft.Shaft.Shaft.doc, Mod.PartDesign.WizardShaft.WizardShaft.TaskWizardShaft.doc, PathTests.TestCentroidPost.TestCentroidPost.doc, PathTests.TestGrblPost.TestGrblPost.doc, PathTests.TestLinuxCNCPost.TestLinuxCNCPost.doc, PathTests.TestMach3Mach4Post.TestMach3Mach4Post.doc, PathTests.TestPathAdaptive.TestPathAdaptive.doc, PathTests.TestPathDrillable.TestPathDrillable.doc, PathTests.TestPathHelix.TestPathHelix.doc, PathTests.TestPathHelpers.TestPathHelpers.doc, PathTests.TestPathPost.TestBuildPostList.doc, PathTests.TestPathPost.TestOutputNameSubstitution.doc, PathTests.TestPathPropertyBag.TestPathPropertyBag.doc, PathTests.TestPathSetupSheet.TestPathSetupSheet.doc, PathTests.TestPathStock.TestPathStock.doc, PathTests.TestPathToolController.TestPathToolController.doc, PathTests.TestPathUtil.TestPathUtil.doc, PathTests.TestRefactoredCentroidPost.TestRefactoredCentroidPost.doc, PathTests.TestRefactoredGrblPost.TestRefactoredGrblPost.doc, PathTests.TestRefactoredLinuxCNCPost.TestRefactoredLinuxCNCPost.doc, PathTests.TestRefactoredMach3Mach4Post.TestRefactoredMach3Mach4Post.doc, PathTests.TestRefactoredTestPost.TestRefactoredTestPost.doc, Sandbox::CustomAddObjectEvent.doc, Sandbox::CustomRemoveObjectEvent.doc, Sandbox::CustomRecomputeEvent.doc, Sandbox::DocumentSaverThread.doc, Mod.Show.SceneDetail.SceneDetail.doc, Mod.Show.SceneDetails.Camera.Camera.doc, Mod.Show.SceneDetails.ClipPlane.ClipPlane.doc, Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.doc, Mod.Show.SceneDetails.Pickability.Pickability.doc, Mod.Show.SceneDetails.VProperty.VProperty.doc, TestSpreadsheet.SpreadsheetCases.doc, TestSpreadsheetGui.SpreadsheetGuiCases.doc, Commands.TemplatePyMod_Cmd2.doc, Gui::ExpressionSpinBox.spinbox, and draftguitools.gui_lineslope.LineSlope.spinbox.

Referenced by femexamples.examplesgui.FemExamples.clicked(), femexamples.examplesgui.FemExamples.double_clicked(), ArchComponent.ComponentTaskPanel.editObject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary.toolEdit().

◆ Activated()

◆ GetResources()

def draftguitools.gui_lineslope.LineSlope.GetResources (   self)
Set icon, menu and tooltip.

References draftutils.translate.QT_TRANSLATE_NOOP.

Member Data Documentation

◆ spinbox

draftguitools.gui_lineslope.LineSlope.spinbox

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