Commit ccd1bd97 authored by Michael Muré's avatar Michael Muré Committed by Michael Muré

transform-op: complete the renaming of affine to transform

parent f97d50a7
......@@ -15,8 +15,8 @@
#define GEGL_CHANT_PARENT_TypeName OpTransform
#define GEGL_CHANT_PARENT_TypeNameClass OpTransformClass
#define GEGL_CHANT_PARENT_TYPE TYPE_OP_AFFINE
#define GEGL_CHANT_PARENT_CLASS OP_AFFINE_CLASS
#define GEGL_CHANT_PARENT_TYPE TYPE_OP_TRANSFORM
#define GEGL_CHANT_PARENT_CLASS OP_TRANSFORM_CLASS
typedef struct Generated GeglChantOperation;
typedef struct GeneratedClass ChantClass;
......@@ -89,7 +89,7 @@ type_name##_get_type (void) \
NULL /* value_table */ \
}; \
g_define_type_id = \
gegl_module_register_type (affine_module_get_module (), TYPE_PARENT,\
gegl_module_register_type (transform_module_get_module (), TYPE_PARENT,\
"GeglOpPlugIn-" #type_name,\
&g_define_type_info, 0);\
{ CODE ; }\
......@@ -252,8 +252,8 @@ gegl_chant_constructor (GType type,
static void class_init (GeglOperationClass *operation_class);
#endif
static void create_matrix (OpTransform *affine,
GeglMatrix3 *matrix);
static void create_matrix (OpTransform *transform,
GeglMatrix3 *matrix);
static void
gegl_chant_class_init (ChantClass * klass)
......
......@@ -21,16 +21,16 @@
#include "module.h"
#include "transform-core.h"
static GTypeModule *affine_module;
static GTypeModule *transform_module;
static const GeglModuleInfo modinfo =
{
GEGL_MODULE_ABI_VERSION
};
G_MODULE_EXPORT GTypeModule *
affine_module_get_module (void)
transform_module_get_module (void)
{
return affine_module;
return transform_module;
}
G_MODULE_EXPORT const GeglModuleInfo *
......@@ -52,9 +52,9 @@ G_MODULE_EXPORT gboolean
gegl_module_register (GTypeModule *module)
{
GType dummy;
affine_module = module;
transform_module = module;
dummy = op_affine_get_type ();
dummy = op_transform_get_type ();
dummy = rotate_get_type ();
dummy = scale_get_type ();
dummy = scaleratio_get_type ();
......
#ifndef __AFFINE_MODULE_H__
#define __AFFINE_MODULE_H__
#ifndef __TRANSFORM_MODULE_H__
#define __TRANSFORM_MODULE_H__
G_BEGIN_DECLS
#include <glib-object.h>
#include <gegl-plugin.h>
G_MODULE_EXPORT GTypeModule * affine_module_get_module (void);
G_MODULE_EXPORT GTypeModule * transform_module_get_module (void);
G_MODULE_EXPORT const GeglModuleInfo * gegl_module_query (GTypeModule *module);
G_MODULE_EXPORT gboolean gegl_module_register (GTypeModule *module);
......
This diff is collapsed.
#ifndef __OP_AFFINE_H__
#define __OP_AFFINE_H__
#ifndef __OP_TRANSFORM_H__
#define __OP_TRANSFORM_H__
#include "gegl-buffer-private.h"
#include <gegl-matrix.h>
G_BEGIN_DECLS
#define TYPE_OP_AFFINE (op_affine_get_type ())
#define OP_AFFINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_AFFINE, OpTransform))
#define OP_AFFINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_AFFINE, OpTransformClass))
#define IS_OP_AFFINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_AFFINE))
#define IS_OP_AFFINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_AFFINE))
#define OP_AFFINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_AFFINE, OpTransformClass))
#define TYPE_OP_TRANSFORM (op_transform_get_type ())
#define OP_TRANSFORM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_TRANSFORM, OpTransform))
#define OP_TRANSFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_TRANSFORM, OpTransformClass))
#define IS_OP_TRANSFORM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_TRANSFORM))
#define IS_OP_TRANSFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_TRANSFORM))
#define OP_TRANSFORM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_TRANSFORM, OpTransformClass))
typedef struct _OpTransform OpTransform;
......@@ -31,11 +31,11 @@ struct _OpTransformClass
{
GeglOperationFilterClass parent_class;
void (* create_matrix) (OpTransform *affine,
void (* create_matrix) (OpTransform *transform,
GeglMatrix3 *matrix);
};
GType op_affine_get_type (void) G_GNUC_CONST;
GType op_transform_get_type (void) G_GNUC_CONST;
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment