drafttests.test_modification.DraftModification Class Reference

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def test_circular_array (self)
 
def test_clone (self)
 
def test_copy (self)
 
def test_downgrade (self)
 
def test_draft_to_drawing (self)
 
def test_draft_to_sketch (self)
 
def test_extend (self)
 
def test_join (self)
 
def test_mirror (self)
 
def test_move (self)
 
def test_offset_closed (self)
 
def test_offset_open (self)
 
def test_path_array (self)
 
def test_point_array (self)
 
def test_polar_array (self)
 
def test_rectangular_array (self)
 
def test_rotate (self)
 
def test_shape_2d_view (self)
 
def test_split (self)
 
def test_stretch (self)
 
def test_trim (self)
 
def test_upgrade (self)
 
def test_wire_to_bspline (self)
 

Public Attributes

 doc
 
 doc_name
 

Detailed Description

Test Draft modification tools.

Member Function Documentation

◆ setUp()

def drafttests.test_modification.DraftModification.setUp (   self)
Set up a new document to hold the tests.

This is executed before every test, so we create a document
to hold the objects.

◆ tearDown()

def drafttests.test_modification.DraftModification.tearDown (   self)

◆ test_circular_array()

def drafttests.test_modification.DraftModification.test_circular_array (   self)
Create a rectangle, and a circular array.

◆ test_clone()

def drafttests.test_modification.DraftModification.test_clone (   self)
Create a box, then create a clone of it.

Test for a bug introduced by changes in attachment code.

◆ test_copy()

def drafttests.test_modification.DraftModification.test_copy (   self)
Create a line, then copy and move it.

◆ test_downgrade()

def drafttests.test_modification.DraftModification.test_downgrade (   self)
Downgrade a closed Draft Wire into three simple Part Edges.

◆ test_draft_to_drawing()

def drafttests.test_modification.DraftModification.test_draft_to_drawing (   self)
Create a solid, and then a projected view in a Drawing page.

◆ test_draft_to_sketch()

def drafttests.test_modification.DraftModification.test_draft_to_sketch (   self)
Convert a Draft object to a Sketch and back.

◆ test_extend()

def drafttests.test_modification.DraftModification.test_extend (   self)
Extend a line. NOT IMPLEMENTED.

◆ test_join()

def drafttests.test_modification.DraftModification.test_join (   self)
Join two lines into a single Draft Wire.

◆ test_mirror()

def drafttests.test_modification.DraftModification.test_mirror (   self)
Create a rectangle, then a mirrored shape.

◆ test_move()

def drafttests.test_modification.DraftModification.test_move (   self)
Create a line and move it.

◆ test_offset_closed()

def drafttests.test_modification.DraftModification.test_offset_closed (   self)
Create a rectangle, then produce an offset copy.

◆ test_offset_open()

def drafttests.test_modification.DraftModification.test_offset_open (   self)
Create a wire, then produce an offset copy.

◆ test_path_array()

def drafttests.test_modification.DraftModification.test_path_array (   self)
Create a wire, a polygon, and a path array.

◆ test_point_array()

def drafttests.test_modification.DraftModification.test_point_array (   self)
Create a polygon, various point, and a point array.

◆ test_polar_array()

def drafttests.test_modification.DraftModification.test_polar_array (   self)
Create a rectangle, and a polar array.

◆ test_rectangular_array()

def drafttests.test_modification.DraftModification.test_rectangular_array (   self)
Create a rectangle, and a rectangular array.

◆ test_rotate()

def drafttests.test_modification.DraftModification.test_rotate (   self)
Create a line, then rotate it.

◆ test_shape_2d_view()

def drafttests.test_modification.DraftModification.test_shape_2d_view (   self)
Create a prism and then a 2D projection of it.

◆ test_split()

def drafttests.test_modification.DraftModification.test_split (   self)
Split a Draft Wire into two Draft Wires.

◆ test_stretch()

def drafttests.test_modification.DraftModification.test_stretch (   self)
Stretch a line. NOT IMPLEMENTED.

◆ test_trim()

def drafttests.test_modification.DraftModification.test_trim (   self)
Trim a line. NOT IMPLEMENTED.

◆ test_upgrade()

def drafttests.test_modification.DraftModification.test_upgrade (   self)
Upgrade two Draft Lines into a closed Draft Wire.

◆ test_wire_to_bspline()

def drafttests.test_modification.DraftModification.test_wire_to_bspline (   self)
Convert a polyline to BSpline and back.

Member Data Documentation

◆ doc

drafttests.test_modification.DraftModification.doc

Referenced by WorkingPlane.Plane.alignToPointAndAxis(), WorkingPlane.Plane.alignToPointAndAxis_SVG(), Mod.Show.SceneDetails.Pickability.Pickability.apply_data(), Mod.Show.SceneDetails.VProperty.VProperty.apply_data(), Mod.Show.SceneDetails.ClipPlane.ClipPlane.apply_data(), Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.apply_data(), importSVG.svgHandler.characters(), importSVG.svgHandler.endElement(), Mod.Show.SceneDetail.SceneDetail.full_key(), WorkingPlane.Plane.reset(), Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.scene_value(), Mod.Show.SceneDetails.Pickability.Pickability.scene_value(), Mod.Show.SceneDetails.VProperty.VProperty.scene_value(), Mod.Show.SceneDetail.SceneDetail.set_doc(), PathTests.TestPathToolController.TestPathToolController.tearDown(), PathTests.TestPathHelix.TestPathHelix.tearDown(), PathTests.TestPathSetupSheet.TestPathSetupSheet.tearDown(), TestSpreadsheet.SpreadsheetCases.tearDown(), PathTests.TestPathUtil.TestPathUtil.test00(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test00(), PathTests.TestPathUtil.TestPathUtil.test01(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test01(), PathTests.TestPathUtil.TestPathUtil.test02(), PathTests.TestPathUtil.TestPathUtil.test03(), PathTests.TestPathHelix.TestPathHelix.test03(), PathTests.TestPathUtil.TestPathUtil.test04(), PathTests.TestPathHelix.TestPathHelix.test04(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test13(), TestSpreadsheet.SpreadsheetCases.testAggregates(), TestSpreadsheet.SpreadsheetCases.testAlias(), TestSpreadsheet.SpreadsheetCases.testAmbiguousAlias(), TestSpreadsheet.SpreadsheetCases.testClearAlias(), TestSpreadsheet.SpreadsheetCases.testCrossDocumentLinks(), TestSpreadsheet.SpreadsheetCases.testFunctions(), TestSpreadsheet.SpreadsheetCases.testInsertRows(), TestSpreadsheet.SpreadsheetCases.testInvoluteGear(), TestSpreadsheet.SpreadsheetCases.testIssue3128(), TestSpreadsheet.SpreadsheetCases.testIssue3225(), TestSpreadsheet.SpreadsheetCases.testIssue3363(), TestSpreadsheet.SpreadsheetCases.testIssue3432(), TestSpreadsheet.SpreadsheetCases.testMatrix(), TestSpreadsheet.SpreadsheetCases.testNumbers(), TestSpreadsheet.SpreadsheetCases.testPlacementName(), TestSpreadsheet.SpreadsheetCases.testPrecedence(), TestSpreadsheet.SpreadsheetCases.testRelationalOperators(), TestSpreadsheet.SpreadsheetCases.testRemoveRows(), TestSpreadsheet.SpreadsheetCases.testRenameAlias(), TestSpreadsheet.SpreadsheetCases.testRenameAlias2(), TestSpreadsheet.SpreadsheetCases.testRenameAlias3(), TestSpreadsheet.SpreadsheetCases.testSetInvalidAlias(), TestSpreadsheet.SpreadsheetCases.testSetInvalidAlias2(), TestSpreadsheet.SpreadsheetCases.testSketcher(), TestSpreadsheet.SpreadsheetCases.testUnits(), Mod.PartDesign.WizardShaft.Shaft.Shaft.updateConstraint(), Mod.PartDesign.WizardShaft.Shaft.Shaft.updateEdge(), and Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.val().

◆ doc_name


The documentation for this class was generated from the following file:
  • src/Mod/Draft/drafttests/test_modification.py