| |
- __builtin__.object
-
- PathContainer
-
- CutPath
- DoubleColumn
- DoubleColumn
- QuadColumn
- QuadColumn
- StepList
class CutPath(PathContainer) |
|
only one columns that contains bytes |
|
- Method resolution order:
- CutPath
- PathContainer
- __builtin__.object
Methods defined here:
- __init__(self, arg)
- itemToString(self, item)
- stringToItem(self, s)
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
Double = class DoubleColumn(PathContainer) |
|
A List with two values -> two columns
Fits to most standard foils.
Alias name is Double |
|
- Method resolution order:
- DoubleColumn
- PathContainer
- __builtin__.object
Methods defined here:
- __init__(self, arg, Scale=1)
- clean(self)
- clean up
remove two following lines that are the same
- composeQuad(self, double, points=1000)
- tries to compose Quad from two different shaped Doubles
call q=d1.composeQuad(d2)
Does a spline Interpolation to create two doubles with
the same point amount and merges them together to a quad.
The quad is returned.
A known problem is that both sides don't synchronize well,
when the Doubles differ much in their spape. The Doubles are
equalized over their length and then put together. A possible
Trick is: scale one Double in one direction, merge the quad
and scale the direction of the side you scaled before back to
the correct size.
- convertToQuad(self)
- returns a QuadColumn
The Quad has the Double on both sides.
- convertToQuadColumn = convertToQuad(self)
- getLength(self)
- return Length of the path
- itemToString(self, item)
- mergeToQuad(self, double)
- merges two doubles with the same length and returns a QuadColumn
- plView(self)
- pyton lab viewer
- scale(self, xs, ys)
- Scale the Double with in x and y direction.
- splineInt(self, amount=1000, smooth=0, degree=3)
- returns a new approximated double
the point density is equalized
- stringToItem(self, s)
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
class DoubleColumn(PathContainer) |
|
A List with two values -> two columns
Fits to most standard foils.
Alias name is Double |
|
- Method resolution order:
- DoubleColumn
- PathContainer
- __builtin__.object
Methods defined here:
- __init__(self, arg, Scale=1)
- clean(self)
- clean up
remove two following lines that are the same
- composeQuad(self, double, points=1000)
- tries to compose Quad from two different shaped Doubles
call q=d1.composeQuad(d2)
Does a spline Interpolation to create two doubles with
the same point amount and merges them together to a quad.
The quad is returned.
A known problem is that both sides don't synchronize well,
when the Doubles differ much in their spape. The Doubles are
equalized over their length and then put together. A possible
Trick is: scale one Double in one direction, merge the quad
and scale the direction of the side you scaled before back to
the correct size.
- convertToQuad(self)
- returns a QuadColumn
The Quad has the Double on both sides.
- convertToQuadColumn = convertToQuad(self)
- getLength(self)
- return Length of the path
- itemToString(self, item)
- mergeToQuad(self, double)
- merges two doubles with the same length and returns a QuadColumn
- plView(self)
- pyton lab viewer
- scale(self, xs, ys)
- Scale the Double with in x and y direction.
- splineInt(self, amount=1000, smooth=0, degree=3)
- returns a new approximated double
the point density is equalized
- stringToItem(self, s)
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
class PathContainer(__builtin__.object) |
|
Standard methods for it's subclasses
Every defined Function applies to all Subclasses:
Quads, Doubles, StepLists, CutPathes
abstract class |
|
Methods defined here:
- __init__(self, arg)
- Eats filenames, ContentLists, PathContainers and 'edit'
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- itemToString(self, nothing)
- abstract!
converts a list item into a string
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- stringToItem(self, nothing)
- abstract
tries to convert a list item into a string
- writeToFile(self, filename)
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
Quad = class QuadColumn(PathContainer) |
|
A List with four values -> four columns
Represents a synchronized cut Path.
Alias name is Quad |
|
- Method resolution order:
- QuadColumn
- PathContainer
- __builtin__.object
Methods defined here:
- ViView(self, arg=None)
- Python Visual Viewer
be warned due to an unkown problem ViView exits the comlete session after closing.
- __init__(self, arg)
- addOffset(self, x, y, u, v)
- Shift: Add an constant offset offset
- appendRelativePath(self)
- implement me
- clean(self)
- clean up
remove two following lines that are the same
- convertToDoubles(self)
- returns two doubles
call: d1,d2=q.convertToDoubles()
- convertToStepList(self, mach)
- returns an interpolated StepList in machine resolution
- displace(self, dxy, duv)
- displace path : Burn away correction ....
returns the new quad
test version!!!
Better Algorithm needed.
- getDimension(self)
- returns the object size
- getLength(self)
- return Length of both pathes
- interpolateLinear(self)
- test it/fix it
do not use
- interpolateLinearDummy(self)
- itemToString(self, item)
- mirror_Units(self)
- mirror units
flip xy and uv
- mirror_xu(self, x, u)
- mirror at a vertical planes mounted at x and u
mirror_xu(0,0) : mirror vertically at zero
- mirror_yv(self, y, v)
- mirror at a horizontal planes mounted at y and v
mirror_yv(0,0) : mirror horizontally at zero
- plView(self)
- use pyton lab viewer to open the quad
- plView3d(self)
- not ready
- repeat(self, n, x, y, u, v)
- repeats the quad n times by adding the offset xyuv every time
the new quad is returned
- rotate(self, xorgin, yorgin, uorgin, vorgin, xyangle, uvangle)
- rotate around the given orgins
- scale(self, xs, ys, us, vs)
- Scale the Double with in x,y,u and v direction.
- setOffset(self, x, y, u, v)
- shifts the begin of the quad to offset
- setZeroOffset(self, side=None)
- shifts the beginsof the quad to zero
Parameters:
side= [ none | 'xy' | 'uv'| 'xyuv' ]
- splineInt(self, amount=1000, smooth=0, degree=3)
- returns a new interpolated Quad with equalized
point density using "amount=..." points
to use a linear interpolation provide degree=1 as parameter
- split(self)
- split into returned quads
not implemented
- stringToItem(self, s)
- view(self)
- uses the built in viewer to open the quad
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
class QuadColumn(PathContainer) |
|
A List with four values -> four columns
Represents a synchronized cut Path.
Alias name is Quad |
|
- Method resolution order:
- QuadColumn
- PathContainer
- __builtin__.object
Methods defined here:
- ViView(self, arg=None)
- Python Visual Viewer
be warned due to an unkown problem ViView exits the comlete session after closing.
- __init__(self, arg)
- addOffset(self, x, y, u, v)
- Shift: Add an constant offset offset
- appendRelativePath(self)
- implement me
- clean(self)
- clean up
remove two following lines that are the same
- convertToDoubles(self)
- returns two doubles
call: d1,d2=q.convertToDoubles()
- convertToStepList(self, mach)
- returns an interpolated StepList in machine resolution
- displace(self, dxy, duv)
- displace path : Burn away correction ....
returns the new quad
test version!!!
Better Algorithm needed.
- getDimension(self)
- returns the object size
- getLength(self)
- return Length of both pathes
- interpolateLinear(self)
- test it/fix it
do not use
- interpolateLinearDummy(self)
- itemToString(self, item)
- mirror_Units(self)
- mirror units
flip xy and uv
- mirror_xu(self, x, u)
- mirror at a vertical planes mounted at x and u
mirror_xu(0,0) : mirror vertically at zero
- mirror_yv(self, y, v)
- mirror at a horizontal planes mounted at y and v
mirror_yv(0,0) : mirror horizontally at zero
- plView(self)
- use pyton lab viewer to open the quad
- plView3d(self)
- not ready
- repeat(self, n, x, y, u, v)
- repeats the quad n times by adding the offset xyuv every time
the new quad is returned
- rotate(self, xorgin, yorgin, uorgin, vorgin, xyangle, uvangle)
- rotate around the given orgins
- scale(self, xs, ys, us, vs)
- Scale the Double with in x,y,u and v direction.
- setOffset(self, x, y, u, v)
- shifts the begin of the quad to offset
- setZeroOffset(self, side=None)
- shifts the beginsof the quad to zero
Parameters:
side= [ none | 'xy' | 'uv'| 'xyuv' ]
- splineInt(self, amount=1000, smooth=0, degree=3)
- returns a new interpolated Quad with equalized
point density using "amount=..." points
to use a linear interpolation provide degree=1 as parameter
- split(self)
- split into returned quads
not implemented
- stringToItem(self, s)
- view(self)
- uses the built in viewer to open the quad
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
|
class StepList(PathContainer) |
|
equal to a Quads, but contains absolute motor steps |
|
- Method resolution order:
- StepList
- PathContainer
- __builtin__.object
Methods defined here:
- __init__(self, arg)
- convertToCutPath(self, mach)
- returns a CutPath
- itemToString(self, item)
- stringToItem(self, s)
- view(self)
- not recommended
because StepLists can be very big
Methods inherited from PathContainer:
- appendItem(self, item)
- appends an item to the end
- appendPath(self, path)
- append the given Path to the Path
- edit(self, *arg)
- calls an external editor (gedit)
Uses an external editor to edit the file represetatation of the path.
If you want you can give the editor to use as argument, maybe 'kwrite'
- getContentList(self)
- getFilename(self)
- getItem(self, i=0)
- getListSize(self)
- getNextItem(self)
- for internal use
uses a generator to get the next in the list
- nextGenerator(self)
- for internal use
- printContent(self)
- readFromFile(self, filename)
- reverse(self)
- reverse the complete Path
- save(self)
- uses the filename the path was read from, to save it back
- writeToFile(self, filename)
Data and other attributes inherited from PathContainer:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'PathContainer' objects>
- list of weak references to the object (if defined)
| |