2.2. BezierContour¶
2.2.1. Synopsis¶
2.2.1.1. Functions¶
def
__eq__(rhs)def
control_point(index)def
get_bounding_rect([time=0.f[, view=View( 0 )]])def
insert_point(time, bcp[, index=UINT_MAX[, view=View()]])def
insert_point(time, bcpd[, index=UINT_MAX[, view=View()]])def
parameter(name_components)def
parameter_set([name_components=list()])def
remove()def
set_control_points(points)
2.2.1.2. Properties¶
property
control_points[read-write] of list ofBezierControlPointinstancesproperty
psets[read-only] of ParameterSet
2.2.2. Detailed Description¶
Bezier contour class. Provides access to Bezier contours and their control points.
-
class
mocha.project.BezierContour¶
-
BezierContour.control_point(index)¶ - Return type
- Parameters
index (uint) – Control point index.
- Returns
BezierControlPointorNoneif index is invalid.
Returns bezier control point by index.
-
BezierContour.get_bounding_rect([time=0.f[, view=View( 0 )]])¶ - Return type
list of float
- Parameters
time (float) – Time
view (View) – View
Returns coordinates of top left and bottomRight points of the contour bounding rectangle, considering its handles, as a list of floats [x1, y1, x2, y2]
-
BezierContour.insert_point(time, bcp[, index=UINT_MAX[, view=View()]])¶ - Return type
- Parameters
time (float) – Keyframe time.
xcp – Keyframe data.
index (uint) – Inserting index.
view (View) – View.
Inserts new control point into index position.
-
BezierContour.insert_point(time, bcpd[, index=UINT_MAX[, view=View()]]) - Return type
- Parameters
time (float) – Keyframe time.
xcpd – Keyframe data.
index (uint) – Inserting index.
view (View) – View.
Inserts new control point into index position.
-
BezierContour.__eq__(rhs)¶ - Return type
bool
-
BezierContour.parameter(name_components)¶ - Return type
- Parameters
name_components (list of strings) – Relative name for a requested parameter.
Returns
Parameterinstance bound with given name path.
-
BezierContour.parameter_set([name_components=list()])¶ - Return type
- Parameters
name_components (list of strings) – Relative name for a requested parameter set.
Returns
ParameterSetinstance bound with given name path. Pass an empty list[]to get access to the Bezier contour parameters set.
-
BezierContour.remove()¶ Removes this contour.
-
BezierContour.set_control_points(points)¶
-
BezierContour.control_points¶ - Type
list of
BezierControlPointinstances- Access
read-write Provides access to list of
BezierControlPointinstances.
-
BezierContour.psets¶ - Type
- Access
read-only Provides access to the root parameter set.
Mimics parameter_set() call.