MCPcopy Create free account

hub / github.com/LiciaHe/threadPlotter / functions

Functions144 in github.com/LiciaHe/threadPlotter

↓ 10 callersMethodgetBBox
this bbox is x1,x2,y1,y2 though :return:
threadPlotter/threadPlotter/TP_structure/PathList.py:70
↓ 7 callersMethodexportPlainList
(self,precision=None)
threadPlotter/threadPlotter/TP_structure/PathList.py:134
↓ 6 callersMethodcopy
(self)
threadPlotter/threadPlotter/TP_structure/Point.py:24
↓ 6 callersMethodgetFullSaveLoc
(self, additionalTag="")
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:186
↓ 5 callersFunctioncalculateColorDifference
:param c1: rgb triplets :param c2: :return:
threadPlotter/threadPlotter/TP_punchneedle/threadColorManagement.py:10
↓ 4 callersMethodaddPath
(self,toAppend,d,baseSoup,additionalAttr)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:120
↓ 4 callersFunctionapplyAttrs
(soup,attrs)
threadPlotter/threadPlotter/TP_utils/svg.py:31
↓ 3 callersMethodaddMoveTo
(self,dotCenter, writerIdx, withMargin=True)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:114
↓ 3 callersMethoddepthSpeedCalculator
given distance, calculate speed and depth :param distance: a list of distances (in px) :return:
threadPlotter/threadPlotter/ThreadPlotter.py:33
↓ 3 callersFunctiongetStraightPath
(pointArr,closed=False)
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:53
↓ 3 callersMethodinitPunchGroup
make a thread group, append to storage. :param startingPathPoints: :return: index of this threadGroup
threadPlotter/threadPlotter/ThreadPlotter.py:89
↓ 3 callersMethodsaveFiles
(self)
threadPlotter/threadPlotter/ThreadPlotter.py:82
↓ 3 callersMethodupdateOptions
update setting manually assume axidraws are initiated :param req: :return:
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:88
↓ 2 callersFunctionaddComponent
(soupBase,base,tagName,attrs)
threadPlotter/threadPlotter/TP_utils/svg.py:71
↓ 2 callersMethodaddDrawPt
use only up and down :param dotCenter: :param toolIdx: :return:
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:104
↓ 2 callersMethodaddDrawing
(self,pathPoints,writerIdx)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:126
↓ 2 callersMethodcalculateAxidrawPosition
(self,pt,withMargin=True)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:79
↓ 2 callersMethodconvertCubicIntoLine
(self,seg,segLength=5)
threadPlotter/threadPlotter/TP_structure/PathList.py:139
↓ 2 callersMethodcopy
:return: a deep copy
threadPlotter/threadPlotter/TP_structure/PathList.py:62
↓ 2 callersMethodgetRandomToolId
(self)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:72
↓ 2 callersMethodisNumerical
(self,val)
threadPlotter/threadPlotter/TP_structure/Point.py:33
↓ 2 callersMethodmatchColor
given a color list (list of rgb tuples), match the best thread color and assign to this threadPlotter object :param colorList:
threadPlotter/threadPlotter/ThreadPlotter.py:168
↓ 2 callersMethodreplaceColors
(self,lim,dotColors)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:142
↓ 2 callersMethodroughEquals
(self,pt2)
threadPlotter/threadPlotter/TP_structure/Point.py:90
↓ 2 callersFunctionroundPoint
(point)
threadPlotter/threadPlotter/TP_utils/basic.py:56
↓ 2 callersMethodsaveSvg
(self, soup, additionalTag="")
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:188
↓ 2 callersMethodscalePointAccordingToCenter
(self, center, scaleX,scaleY,inPlace=False)
threadPlotter/threadPlotter/TP_structure/Point.py:82
↓ 2 callersMethodtoList
return a clone of the pt list :return:
threadPlotter/threadPlotter/TP_structure/Point.py:26
↓ 2 callersMethodtranslate
(self,tx,ty)
threadPlotter/threadPlotter/TP_structure/PathList.py:159
↓ 2 callersFunctionunitConvert
(val,unit,i2p=96)
threadPlotter/threadPlotter/TP_utils/basic.py:23
↓ 1 callersMethodaddLineTo
(self,pt,writerIdx,withMargin=True)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:117
↓ 1 callersMethodappendPoint
(self,x,y)
threadPlotter/threadPlotter/TP_structure/PathList.py:53
↓ 1 callersFunctioncalculateDistBetweenPoints
(p1, p2)
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:100
↓ 1 callersMethodcloseFiles
Assuming all information has been stored in the list: self.punchGroupCollection for each punch group, process the information
threadPlotter/threadPlotter/ThreadPlotter.py:46
↓ 1 callersMethodcloseFiles
(self)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:163
↓ 1 callersFunctionconvertLinePathToDots
(linePts,gap,innerDist=1,masterBoundary=None,addGap=False,locOnly=False)
threadPlotter/threadPlotter/TP_utils/fillPath.py:8
↓ 1 callersFunctionconvertListToDotStr
Given a list of points, construct mini "dots" that are actually short lines (controlled by dist) :param dotList: :param dist: :return
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:122
↓ 1 callersFunctionconvertPathsToConnectedDots
create punchNeedle ready path. connect all paths together into one, and change it to dots :param pathPoints:(x,y,w,h, :return:
threadPlotter/threadPlotter/TP_utils/fillPath.py:46
↓ 1 callersMethodexportOrderedGrid
(self)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:162
↓ 1 callersMethodexportToPunchNeedleReadyPoints
segment the punch groups by the segment length Tasks: 1. for each segment in the :return: a list of PunchPoint object
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:55
↓ 1 callersMethodexportTrailToAnotherPunchGroup
return a list of trail point centers that connects to pucnh group 2 :param punchGroup2: :return:
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:81
↓ 1 callersMethodgenerateColorPlan
export the color plan into svg and json files :return:
threadPlotter/threadPlotter/ThreadPlotter.py:100
↓ 1 callersMethodgenerateRandomTools
random colored tools :param toolCount: :return:
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:48
↓ 1 callersFunctiongetAverageColor
return avg rgb :param c1: 0-255 triplets :param c2: :param c3: :return:
threadPlotter/threadPlotter/updateColor.py:35
↓ 1 callersFunctiongetBoundaryBoxPtsVersion
RETURN MINMAX :param pathPoint: :return:
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:15
↓ 1 callersMethodgetCenter
XMIN,XMAX YMIN YMAX :return:
threadPlotter/threadPlotter/TP_structure/PathList.py:90
↓ 1 callersMethodgetIntensities
(self,pixelization_length, pixels, i, j)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:15
↓ 1 callersMethodgetIntensities_noAvg
(self,pixelization_length, pixels, i, j)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:30
↓ 1 callersMethodgetPtByIdx
(self,idx)
threadPlotter/threadPlotter/TP_structure/PathList.py:67
↓ 1 callersMethodhalftone_noAvg
(self, x_units, y_units, pixelization_length, pixels)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:67
↓ 1 callersMethodinitBasedOnSettings
(self, settings, nameKey="name", specKey="spec", basicSettingKey="basic")
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:23
↓ 1 callersMethodinitNewAxidrawWriter
(self, additionalTag="")
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:134
↓ 1 callersMethodinitSpeedAndDepthMap
generate linear mapping functions for the depth and speed :return:
threadPlotter/threadPlotter/ThreadPlotter.py:17
↓ 1 callersMethodinitStorage
(self, makeDate=True)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:16
↓ 1 callersFunctionmakeColorCombinations
take the csv for embroidery thread color and build a python pkl. store locally :return:
threadPlotter/threadPlotter/updateColor.py:50
↓ 1 callersFunctionmakeExportReadySvg
(baseSoup,repList=None)
threadPlotter/threadPlotter/TP_utils/svg.py:6
↓ 1 callersFunctionmakeSVGwithBasic
(wh,margins,id="main_g",innerBox=False,outerBox=False)
threadPlotter/threadPlotter/TP_utils/svg.py:34
↓ 1 callersFunctionmakeSvg
()
threadPlotter/threadPlotter/TP_utils/svg.py:28
↓ 1 callersMethodpickRandomThreadColors
pick random thread colors (contains potential color mixing) :param ct: :return:
threadPlotter/threadPlotter/ThreadPlotter.py:155
↓ 1 callersFunctionpressIntoABox
in place change so that nothing goes out of boundary :param points: :param xmin: :param ymin: :param xmax: :param ymax: :
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:33
↓ 1 callersFunctionrgbStrToTriplet
(rgbStr)
threadPlotter/threadPlotter/TP_punchneedle/threadColorManagement.py:20
↓ 1 callersMethodrotateAroundPoint
(self,center,degree)
threadPlotter/threadPlotter/TP_structure/PathList.py:168
↓ 1 callersMethodsaveImg
(self,loc)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:139
↓ 1 callersMethodwriteEmptyUpdate
(self,writerIdx)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:85
↓ 1 callersMethodx
(self)
threadPlotter/threadPlotter/TP_structure/Point.py:35
↓ 1 callersMethody
(self)
threadPlotter/threadPlotter/TP_structure/Point.py:37
Method__init__
(self,settings,batchName="",svg=True,toolSvg=True)
threadPlotter/threadPlotter/ThreadPlotter.py:176
Method__init__
(self,settings,batchName="",svg=True,toolSvg=True)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:192
Method__init__
Each pathList should contain one Path :param starterArray: an array to be converted into PathList
threadPlotter/threadPlotter/TP_structure/PathList.py:10
Method__init__
(self, *args)
threadPlotter/threadPlotter/TP_structure/Point.py:7
Method__init__
(self,x,y)
threadPlotter/threadPlotter/TP_structure/Point.py:15
Method__init__
(self, *args)
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:6
Method__init__
(self, *args)
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:14
Method__init__
construct pathList Can only contain a path element :param path:
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:27
Method__init__
convert :param saveLoc: :param imgName: :param imgSize: :param gridSize:
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:89
Method__len__
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:60
Method__str__
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:204
Method__str__
(self)
threadPlotter/threadPlotter/TP_structure/Point.py:12
Method__str__
(self)
threadPlotter/threadPlotter/TP_structure/Point.py:20
Method__str__
(self)
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:11
Method__str__
(self)
threadPlotter/threadPlotter/TP_structure/PunchGroup.py:19
MethodaddComment
(self, comment, toolIdx)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:132
MethodaddPenDown
(self,writerIdx)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:101
MethodaddPenUp
(self,writerIdx)
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:99
MethodadjustOriginToCenter
this will translate everything along the 0,0 point :return: not automatically called by itself
threadPlotter/threadPlotter/TP_structure/PathList.py:118
MethodadjustPathToLeftTop
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:130
MethodappendPoints
(self,pointList)
threadPlotter/threadPlotter/TP_structure/PathList.py:56
MethodappendToAxidrawCollection
adding a path into the path collection :param pathPoints: :param toolIdx: :return:
threadPlotter/threadPlotter/DirectAuthoringGenerator.py:148
FunctioncalculatePathLength
(pathPoints)
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:102
MethoddepthSpeedCalculator_batch
(self,distance)
threadPlotter/threadPlotter/ThreadPlotter.py:28
MethodexportDelaunayPath
(self)
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:195
MethodexportOrderedGridListVersion
reconstruct ordered grid :return:
threadPlotter/threadPlotter/TP_punchneedle/GridImgConverter.py:180
FunctionexportThreadColorListPKL
export list of thread accordingn to settings according to here: https://pypi.org/project/pyembroidery/ :return:
threadPlotter/threadPlotter/updateColor.py:8
MethodexportToStr
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:201
Methodgenerate
sample generation :return:
threadPlotter/threadPlotter/ThreadPlotter.py:148
MethodgetBBoxWHversion
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:84
FunctiongetBoundaryWHversion
return x,y,w,h :param pathPoint: :return:
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:26
MethodgetLength
(self)
threadPlotter/threadPlotter/TP_structure/PathList.py:88
FunctiongetMidPoint
(pt1,pt2)
threadPlotter/threadPlotter/TP_utils/shapeEditing.py:5
FunctiongetOrDefault
(storage,key,default=None)
threadPlotter/threadPlotter/TP_utils/basic.py:12
next →1–100 of 144, ranked by callers