typerig.core.objects.delta
# MODULE: TypeRig / Core / Delta (Objects)
# -----------------------------------------------------------
# (C) Vassil Kateliev, 2018-2020 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#------------------------------------------------------------
# www.typerig.com
Modules
- math
- typerig.core.func.transform
Classes
-
# - Objects ------------------------------------
# -- Interpolation ------------------------------
Methods
- call(self, global_time, extrapolate=False)
-
Linear interpolation (LERP) with optional extrapolation.
Interval (-inf) <-- (0 .. len(array)-1) --> (+inf) (supports negative indexing).
- getitem(self, i)
-
# - Internals
- hash(self)
-
- init(self, data)
-
- len(self)
-
- repr(self)
-
- mixer(self, global_time)
-
Will return the proper coordinate values for the selected global time.
- timer(self, global_time, extrapolate=False)
-
Attributes
- abstractmethods = frozenset([])
- __contains_(self, value)
-
- iter(self)
-
- reversed(self)
-
- count(self, value)
-
S.count(value) -> integer -- return number of occurrences of value
- index(self, value)
-
S.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.
- __subclasshook_(cls, C) from abc.ABCMeta
-
- __dict_
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
- __metaclass_ = <class 'abc.ABCMeta'>
-
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
-
Methods
- getitem(self, index)
-
- init(self, *argv)
-
- len(self)
-
- repr(self)
-
# - Internals ----------------------------------
- dump(self)
-
# - IO ---------------------------------------
- load(self, other)
-
- scale_by_stem(self, stem, scale, comp, shift, italic_angle, extrapolate=False)
-
- scale_by_time(self, time, scale, comp, shift, italic_angle, extrapolate=False)
-
# - Process ----------------------------------
Descriptors
- dim
Attributes
- abstractmethods = frozenset([])
- setitem = None
- __contains_(self, value)
-
- iter(self)
-
- reversed(self)
-
- count(self, value)
-
S.count(value) -> integer -- return number of occurrences of value
- index(self, value)
-
S.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.
- __subclasshook_(cls, C) from abc.ABCMeta
-
- __dict_
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
- __metaclass_ = <class 'abc.ABCMeta'>
-
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
DeltaArray
# - Objects ------------------------------------
# -- Interpolation ------------------------------
Methods
- __call__(self, global_time, extrapolate=False)
-
Linear interpolation (LERP) with optional extrapolation.
Interval (-inf) <-- (0 .. len(array)-1) --> (+inf) (supports negative indexing).
- __getitem__(self, i)
-
# - Internals
- __hash__(self)
-
- __init__(self, data)
-
- __len__(self)
-
- __repr__(self)
-
- mixer(self, global_time)
-
Will return the proper coordinate values for the selected global time.
- timer(self, global_time, extrapolate=False)
-
Attributes
- __abstractmethods__ = frozenset([])
- __contains__(self, value)
-
- __iter__(self)
-
- __reversed__(self)
-
- count(self, value)
-
S.count(value) -> integer -- return number of occurrences of value
- index(self, value)
-
S.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.
- __subclasshook__(cls, C) from abc.ABCMeta
-
- __dict__
-
dictionary for instance variables (if defined)
- __weakref__
-
list of weak references to the object (if defined)
- __metaclass__ = <class 'abc.ABCMeta'>
-
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
mixer
- typerig.core.objects.delta.DeltaArray.mixer = mixer(self, global_time) unbound typerig.core.objects.delta.DeltaArray method
-
Will return the proper coordinate values for the selected global time.