Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

cam_object.c File Reference

CAM-Functions to find Objects in a Heightmap. More...

#include <gnome.h>
#include <glade/glade.h>
#include "cam.h"
#include "cam_object.h"

Defines

#define STACK_MAX   10000
#define PUSH(Y, XL, XR, DY)
#define POP(Y, XL, XR, DY)

Typedefs

typedef _seg seg

Functions

CAM__HeightMapCAM__HeightMap_MoveObject (CAM__HeightMap *HeightMap, gint x, gint y)
 returns a new HeightMap with the founded Object on XY in the given HeightMap
CAM__HeightMapCAM__HeightMap_MoveObject_Invert (CAM__HeightMap *HeightMap, gint x, gint y)
 returns a new HeightMap with the founded Object on XY in the given HeightMap (Inverted-Version)
CAM__HeightMapCAM__HeightMap_FloodFill (CAM__HeightMap *HeightMap, gint x, gint y, gint color)


Detailed Description

CAM-Functions to find Objects in a Heightmap.


Define Documentation

#define POP Y,
XL,
XR,
DY   ) 
 

Value:

{\
        sp--;\
        DY = sp->dy;\
        Y = sp->y + sp->dy;\
        XL = sp->xl;\
        XR = sp->xr;\
}

#define PUSH Y,
XL,
XR,
DY   ) 
 

Value:

{\
        if (sp<stack+STACK_MAX && Y+(DY)>=0 && Y+(DY)<HeightMap->height){\
                sp->y = Y;\
                sp->xl = XL;\
                sp->xr = XR;\
                sp->dy = DY;\
                sp++;\
        }\
}

#define STACK_MAX   10000
 


Typedef Documentation

typedef struct _seg seg
 


Function Documentation

CAM__HeightMap* CAM__HeightMap_FloodFill CAM__HeightMap HeightMap,
gint  x,
gint  y,
gint  color
 

CAM__HeightMap* CAM__HeightMap_MoveObject CAM__HeightMap HeightMap,
gint  x,
gint  y
 

returns a new HeightMap with the founded Object on XY in the given HeightMap

CAM__HeightMap* CAM__HeightMap_MoveObject_Invert CAM__HeightMap HeightMap,
gint  x,
gint  y
 

returns a new HeightMap with the founded Object on XY in the given HeightMap (Inverted-Version)


Generated on Wed May 3 17:34:47 2006 for cnc2d by  doxygen 1.4.2