Gegl.Curve

g GObject.Object GObject.Object Gegl.Curve Gegl.Curve GObject.Object->Gegl.Curve

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (y_min, y_max)

class

new_default ()

add_point (x, y)

calc_value (x)

duplicate ()

get_point (index)

get_y_bounds ()

num_points ()

set_point (index, x, y)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Gegl.Curve(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gegl.CurveClass

classmethod new(y_min, y_max)
Parameters:
  • y_min (float) – minimum y value for curve.

  • y_max (float) – maximum y value for curve.

Return type:

Gegl.Curve

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:

Gegl.Curve

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)
Parameters:
  • x (float) – x coordinate

  • y (float) – y coordinate

Return type:

int

Add a point to the curve at x y (replacing the value exactly for x if it already exists.

calc_value(x)
Parameters:

x (float) –

Return type:

float

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:

Gegl.Curve

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:

(x: float, y: float)

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:

(min_y: float, max_y: float)

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:

int

Retrieve the number of points in the curve.

Returns the number of points for the coordinates in the curve.

set_point(index, x, y)
Parameters:
  • index (int) – the position of the value number to retrieve.

  • x (float) – x coordinate

  • y (float) – y coordinate

Replace an existing point in a curve.