GimpCurve

GimpCurve

Synopsis

                    GimpCurve;
GimpData *          gimp_curve_new                      (const gchar *name);
GimpData *          gimp_curve_get_standard             (void);
void                gimp_curve_reset                    (GimpCurve *curve,
                                                         gboolean reset_type);
void                gimp_curve_set_curve_type           (GimpCurve *curve,
                                                         GimpCurveType curve_type);
GimpCurveType       gimp_curve_get_curve_type           (GimpCurve *curve);
gint                gimp_curve_get_n_points             (GimpCurve *curve);
gint                gimp_curve_get_n_samples            (GimpCurve *curve);
gint                gimp_curve_get_closest_point        (GimpCurve *curve,
                                                         gdouble x);
void                gimp_curve_set_point                (GimpCurve *curve,
                                                         gint point,
                                                         gdouble x,
                                                         gdouble y);
void                gimp_curve_move_point               (GimpCurve *curve,
                                                         gint point,
                                                         gdouble y);
void                gimp_curve_delete_point             (GimpCurve *curve,
                                                         gint point);
void                gimp_curve_get_point                (GimpCurve *curve,
                                                         gint point,
                                                         gdouble *x,
                                                         gdouble *y);
void                gimp_curve_set_curve                (GimpCurve *curve,
                                                         gdouble x,
                                                         gdouble y);
gboolean            gimp_curve_is_identity              (GimpCurve *curve);
void                gimp_curve_get_uchar                (GimpCurve *curve,
                                                         gint n_samples,
                                                         guchar *samples);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpData
                     +----GimpCurve

Implemented Interfaces

GimpCurve implements GimpConfigInterface and GimpTaggedInterface.

Properties

  "curve-type"               GimpCurveType         : Read / Write / Construct
  "n-points"                 gint                  : Read / Write / Construct
  "n-samples"                gint                  : Read / Write / Construct
  "points"                   GValueArray*          : Read / Write / Construct
  "samples"                  GValueArray*          : Read / Write / Construct

Description

Details

GimpCurve

typedef struct _GimpCurve GimpCurve;


gimp_curve_new ()

GimpData *          gimp_curve_new                      (const gchar *name);


gimp_curve_get_standard ()

GimpData *          gimp_curve_get_standard             (void);


gimp_curve_reset ()

void                gimp_curve_reset                    (GimpCurve *curve,
                                                         gboolean reset_type);


gimp_curve_set_curve_type ()

void                gimp_curve_set_curve_type           (GimpCurve *curve,
                                                         GimpCurveType curve_type);


gimp_curve_get_curve_type ()

GimpCurveType       gimp_curve_get_curve_type           (GimpCurve *curve);


gimp_curve_get_n_points ()

gint                gimp_curve_get_n_points             (GimpCurve *curve);


gimp_curve_get_n_samples ()

gint                gimp_curve_get_n_samples            (GimpCurve *curve);


gimp_curve_get_closest_point ()

gint                gimp_curve_get_closest_point        (GimpCurve *curve,
                                                         gdouble x);


gimp_curve_set_point ()

void                gimp_curve_set_point                (GimpCurve *curve,
                                                         gint point,
                                                         gdouble x,
                                                         gdouble y);


gimp_curve_move_point ()

void                gimp_curve_move_point               (GimpCurve *curve,
                                                         gint point,
                                                         gdouble y);


gimp_curve_delete_point ()

void                gimp_curve_delete_point             (GimpCurve *curve,
                                                         gint point);


gimp_curve_get_point ()

void                gimp_curve_get_point                (GimpCurve *curve,
                                                         gint point,
                                                         gdouble *x,
                                                         gdouble *y);


gimp_curve_set_curve ()

void                gimp_curve_set_curve                (GimpCurve *curve,
                                                         gdouble x,
                                                         gdouble y);


gimp_curve_is_identity ()

gboolean            gimp_curve_is_identity              (GimpCurve *curve);

If this function returns TRUE, then the curve maps each value to itself. If it returns FALSE, then this assumption can not be made.

curve :

a GimpCurve object

Returns :

TRUE if the curve is an identity mapping, FALSE otherwise.

gimp_curve_get_uchar ()

void                gimp_curve_get_uchar                (GimpCurve *curve,
                                                         gint n_samples,
                                                         guchar *samples);

Property Details

The "curve-type" property

  "curve-type"               GimpCurveType         : Read / Write / Construct

The curve type.

Default value: GIMP_CURVE_SMOOTH


The "n-points" property

  "n-points"                 gint                  : Read / Write / Construct

The number of points.

Allowed values: [17,17]

Default value: 17


The "n-samples" property

  "n-samples"                gint                  : Read / Write / Construct

The number of samples.

Allowed values: [256,256]

Default value: 256


The "points" property

  "points"                   GValueArray*          : Read / Write / Construct


The "samples" property

  "samples"                  GValueArray*          : Read / Write / Construct