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, bcpd[, index=UINT_MAX[, view=View()]])
- def parameter (name_components)
- def parameter_set ([name_components=list()])
- def remove ()
2.2.1.2. Properties¶
- property control_points [read-only] of list of BezierControlPoint instances
2.2.2. Detailed Description¶
Bezier contour class. Provides access to Bezier contours and their control points.
- class mocha.project.BezierContour(BezierContour)¶
- BezierContour.control_point(index)¶
Return type: mocha.project.BezierControlPoint Parameters: index (PySide.QtCore.uint) – Control point index. Return type: BezierControlPoint or None if index is invalid. Returns bezier control point by index.
- BezierContour.get_bounding_rect([time=0.f[, view=View( 0 )]])¶
Return type: list of float
- BezierContour.insert_point(time, bcpd[, index=UINT_MAX[, view=View()]])¶
Return type: Parameters: - time (PySide.QtCore.float) – Keyframe time.
- xcpd – Keyframe data.
- index (PySide.QtCore.uint) – Inserting index.
- view (mocha.project.View) – View.
Return type: Inserts new control point into index position.
- BezierContour.__eq__(rhs)¶
Return type: PySide.QtCore.bool
- BezierContour.parameter(name_components)¶
Return type: mocha.project.Parameter Parameters: name_components (list of strings) – Relative name for a requested parameter. Return type: Parameter Returns Parameter instance bound with given name path.
- BezierContour.parameter_set([name_components=list()])¶
Return type: mocha.project.ParameterSet Parameters: name_components (list of strings) – Relative name for a requested parameter set. Return type: ParameterSet Returns ParameterSet instance bound with given name path. Pass an empty list [] to get access to the Bezier contour parameters set.
- BezierContour.remove()¶
Removes this contour.
- BezierContour.control_points¶
Type: list of BezierControlPoint instances Access: read-only Provides access to list of BezierControlPoint instances.