Gegl.Curve¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gegl.Curve(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(y_min, y_max)¶
- Parameters:
- Return type:
Create a
Gegl.Curve
that can store a curve with values between y_min and y_max.Returns the newly created
Gegl.Curve
.
- classmethod new_default()¶
- Return type:
Create a default
Gegl.Curve
with an identify mapping of (0.0..1.0) -> (0.0..1.0).Returns the newly created default
Gegl.Curve
.
- add_point(x, y)¶
-
Add a point to the curve at x y (replacing the value exactly for x if it already exists.
- calc_value(x)¶
-
Retrieve the number of points in the curve.
Returns the number of points for the coordinates in the curve.
- duplicate()¶
- Returns:
A new copy of self.
- Return type:
Create a copy of self.
- get_point(index)¶
- Parameters:
index (
int
) – the position of the value number to retrieve.- Returns:
- x:
x coordinate return location.
- y:
y coordinate return location.
- Return type:
Retrive the coordinates for an index.
- get_y_bounds()¶
- Returns:
- min_y:
return location for minimal value.
- max_y:
return location for maximal value.
- Return type:
Get the bounds on the values of the curve and store the values in the return locaitons provided in min_y and max_y.
- num_points()¶
- Return type:
Retrieve the number of points in the curve.
Returns the number of points for the coordinates in the curve.