flNode
fontlab.flNode = class flNode(object)
flNode representation Constructors: flNode() flNode(Node) - make clone flNode(QPointF position[, string nodeType="on"[, int nodeKind=None]]) flNode(double x, double y[, string nodeType="on"[, int nodeKind=None]])
Methods
- __delattr__(...)
-
x.__delattr__('name') <==> del x.name
- __getattribute__(...)
-
x.__getattribute__('name') <==> x.name
- __setattr__(...)
-
x.__setattr__('name', value) <==> x.name = value
- applyTransform(...)
-
applyTransform(QTransform)
- canBeHobby(...)
-
bool canBeHobby()
- canBeSmooth(...)
-
bool canBeSmooth()
- canCollapse(...)
-
bool canCollapse()
- canImprove(...)
-
bool canImprove()
- checkInitHistoryState(...)
-
checkInitHistoryState(uint history_ix)
- checkVectors(...)
-
bool checkVectors()
- clearAboveHistory(...)
-
clearAboveHistory(uint history_ix)
- clearFlags(...)
-
clearFlags()
- clearStored(...)
-
clearStored()
- clone(...)
-
Clone the object
- cloneMapped(...)
-
flNode cloneMapped(QTransform)
- collapseHandles(...)
-
bool collapseHandles()
- convertToCurve(...)
-
bool convertToCurve([bool smooth = false])
- convertToCurves(...)
-
bool convertToCurves()
- convertToLine(...)
-
bool convertToLine()
- createHistoryState(...)
-
createHistoryState(uint history_ix)
- currentHistoryState(...)
-
currentHistoryIx()
- distanceTo(...)
-
double distanceTo(Node/QPointF)
- getProperties(...)
-
Get object's properties list
- getProperty(...)
-
getProperty('key') - get object property by 'key' or number
- getPropertyFloat(...)
-
getPropertyFloat('key') - get float object property by 'key'
- getPropertyInt(...)
-
getPropertyInt('key') - get int object property by 'key'
- hasHistoryState(...)
-
hasHistoryState(uint history_ix)
- historyStates(...)
-
historyStates(bool accepted_state)
- independedAll(...)
-
independedAll()
- initialHistoryState(...)
-
initialHistoryIx()
- isInternal(...)
-
bool isInternal(bool clockwise)
- isInterpolated(...)
-
bool isInterpolated(bool x)
- isSmartAngle(...)
-
bool isSmartAngle()
- removeChild(...)
-
removeChild(flObject)
- removeProperty(...)
-
removeProperty('key')
- restoreHistoryState(...)
-
restoreHistoryState(uint history_ix)
- setExtraLast(...)
-
setExtraLast(bool)
- setNextSmooth(...)
-
setNextSmooth(QPointF base)
- setPrevSmooth(...)
-
setPrevSmooth(QPointF base)
- setProperty(...)
-
setProperty('key', value) - set object property by 'key' or number
- setPropertyFloat(...)
-
setPropertyFloat('key', value) - set float object property by 'key'
- setPropertyInt(...)
-
setPropertyInt('key', value) - set int object property by 'key'
- setSmartAngleEnbl(...)
-
bool setSmartAngleEnbl(bool)
- setSmartSharp(...)
-
bool setSmartSharp([double tension = 0.6])
- smartSetXY(...)
-
smartSetXY(QPointF)
- storeCoordinates(...)
-
storeCoordinates()
- transformBy(...)
-
transformBy(QTransform tx[, QPointF origin=(0, 0)])
- updateSmooth(...)
-
updateSmooth([bool extended_neibh=true])
Static methods
- cloneObject(...)
-
flObject cloneObject(const flObject&);
- createObject(...)
-
flObject/Nothing createObject(int);
- haveObject(...)
-
bool haveObject(uint);
- instanceType(...)
-
int instanceType();
Descriptors
- angle
-
angle
- contour
-
The parent Contour or None if not present
- g2
-
g2
- hasChanges
-
bool
- hasHistoryStates
-
bool
- hobby
-
hobby
- id
-
object id
- index
-
The index of the node in parent's contour (if present, otherwise -1)
- interpolated
-
interpolated
- interpolatedX
-
interpolatedX
- interpolatedY
-
interpolatedY
- isChanged
-
bool
- isNull
-
bool
- isPresent
-
bool
- isReleased
-
bool
- isSelectedAlone
-
bool
- isTerminal
-
bool
- isValid
-
bool
- name
-
object name
- nodeState
-
nodeState
- position
-
Coordinates of the node as QPointF
- preview
-
preview
- refCnt
-
object references count
- scv
-
scv
- selected
-
The selected flag
- smartAngleR
-
smartAngleR
- smooth
-
The smooth flag
- state
-
state
- type
-
The node type
- x
-
The x coordinate of the node
- y
-
The y coordinate of the node
Attributes
- NodeKind = {'ExtraLast': 16384, 'First': 16, 'G2': 4096, 'Hobby': 8192, 'HotSpot': 2048, 'InterpolatedX': 256, 'InterpolatedY': 512, 'KindMask': 65535, 'None': 0, 'Preview': 64, ...}
- NodeType = {'AnyNodeMask': 7, 'Curve': 4, 'Off': 2, 'On': 1}
- __new__ = <built-in method __new__ of type object>
-
T.__new__(S, ...) -> a new object with type S, a subtype of T
- flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}
angle
- fontlab.flNode.angle
-
angle
angleTo
- fontlab.flNode.angleTo = angleTo(...)
-
double angleTo(QPointF p)
applyTransform
- fontlab.flNode.applyTransform = applyTransform(...)
-
applyTransform(QTransform)
canBeHobby
- fontlab.flNode.canBeHobby = canBeHobby(...)
-
bool canBeHobby()
canBeSmooth
- fontlab.flNode.canBeSmooth = canBeSmooth(...)
-
bool canBeSmooth()
canCollapse
- fontlab.flNode.canCollapse = canCollapse(...)
-
bool canCollapse()
canImprove
- fontlab.flNode.canImprove = canImprove(...)
-
bool canImprove()
changed
- fontlab.flNode.changed = changed(...)
-
changed()
checkInitHistoryState
- fontlab.flNode.checkInitHistoryState = checkInitHistoryState(...)
-
checkInitHistoryState(uint history_ix)
checkVectors
- fontlab.flNode.checkVectors = checkVectors(...)
-
bool checkVectors()
clearAboveHistory
- fontlab.flNode.clearAboveHistory = clearAboveHistory(...)
-
clearAboveHistory(uint history_ix)
clearFlag
- fontlab.flNode.clearFlag = clearFlag(...)
-
clearFlag(uint f)
clearFlags
- fontlab.flNode.clearFlags = clearFlags(...)
-
clearFlags()
clearStored
- fontlab.flNode.clearStored = clearStored(...)
-
clearStored()
clone
- fontlab.flNode.clone = clone(...)
-
Clone the object
cloneMapped
- fontlab.flNode.cloneMapped = cloneMapped(...)
-
flNode cloneMapped(QTransform)
cloneObject
- fontlab.flNode.cloneObject = cloneObject(...)
-
flObject cloneObject(const flObject&);
collapseHandles
- fontlab.flNode.collapseHandles = collapseHandles(...)
-
bool collapseHandles()
contour
- fontlab.flNode.contour
-
The parent Contour or None if not present
convertToCurve
- fontlab.flNode.convertToCurve = convertToCurve(...)
-
bool convertToCurve([bool smooth = false])
convertToCurves
- fontlab.flNode.convertToCurves = convertToCurves(...)
-
bool convertToCurves()
convertToLine
- fontlab.flNode.convertToLine = convertToLine(...)
-
bool convertToLine()
copyFrom
- fontlab.flNode.copyFrom = copyFrom(...)
-
copyFrom(Node[, withSelected=False])
createHistoryState
- fontlab.flNode.createHistoryState = createHistoryState(...)
-
createHistoryState(uint history_ix)
createObject
- fontlab.flNode.createObject = createObject(...)
-
flObject/Nothing createObject(int);
currentHistoryState
- fontlab.flNode.currentHistoryState = currentHistoryState(...)
-
currentHistoryIx()
distanceTo
- fontlab.flNode.distanceTo = distanceTo(...)
-
double distanceTo(Node/QPointF)
flag
- fontlab.flNode.flag = flag(...)
-
flag(uint f)
flObjectFlags
fontlab.flNode.flObjectFlags = {'ofAnchored': 64, 'ofChanged': 2, 'ofHistory': 128, 'ofIgnore': 8, 'ofIgnoreChanges': 4, 'ofPassive': 16, 'ofReleased': 1, 'ofSlowUpdate': 32}
g2
- fontlab.flNode.g2
-
g2
getLines
- fontlab.flNode.getLines = getLines(...)
-
(QLineF, QLineF)/None getLines()
getOn
- fontlab.flNode.getOn = getOn(...)
-
Node/None getOn()
getProperties
- fontlab.flNode.getProperties = getProperties(...)
-
Get object's properties list
getProperty
- fontlab.flNode.getProperty = getProperty(...)
-
getProperty('key') - get object property by 'key' or number
getPropertyFloat
- fontlab.flNode.getPropertyFloat = getPropertyFloat(...)
-
getPropertyFloat('key') - get float object property by 'key'
getPropertyInt
- fontlab.flNode.getPropertyInt = getPropertyInt(...)
-
getPropertyInt('key') - get int object property by 'key'
hasChanges
- fontlab.flNode.hasChanges
-
bool
hasHistoryState
- fontlab.flNode.hasHistoryState = hasHistoryState(...)
-
hasHistoryState(uint history_ix)
hasHistoryStates
- fontlab.flNode.hasHistoryStates
-
bool
haveObject
- fontlab.flNode.haveObject = haveObject(...)
-
bool haveObject(uint);
historyStates
- fontlab.flNode.historyStates = historyStates(...)
-
historyStates(bool accepted_state)
hobby
- fontlab.flNode.hobby
-
hobby
id
- fontlab.flNode.id
-
object id
improve
- fontlab.flNode.improve = improve(...)
-
bool improve()
independedAll
- fontlab.flNode.independedAll = independedAll(...)
-
independedAll()
index
- fontlab.flNode.index
-
The index of the node in parent's contour (if present, otherwise -1)
initialHistoryState
- fontlab.flNode.initialHistoryState = initialHistoryState(...)
-
initialHistoryIx()
instanceType
- fontlab.flNode.instanceType = instanceType(...)
-
int instanceType();
interpolated
- fontlab.flNode.interpolated
-
interpolated
interpolatedX
- fontlab.flNode.interpolatedX
-
interpolatedX
interpolatedY
- fontlab.flNode.interpolatedY
-
interpolatedY
isChanged
- fontlab.flNode.isChanged
-
bool
isCorner
- fontlab.flNode.isCorner = isCorner(...)
-
bool isCorner([double a = 10.])
isCurve
- fontlab.flNode.isCurve = isCurve(...)
-
bool isCurve()
isEqual
- fontlab.flNode.isEqual = isEqual(...)
-
isEqual(flObject)
isEqualTo
- fontlab.flNode.isEqualTo = isEqualTo(...)
-
bool isEqualTo(Node[, tolerance=0.1[, offset=QPointF(0, 0)]])
isExtreme
- fontlab.flNode.isExtreme = isExtreme(...)
-
bool isExtreme(bool x[, bool open = true[, double limit = 0]])
isFirst
- fontlab.flNode.isFirst = isFirst(...)
-
bool isFirst()
isG2
- fontlab.flNode.isG2 = isG2(...)
-
bool isG2(double tolerance)
isInternal
- fontlab.flNode.isInternal = isInternal(...)
-
bool isInternal(bool clockwise)
isInterpolated
- fontlab.flNode.isInterpolated = isInterpolated(...)
-
bool isInterpolated(bool x)
isLast
- fontlab.flNode.isLast = isLast(...)
-
bool isLast()
isNull
- fontlab.flNode.isNull
-
bool
isOff
- fontlab.flNode.isOff = isOff(...)
-
bool isOff()
isOn
- fontlab.flNode.isOn = isOn(...)
-
bool isOn()
isPresent
- fontlab.flNode.isPresent
-
bool
isReleased
- fontlab.flNode.isReleased
-
bool
isSelectedAlone
- fontlab.flNode.isSelectedAlone
-
bool
isSmartAngle
- fontlab.flNode.isSmartAngle = isSmartAngle(...)
-
bool isSmartAngle()
isTerminal
- fontlab.flNode.isTerminal
-
bool
isValid
- fontlab.flNode.isValid
-
bool
makeStart
- fontlab.flNode.makeStart = makeStart(...)
-
bool makeStart()
moveBy
- fontlab.flNode.moveBy = moveBy(...)
-
moveBy(float dx, float dy[, bool round=false]
name
- fontlab.flNode.name
-
object name
nextNode
- fontlab.flNode.nextNode = nextNode(...)
-
Node/None nextNode([string nodeType= [, int searchDepth=1]])
NodeKind
fontlab.flNode.NodeKind = {'ExtraLast': 16384, 'First': 16, 'G2': 4096, 'Hobby': 8192, 'HotSpot': 2048, 'InterpolatedX': 256, 'InterpolatedY': 512, 'KindMask': 65535, 'None': 0, 'Preview': 64, ...}
nodeState
- fontlab.flNode.nodeState
-
nodeState
NodeType
fontlab.flNode.NodeType = {'AnyNodeMask': 7, 'Curve': 4, 'Off': 2, 'On': 1}
pointG2
- fontlab.flNode.pointG2 = pointG2(...)
-
QPointF/None pointG2()
position
- fontlab.flNode.position
-
Coordinates of the node as QPointF
preview
- fontlab.flNode.preview
-
preview
prevNode
- fontlab.flNode.prevNode = prevNode(...)
-
Node/None prevNode([string nodeType= [, int searchDepth=1]])
refCnt
- fontlab.flNode.refCnt
-
object references count
release
- fontlab.flNode.release = release(...)
-
release()
remove
- fontlab.flNode.remove = remove(...)
-
remove([flObject])
removeChild
- fontlab.flNode.removeChild = removeChild(...)
-
removeChild(flObject)
removeProperty
- fontlab.flNode.removeProperty = removeProperty(...)
-
removeProperty('key')
restoreCoordinates
- fontlab.flNode.restoreCoordinates = restoreCoordinates(...)
-
restoreCoordinates()
restoreHistoryState
- fontlab.flNode.restoreHistoryState = restoreHistoryState(...)
-
restoreHistoryState(uint history_ix)
rotateBy
- fontlab.flNode.rotateBy = rotateBy(...)
-
rotateBy(valueDegree[, QPointF origin=(0, 0)])
round
- fontlab.flNode.round = round(...)
-
round() - Round the node's coordinate
scaleBy
- fontlab.flNode.scaleBy = scaleBy(...)
-
scaleBy(valueXY | (valueX, valueY)[, QPointF origin=(0, 0)])
scv
- fontlab.flNode.scv
-
scv
selected
- fontlab.flNode.selected
-
The selected flag
setExtraLast
- fontlab.flNode.setExtraLast = setExtraLast(...)
-
setExtraLast(bool)
setFlag
- fontlab.flNode.setFlag = setFlag(...)
-
setFlag(uint f [, bool value])
setNextSmooth
- fontlab.flNode.setNextSmooth = setNextSmooth(...)
-
setNextSmooth(QPointF base)
setPrevSmooth
- fontlab.flNode.setPrevSmooth = setPrevSmooth(...)
-
setPrevSmooth(QPointF base)
setProperty
- fontlab.flNode.setProperty = setProperty(...)
-
setProperty('key', value) - set object property by 'key' or number
setPropertyFloat
- fontlab.flNode.setPropertyFloat = setPropertyFloat(...)
-
setPropertyFloat('key', value) - set float object property by 'key'
setPropertyInt
- fontlab.flNode.setPropertyInt = setPropertyInt(...)
-
setPropertyInt('key', value) - set int object property by 'key'
setSmartAngleEnbl
- fontlab.flNode.setSmartAngleEnbl = setSmartAngleEnbl(...)
-
bool setSmartAngleEnbl(bool)
setSmartSharp
- fontlab.flNode.setSmartSharp = setSmartSharp(...)
-
bool setSmartSharp([double tension = 0.6])
skewBy
- fontlab.flNode.skewBy = skewBy(...)
-
skewBy(valueDegreeX | (valueDegreX, valueDegreY)[, QPointF origin=(0, 0)])
smartAngleR
- fontlab.flNode.smartAngleR
-
smartAngleR
smartMove
- fontlab.flNode.smartMove = smartMove(...)
-
list(uint) smartMove(offset)
smartSetXY
- fontlab.flNode.smartSetXY = smartSetXY(...)
-
smartSetXY(QPointF)
smooth
- fontlab.flNode.smooth
-
The smooth flag
state
- fontlab.flNode.state
-
state
storeCoordinates
- fontlab.flNode.storeCoordinates = storeCoordinates(...)
-
storeCoordinates()
storeTestParameters
- fontlab.flNode.storeTestParameters = storeTestParameters(...)
-
storeTestParameters()
tag
- fontlab.flNode.tag = tag(...)
-
tag([string])
transformBy
- fontlab.flNode.transformBy = transformBy(...)
-
transformBy(QTransform tx[, QPointF origin=(0, 0)])
type
- fontlab.flNode.type
-
The node type
update
- fontlab.flNode.update = update(...)
-
update()
updateG2
- fontlab.flNode.updateG2 = updateG2(...)
-
bool updateG2()
updateSmooth
- fontlab.flNode.updateSmooth = updateSmooth(...)
-
updateSmooth([bool extended_neibh=true])
x
- fontlab.flNode.x
-
The x coordinate of the node
y
- fontlab.flNode.y
-
The y coordinate of the node