OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Classes | Macros | Typedefs | Functions
potracelib.h File Reference
#include <stdio.h>

Go to the source code of this file.

Classes

struct  potrace_progress_s
 
struct  potrace_param_s
 
struct  potrace_bitmap_s
 
struct  potrace_dpoint_s
 
struct  potrace_curve_s
 
struct  potrace_path_s
 
struct  potrace_state_s
 

Macros

#define POTRACE_TURNPOLICY_BLACK   0
 
#define POTRACE_TURNPOLICY_WHITE   1
 
#define POTRACE_TURNPOLICY_LEFT   2
 
#define POTRACE_TURNPOLICY_RIGHT   3
 
#define POTRACE_TURNPOLICY_MINORITY   4
 
#define POTRACE_TURNPOLICY_MAJORITY   5
 
#define POTRACE_TURNPOLICY_RANDOM   6
 
#define POTRACE_CURVETO   1
 
#define POTRACE_CORNER   2
 
#define POTRACE_ENDPOINT   3
 
#define POTRACE_STATUS_OK   0
 
#define POTRACE_STATUS_INCOMPLETE   1
 

Typedefs

typedef struct potrace_progress_s potrace_progress_t
 
typedef struct potrace_param_s potrace_param_t
 
typedef unsigned long potrace_word
 
typedef struct potrace_bitmap_s potrace_bitmap_t
 
typedef struct potrace_dpoint_s potrace_dpoint_t
 
typedef struct potrace_curve_s potrace_curve_t
 
typedef struct potrace_path_s potrace_path_t
 
typedef struct potrace_state_s potrace_state_t
 

Functions

potrace_param_tpotrace_param_default (void)
 
void potrace_param_free (potrace_param_t *p)
 
potrace_state_tpotrace_trace (const potrace_param_t *param, const potrace_bitmap_t *bm)
 
void potrace_state_free (potrace_state_t *st)
 
char * potrace_version (void)
 
int potrace_geojson (FILE *fout, potrace_path_t *plist, int as_polygons)
 
void potrace_writepbm (FILE *fout, potrace_bitmap_t *bm)
 

Macro Definition Documentation

◆ POTRACE_CORNER

#define POTRACE_CORNER   2

◆ POTRACE_CURVETO

#define POTRACE_CURVETO   1

Definition at line 72 of file potracelib.h.

◆ POTRACE_ENDPOINT

#define POTRACE_ENDPOINT   3

Definition at line 74 of file potracelib.h.

Referenced by ossimPotraceTool::transformLineStrings().

◆ POTRACE_STATUS_INCOMPLETE

#define POTRACE_STATUS_INCOMPLETE   1

Definition at line 104 of file potracelib.h.

◆ POTRACE_STATUS_OK

#define POTRACE_STATUS_OK   0

Definition at line 103 of file potracelib.h.

◆ POTRACE_TURNPOLICY_BLACK

#define POTRACE_TURNPOLICY_BLACK   0

Definition at line 17 of file potracelib.h.

◆ POTRACE_TURNPOLICY_LEFT

#define POTRACE_TURNPOLICY_LEFT   2

Definition at line 19 of file potracelib.h.

◆ POTRACE_TURNPOLICY_MAJORITY

#define POTRACE_TURNPOLICY_MAJORITY   5

Definition at line 22 of file potracelib.h.

◆ POTRACE_TURNPOLICY_MINORITY

#define POTRACE_TURNPOLICY_MINORITY   4

Definition at line 21 of file potracelib.h.

◆ POTRACE_TURNPOLICY_RANDOM

#define POTRACE_TURNPOLICY_RANDOM   6

Definition at line 23 of file potracelib.h.

◆ POTRACE_TURNPOLICY_RIGHT

#define POTRACE_TURNPOLICY_RIGHT   3

Definition at line 20 of file potracelib.h.

◆ POTRACE_TURNPOLICY_WHITE

#define POTRACE_TURNPOLICY_WHITE   1

Definition at line 18 of file potracelib.h.

Typedef Documentation

◆ potrace_bitmap_t

Definition at line 60 of file potracelib.h.

◆ potrace_curve_t

Definition at line 83 of file potracelib.h.

◆ potrace_dpoint_t

Definition at line 69 of file potracelib.h.

◆ potrace_param_t

Definition at line 43 of file potracelib.h.

◆ potrace_path_t

Definition at line 98 of file potracelib.h.

◆ potrace_progress_t

Definition at line 32 of file potracelib.h.

◆ potrace_state_t

Definition at line 112 of file potracelib.h.

◆ potrace_word

typedef unsigned long potrace_word

Definition at line 49 of file potracelib.h.

Function Documentation

◆ potrace_geojson()

int potrace_geojson ( FILE *  fout,
potrace_path_t plist,
int  as_polygons 
)

◆ potrace_param_default()

potrace_param_t* potrace_param_default ( void  )

◆ potrace_param_free()

void potrace_param_free ( potrace_param_t p)

◆ potrace_state_free()

void potrace_state_free ( potrace_state_t st)

◆ potrace_trace()

potrace_state_t* potrace_trace ( const potrace_param_t param,
const potrace_bitmap_t bm 
)

◆ potrace_version()

char* potrace_version ( void  )

◆ potrace_writepbm()

void potrace_writepbm ( FILE *  fout,
potrace_bitmap_t bm 
)