2.25. XSplineContour

2.25.1. Synopsis

2.25.1.1. Functions

2.25.1.2. Properties

2.25.2. Detailed Description

X-Spline contour class. Provides access to X-Spline contours and their control points.
class mocha.project.XSplineContour(XSplineContour)
XSplineContour.control_point(index)
Return type:mocha.project.XControlPoint
Parameters:index (PySide.QtCore.uint) – Control point index.
Return type:XControlPoint or None if index is invalid.

Returns x spline control point by index.

XSplineContour.get_bounding_rect([time=0.f[, view=View( 0 )]])
Return type:list of float
XSplineContour.insert_point(time, xcpd, index[, view=View()])
Return type:

mocha.project.XControlPoint

Parameters:
Return type:

XControlPoint

Inserts new control point into index position.

XSplineContour.__eq__(rhs)
Return type:PySide.QtCore.bool
XSplineContour.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.

XSplineContour.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 X-Spline contour parameters set.

XSplineContour.remove()

Removes this contour.

XSplineContour.control_points
Type:list of XControlPoint instances
Access:read-only

Provides access to list of XControlPoint instances.