Node

FL.Node = class Node(object)

===============================================
  Node - class to represent node
===============================================
This class is Multiple Master - compatible

CONSTRUCTOR:
  Node() - generic constructor, creates an empty node
  Node(Node) - copy constructor
  Node(intteger type, Point p) - creates a Node and assigns type and coordinates of the final point

ATTRIBUTES:
  parent (read-only) - Node's parent object
         type (integer) - type of the node, values are: nMOVE, nLINE, nCURVE or nOFF
  count (integer, read-only) - number of points in the node. 3 for curves and 1 for all other types of nodes
  alignment (integer) - type of primitive connection, possible values are: nSHARP, nSMOOTH, nFIXED
  selected (integer) - True if node is selected
  point (Point) - position of the final point of the first master
  points [(Points)] - positions of all points of the first master
  x (integer) - horizontal position of the final point of the node
  y (integer) - vertical position of the final point of the node

OPERATIONS:
  len() - returns number of points in the node, same as count attribute
  [] - can be used to access individial points of the first master
  multiply - second operand must be Matrix, applies matrix transformation to a node

METHODS
  Assign - assigns new values to a Node, refer to constructor for a description of possible options
  SetAllLayers(pointindex, Point p) - assigns position of the point p to all masters of the point number 'pointindex'
  Layer(masterindex) - returns list of points for the master 'masterindex'
  Section(pointindex) - returns list of points for all layers and point number 'pointindex'
  Shift(Point p, masterindex) - shifts position of all points for the master 'masterindex'
  ExpandLayer(masterindex) - copies positions of all points in the master 'masterindex' to other masters
  Transform(Matrix m) - applies Matrix transformation to the Node (see Matrix().__doc__)

Methods

Assign(...)


ExpandLayer(...)


Layer(...)


Section(...)


SetAllLayers(...)


Shift(...)


Transform(...)


__add__(...)
x.__add__(y) <==> x+y
__delattr__(...)
x.__delattr__('name') <==> del x.name
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__delslice__(...)
x.__delslice__(i, j) <==> del x[i:j]

Use of negative indices is not supported.
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
__len__(...)
x.__len__() <==> len(x)
__mul__(...)
x.__mul__(y) <==> x*y
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(y) <==> y*x
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
__setslice__(...)
x.__setslice__(i, j, y) <==> x[i:j]=y

Use  of negative indices is not supported.

Descriptors

alignment
count
open
parent
point
points
selected
type
x
y

Attributes

__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T