typerig.proxy.objects.contour
# MODULE: Typerig / Proxy / Contour (Objects)
# -----------------------------------------------------------
# (C) Vassil Kateliev, 2019-2020 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#------------------------------------------------------------
# www.typerig.com
Classes
-
Extended representation of the Proxy Contour, adding some advanced functionality.
Constructor:
eContour(flContour)
Methods
- alignTo(self, entity, alignMode='', align=(True, True))
-
Align current contour.
Arguments:
entity ()
alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS
- asCoord(self)
-
Returns Coord object of the Bottom lest corner.
- getNext(self)
-
- getPrev(self)
-
- init(self, contour)
-
- repr(self)
-
- draw(self, pen, transform=None)
-
Utilizes the Pen protocol
- isAllSelected(self)
-
Is the whole contour selected
- isCCW(self)
-
- isCW(self)
-
- reverse(self)
-
- rotate(self, deg)
-
- scale(self, sx, sy)
-
- setCCW(self)
-
- setCW(self)
-
- slant(self, deg)
-
- translate(self, dx, dy)
-
Descriptors from pContour
- dict
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
-
Proxy to flContour object
Constructor:
pContour(flContour)
Attributes:
.fl (flContour): Original flContour
Methods
- init(self, contour)
-
- repr(self)
-
- draw(self, pen, transform=None)
-
Utilizes the Pen protocol
- isAllSelected(self)
-
Is the whole contour selected
- isCCW(self)
-
- isCW(self)
-
- reverse(self)
-
- rotate(self, deg)
-
- scale(self, sx, sy)
-
- setCCW(self)
-
- setCW(self)
-
- slant(self, deg)
-
- translate(self, dx, dy)
-
Descriptors
- dict
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
pContour
Proxy to flContour object
Constructor:
pContour(flContour)
Attributes:
.fl (flContour): Original flContour
Methods
- __init__(self, contour)
-
- __repr__(self)
-
- draw(self, pen, transform=None)
-
Utilizes the Pen protocol
- isAllSelected(self)
-
Is the whole contour selected
- isCCW(self)
-
- isCW(self)
-
- reverse(self)
-
- rotate(self, deg)
-
- scale(self, sx, sy)
-
- setCCW(self)
-
- setCW(self)
-
- slant(self, deg)
-
- translate(self, dx, dy)
-
Descriptors
- __dict__
-
dictionary for instance variables (if defined)
- __weakref__
-
list of weak references to the object (if defined)
isAllSelected
- typerig.proxy.objects.contour.pContour.isAllSelected = isAllSelected(self) unbound typerig.proxy.objects.contour.pContour method
-
Is the whole contour selected
draw
- typerig.proxy.objects.contour.pContour.draw = draw(self, pen, transform=None) unbound typerig.proxy.objects.contour.pContour method
-
Utilizes the Pen protocol
eContour
Extended representation of the Proxy Contour, adding some advanced functionality.
Constructor:
eContour(flContour)
Methods
- alignTo(self, entity, alignMode='', align=(True, True))
-
Align current contour.
Arguments:
entity ()
alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS
- asCoord(self)
-
Returns Coord object of the Bottom lest corner.
- getNext(self)
-
- getPrev(self)
-
- __init__(self, contour)
-
- __repr__(self)
-
- draw(self, pen, transform=None)
-
Utilizes the Pen protocol
- isAllSelected(self)
-
Is the whole contour selected
- isCCW(self)
-
- isCW(self)
-
- reverse(self)
-
- rotate(self, deg)
-
- scale(self, sx, sy)
-
- setCCW(self)
-
- setCW(self)
-
- slant(self, deg)
-
- translate(self, dx, dy)
-
Descriptors from pContour
- __dict__
-
dictionary for instance variables (if defined)
- __weakref__
-
list of weak references to the object (if defined)
asCoord
- typerig.proxy.objects.contour.eContour.asCoord = asCoord(self) unbound typerig.proxy.objects.contour.eContour method
-
Returns Coord object of the Bottom lest corner.
alignTo
- typerig.proxy.objects.contour.eContour.alignTo = alignTo(self, entity, alignMode='', align=(True, True)) unbound typerig.proxy.objects.contour.eContour method
-
Align current contour.
Arguments:
entity ()
alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS