1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.2
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 
12 #ifndef SWIGPYTHON
13 #define SWIGPYTHON
14 #endif
15 
16 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
17 
18 /* -----------------------------------------------------------------------------
19  *  This section contains generic SWIG labels for method/variable
20  *  declarations/attributes, and other compiler dependent labels.
21  * ----------------------------------------------------------------------------- */
22 
23 /* template workaround for compilers that cannot correctly implement the C++ standard */
24 #ifndef SWIGTEMPLATEDISAMBIGUATOR
25 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
26 #  define SWIGTEMPLATEDISAMBIGUATOR template
27 # elif defined(__HP_aCC)
28 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
29 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
30 #  define SWIGTEMPLATEDISAMBIGUATOR template
31 # else
32 #  define SWIGTEMPLATEDISAMBIGUATOR
33 # endif
34 #endif
35 
36 /* inline attribute */
37 #ifndef SWIGINLINE
38 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
39 #   define SWIGINLINE inline
40 # else
41 #   define SWIGINLINE
42 # endif
43 #endif
44 
45 /* attribute recognised by some compilers to avoid 'unused' warnings */
46 #ifndef SWIGUNUSED
47 # if defined(__GNUC__)
48 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
49 #     define SWIGUNUSED __attribute__ ((__unused__))
50 #   else
51 #     define SWIGUNUSED
52 #   endif
53 # elif defined(__ICC)
54 #   define SWIGUNUSED __attribute__ ((__unused__))
55 # else
56 #   define SWIGUNUSED
57 # endif
58 #endif
59 
60 #ifndef SWIG_MSC_UNSUPPRESS_4505
61 # if defined(_MSC_VER)
62 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
63 # endif
64 #endif
65 
66 #ifndef SWIGUNUSEDPARM
67 # ifdef __cplusplus
68 #   define SWIGUNUSEDPARM(p)
69 # else
70 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
71 # endif
72 #endif
73 
74 /* internal SWIG method */
75 #ifndef SWIGINTERN
76 # define SWIGINTERN static SWIGUNUSED
77 #endif
78 
79 /* internal inline SWIG method */
80 #ifndef SWIGINTERNINLINE
81 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
82 #endif
83 
84 /* exporting methods */
85 #if defined(__GNUC__)
86 #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
87 #    ifndef GCC_HASCLASSVISIBILITY
88 #      define GCC_HASCLASSVISIBILITY
89 #    endif
90 #  endif
91 #endif
92 
93 #ifndef SWIGEXPORT
94 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
95 #   if defined(STATIC_LINKED)
96 #     define SWIGEXPORT
97 #   else
98 #     define SWIGEXPORT __declspec(dllexport)
99 #   endif
100 # else
101 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
102 #     define SWIGEXPORT __attribute__ ((visibility("default")))
103 #   else
104 #     define SWIGEXPORT
105 #   endif
106 # endif
107 #endif
108 
109 /* calling conventions for Windows */
110 #ifndef SWIGSTDCALL
111 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112 #   define SWIGSTDCALL __stdcall
113 # else
114 #   define SWIGSTDCALL
115 # endif
116 #endif
117 
118 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
119 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
120 # define _CRT_SECURE_NO_DEPRECATE
121 #endif
122 
123 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
124 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
125 # define _SCL_SECURE_NO_DEPRECATE
126 #endif
127 
128 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
129 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
130 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
131 #endif
132 
133 /* Intel's compiler complains if a variable which was never initialised is
134  * cast to void, which is a common idiom which we use to indicate that we
135  * are aware a variable isn't used.  So we just silence that warning.
136  * See: https://github.com/swig/swig/issues/192 for more discussion.
137  */
138 #ifdef __INTEL_COMPILER
139 # pragma warning disable 592
140 #endif
141 
142 
143 #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
144 /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
145 # include <math.h>
146 #endif
147 
148 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149 /* Use debug wrappers with the Python release dll */
150 # undef _DEBUG
151 # include <Python.h>
152 # define _DEBUG 1
153 #else
154 # include <Python.h>
155 #endif
156 
157 /* -----------------------------------------------------------------------------
158  * swigrun.swg
159  *
160  * This file contains generic C API SWIG runtime support for pointer
161  * type checking.
162  * ----------------------------------------------------------------------------- */
163 
164 /* This should only be incremented when either the layout of swig_type_info changes,
165    or for whatever reason, the runtime changes incompatibly */
166 #define SWIG_RUNTIME_VERSION "4"
167 
168 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169 #ifdef SWIG_TYPE_TABLE
170 # define SWIG_QUOTE_STRING(x) #x
171 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173 #else
174 # define SWIG_TYPE_TABLE_NAME
175 #endif
176 
177 /*
178   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179   creating a static or dynamic library from the SWIG runtime code.
180   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181 
182   But only do this if strictly necessary, ie, if you have problems
183   with your compiler or suchlike.
184 */
185 
186 #ifndef SWIGRUNTIME
187 # define SWIGRUNTIME SWIGINTERN
188 #endif
189 
190 #ifndef SWIGRUNTIMEINLINE
191 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
192 #endif
193 
194 /*  Generic buffer size */
195 #ifndef SWIG_BUFFER_SIZE
196 # define SWIG_BUFFER_SIZE 1024
197 #endif
198 
199 /* Flags for pointer conversions */
200 #define SWIG_POINTER_DISOWN        0x1
201 #define SWIG_CAST_NEW_MEMORY       0x2
202 #define SWIG_POINTER_NO_NULL       0x4
203 
204 /* Flags for new pointer objects */
205 #define SWIG_POINTER_OWN           0x1
206 
207 
208 /*
209    Flags/methods for returning states.
210 
211    The SWIG conversion methods, as ConvertPtr, return an integer
212    that tells if the conversion was successful or not. And if not,
213    an error code can be returned (see swigerrors.swg for the codes).
214 
215    Use the following macros/flags to set or process the returning
216    states.
217 
218    In old versions of SWIG, code such as the following was usually written:
219 
220      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
221        // success code
222      } else {
223        //fail code
224      }
225 
226    Now you can be more explicit:
227 
228     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
229     if (SWIG_IsOK(res)) {
230       // success code
231     } else {
232       // fail code
233     }
234 
235    which is the same really, but now you can also do
236 
237     Type *ptr;
238     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
239     if (SWIG_IsOK(res)) {
240       // success code
241       if (SWIG_IsNewObj(res) {
242         ...
243 	delete *ptr;
244       } else {
245         ...
246       }
247     } else {
248       // fail code
249     }
250 
251    I.e., now SWIG_ConvertPtr can return new objects and you can
252    identify the case and take care of the deallocation. Of course that
253    also requires SWIG_ConvertPtr to return new result values, such as
254 
255       int SWIG_ConvertPtr(obj, ptr,...) {
256         if (<obj is ok>) {
257           if (<need new object>) {
258             *ptr = <ptr to new allocated object>;
259             return SWIG_NEWOBJ;
260           } else {
261             *ptr = <ptr to old object>;
262             return SWIG_OLDOBJ;
263           }
264         } else {
265           return SWIG_BADOBJ;
266         }
267       }
268 
269    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
270    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
271    SWIG errors code.
272 
273    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
274    allows to return the 'cast rank', for example, if you have this
275 
276        int food(double)
277        int fooi(int);
278 
279    and you call
280 
281       food(1)   // cast rank '1'  (1 -> 1.0)
282       fooi(1)   // cast rank '0'
283 
284    just use the SWIG_AddCast()/SWIG_CheckState()
285 */
286 
287 #define SWIG_OK                    (0)
288 #define SWIG_ERROR                 (-1)
289 #define SWIG_IsOK(r)               (r >= 0)
290 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
291 
292 /* The CastRankLimit says how many bits are used for the cast rank */
293 #define SWIG_CASTRANKLIMIT         (1 << 8)
294 /* The NewMask denotes the object was created (using new/malloc) */
295 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
296 /* The TmpMask is for in/out typemaps that use temporal objects */
297 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
298 /* Simple returning values */
299 #define SWIG_BADOBJ                (SWIG_ERROR)
300 #define SWIG_OLDOBJ                (SWIG_OK)
301 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
302 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
303 /* Check, add and del mask methods */
304 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
305 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
306 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
307 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
308 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
309 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
310 
311 /* Cast-Rank Mode */
312 #if defined(SWIG_CASTRANK_MODE)
313 #  ifndef SWIG_TypeRank
314 #    define SWIG_TypeRank             unsigned long
315 #  endif
316 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
317 #    define SWIG_MAXCASTRANK          (2)
318 #  endif
319 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
320 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)321 SWIGINTERNINLINE int SWIG_AddCast(int r) {
322   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
323 }
SWIG_CheckState(int r)324 SWIGINTERNINLINE int SWIG_CheckState(int r) {
325   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
326 }
327 #else /* no cast-rank mode */
328 #  define SWIG_AddCast(r) (r)
329 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
330 #endif
331 
332 
333 #include <string.h>
334 
335 #ifdef __cplusplus
336 extern "C" {
337 #endif
338 
339 typedef void *(*swig_converter_func)(void *, int *);
340 typedef struct swig_type_info *(*swig_dycast_func)(void **);
341 
342 /* Structure to store information on one type */
343 typedef struct swig_type_info {
344   const char             *name;			/* mangled name of this type */
345   const char             *str;			/* human readable name of this type */
346   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
347   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
348   void                   *clientdata;		/* language specific type data */
349   int                    owndata;		/* flag if the structure owns the clientdata */
350 } swig_type_info;
351 
352 /* Structure to store a type and conversion function used for casting */
353 typedef struct swig_cast_info {
354   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
355   swig_converter_func     converter;		/* function to cast the void pointers */
356   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
357   struct swig_cast_info  *prev;			/* pointer to the previous cast */
358 } swig_cast_info;
359 
360 /* Structure used to store module information
361  * Each module generates one structure like this, and the runtime collects
362  * all of these structures and stores them in a circularly linked list.*/
363 typedef struct swig_module_info {
364   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
365   size_t                 size;		        /* Number of types in this module */
366   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
367   swig_type_info         **type_initial;	/* Array of initially generated type structures */
368   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
369   void                    *clientdata;		/* Language specific module data */
370 } swig_module_info;
371 
372 /*
373   Compare two type names skipping the space characters, therefore
374   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
375 
376   Return 0 when the two name types are equivalent, as in
377   strncmp, but skipping ' '.
378 */
379 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)380 SWIG_TypeNameComp(const char *f1, const char *l1,
381 		  const char *f2, const char *l2) {
382   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
383     while ((*f1 == ' ') && (f1 != l1)) ++f1;
384     while ((*f2 == ' ') && (f2 != l2)) ++f2;
385     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
386   }
387   return (int)((l1 - f1) - (l2 - f2));
388 }
389 
390 /*
391   Check type equivalence in a name list like <name1>|<name2>|...
392   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
393 */
394 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)395 SWIG_TypeCmp(const char *nb, const char *tb) {
396   int equiv = 1;
397   const char* te = tb + strlen(tb);
398   const char* ne = nb;
399   while (equiv != 0 && *ne) {
400     for (nb = ne; *ne; ++ne) {
401       if (*ne == '|') break;
402     }
403     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
404     if (*ne) ++ne;
405   }
406   return equiv;
407 }
408 
409 /*
410   Check type equivalence in a name list like <name1>|<name2>|...
411   Return 0 if not equal, 1 if equal
412 */
413 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)414 SWIG_TypeEquiv(const char *nb, const char *tb) {
415   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
416 }
417 
418 /*
419   Check the typename
420 */
421 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)422 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
423   if (ty) {
424     swig_cast_info *iter = ty->cast;
425     while (iter) {
426       if (strcmp(iter->type->name, c) == 0) {
427         if (iter == ty->cast)
428           return iter;
429         /* Move iter to the top of the linked list */
430         iter->prev->next = iter->next;
431         if (iter->next)
432           iter->next->prev = iter->prev;
433         iter->next = ty->cast;
434         iter->prev = 0;
435         if (ty->cast) ty->cast->prev = iter;
436         ty->cast = iter;
437         return iter;
438       }
439       iter = iter->next;
440     }
441   }
442   return 0;
443 }
444 
445 /*
446   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
447 */
448 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)449 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
450   if (ty) {
451     swig_cast_info *iter = ty->cast;
452     while (iter) {
453       if (iter->type == from) {
454         if (iter == ty->cast)
455           return iter;
456         /* Move iter to the top of the linked list */
457         iter->prev->next = iter->next;
458         if (iter->next)
459           iter->next->prev = iter->prev;
460         iter->next = ty->cast;
461         iter->prev = 0;
462         if (ty->cast) ty->cast->prev = iter;
463         ty->cast = iter;
464         return iter;
465       }
466       iter = iter->next;
467     }
468   }
469   return 0;
470 }
471 
472 /*
473   Cast a pointer up an inheritance hierarchy
474 */
475 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)476 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
477   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
478 }
479 
480 /*
481    Dynamic pointer casting. Down an inheritance hierarchy
482 */
483 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)484 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
485   swig_type_info *lastty = ty;
486   if (!ty || !ty->dcast) return ty;
487   while (ty && (ty->dcast)) {
488     ty = (*ty->dcast)(ptr);
489     if (ty) lastty = ty;
490   }
491   return lastty;
492 }
493 
494 /*
495   Return the name associated with this type
496 */
497 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)498 SWIG_TypeName(const swig_type_info *ty) {
499   return ty->name;
500 }
501 
502 /*
503   Return the pretty name associated with this type,
504   that is an unmangled type name in a form presentable to the user.
505 */
506 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)507 SWIG_TypePrettyName(const swig_type_info *type) {
508   /* The "str" field contains the equivalent pretty names of the
509      type, separated by vertical-bar characters.  We choose
510      to print the last name, as it is often (?) the most
511      specific. */
512   if (!type) return NULL;
513   if (type->str != NULL) {
514     const char *last_name = type->str;
515     const char *s;
516     for (s = type->str; *s; s++)
517       if (*s == '|') last_name = s+1;
518     return last_name;
519   }
520   else
521     return type->name;
522 }
523 
524 /*
525    Set the clientdata field for a type
526 */
527 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)528 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
529   swig_cast_info *cast = ti->cast;
530   /* if (ti->clientdata == clientdata) return; */
531   ti->clientdata = clientdata;
532 
533   while (cast) {
534     if (!cast->converter) {
535       swig_type_info *tc = cast->type;
536       if (!tc->clientdata) {
537 	SWIG_TypeClientData(tc, clientdata);
538       }
539     }
540     cast = cast->next;
541   }
542 }
543 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)544 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
545   SWIG_TypeClientData(ti, clientdata);
546   ti->owndata = 1;
547 }
548 
549 /*
550   Search for a swig_type_info structure only by mangled name
551   Search is a O(log #types)
552 
553   We start searching at module start, and finish searching when start == end.
554   Note: if start == end at the beginning of the function, we go all the way around
555   the circular list.
556 */
557 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)558 SWIG_MangledTypeQueryModule(swig_module_info *start,
559                             swig_module_info *end,
560 		            const char *name) {
561   swig_module_info *iter = start;
562   do {
563     if (iter->size) {
564       size_t l = 0;
565       size_t r = iter->size - 1;
566       do {
567 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
568 	size_t i = (l + r) >> 1;
569 	const char *iname = iter->types[i]->name;
570 	if (iname) {
571 	  int compare = strcmp(name, iname);
572 	  if (compare == 0) {
573 	    return iter->types[i];
574 	  } else if (compare < 0) {
575 	    if (i) {
576 	      r = i - 1;
577 	    } else {
578 	      break;
579 	    }
580 	  } else if (compare > 0) {
581 	    l = i + 1;
582 	  }
583 	} else {
584 	  break; /* should never happen */
585 	}
586       } while (l <= r);
587     }
588     iter = iter->next;
589   } while (iter != end);
590   return 0;
591 }
592 
593 /*
594   Search for a swig_type_info structure for either a mangled name or a human readable name.
595   It first searches the mangled names of the types, which is a O(log #types)
596   If a type is not found it then searches the human readable names, which is O(#types).
597 
598   We start searching at module start, and finish searching when start == end.
599   Note: if start == end at the beginning of the function, we go all the way around
600   the circular list.
601 */
602 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)603 SWIG_TypeQueryModule(swig_module_info *start,
604                      swig_module_info *end,
605 		     const char *name) {
606   /* STEP 1: Search the name field using binary search */
607   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
608   if (ret) {
609     return ret;
610   } else {
611     /* STEP 2: If the type hasn't been found, do a complete search
612        of the str field (the human readable name) */
613     swig_module_info *iter = start;
614     do {
615       size_t i = 0;
616       for (; i < iter->size; ++i) {
617 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
618 	  return iter->types[i];
619       }
620       iter = iter->next;
621     } while (iter != end);
622   }
623 
624   /* neither found a match */
625   return 0;
626 }
627 
628 /*
629    Pack binary data into a string
630 */
631 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)632 SWIG_PackData(char *c, void *ptr, size_t sz) {
633   static const char hex[17] = "0123456789abcdef";
634   const unsigned char *u = (unsigned char *) ptr;
635   const unsigned char *eu =  u + sz;
636   for (; u != eu; ++u) {
637     unsigned char uu = *u;
638     *(c++) = hex[(uu & 0xf0) >> 4];
639     *(c++) = hex[uu & 0xf];
640   }
641   return c;
642 }
643 
644 /*
645    Unpack binary data from a string
646 */
647 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)648 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
649   unsigned char *u = (unsigned char *) ptr;
650   const unsigned char *eu = u + sz;
651   for (; u != eu; ++u) {
652     char d = *(c++);
653     unsigned char uu;
654     if ((d >= '0') && (d <= '9'))
655       uu = (unsigned char)((d - '0') << 4);
656     else if ((d >= 'a') && (d <= 'f'))
657       uu = (unsigned char)((d - ('a'-10)) << 4);
658     else
659       return (char *) 0;
660     d = *(c++);
661     if ((d >= '0') && (d <= '9'))
662       uu |= (unsigned char)(d - '0');
663     else if ((d >= 'a') && (d <= 'f'))
664       uu |= (unsigned char)(d - ('a'-10));
665     else
666       return (char *) 0;
667     *u = uu;
668   }
669   return c;
670 }
671 
672 /*
673    Pack 'void *' into a string buffer.
674 */
675 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)676 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
677   char *r = buff;
678   if ((2*sizeof(void *) + 2) > bsz) return 0;
679   *(r++) = '_';
680   r = SWIG_PackData(r,&ptr,sizeof(void *));
681   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
682   strcpy(r,name);
683   return buff;
684 }
685 
686 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)687 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
688   if (*c != '_') {
689     if (strcmp(c,"NULL") == 0) {
690       *ptr = (void *) 0;
691       return name;
692     } else {
693       return 0;
694     }
695   }
696   return SWIG_UnpackData(++c,ptr,sizeof(void *));
697 }
698 
699 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)700 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
701   char *r = buff;
702   size_t lname = (name ? strlen(name) : 0);
703   if ((2*sz + 2 + lname) > bsz) return 0;
704   *(r++) = '_';
705   r = SWIG_PackData(r,ptr,sz);
706   if (lname) {
707     strncpy(r,name,lname+1);
708   } else {
709     *r = 0;
710   }
711   return buff;
712 }
713 
714 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)715 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
716   if (*c != '_') {
717     if (strcmp(c,"NULL") == 0) {
718       memset(ptr,0,sz);
719       return name;
720     } else {
721       return 0;
722     }
723   }
724   return SWIG_UnpackData(++c,ptr,sz);
725 }
726 
727 #ifdef __cplusplus
728 }
729 #endif
730 
731 /*  Errors in SWIG */
732 #define  SWIG_UnknownError    	   -1
733 #define  SWIG_IOError        	   -2
734 #define  SWIG_RuntimeError   	   -3
735 #define  SWIG_IndexError     	   -4
736 #define  SWIG_TypeError      	   -5
737 #define  SWIG_DivisionByZero 	   -6
738 #define  SWIG_OverflowError  	   -7
739 #define  SWIG_SyntaxError    	   -8
740 #define  SWIG_ValueError     	   -9
741 #define  SWIG_SystemError    	   -10
742 #define  SWIG_AttributeError 	   -11
743 #define  SWIG_MemoryError    	   -12
744 #define  SWIG_NullReferenceError   -13
745 
746 
747 
748 /* Compatibility macros for Python 3 */
749 #if PY_VERSION_HEX >= 0x03000000
750 
751 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
752 #define PyInt_Check(x) PyLong_Check(x)
753 #define PyInt_AsLong(x) PyLong_AsLong(x)
754 #define PyInt_FromLong(x) PyLong_FromLong(x)
755 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
756 #define PyString_Check(name) PyBytes_Check(name)
757 #define PyString_FromString(x) PyUnicode_FromString(x)
758 #define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
759 #define PyString_AsString(str) PyBytes_AsString(str)
760 #define PyString_Size(str) PyBytes_Size(str)
761 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
762 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
763 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
764 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
765 
766 #endif
767 
768 #ifndef Py_TYPE
769 #  define Py_TYPE(op) ((op)->ob_type)
770 #endif
771 
772 /* SWIG APIs for compatibility of both Python 2 & 3 */
773 
774 #if PY_VERSION_HEX >= 0x03000000
775 #  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
776 #else
777 #  define SWIG_Python_str_FromFormat PyString_FromFormat
778 #endif
779 
780 
781 /* Warning: This function will allocate a new string in Python 3,
782  * so please call SWIG_Python_str_DelForPy3(x) to free the space.
783  */
784 SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject * str)785 SWIG_Python_str_AsChar(PyObject *str)
786 {
787 #if PY_VERSION_HEX >= 0x03030000
788   return (char *)PyUnicode_AsUTF8(str);
789 #elif PY_VERSION_HEX >= 0x03000000
790   char *newstr = 0;
791   str = PyUnicode_AsUTF8String(str);
792   if (str) {
793     char *cstr;
794     Py_ssize_t len;
795     if (PyBytes_AsStringAndSize(str, &cstr, &len) != -1) {
796       newstr = (char *) malloc(len+1);
797       if (newstr)
798         memcpy(newstr, cstr, len+1);
799     }
800     Py_XDECREF(str);
801   }
802   return newstr;
803 #else
804   return PyString_AsString(str);
805 #endif
806 }
807 
808 #if PY_VERSION_HEX >= 0x03030000 || PY_VERSION_HEX < 0x03000000
809 #  define SWIG_Python_str_DelForPy3(x)
810 #else
811 #  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
812 #endif
813 
814 
815 SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char * c)816 SWIG_Python_str_FromChar(const char *c)
817 {
818 #if PY_VERSION_HEX >= 0x03000000
819   return PyUnicode_FromString(c);
820 #else
821   return PyString_FromString(c);
822 #endif
823 }
824 
825 #ifndef PyObject_DEL
826 # define PyObject_DEL PyObject_Del
827 #endif
828 
829 // SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user
830 // interface files check for it.
831 # define SWIGPY_USE_CAPSULE
832 # define SWIGPY_CAPSULE_NAME ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
833 
834 #if PY_VERSION_HEX < 0x03020000
835 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
836 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
837 #define Py_hash_t long
838 #endif
839 
840 /* -----------------------------------------------------------------------------
841  * error manipulation
842  * ----------------------------------------------------------------------------- */
843 
844 SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code)845 SWIG_Python_ErrorType(int code) {
846   PyObject* type = 0;
847   switch(code) {
848   case SWIG_MemoryError:
849     type = PyExc_MemoryError;
850     break;
851   case SWIG_IOError:
852     type = PyExc_IOError;
853     break;
854   case SWIG_RuntimeError:
855     type = PyExc_RuntimeError;
856     break;
857   case SWIG_IndexError:
858     type = PyExc_IndexError;
859     break;
860   case SWIG_TypeError:
861     type = PyExc_TypeError;
862     break;
863   case SWIG_DivisionByZero:
864     type = PyExc_ZeroDivisionError;
865     break;
866   case SWIG_OverflowError:
867     type = PyExc_OverflowError;
868     break;
869   case SWIG_SyntaxError:
870     type = PyExc_SyntaxError;
871     break;
872   case SWIG_ValueError:
873     type = PyExc_ValueError;
874     break;
875   case SWIG_SystemError:
876     type = PyExc_SystemError;
877     break;
878   case SWIG_AttributeError:
879     type = PyExc_AttributeError;
880     break;
881   default:
882     type = PyExc_RuntimeError;
883   }
884   return type;
885 }
886 
887 
888 SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char * mesg)889 SWIG_Python_AddErrorMsg(const char* mesg)
890 {
891   PyObject *type = 0;
892   PyObject *value = 0;
893   PyObject *traceback = 0;
894 
895   if (PyErr_Occurred())
896     PyErr_Fetch(&type, &value, &traceback);
897   if (value) {
898     PyObject *old_str = PyObject_Str(value);
899     const char *tmp = SWIG_Python_str_AsChar(old_str);
900     PyErr_Clear();
901     Py_XINCREF(type);
902     if (tmp)
903       PyErr_Format(type, "%s %s", tmp, mesg);
904     else
905       PyErr_Format(type, "%s", mesg);
906     SWIG_Python_str_DelForPy3(tmp);
907     Py_DECREF(old_str);
908     Py_DECREF(value);
909   } else {
910     PyErr_SetString(PyExc_RuntimeError, mesg);
911   }
912 }
913 
914 SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject * obj)915 SWIG_Python_TypeErrorOccurred(PyObject *obj)
916 {
917   PyObject *error;
918   if (obj)
919     return 0;
920   error = PyErr_Occurred();
921   return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
922 }
923 
924 SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char * message)925 SWIG_Python_RaiseOrModifyTypeError(const char *message)
926 {
927   if (SWIG_Python_TypeErrorOccurred(NULL)) {
928     /* Use existing TypeError to preserve stacktrace and enhance with given message */
929     PyObject *newvalue;
930     PyObject *type = NULL, *value = NULL, *traceback = NULL;
931     PyErr_Fetch(&type, &value, &traceback);
932 #if PY_VERSION_HEX >= 0x03000000
933     newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
934 #else
935     newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
936 #endif
937     Py_XDECREF(value);
938     PyErr_Restore(type, newvalue, traceback);
939   } else {
940     /* Raise TypeError using given message */
941     PyErr_SetString(PyExc_TypeError, message);
942   }
943 }
944 
945 #if defined(SWIG_PYTHON_NO_THREADS)
946 #  if defined(SWIG_PYTHON_THREADS)
947 #    undef SWIG_PYTHON_THREADS
948 #  endif
949 #endif
950 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
951 #  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
952 #    define SWIG_PYTHON_USE_GIL
953 #  endif
954 #  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
955 #    ifndef SWIG_PYTHON_INITIALIZE_THREADS
956 #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
957 #    endif
958 #    ifdef __cplusplus /* C++ code */
959        class SWIG_Python_Thread_Block {
960          bool status;
961          PyGILState_STATE state;
962        public:
end()963          void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block()964          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block()965          ~SWIG_Python_Thread_Block() { end(); }
966        };
967        class SWIG_Python_Thread_Allow {
968          bool status;
969          PyThreadState *save;
970        public:
end()971          void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow()972          SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow()973          ~SWIG_Python_Thread_Allow() { end(); }
974        };
975 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
976 #      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
977 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
978 #      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
979 #    else /* C code */
980 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
981 #      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
982 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
983 #      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
984 #    endif
985 #  else /* Old thread way, not implemented, user must provide it */
986 #    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
987 #      define SWIG_PYTHON_INITIALIZE_THREADS
988 #    endif
989 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
990 #      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
991 #    endif
992 #    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
993 #      define SWIG_PYTHON_THREAD_END_BLOCK
994 #    endif
995 #    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
996 #      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
997 #    endif
998 #    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
999 #      define SWIG_PYTHON_THREAD_END_ALLOW
1000 #    endif
1001 #  endif
1002 #else /* No thread support */
1003 #  define SWIG_PYTHON_INITIALIZE_THREADS
1004 #  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1005 #  define SWIG_PYTHON_THREAD_END_BLOCK
1006 #  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1007 #  define SWIG_PYTHON_THREAD_END_ALLOW
1008 #endif
1009 
1010 /* -----------------------------------------------------------------------------
1011  * Python API portion that goes into the runtime
1012  * ----------------------------------------------------------------------------- */
1013 
1014 #ifdef __cplusplus
1015 extern "C" {
1016 #endif
1017 
1018 /* -----------------------------------------------------------------------------
1019  * Constant declarations
1020  * ----------------------------------------------------------------------------- */
1021 
1022 /* Constant Types */
1023 #define SWIG_PY_POINTER 4
1024 #define SWIG_PY_BINARY  5
1025 
1026 /* Constant information structure */
1027 typedef struct swig_const_info {
1028   int type;
1029   const char *name;
1030   long lvalue;
1031   double dvalue;
1032   void   *pvalue;
1033   swig_type_info **ptype;
1034 } swig_const_info;
1035 
1036 #ifdef __cplusplus
1037 }
1038 #endif
1039 
1040 
1041 /* -----------------------------------------------------------------------------
1042  * pyrun.swg
1043  *
1044  * This file contains the runtime support for Python modules
1045  * and includes code for managing global variables and pointer
1046  * type checking.
1047  *
1048  * ----------------------------------------------------------------------------- */
1049 
1050 #if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
1051 # error "This version of SWIG only supports Python >= 2.7"
1052 #endif
1053 
1054 #if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03020000
1055 # error "This version of SWIG only supports Python 3 >= 3.2"
1056 #endif
1057 
1058 /* Common SWIG API */
1059 
1060 /* for raw pointers */
1061 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1062 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1063 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1064 
1065 #ifdef SWIGPYTHON_BUILTIN
1066 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
1067 #else
1068 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1069 #endif
1070 
1071 #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
1072 
1073 #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty)
1074 #define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
1075 #define swig_owntype                                    int
1076 
1077 /* for raw packed data */
1078 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1079 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1080 
1081 /* for class or struct pointers */
1082 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1083 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1084 
1085 /* for C or C++ function pointers */
1086 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1087 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
1088 
1089 /* for C++ member pointers, ie, member methods */
1090 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1091 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
1092 
1093 
1094 /* Runtime API */
1095 
1096 #define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
1097 #define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
1098 #define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
1099 
1100 #define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj
1101 #define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg
1102 #define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)
1103 #define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1104 #define SWIG_fail                        		goto fail
1105 
1106 
1107 /* Runtime API implementation */
1108 
1109 /* Error manipulation */
1110 
1111 SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject * errtype,PyObject * obj)1112 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1113   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1114   PyErr_SetObject(errtype, obj);
1115   Py_DECREF(obj);
1116   SWIG_PYTHON_THREAD_END_BLOCK;
1117 }
1118 
1119 SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject * errtype,const char * msg)1120 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1121   SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1122   PyErr_SetString(errtype, msg);
1123   SWIG_PYTHON_THREAD_END_BLOCK;
1124 }
1125 
1126 #define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1127 
1128 /* Set a constant value */
1129 
1130 #if defined(SWIGPYTHON_BUILTIN)
1131 
1132 SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject * seq,const char * key)1133 SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1134   PyObject *s = PyString_InternFromString(key);
1135   PyList_Append(seq, s);
1136   Py_DECREF(s);
1137 }
1138 
1139 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,PyObject * public_interface,const char * name,PyObject * obj)1140 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1141   PyDict_SetItemString(d, name, obj);
1142   Py_DECREF(obj);
1143   if (public_interface)
1144     SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1145 }
1146 
1147 #else
1148 
1149 SWIGINTERN void
SWIG_Python_SetConstant(PyObject * d,const char * name,PyObject * obj)1150 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1151   PyDict_SetItemString(d, name, obj);
1152   Py_DECREF(obj);
1153 }
1154 
1155 #endif
1156 
1157 /* Append a value to the result obj */
1158 
1159 SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject * result,PyObject * obj)1160 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1161   if (!result) {
1162     result = obj;
1163   } else if (result == Py_None) {
1164     Py_DECREF(result);
1165     result = obj;
1166   } else {
1167     if (!PyList_Check(result)) {
1168       PyObject *o2 = result;
1169       result = PyList_New(1);
1170       PyList_SetItem(result, 0, o2);
1171     }
1172     PyList_Append(result,obj);
1173     Py_DECREF(obj);
1174   }
1175   return result;
1176 }
1177 
1178 /* Unpack the argument tuple */
1179 
1180 SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject * args,const char * name,Py_ssize_t min,Py_ssize_t max,PyObject ** objs)1181 SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1182 {
1183   if (!args) {
1184     if (!min && !max) {
1185       return 1;
1186     } else {
1187       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1188 		   name, (min == max ? "" : "at least "), (int)min);
1189       return 0;
1190     }
1191   }
1192   if (!PyTuple_Check(args)) {
1193     if (min <= 1 && max >= 1) {
1194       Py_ssize_t i;
1195       objs[0] = args;
1196       for (i = 1; i < max; ++i) {
1197 	objs[i] = 0;
1198       }
1199       return 2;
1200     }
1201     PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1202     return 0;
1203   } else {
1204     Py_ssize_t l = PyTuple_GET_SIZE(args);
1205     if (l < min) {
1206       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1207 		   name, (min == max ? "" : "at least "), (int)min, (int)l);
1208       return 0;
1209     } else if (l > max) {
1210       PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1211 		   name, (min == max ? "" : "at most "), (int)max, (int)l);
1212       return 0;
1213     } else {
1214       Py_ssize_t i;
1215       for (i = 0; i < l; ++i) {
1216 	objs[i] = PyTuple_GET_ITEM(args, i);
1217       }
1218       for (; l < max; ++l) {
1219 	objs[l] = 0;
1220       }
1221       return i + 1;
1222     }
1223   }
1224 }
1225 
1226 SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject * kwargs,const char * name)1227 SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
1228   int no_kwargs = 1;
1229   if (kwargs) {
1230     assert(PyDict_Check(kwargs));
1231     if (PyDict_Size(kwargs) > 0) {
1232       PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
1233       no_kwargs = 0;
1234     }
1235   }
1236   return no_kwargs;
1237 }
1238 
1239 /* A functor is a function object with one single object argument */
1240 #define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
1241 
1242 /*
1243   Helper for static pointer initialization for both C and C++ code, for example
1244   static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1245 */
1246 #ifdef __cplusplus
1247 #define SWIG_STATIC_POINTER(var)  var
1248 #else
1249 #define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
1250 #endif
1251 
1252 /* -----------------------------------------------------------------------------
1253  * Pointer declarations
1254  * ----------------------------------------------------------------------------- */
1255 
1256 /* Flags for new pointer objects */
1257 #define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
1258 #define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1259 
1260 #define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
1261 
1262 #define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
1263 #define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
1264 
1265 #ifdef __cplusplus
1266 extern "C" {
1267 #endif
1268 
1269 /* The python void return value */
1270 
1271 SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)1272 SWIG_Py_Void(void)
1273 {
1274   PyObject *none = Py_None;
1275   Py_INCREF(none);
1276   return none;
1277 }
1278 
1279 /* SwigPyClientData */
1280 
1281 typedef struct {
1282   PyObject *klass;
1283   PyObject *newraw;
1284   PyObject *newargs;
1285   PyObject *destroy;
1286   int delargs;
1287   int implicitconv;
1288   PyTypeObject *pytype;
1289 } SwigPyClientData;
1290 
1291 SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info * ty)1292 SWIG_Python_CheckImplicit(swig_type_info *ty)
1293 {
1294   SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1295   int fail = data ? data->implicitconv : 0;
1296   if (fail)
1297     PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
1298   return fail;
1299 }
1300 
1301 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info * desc)1302 SWIG_Python_ExceptionType(swig_type_info *desc) {
1303   SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1304   PyObject *klass = data ? data->klass : 0;
1305   return (klass ? klass : PyExc_RuntimeError);
1306 }
1307 
1308 
1309 SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject * obj)1310 SwigPyClientData_New(PyObject* obj)
1311 {
1312   if (!obj) {
1313     return 0;
1314   } else {
1315     SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1316     /* the klass element */
1317     data->klass = obj;
1318     Py_INCREF(data->klass);
1319     /* the newraw method and newargs arguments used to create a new raw instance */
1320     if (PyClass_Check(obj)) {
1321       data->newraw = 0;
1322       data->newargs = obj;
1323       Py_INCREF(obj);
1324     } else {
1325       data->newraw = PyObject_GetAttrString(data->klass, "__new__");
1326       if (data->newraw) {
1327 	Py_INCREF(data->newraw);
1328 	data->newargs = PyTuple_New(1);
1329 	PyTuple_SetItem(data->newargs, 0, obj);
1330       } else {
1331 	data->newargs = obj;
1332       }
1333       Py_INCREF(data->newargs);
1334     }
1335     /* the destroy method, aka as the C++ delete method */
1336     data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
1337     if (PyErr_Occurred()) {
1338       PyErr_Clear();
1339       data->destroy = 0;
1340     }
1341     if (data->destroy) {
1342       int flags;
1343       Py_INCREF(data->destroy);
1344       flags = PyCFunction_GET_FLAGS(data->destroy);
1345       data->delargs = !(flags & (METH_O));
1346     } else {
1347       data->delargs = 0;
1348     }
1349     data->implicitconv = 0;
1350     data->pytype = 0;
1351     return data;
1352   }
1353 }
1354 
1355 SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData * data)1356 SwigPyClientData_Del(SwigPyClientData *data) {
1357   Py_XDECREF(data->newraw);
1358   Py_XDECREF(data->newargs);
1359   Py_XDECREF(data->destroy);
1360 }
1361 
1362 /* =============== SwigPyObject =====================*/
1363 
1364 typedef struct {
1365   PyObject_HEAD
1366   void *ptr;
1367   swig_type_info *ty;
1368   int own;
1369   PyObject *next;
1370 #ifdef SWIGPYTHON_BUILTIN
1371   PyObject *dict;
1372 #endif
1373 } SwigPyObject;
1374 
1375 
1376 #ifdef SWIGPYTHON_BUILTIN
1377 
1378 SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1379 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1380 {
1381   SwigPyObject *sobj = (SwigPyObject *)v;
1382 
1383   if (!sobj->dict)
1384     sobj->dict = PyDict_New();
1385 
1386   Py_INCREF(sobj->dict);
1387   return sobj->dict;
1388 }
1389 
1390 #endif
1391 
1392 SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject * v)1393 SwigPyObject_long(SwigPyObject *v)
1394 {
1395   return PyLong_FromVoidPtr(v->ptr);
1396 }
1397 
1398 SWIGRUNTIME PyObject *
SwigPyObject_format(const char * fmt,SwigPyObject * v)1399 SwigPyObject_format(const char* fmt, SwigPyObject *v)
1400 {
1401   PyObject *res = NULL;
1402   PyObject *args = PyTuple_New(1);
1403   if (args) {
1404     if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1405       PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1406       if (ofmt) {
1407 #if PY_VERSION_HEX >= 0x03000000
1408 	res = PyUnicode_Format(ofmt,args);
1409 #else
1410 	res = PyString_Format(ofmt,args);
1411 #endif
1412 	Py_DECREF(ofmt);
1413       }
1414       Py_DECREF(args);
1415     }
1416   }
1417   return res;
1418 }
1419 
1420 SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject * v)1421 SwigPyObject_oct(SwigPyObject *v)
1422 {
1423   return SwigPyObject_format("%o",v);
1424 }
1425 
1426 SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject * v)1427 SwigPyObject_hex(SwigPyObject *v)
1428 {
1429   return SwigPyObject_format("%x",v);
1430 }
1431 
1432 SWIGRUNTIME PyObject *
SwigPyObject_repr(SwigPyObject * v)1433 SwigPyObject_repr(SwigPyObject *v)
1434 {
1435   const char *name = SWIG_TypePrettyName(v->ty);
1436   PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1437   if (v->next) {
1438     PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1439 # if PY_VERSION_HEX >= 0x03000000
1440     PyObject *joined = PyUnicode_Concat(repr, nrep);
1441     Py_DecRef(repr);
1442     Py_DecRef(nrep);
1443     repr = joined;
1444 # else
1445     PyString_ConcatAndDel(&repr,nrep);
1446 # endif
1447   }
1448   return repr;
1449 }
1450 
1451 /* We need a version taking two PyObject* parameters so it's a valid
1452  * PyCFunction to use in swigobject_methods[]. */
1453 SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1454 SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1455 {
1456   return SwigPyObject_repr((SwigPyObject*)v);
1457 }
1458 
1459 SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject * v,SwigPyObject * w)1460 SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1461 {
1462   void *i = v->ptr;
1463   void *j = w->ptr;
1464   return (i < j) ? -1 : ((i > j) ? 1 : 0);
1465 }
1466 
1467 /* Added for Python 3.x, would it also be useful for Python 2.x? */
1468 SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject * v,SwigPyObject * w,int op)1469 SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1470 {
1471   PyObject* res;
1472   if( op != Py_EQ && op != Py_NE ) {
1473     Py_INCREF(Py_NotImplemented);
1474     return Py_NotImplemented;
1475   }
1476   res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1477   return res;
1478 }
1479 
1480 
1481 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
1482 
1483 #ifdef SWIGPYTHON_BUILTIN
1484 static swig_type_info *SwigPyObject_stype = 0;
1485 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1486 SwigPyObject_type(void) {
1487     SwigPyClientData *cd;
1488     assert(SwigPyObject_stype);
1489     cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1490     assert(cd);
1491     assert(cd->pytype);
1492     return cd->pytype;
1493 }
1494 #else
1495 SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void)1496 SwigPyObject_type(void) {
1497   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1498   return type;
1499 }
1500 #endif
1501 
1502 SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject * op)1503 SwigPyObject_Check(PyObject *op) {
1504 #ifdef SWIGPYTHON_BUILTIN
1505   PyTypeObject *target_tp = SwigPyObject_type();
1506   if (PyType_IsSubtype(op->ob_type, target_tp))
1507     return 1;
1508   return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1509 #else
1510   return (Py_TYPE(op) == SwigPyObject_type())
1511     || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
1512 #endif
1513 }
1514 
1515 SWIGRUNTIME PyObject *
1516 SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1517 
1518 SWIGRUNTIME void
SwigPyObject_dealloc(PyObject * v)1519 SwigPyObject_dealloc(PyObject *v)
1520 {
1521   SwigPyObject *sobj = (SwigPyObject *) v;
1522   PyObject *next = sobj->next;
1523   if (sobj->own == SWIG_POINTER_OWN) {
1524     swig_type_info *ty = sobj->ty;
1525     SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1526     PyObject *destroy = data ? data->destroy : 0;
1527     if (destroy) {
1528       /* destroy is always a VARARGS method */
1529       PyObject *res;
1530 
1531       /* PyObject_CallFunction() has the potential to silently drop
1532          the active exception.  In cases of unnamed temporary
1533          variable or where we just finished iterating over a generator
1534          StopIteration will be active right now, and this needs to
1535          remain true upon return from SwigPyObject_dealloc.  So save
1536          and restore. */
1537 
1538       PyObject *type = NULL, *value = NULL, *traceback = NULL;
1539       PyErr_Fetch(&type, &value, &traceback);
1540 
1541       if (data->delargs) {
1542         /* we need to create a temporary object to carry the destroy operation */
1543         PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1544         res = SWIG_Python_CallFunctor(destroy, tmp);
1545         Py_DECREF(tmp);
1546       } else {
1547         PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1548         PyObject *mself = PyCFunction_GET_SELF(destroy);
1549         res = ((*meth)(mself, v));
1550       }
1551       if (!res)
1552         PyErr_WriteUnraisable(destroy);
1553 
1554       PyErr_Restore(type, value, traceback);
1555 
1556       Py_XDECREF(res);
1557     }
1558 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1559     else {
1560       const char *name = SWIG_TypePrettyName(ty);
1561       printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1562     }
1563 #endif
1564   }
1565   Py_XDECREF(next);
1566   PyObject_DEL(v);
1567 }
1568 
1569 SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject * v,PyObject * next)1570 SwigPyObject_append(PyObject* v, PyObject* next)
1571 {
1572   SwigPyObject *sobj = (SwigPyObject *) v;
1573   if (!SwigPyObject_Check(next)) {
1574     PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1575     return NULL;
1576   }
1577   sobj->next = next;
1578   Py_INCREF(next);
1579   return SWIG_Py_Void();
1580 }
1581 
1582 SWIGRUNTIME PyObject*
SwigPyObject_next(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1583 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1584 {
1585   SwigPyObject *sobj = (SwigPyObject *) v;
1586   if (sobj->next) {
1587     Py_INCREF(sobj->next);
1588     return sobj->next;
1589   } else {
1590     return SWIG_Py_Void();
1591   }
1592 }
1593 
1594 SWIGINTERN PyObject*
SwigPyObject_disown(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1595 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1596 {
1597   SwigPyObject *sobj = (SwigPyObject *)v;
1598   sobj->own = 0;
1599   return SWIG_Py_Void();
1600 }
1601 
1602 SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject * v,PyObject * SWIGUNUSEDPARM (args))1603 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1604 {
1605   SwigPyObject *sobj = (SwigPyObject *)v;
1606   sobj->own = SWIG_POINTER_OWN;
1607   return SWIG_Py_Void();
1608 }
1609 
1610 SWIGINTERN PyObject*
SwigPyObject_own(PyObject * v,PyObject * args)1611 SwigPyObject_own(PyObject *v, PyObject *args)
1612 {
1613   PyObject *val = 0;
1614   if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
1615     return NULL;
1616   } else {
1617     SwigPyObject *sobj = (SwigPyObject *)v;
1618     PyObject *obj = PyBool_FromLong(sobj->own);
1619     if (val) {
1620       if (PyObject_IsTrue(val)) {
1621         SwigPyObject_acquire(v,args);
1622       } else {
1623         SwigPyObject_disown(v,args);
1624       }
1625     }
1626     return obj;
1627   }
1628 }
1629 
1630 static PyMethodDef
1631 swigobject_methods[] = {
1632   {"disown",  SwigPyObject_disown,  METH_NOARGS,  "releases ownership of the pointer"},
1633   {"acquire", SwigPyObject_acquire, METH_NOARGS,  "acquires ownership of the pointer"},
1634   {"own",     SwigPyObject_own,     METH_VARARGS, "returns/sets ownership of the pointer"},
1635   {"append",  SwigPyObject_append,  METH_O,       "appends another 'this' object"},
1636   {"next",    SwigPyObject_next,    METH_NOARGS,  "returns the next 'this' object"},
1637   {"__repr__",SwigPyObject_repr2,   METH_NOARGS,  "returns object representation"},
1638   {0, 0, 0, 0}
1639 };
1640 
1641 SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void)1642 SwigPyObject_TypeOnce(void) {
1643   static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1644 
1645   static PyNumberMethods SwigPyObject_as_number = {
1646     (binaryfunc)0, /*nb_add*/
1647     (binaryfunc)0, /*nb_subtract*/
1648     (binaryfunc)0, /*nb_multiply*/
1649     /* nb_divide removed in Python 3 */
1650 #if PY_VERSION_HEX < 0x03000000
1651     (binaryfunc)0, /*nb_divide*/
1652 #endif
1653     (binaryfunc)0, /*nb_remainder*/
1654     (binaryfunc)0, /*nb_divmod*/
1655     (ternaryfunc)0,/*nb_power*/
1656     (unaryfunc)0,  /*nb_negative*/
1657     (unaryfunc)0,  /*nb_positive*/
1658     (unaryfunc)0,  /*nb_absolute*/
1659     (inquiry)0,    /*nb_nonzero*/
1660     0,		   /*nb_invert*/
1661     0,		   /*nb_lshift*/
1662     0,		   /*nb_rshift*/
1663     0,		   /*nb_and*/
1664     0,		   /*nb_xor*/
1665     0,		   /*nb_or*/
1666 #if PY_VERSION_HEX < 0x03000000
1667     0,   /*nb_coerce*/
1668 #endif
1669     (unaryfunc)SwigPyObject_long, /*nb_int*/
1670 #if PY_VERSION_HEX < 0x03000000
1671     (unaryfunc)SwigPyObject_long, /*nb_long*/
1672 #else
1673     0, /*nb_reserved*/
1674 #endif
1675     (unaryfunc)0,                 /*nb_float*/
1676 #if PY_VERSION_HEX < 0x03000000
1677     (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
1678     (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
1679 #endif
1680 #if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
1681     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1682 #elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
1683     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1684 #else
1685     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1686 #endif
1687   };
1688 
1689   static PyTypeObject swigpyobject_type;
1690   static int type_init = 0;
1691   if (!type_init) {
1692     const PyTypeObject tmp = {
1693 #if PY_VERSION_HEX >= 0x03000000
1694       PyVarObject_HEAD_INIT(NULL, 0)
1695 #else
1696       PyObject_HEAD_INIT(NULL)
1697       0,                                    /* ob_size */
1698 #endif
1699       "SwigPyObject",                       /* tp_name */
1700       sizeof(SwigPyObject),                 /* tp_basicsize */
1701       0,                                    /* tp_itemsize */
1702       (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
1703       0,                                    /* tp_print */
1704       (getattrfunc)0,                       /* tp_getattr */
1705       (setattrfunc)0,                       /* tp_setattr */
1706 #if PY_VERSION_HEX >= 0x03000000
1707       0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1708 #else
1709       (cmpfunc)SwigPyObject_compare,        /* tp_compare */
1710 #endif
1711       (reprfunc)SwigPyObject_repr,          /* tp_repr */
1712       &SwigPyObject_as_number,              /* tp_as_number */
1713       0,                                    /* tp_as_sequence */
1714       0,                                    /* tp_as_mapping */
1715       (hashfunc)0,                          /* tp_hash */
1716       (ternaryfunc)0,                       /* tp_call */
1717       0,                                    /* tp_str */
1718       PyObject_GenericGetAttr,              /* tp_getattro */
1719       0,                                    /* tp_setattro */
1720       0,                                    /* tp_as_buffer */
1721       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1722       swigobject_doc,                       /* tp_doc */
1723       0,                                    /* tp_traverse */
1724       0,                                    /* tp_clear */
1725       (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1726       0,                                    /* tp_weaklistoffset */
1727       0,                                    /* tp_iter */
1728       0,                                    /* tp_iternext */
1729       swigobject_methods,                   /* tp_methods */
1730       0,                                    /* tp_members */
1731       0,                                    /* tp_getset */
1732       0,                                    /* tp_base */
1733       0,                                    /* tp_dict */
1734       0,                                    /* tp_descr_get */
1735       0,                                    /* tp_descr_set */
1736       0,                                    /* tp_dictoffset */
1737       0,                                    /* tp_init */
1738       0,                                    /* tp_alloc */
1739       0,                                    /* tp_new */
1740       0,                                    /* tp_free */
1741       0,                                    /* tp_is_gc */
1742       0,                                    /* tp_bases */
1743       0,                                    /* tp_mro */
1744       0,                                    /* tp_cache */
1745       0,                                    /* tp_subclasses */
1746       0,                                    /* tp_weaklist */
1747       0,                                    /* tp_del */
1748       0,                                    /* tp_version_tag */
1749 #if PY_VERSION_HEX >= 0x03040000
1750       0,                                    /* tp_finalize */
1751 #endif
1752 #if PY_VERSION_HEX >= 0x03080000
1753       0,                                    /* tp_vectorcall */
1754 #endif
1755 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1756       0,                                    /* tp_print */
1757 #endif
1758 #ifdef COUNT_ALLOCS
1759       0,                                    /* tp_allocs */
1760       0,                                    /* tp_frees */
1761       0,                                    /* tp_maxalloc */
1762       0,                                    /* tp_prev */
1763       0                                     /* tp_next */
1764 #endif
1765     };
1766     swigpyobject_type = tmp;
1767     type_init = 1;
1768     if (PyType_Ready(&swigpyobject_type) < 0)
1769       return NULL;
1770   }
1771   return &swigpyobject_type;
1772 }
1773 
1774 SWIGRUNTIME PyObject *
SwigPyObject_New(void * ptr,swig_type_info * ty,int own)1775 SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1776 {
1777   SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1778   if (sobj) {
1779     sobj->ptr  = ptr;
1780     sobj->ty   = ty;
1781     sobj->own  = own;
1782     sobj->next = 0;
1783   }
1784   return (PyObject *)sobj;
1785 }
1786 
1787 /* -----------------------------------------------------------------------------
1788  * Implements a simple Swig Packed type, and use it instead of string
1789  * ----------------------------------------------------------------------------- */
1790 
1791 typedef struct {
1792   PyObject_HEAD
1793   void *pack;
1794   swig_type_info *ty;
1795   size_t size;
1796 } SwigPyPacked;
1797 
1798 SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked * v)1799 SwigPyPacked_repr(SwigPyPacked *v)
1800 {
1801   char result[SWIG_BUFFER_SIZE];
1802   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1803     return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1804   } else {
1805     return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
1806   }
1807 }
1808 
1809 SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked * v)1810 SwigPyPacked_str(SwigPyPacked *v)
1811 {
1812   char result[SWIG_BUFFER_SIZE];
1813   if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1814     return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
1815   } else {
1816     return SWIG_Python_str_FromChar(v->ty->name);
1817   }
1818 }
1819 
1820 SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked * v,SwigPyPacked * w)1821 SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
1822 {
1823   size_t i = v->size;
1824   size_t j = w->size;
1825   int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1826   return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
1827 }
1828 
1829 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
1830 
1831 SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void)1832 SwigPyPacked_type(void) {
1833   static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
1834   return type;
1835 }
1836 
1837 SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject * op)1838 SwigPyPacked_Check(PyObject *op) {
1839   return ((op)->ob_type == SwigPyPacked_TypeOnce())
1840     || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
1841 }
1842 
1843 SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject * v)1844 SwigPyPacked_dealloc(PyObject *v)
1845 {
1846   if (SwigPyPacked_Check(v)) {
1847     SwigPyPacked *sobj = (SwigPyPacked *) v;
1848     free(sobj->pack);
1849   }
1850   PyObject_DEL(v);
1851 }
1852 
1853 SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void)1854 SwigPyPacked_TypeOnce(void) {
1855   static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1856   static PyTypeObject swigpypacked_type;
1857   static int type_init = 0;
1858   if (!type_init) {
1859     const PyTypeObject tmp = {
1860 #if PY_VERSION_HEX>=0x03000000
1861       PyVarObject_HEAD_INIT(NULL, 0)
1862 #else
1863       PyObject_HEAD_INIT(NULL)
1864       0,                                    /* ob_size */
1865 #endif
1866       "SwigPyPacked",                       /* tp_name */
1867       sizeof(SwigPyPacked),                 /* tp_basicsize */
1868       0,                                    /* tp_itemsize */
1869       (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
1870       0,                                    /* tp_print */
1871       (getattrfunc)0,                       /* tp_getattr */
1872       (setattrfunc)0,                       /* tp_setattr */
1873 #if PY_VERSION_HEX>=0x03000000
1874       0, /* tp_reserved in 3.0.1 */
1875 #else
1876       (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
1877 #endif
1878       (reprfunc)SwigPyPacked_repr,          /* tp_repr */
1879       0,                                    /* tp_as_number */
1880       0,                                    /* tp_as_sequence */
1881       0,                                    /* tp_as_mapping */
1882       (hashfunc)0,                          /* tp_hash */
1883       (ternaryfunc)0,                       /* tp_call */
1884       (reprfunc)SwigPyPacked_str,           /* tp_str */
1885       PyObject_GenericGetAttr,              /* tp_getattro */
1886       0,                                    /* tp_setattro */
1887       0,                                    /* tp_as_buffer */
1888       Py_TPFLAGS_DEFAULT,                   /* tp_flags */
1889       swigpacked_doc,                       /* tp_doc */
1890       0,                                    /* tp_traverse */
1891       0,                                    /* tp_clear */
1892       0,                                    /* tp_richcompare */
1893       0,                                    /* tp_weaklistoffset */
1894       0,                                    /* tp_iter */
1895       0,                                    /* tp_iternext */
1896       0,                                    /* tp_methods */
1897       0,                                    /* tp_members */
1898       0,                                    /* tp_getset */
1899       0,                                    /* tp_base */
1900       0,                                    /* tp_dict */
1901       0,                                    /* tp_descr_get */
1902       0,                                    /* tp_descr_set */
1903       0,                                    /* tp_dictoffset */
1904       0,                                    /* tp_init */
1905       0,                                    /* tp_alloc */
1906       0,                                    /* tp_new */
1907       0,                                    /* tp_free */
1908       0,                                    /* tp_is_gc */
1909       0,                                    /* tp_bases */
1910       0,                                    /* tp_mro */
1911       0,                                    /* tp_cache */
1912       0,                                    /* tp_subclasses */
1913       0,                                    /* tp_weaklist */
1914       0,                                    /* tp_del */
1915       0,                                    /* tp_version_tag */
1916 #if PY_VERSION_HEX >= 0x03040000
1917       0,                                    /* tp_finalize */
1918 #endif
1919 #if PY_VERSION_HEX >= 0x03080000
1920       0,                                    /* tp_vectorcall */
1921 #endif
1922 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
1923       0,                                    /* tp_print */
1924 #endif
1925 #ifdef COUNT_ALLOCS
1926       0,                                    /* tp_allocs */
1927       0,                                    /* tp_frees */
1928       0,                                    /* tp_maxalloc */
1929       0,                                    /* tp_prev */
1930       0                                     /* tp_next */
1931 #endif
1932     };
1933     swigpypacked_type = tmp;
1934     type_init = 1;
1935     if (PyType_Ready(&swigpypacked_type) < 0)
1936       return NULL;
1937   }
1938   return &swigpypacked_type;
1939 }
1940 
1941 SWIGRUNTIME PyObject *
SwigPyPacked_New(void * ptr,size_t size,swig_type_info * ty)1942 SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
1943 {
1944   SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
1945   if (sobj) {
1946     void *pack = malloc(size);
1947     if (pack) {
1948       memcpy(pack, ptr, size);
1949       sobj->pack = pack;
1950       sobj->ty   = ty;
1951       sobj->size = size;
1952     } else {
1953       PyObject_DEL((PyObject *) sobj);
1954       sobj = 0;
1955     }
1956   }
1957   return (PyObject *) sobj;
1958 }
1959 
1960 SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject * obj,void * ptr,size_t size)1961 SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1962 {
1963   if (SwigPyPacked_Check(obj)) {
1964     SwigPyPacked *sobj = (SwigPyPacked *)obj;
1965     if (sobj->size != size) return 0;
1966     memcpy(ptr, sobj->pack, size);
1967     return sobj->ty;
1968   } else {
1969     return 0;
1970   }
1971 }
1972 
1973 /* -----------------------------------------------------------------------------
1974  * pointers/data manipulation
1975  * ----------------------------------------------------------------------------- */
1976 
1977 static PyObject *Swig_This_global = NULL;
1978 
1979 SWIGRUNTIME PyObject *
SWIG_This(void)1980 SWIG_This(void)
1981 {
1982   if (Swig_This_global == NULL)
1983     Swig_This_global = SWIG_Python_str_FromChar("this");
1984   return Swig_This_global;
1985 }
1986 
1987 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1988 
1989 /* TODO: I don't know how to implement the fast getset in Python 3 right now */
1990 #if PY_VERSION_HEX>=0x03000000
1991 #define SWIG_PYTHON_SLOW_GETSET_THIS
1992 #endif
1993 
1994 SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject * pyobj)1995 SWIG_Python_GetSwigThis(PyObject *pyobj)
1996 {
1997   PyObject *obj;
1998 
1999   if (SwigPyObject_Check(pyobj))
2000     return (SwigPyObject *) pyobj;
2001 
2002 #ifdef SWIGPYTHON_BUILTIN
2003   (void)obj;
2004 # ifdef PyWeakref_CheckProxy
2005   if (PyWeakref_CheckProxy(pyobj)) {
2006     pyobj = PyWeakref_GET_OBJECT(pyobj);
2007     if (pyobj && SwigPyObject_Check(pyobj))
2008       return (SwigPyObject*) pyobj;
2009   }
2010 # endif
2011   return NULL;
2012 #else
2013 
2014   obj = 0;
2015 
2016 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2017   if (PyInstance_Check(pyobj)) {
2018     obj = _PyInstance_Lookup(pyobj, SWIG_This());
2019   } else {
2020     PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2021     if (dictptr != NULL) {
2022       PyObject *dict = *dictptr;
2023       obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2024     } else {
2025 #ifdef PyWeakref_CheckProxy
2026       if (PyWeakref_CheckProxy(pyobj)) {
2027 	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2028 	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2029       }
2030 #endif
2031       obj = PyObject_GetAttr(pyobj,SWIG_This());
2032       if (obj) {
2033 	Py_DECREF(obj);
2034       } else {
2035 	if (PyErr_Occurred()) PyErr_Clear();
2036 	return 0;
2037       }
2038     }
2039   }
2040 #else
2041   obj = PyObject_GetAttr(pyobj,SWIG_This());
2042   if (obj) {
2043     Py_DECREF(obj);
2044   } else {
2045     if (PyErr_Occurred()) PyErr_Clear();
2046     return 0;
2047   }
2048 #endif
2049   if (obj && !SwigPyObject_Check(obj)) {
2050     /* a PyObject is called 'this', try to get the 'real this'
2051        SwigPyObject from it */
2052     return SWIG_Python_GetSwigThis(obj);
2053   }
2054   return (SwigPyObject *)obj;
2055 #endif
2056 }
2057 
2058 /* Acquire a pointer value */
2059 
2060 SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject * obj,int own)2061 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2062   if (own == SWIG_POINTER_OWN) {
2063     SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2064     if (sobj) {
2065       int oldown = sobj->own;
2066       sobj->own = own;
2067       return oldown;
2068     }
2069   }
2070   return 0;
2071 }
2072 
2073 /* Convert a pointer value */
2074 
2075 SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject * obj,void ** ptr,swig_type_info * ty,int flags,int * own)2076 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2077   int res;
2078   SwigPyObject *sobj;
2079   int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2080 
2081   if (!obj)
2082     return SWIG_ERROR;
2083   if (obj == Py_None && !implicit_conv) {
2084     if (ptr)
2085       *ptr = 0;
2086     return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
2087   }
2088 
2089   res = SWIG_ERROR;
2090 
2091   sobj = SWIG_Python_GetSwigThis(obj);
2092   if (own)
2093     *own = 0;
2094   while (sobj) {
2095     void *vptr = sobj->ptr;
2096     if (ty) {
2097       swig_type_info *to = sobj->ty;
2098       if (to == ty) {
2099         /* no type cast needed */
2100         if (ptr) *ptr = vptr;
2101         break;
2102       } else {
2103         swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2104         if (!tc) {
2105           sobj = (SwigPyObject *)sobj->next;
2106         } else {
2107           if (ptr) {
2108             int newmemory = 0;
2109             *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2110             if (newmemory == SWIG_CAST_NEW_MEMORY) {
2111               assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2112               if (own)
2113                 *own = *own | SWIG_CAST_NEW_MEMORY;
2114             }
2115           }
2116           break;
2117         }
2118       }
2119     } else {
2120       if (ptr) *ptr = vptr;
2121       break;
2122     }
2123   }
2124   if (sobj) {
2125     if (own)
2126       *own = *own | sobj->own;
2127     if (flags & SWIG_POINTER_DISOWN) {
2128       sobj->own = 0;
2129     }
2130     res = SWIG_OK;
2131   } else {
2132     if (implicit_conv) {
2133       SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2134       if (data && !data->implicitconv) {
2135         PyObject *klass = data->klass;
2136         if (klass) {
2137           PyObject *impconv;
2138           data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2139           impconv = SWIG_Python_CallFunctor(klass, obj);
2140           data->implicitconv = 0;
2141           if (PyErr_Occurred()) {
2142             PyErr_Clear();
2143             impconv = 0;
2144           }
2145           if (impconv) {
2146             SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2147             if (iobj) {
2148               void *vptr;
2149               res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2150               if (SWIG_IsOK(res)) {
2151                 if (ptr) {
2152                   *ptr = vptr;
2153                   /* transfer the ownership to 'ptr' */
2154                   iobj->own = 0;
2155                   res = SWIG_AddCast(res);
2156                   res = SWIG_AddNewMask(res);
2157                 } else {
2158                   res = SWIG_AddCast(res);
2159                 }
2160               }
2161             }
2162             Py_DECREF(impconv);
2163           }
2164         }
2165       }
2166       if (!SWIG_IsOK(res) && obj == Py_None) {
2167         if (ptr)
2168           *ptr = 0;
2169         if (PyErr_Occurred())
2170           PyErr_Clear();
2171         res = SWIG_OK;
2172       }
2173     }
2174   }
2175   return res;
2176 }
2177 
2178 /* Convert a function ptr value */
2179 
2180 SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject * obj,void ** ptr,swig_type_info * ty)2181 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2182   if (!PyCFunction_Check(obj)) {
2183     return SWIG_ConvertPtr(obj, ptr, ty, 0);
2184   } else {
2185     void *vptr = 0;
2186     swig_cast_info *tc;
2187 
2188     /* here we get the method pointer for callbacks */
2189     const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2190     const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2191     if (desc)
2192       desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2193     if (!desc)
2194       return SWIG_ERROR;
2195     tc = SWIG_TypeCheck(desc,ty);
2196     if (tc) {
2197       int newmemory = 0;
2198       *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2199       assert(!newmemory); /* newmemory handling not yet implemented */
2200     } else {
2201       return SWIG_ERROR;
2202     }
2203     return SWIG_OK;
2204   }
2205 }
2206 
2207 /* Convert a packed pointer value */
2208 
2209 SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject * obj,void * ptr,size_t sz,swig_type_info * ty)2210 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2211   swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2212   if (!to) return SWIG_ERROR;
2213   if (ty) {
2214     if (to != ty) {
2215       /* check type cast? */
2216       swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2217       if (!tc) return SWIG_ERROR;
2218     }
2219   }
2220   return SWIG_OK;
2221 }
2222 
2223 /* -----------------------------------------------------------------------------
2224  * Create a new pointer object
2225  * ----------------------------------------------------------------------------- */
2226 
2227 /*
2228   Create a new instance object, without calling __init__, and set the
2229   'this' attribute.
2230 */
2231 
2232 SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData * data,PyObject * swig_this)2233 SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2234 {
2235   PyObject *inst = 0;
2236   PyObject *newraw = data->newraw;
2237   if (newraw) {
2238     inst = PyObject_Call(newraw, data->newargs, NULL);
2239     if (inst) {
2240 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2241       PyObject **dictptr = _PyObject_GetDictPtr(inst);
2242       if (dictptr != NULL) {
2243 	PyObject *dict = *dictptr;
2244 	if (dict == NULL) {
2245 	  dict = PyDict_New();
2246 	  *dictptr = dict;
2247 	  PyDict_SetItem(dict, SWIG_This(), swig_this);
2248 	}
2249       }
2250 #else
2251       if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2252         Py_DECREF(inst);
2253         inst = 0;
2254       }
2255 #endif
2256     }
2257   } else {
2258 #if PY_VERSION_HEX >= 0x03000000
2259     PyObject *empty_args = PyTuple_New(0);
2260     if (empty_args) {
2261       PyObject *empty_kwargs = PyDict_New();
2262       if (empty_kwargs) {
2263         inst = ((PyTypeObject *)data->newargs)->tp_new((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
2264         Py_DECREF(empty_kwargs);
2265         if (inst) {
2266           if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
2267             Py_DECREF(inst);
2268             inst = 0;
2269           } else {
2270             Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2271           }
2272         }
2273       }
2274       Py_DECREF(empty_args);
2275     }
2276 #else
2277     PyObject *dict = PyDict_New();
2278     if (dict) {
2279       PyDict_SetItem(dict, SWIG_This(), swig_this);
2280       inst = PyInstance_NewRaw(data->newargs, dict);
2281       Py_DECREF(dict);
2282     }
2283 #endif
2284   }
2285   return inst;
2286 }
2287 
2288 SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject * inst,PyObject * swig_this)2289 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2290 {
2291 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2292   PyObject **dictptr = _PyObject_GetDictPtr(inst);
2293   if (dictptr != NULL) {
2294     PyObject *dict = *dictptr;
2295     if (dict == NULL) {
2296       dict = PyDict_New();
2297       *dictptr = dict;
2298     }
2299     return PyDict_SetItem(dict, SWIG_This(), swig_this);
2300   }
2301 #endif
2302   return PyObject_SetAttr(inst, SWIG_This(), swig_this);
2303 }
2304 
2305 
2306 SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject * args)2307 SWIG_Python_InitShadowInstance(PyObject *args) {
2308   PyObject *obj[2];
2309   if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2310     return NULL;
2311   } else {
2312     SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2313     if (sthis) {
2314       SwigPyObject_append((PyObject*) sthis, obj[1]);
2315     } else {
2316       if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
2317         return NULL;
2318     }
2319     return SWIG_Py_Void();
2320   }
2321 }
2322 
2323 /* Create a new pointer object */
2324 
2325 SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject * self,void * ptr,swig_type_info * type,int flags)2326 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2327   SwigPyClientData *clientdata;
2328   PyObject * robj;
2329   int own;
2330 
2331   if (!ptr)
2332     return SWIG_Py_Void();
2333 
2334   clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2335   own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2336   if (clientdata && clientdata->pytype) {
2337     SwigPyObject *newobj;
2338     if (flags & SWIG_BUILTIN_TP_INIT) {
2339       newobj = (SwigPyObject*) self;
2340       if (newobj->ptr) {
2341         PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2342         while (newobj->next)
2343 	  newobj = (SwigPyObject *) newobj->next;
2344         newobj->next = next_self;
2345         newobj = (SwigPyObject *)next_self;
2346 #ifdef SWIGPYTHON_BUILTIN
2347         newobj->dict = 0;
2348 #endif
2349       }
2350     } else {
2351       newobj = PyObject_New(SwigPyObject, clientdata->pytype);
2352 #ifdef SWIGPYTHON_BUILTIN
2353       newobj->dict = 0;
2354 #endif
2355     }
2356     if (newobj) {
2357       newobj->ptr = ptr;
2358       newobj->ty = type;
2359       newobj->own = own;
2360       newobj->next = 0;
2361       return (PyObject*) newobj;
2362     }
2363     return SWIG_Py_Void();
2364   }
2365 
2366   assert(!(flags & SWIG_BUILTIN_TP_INIT));
2367 
2368   robj = SwigPyObject_New(ptr, type, own);
2369   if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2370     PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2371     Py_DECREF(robj);
2372     robj = inst;
2373   }
2374   return robj;
2375 }
2376 
2377 /* Create a new packed object */
2378 
2379 SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void * ptr,size_t sz,swig_type_info * type)2380 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2381   return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2382 }
2383 
2384 /* -----------------------------------------------------------------------------*
2385  *  Get type list
2386  * -----------------------------------------------------------------------------*/
2387 
2388 #ifdef SWIG_LINK_RUNTIME
2389 void *SWIG_ReturnGlobalTypeList(void *);
2390 #endif
2391 
2392 SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void * SWIGUNUSEDPARM (clientdata))2393 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2394   static void *type_pointer = (void *)0;
2395   /* first check if module already created */
2396   if (!type_pointer) {
2397 #ifdef SWIG_LINK_RUNTIME
2398     type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2399 #else
2400     type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2401     if (PyErr_Occurred()) {
2402       PyErr_Clear();
2403       type_pointer = (void *)0;
2404     }
2405 #endif
2406   }
2407   return (swig_module_info *) type_pointer;
2408 }
2409 
2410 SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject * obj)2411 SWIG_Python_DestroyModule(PyObject *obj)
2412 {
2413   swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
2414   swig_type_info **types = swig_module->types;
2415   size_t i;
2416   for (i =0; i < swig_module->size; ++i) {
2417     swig_type_info *ty = types[i];
2418     if (ty->owndata) {
2419       SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2420       if (data) SwigPyClientData_Del(data);
2421     }
2422   }
2423   Py_DECREF(SWIG_This());
2424   Swig_This_global = NULL;
2425 }
2426 
2427 SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info * swig_module)2428 SWIG_Python_SetModule(swig_module_info *swig_module) {
2429 #if PY_VERSION_HEX >= 0x03000000
2430  /* Add a dummy module object into sys.modules */
2431   PyObject *module = PyImport_AddModule("swig_runtime_data" SWIG_RUNTIME_VERSION);
2432 #else
2433   static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
2434   PyObject *module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2435 #endif
2436   PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2437   if (pointer && module) {
2438     PyModule_AddObject(module, "type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2439   } else {
2440     Py_XDECREF(pointer);
2441   }
2442 }
2443 
2444 /* The python cached type query */
2445 SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void)2446 SWIG_Python_TypeCache(void) {
2447   static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2448   return cache;
2449 }
2450 
2451 SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char * type)2452 SWIG_Python_TypeQuery(const char *type)
2453 {
2454   PyObject *cache = SWIG_Python_TypeCache();
2455   PyObject *key = SWIG_Python_str_FromChar(type);
2456   PyObject *obj = PyDict_GetItem(cache, key);
2457   swig_type_info *descriptor;
2458   if (obj) {
2459     descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
2460   } else {
2461     swig_module_info *swig_module = SWIG_GetModule(0);
2462     descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2463     if (descriptor) {
2464       obj = PyCapsule_New((void*) descriptor, NULL, NULL);
2465       PyDict_SetItem(cache, key, obj);
2466       Py_DECREF(obj);
2467     }
2468   }
2469   Py_DECREF(key);
2470   return descriptor;
2471 }
2472 
2473 /*
2474    For backward compatibility only
2475 */
2476 #define SWIG_POINTER_EXCEPTION  0
2477 #define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
2478 #define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
2479 
2480 SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char * mesg,int infront)2481 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2482 {
2483   if (PyErr_Occurred()) {
2484     PyObject *type = 0;
2485     PyObject *value = 0;
2486     PyObject *traceback = 0;
2487     PyErr_Fetch(&type, &value, &traceback);
2488     if (value) {
2489       PyObject *old_str = PyObject_Str(value);
2490       const char *tmp = SWIG_Python_str_AsChar(old_str);
2491       const char *errmesg = tmp ? tmp : "Invalid error message";
2492       Py_XINCREF(type);
2493       PyErr_Clear();
2494       if (infront) {
2495 	PyErr_Format(type, "%s %s", mesg, errmesg);
2496       } else {
2497 	PyErr_Format(type, "%s %s", errmesg, mesg);
2498       }
2499       SWIG_Python_str_DelForPy3(tmp);
2500       Py_DECREF(old_str);
2501     }
2502     return 1;
2503   } else {
2504     return 0;
2505   }
2506 }
2507 
2508 SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)2509 SWIG_Python_ArgFail(int argnum)
2510 {
2511   if (PyErr_Occurred()) {
2512     /* add information about failing argument */
2513     char mesg[256];
2514     PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2515     return SWIG_Python_AddErrMesg(mesg, 1);
2516   } else {
2517     return 0;
2518   }
2519 }
2520 
2521 SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject * self)2522 SwigPyObject_GetDesc(PyObject *self)
2523 {
2524   SwigPyObject *v = (SwigPyObject *)self;
2525   swig_type_info *ty = v ? v->ty : 0;
2526   return ty ? ty->str : "";
2527 }
2528 
2529 SWIGRUNTIME void
SWIG_Python_TypeError(const char * type,PyObject * obj)2530 SWIG_Python_TypeError(const char *type, PyObject *obj)
2531 {
2532   if (type) {
2533 #if defined(SWIG_COBJECT_TYPES)
2534     if (obj && SwigPyObject_Check(obj)) {
2535       const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2536       if (otype) {
2537 	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2538 		     type, otype);
2539 	return;
2540       }
2541     } else
2542 #endif
2543     {
2544       const char *otype = (obj ? obj->ob_type->tp_name : 0);
2545       if (otype) {
2546 	PyObject *str = PyObject_Str(obj);
2547 	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2548 	if (cstr) {
2549 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2550 		       type, otype, cstr);
2551           SWIG_Python_str_DelForPy3(cstr);
2552 	} else {
2553 	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2554 		       type, otype);
2555 	}
2556 	Py_XDECREF(str);
2557 	return;
2558       }
2559     }
2560     PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2561   } else {
2562     PyErr_Format(PyExc_TypeError, "unexpected type is received");
2563   }
2564 }
2565 
2566 
2567 /* Convert a pointer value, signal an exception on a type mismatch */
2568 SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject * obj,swig_type_info * ty,int SWIGUNUSEDPARM (argnum),int flags)2569 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2570   void *result;
2571   if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2572     PyErr_Clear();
2573 #if SWIG_POINTER_EXCEPTION
2574     if (flags) {
2575       SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2576       SWIG_Python_ArgFail(argnum);
2577     }
2578 #endif
2579   }
2580   return result;
2581 }
2582 
2583 #ifdef SWIGPYTHON_BUILTIN
2584 SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject * obj,PyObject * name,PyObject * value)2585 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2586   PyTypeObject *tp = obj->ob_type;
2587   PyObject *descr;
2588   PyObject *encoded_name;
2589   descrsetfunc f;
2590   int res = -1;
2591 
2592 # ifdef Py_USING_UNICODE
2593   if (PyString_Check(name)) {
2594     name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2595     if (!name)
2596       return -1;
2597   } else if (!PyUnicode_Check(name))
2598 # else
2599   if (!PyString_Check(name))
2600 # endif
2601   {
2602     PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2603     return -1;
2604   } else {
2605     Py_INCREF(name);
2606   }
2607 
2608   if (!tp->tp_dict) {
2609     if (PyType_Ready(tp) < 0)
2610       goto done;
2611   }
2612 
2613   descr = _PyType_Lookup(tp, name);
2614   f = NULL;
2615   if (descr != NULL)
2616     f = descr->ob_type->tp_descr_set;
2617   if (!f) {
2618     if (PyString_Check(name)) {
2619       encoded_name = name;
2620       Py_INCREF(name);
2621     } else {
2622       encoded_name = PyUnicode_AsUTF8String(name);
2623       if (!encoded_name)
2624         return -1;
2625     }
2626     PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2627     Py_DECREF(encoded_name);
2628   } else {
2629     res = f(descr, obj, value);
2630   }
2631 
2632   done:
2633   Py_DECREF(name);
2634   return res;
2635 }
2636 #endif
2637 
2638 
2639 #ifdef __cplusplus
2640 }
2641 #endif
2642 
2643 
2644 
2645 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2646 
2647 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2648 
2649 
2650 
2651 #ifdef __cplusplus
2652 extern "C" {
2653 #endif
2654 
2655 /* Method creation and docstring support functions */
2656 
2657 SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name);
2658 SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2659 SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func);
2660 
2661 #ifdef __cplusplus
2662 }
2663 #endif
2664 
2665 
2666 /* -------- TYPES TABLE (BEGIN) -------- */
2667 
2668 #define SWIGTYPE_p_FILE swig_types[0]
2669 #define SWIGTYPE_p_MatchObj swig_types[1]
2670 #define SWIGTYPE_p_a_2__double swig_types[2]
2671 #define SWIGTYPE_p_annotation_args swig_types[3]
2672 #define SWIGTYPE_p_anwcs_t swig_types[4]
2673 #define SWIGTYPE_p_bl swig_types[5]
2674 #define SWIGTYPE_p_cairo_op swig_types[6]
2675 #define SWIGTYPE_p_cairo_surface_t swig_types[7]
2676 #define SWIGTYPE_p_cairo_t swig_types[8]
2677 #define SWIGTYPE_p_char swig_types[9]
2678 #define SWIGTYPE_p_coadd_t swig_types[10]
2679 #define SWIGTYPE_p_codetree_t swig_types[11]
2680 #define SWIGTYPE_p_dl swig_types[12]
2681 #define SWIGTYPE_p_double swig_types[13]
2682 #define SWIGTYPE_p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int swig_types[14]
2683 #define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int swig_types[15]
2684 #define SWIGTYPE_p_f_p_struct_plot_args__p_void swig_types[16]
2685 #define SWIGTYPE_p_f_p_struct_plot_args_double_double_p_void__void swig_types[17]
2686 #define SWIGTYPE_p_f_p_struct_plot_args_p_void__int swig_types[18]
2687 #define SWIGTYPE_p_f_p_struct_plot_args_p_void__void swig_types[19]
2688 #define SWIGTYPE_p_float swig_types[20]
2689 #define SWIGTYPE_p_index_t swig_types[21]
2690 #define SWIGTYPE_p_int swig_types[22]
2691 #define SWIGTYPE_p_int32_t swig_types[23]
2692 #define SWIGTYPE_p_lanczos_args_t swig_types[24]
2693 #define SWIGTYPE_p_pl swig_types[25]
2694 #define SWIGTYPE_p_plot_args swig_types[26]
2695 #define SWIGTYPE_p_plotgrid_args swig_types[27]
2696 #define SWIGTYPE_p_plothealpix_args swig_types[28]
2697 #define SWIGTYPE_p_plotimage_args swig_types[29]
2698 #define SWIGTYPE_p_plotindex_args swig_types[30]
2699 #define SWIGTYPE_p_plotmatch_args swig_types[31]
2700 #define SWIGTYPE_p_plotoutline_args swig_types[32]
2701 #define SWIGTYPE_p_plotradec_args swig_types[33]
2702 #define SWIGTYPE_p_plotter swig_types[34]
2703 #define SWIGTYPE_p_plotxy_args swig_types[35]
2704 #define SWIGTYPE_p_qfits_header swig_types[36]
2705 #define SWIGTYPE_p_qfitsdumper swig_types[37]
2706 #define SWIGTYPE_p_quadfile_t swig_types[38]
2707 #define SWIGTYPE_p_sip_t swig_types[39]
2708 #define SWIGTYPE_p_startree_t swig_types[40]
2709 #define SWIGTYPE_p_tan_t swig_types[41]
2710 #define SWIGTYPE_p_unsigned_char swig_types[42]
2711 #define SWIGTYPE_p_void swig_types[43]
2712 static swig_type_info *swig_types[45];
2713 static swig_module_info swig_module = {swig_types, 44, 0, 0, 0, 0};
2714 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2715 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2716 
2717 /* -------- TYPES TABLE (END) -------- */
2718 
2719 #ifdef SWIG_TypeQuery
2720 # undef SWIG_TypeQuery
2721 #endif
2722 #define SWIG_TypeQuery SWIG_Python_TypeQuery
2723 
2724 /*-----------------------------------------------
2725               @(target):= _plotstuff_c.so
2726   ------------------------------------------------*/
2727 #if PY_VERSION_HEX >= 0x03000000
2728 #  define SWIG_init    PyInit__plotstuff_c
2729 
2730 #else
2731 #  define SWIG_init    init_plotstuff_c
2732 
2733 #endif
2734 #define SWIG_name    "_plotstuff_c"
2735 
2736 #define SWIGVERSION 0x040002
2737 #define SWIG_VERSION SWIGVERSION
2738 
2739 
2740 #define SWIG_as_voidptr(a) (void *)((const void *)(a))
2741 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
2742 
2743 
2744 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
2745 #include <numpy/arrayobject.h>
2746 #include <stdlib.h>
2747 #include <math.h>
2748 
2749 #include "os-features.h"
2750 #include "plotstuff.h"
2751 #include "plotimage.h"
2752 #include "plotoutline.h"
2753 #include "plotgrid.h"
2754 #include "plotindex.h"
2755 #include "plotxy.h"
2756 #include "plotradec.h"
2757 #include "plotmatch.h"
2758 #include "plotannotations.h"
2759 #include "plothealpix.h"
2760 #include "sip.h"
2761 #include "sip-utils.h"
2762 #include "sip_qfits.h"
2763 #include "log.h"
2764 #include "fitsioutils.h"
2765 #include "anwcs.h"
2766 #include "coadd.h"
2767 #include "anqfits.h"
2768 #include "mathutil.h"
2769 #include "convolve-image.h"
2770 #include "resample.h"
2771 #include "cairoutils.h"
2772 #include "an-bool.h"
2773 
2774 
2775 #define true 1
2776 #define false 0
2777 
2778 
2779 SWIGINTERNINLINE PyObject*
SWIG_From_int(int value)2780   SWIG_From_int  (int value)
2781 {
2782   return PyInt_FromLong((long) value);
2783 }
2784 
2785 
2786 #include <limits.h>
2787 #if !defined(SWIG_NO_LLONG_MAX)
2788 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2789 #   define LLONG_MAX __LONG_LONG_MAX__
2790 #   define LLONG_MIN (-LLONG_MAX - 1LL)
2791 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2792 # endif
2793 #endif
2794 
2795 
2796 SWIGINTERN int
SWIG_AsVal_double(PyObject * obj,double * val)2797 SWIG_AsVal_double (PyObject *obj, double *val)
2798 {
2799   int res = SWIG_TypeError;
2800   if (PyFloat_Check(obj)) {
2801     if (val) *val = PyFloat_AsDouble(obj);
2802     return SWIG_OK;
2803 #if PY_VERSION_HEX < 0x03000000
2804   } else if (PyInt_Check(obj)) {
2805     if (val) *val = (double) PyInt_AsLong(obj);
2806     return SWIG_OK;
2807 #endif
2808   } else if (PyLong_Check(obj)) {
2809     double v = PyLong_AsDouble(obj);
2810     if (!PyErr_Occurred()) {
2811       if (val) *val = v;
2812       return SWIG_OK;
2813     } else {
2814       PyErr_Clear();
2815     }
2816   }
2817 #ifdef SWIG_PYTHON_CAST_MODE
2818   {
2819     int dispatch = 0;
2820     double d = PyFloat_AsDouble(obj);
2821     if (!PyErr_Occurred()) {
2822       if (val) *val = d;
2823       return SWIG_AddCast(SWIG_OK);
2824     } else {
2825       PyErr_Clear();
2826     }
2827     if (!dispatch) {
2828       long v = PyLong_AsLong(obj);
2829       if (!PyErr_Occurred()) {
2830 	if (val) *val = v;
2831 	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
2832       } else {
2833 	PyErr_Clear();
2834       }
2835     }
2836   }
2837 #endif
2838   return res;
2839 }
2840 
2841 
2842 #include <float.h>
2843 
2844 
2845 #include <math.h>
2846 
2847 
2848 SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double * d,double min,double max)2849 SWIG_CanCastAsInteger(double *d, double min, double max) {
2850   double x = *d;
2851   if ((min <= x && x <= max)) {
2852    double fx = floor(x);
2853    double cx = ceil(x);
2854    double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
2855    if ((errno == EDOM) || (errno == ERANGE)) {
2856      errno = 0;
2857    } else {
2858      double summ, reps, diff;
2859      if (rd < x) {
2860        diff = x - rd;
2861      } else if (rd > x) {
2862        diff = rd - x;
2863      } else {
2864        return 1;
2865      }
2866      summ = rd + x;
2867      reps = diff/summ;
2868      if (reps < 8*DBL_EPSILON) {
2869        *d = rd;
2870        return 1;
2871      }
2872    }
2873   }
2874   return 0;
2875 }
2876 
2877 
2878 SWIGINTERN int
SWIG_AsVal_long(PyObject * obj,long * val)2879 SWIG_AsVal_long (PyObject *obj, long* val)
2880 {
2881 #if PY_VERSION_HEX < 0x03000000
2882   if (PyInt_Check(obj)) {
2883     if (val) *val = PyInt_AsLong(obj);
2884     return SWIG_OK;
2885   } else
2886 #endif
2887   if (PyLong_Check(obj)) {
2888     long v = PyLong_AsLong(obj);
2889     if (!PyErr_Occurred()) {
2890       if (val) *val = v;
2891       return SWIG_OK;
2892     } else {
2893       PyErr_Clear();
2894       return SWIG_OverflowError;
2895     }
2896   }
2897 #ifdef SWIG_PYTHON_CAST_MODE
2898   {
2899     int dispatch = 0;
2900     long v = PyInt_AsLong(obj);
2901     if (!PyErr_Occurred()) {
2902       if (val) *val = v;
2903       return SWIG_AddCast(SWIG_OK);
2904     } else {
2905       PyErr_Clear();
2906     }
2907     if (!dispatch) {
2908       double d;
2909       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
2910       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
2911 	if (val) *val = (long)(d);
2912 	return res;
2913       }
2914     }
2915   }
2916 #endif
2917   return SWIG_TypeError;
2918 }
2919 
2920 
2921 SWIGINTERN int
SWIG_AsVal_int(PyObject * obj,int * val)2922 SWIG_AsVal_int (PyObject * obj, int *val)
2923 {
2924   long v;
2925   int res = SWIG_AsVal_long (obj, &v);
2926   if (SWIG_IsOK(res)) {
2927     if ((v < INT_MIN || v > INT_MAX)) {
2928       return SWIG_OverflowError;
2929     } else {
2930       if (val) *val = (int)(v);
2931     }
2932   }
2933   return res;
2934 }
2935 
2936 
2937 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)2938 SWIG_pchar_descriptor(void)
2939 {
2940   static int init = 0;
2941   static swig_type_info* info = 0;
2942   if (!init) {
2943     info = SWIG_TypeQuery("_p_char");
2944     init = 1;
2945   }
2946   return info;
2947 }
2948 
2949 
2950 SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject * obj,char ** cptr,size_t * psize,int * alloc)2951 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2952 {
2953 #if PY_VERSION_HEX>=0x03000000
2954 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2955   if (PyBytes_Check(obj))
2956 #else
2957   if (PyUnicode_Check(obj))
2958 #endif
2959 #else
2960   if (PyString_Check(obj))
2961 #endif
2962   {
2963     char *cstr; Py_ssize_t len;
2964     int ret = SWIG_OK;
2965 #if PY_VERSION_HEX>=0x03000000
2966 #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2967     if (!alloc && cptr) {
2968         /* We can't allow converting without allocation, since the internal
2969            representation of string in Python 3 is UCS-2/UCS-4 but we require
2970            a UTF-8 representation.
2971            TODO(bhy) More detailed explanation */
2972         return SWIG_RuntimeError;
2973     }
2974     obj = PyUnicode_AsUTF8String(obj);
2975     if (!obj)
2976       return SWIG_TypeError;
2977     if (alloc)
2978       *alloc = SWIG_NEWOBJ;
2979 #endif
2980     if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
2981       return SWIG_TypeError;
2982 #else
2983     if (PyString_AsStringAndSize(obj, &cstr, &len) == -1)
2984       return SWIG_TypeError;
2985 #endif
2986     if (cptr) {
2987       if (alloc) {
2988 	if (*alloc == SWIG_NEWOBJ) {
2989 	  *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
2990 	  *alloc = SWIG_NEWOBJ;
2991 	} else {
2992 	  *cptr = cstr;
2993 	  *alloc = SWIG_OLDOBJ;
2994 	}
2995       } else {
2996 #if PY_VERSION_HEX>=0x03000000
2997 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
2998 	*cptr = PyBytes_AsString(obj);
2999 #else
3000 	assert(0); /* Should never reach here with Unicode strings in Python 3 */
3001 #endif
3002 #else
3003 	*cptr = SWIG_Python_str_AsChar(obj);
3004         if (!*cptr)
3005           ret = SWIG_TypeError;
3006 #endif
3007       }
3008     }
3009     if (psize) *psize = len + 1;
3010 #if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3011     Py_XDECREF(obj);
3012 #endif
3013     return ret;
3014   } else {
3015 #if defined(SWIG_PYTHON_2_UNICODE)
3016 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3017 #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3018 #endif
3019 #if PY_VERSION_HEX<0x03000000
3020     if (PyUnicode_Check(obj)) {
3021       char *cstr; Py_ssize_t len;
3022       if (!alloc && cptr) {
3023         return SWIG_RuntimeError;
3024       }
3025       obj = PyUnicode_AsUTF8String(obj);
3026       if (!obj)
3027         return SWIG_TypeError;
3028       if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3029         if (cptr) {
3030           if (alloc) *alloc = SWIG_NEWOBJ;
3031           *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
3032         }
3033         if (psize) *psize = len + 1;
3034 
3035         Py_XDECREF(obj);
3036         return SWIG_OK;
3037       } else {
3038         Py_XDECREF(obj);
3039       }
3040     }
3041 #endif
3042 #endif
3043 
3044     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3045     if (pchar_descriptor) {
3046       void* vptr = 0;
3047       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3048 	if (cptr) *cptr = (char *) vptr;
3049 	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3050 	if (alloc) *alloc = SWIG_OLDOBJ;
3051 	return SWIG_OK;
3052       }
3053     }
3054   }
3055   return SWIG_TypeError;
3056 }
3057 
3058 
3059 
3060 
3061 
3062 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char * carray,size_t size)3063 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3064 {
3065   if (carray) {
3066     if (size > INT_MAX) {
3067       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3068       return pchar_descriptor ?
3069 	SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3070     } else {
3071 #if PY_VERSION_HEX >= 0x03000000
3072 #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3073       return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size));
3074 #else
3075       return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
3076 #endif
3077 #else
3078       return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3079 #endif
3080     }
3081   } else {
3082     return SWIG_Py_Void();
3083   }
3084 }
3085 
3086 
3087 SWIGINTERNINLINE PyObject *
SWIG_FromCharPtr(const char * cptr)3088 SWIG_FromCharPtr(const char *cptr)
3089 {
3090   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3091 }
3092 
3093 
3094 /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
3095 #ifndef SWIG_isfinite
3096 /* isfinite() is a macro for C99 */
3097 # if defined(isfinite)
3098 #  define SWIG_isfinite(X) (isfinite(X))
3099 # elif defined(__cplusplus) && __cplusplus >= 201103L
3100 /* Use a template so that this works whether isfinite() is std::isfinite() or
3101  * in the global namespace.  The reality seems to vary between compiler
3102  * versions.
3103  *
3104  * Make sure namespace std exists to avoid compiler warnings.
3105  *
3106  * extern "C++" is required as this fragment can end up inside an extern "C" { } block
3107  */
3108 namespace std { }
3109 extern "C++" template<typename T>
SWIG_isfinite_func(T x)3110 inline int SWIG_isfinite_func(T x) {
3111   using namespace std;
3112   return isfinite(x);
3113 }
3114 #  define SWIG_isfinite(X) (SWIG_isfinite_func(X))
3115 # elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
3116 #  define SWIG_isfinite(X) (__builtin_isfinite(X))
3117 # elif defined(__clang__) && defined(__has_builtin)
3118 #  if __has_builtin(__builtin_isfinite)
3119 #   define SWIG_isfinite(X) (__builtin_isfinite(X))
3120 #  endif
3121 # elif defined(_MSC_VER)
3122 #  define SWIG_isfinite(X) (_finite(X))
3123 # elif defined(__sun) && defined(__SVR4)
3124 #  include <ieeefp.h>
3125 #  define SWIG_isfinite(X) (finite(X))
3126 # endif
3127 #endif
3128 
3129 
3130 /* Accept infinite as a valid float value unless we are unable to check if a value is finite */
3131 #ifdef SWIG_isfinite
3132 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
3133 #else
3134 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
3135 #endif
3136 
3137 
3138 SWIGINTERN int
SWIG_AsVal_float(PyObject * obj,float * val)3139 SWIG_AsVal_float (PyObject * obj, float *val)
3140 {
3141   double v;
3142   int res = SWIG_AsVal_double (obj, &v);
3143   if (SWIG_IsOK(res)) {
3144     if (SWIG_Float_Overflow_Check(v)) {
3145       return SWIG_OverflowError;
3146     } else {
3147       if (val) *val = (float)(v);
3148     }
3149   }
3150   return res;
3151 }
3152 
3153 
3154   #define SWIG_From_double   PyFloat_FromDouble
3155 
3156 
3157 SWIGINTERNINLINE PyObject *
SWIG_From_float(float value)3158 SWIG_From_float  (float value)
3159 {
3160   return SWIG_From_double  (value);
3161 }
3162 
3163 
3164 SWIGINTERN int
SWIG_AsCharArray(PyObject * obj,char * val,size_t size)3165 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
3166 {
3167   char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
3168   int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
3169   if (SWIG_IsOK(res)) {
3170     /* special case of single char conversion when we don't need space for NUL */
3171     if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
3172     if (csize <= size) {
3173       if (val) {
3174 	if (csize) memcpy(val, cptr, csize*sizeof(char));
3175 	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
3176       }
3177       if (alloc == SWIG_NEWOBJ) {
3178 	free((char*)cptr);
3179 	res = SWIG_DelNewMask(res);
3180       }
3181       return res;
3182     }
3183     if (alloc == SWIG_NEWOBJ) free((char*)cptr);
3184   }
3185   return SWIG_TypeError;
3186 }
3187 
3188 
3189 SWIGINTERN int
SWIG_AsVal_char(PyObject * obj,char * val)3190 SWIG_AsVal_char (PyObject * obj, char *val)
3191 {
3192   int res = SWIG_AsCharArray(obj, val, 1);
3193   if (!SWIG_IsOK(res)) {
3194     long v;
3195     res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
3196     if (SWIG_IsOK(res)) {
3197       if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
3198 	if (val) *val = (char)(v);
3199       } else {
3200 	res = SWIG_OverflowError;
3201       }
3202     }
3203   }
3204   return res;
3205 }
3206 
3207 
3208 SWIGINTERNINLINE PyObject *
SWIG_From_char(char c)3209 SWIG_From_char  (char c)
3210 {
3211   return SWIG_FromCharPtrAndSize(&c,1);
3212 }
3213 
plot_args_view_image_as_numpy(struct plot_args * self)3214 SWIGINTERN PyObject *plot_args_view_image_as_numpy(struct plot_args *self){
3215         npy_intp dim[3];
3216         unsigned char* img;
3217         PyObject* npimg;
3218         dim[0] = self->H;
3219         dim[1] = self->W;
3220         dim[2] = 4;
3221         img = cairo_image_surface_get_data(self->target);
3222         npimg = PyArray_SimpleNewFromData(3, dim, NPY_UBYTE, img);
3223         return npimg;
3224     }
plot_args_get_image_as_numpy(struct plot_args * self,int flip,PyObject * out)3225 SWIGINTERN PyObject *plot_args_get_image_as_numpy(struct plot_args *self,int flip,PyObject *out){
3226         npy_intp dim[3];
3227         unsigned char* img;
3228         PyObject* npimg;
3229         dim[0] = self->H;
3230         dim[1] = self->W;
3231         dim[2] = 4;
3232         img = cairo_image_surface_get_data(self->target);
3233         // Possible memory problems here...
3234         if (out == Py_None || out == NULL) {
3235             // rgba
3236             npimg = PyArray_EMPTY(3, dim, NPY_UBYTE, 0);
3237             if (!npimg) {
3238                 PyErr_SetString(PyExc_ValueError, "Failed to allocate numpy array in plotstuff.get_image_as_numpy");
3239                 return NULL;
3240             }
3241             assert(npimg);
3242         } else {
3243             npimg = out;
3244         }
3245         if (flip) {
3246             cairoutils_argb32_to_rgba_flip(img, PyArray_DATA((PyArrayObject*)npimg), self->W, self->H);
3247         } else {
3248             cairoutils_argb32_to_rgba_2(img, PyArray_DATA((PyArrayObject*)npimg), self->W, self->H);
3249         }
3250         return npimg;
3251     }
plot_args_get_image_as_numpy_view(struct plot_args * self)3252 SWIGINTERN PyObject *plot_args_get_image_as_numpy_view(struct plot_args *self){
3253         unsigned char* img;
3254         npy_intp dim[3];
3255         PyArray_Descr* dtype = PyArray_DescrFromType(NPY_UBYTE);
3256         dim[0] = self->H;
3257         dim[1] = self->W;
3258         dim[2] = 4;
3259         img = cairo_image_surface_get_data(self->target);
3260         if (!img) {
3261             PyErr_SetString(PyExc_ValueError, "Cairo image survey data is NULL in plotstuff.get_image_as_numpy_view");
3262             return NULL;
3263         }
3264         Py_INCREF(dtype);
3265         PyObject* npimg = PyArray_NewFromDescr(&PyArray_Type, dtype, 3, dim, NULL,
3266                                                img, 0, NULL);
3267         return npimg;
3268     }
plot_args_set_image_from_numpy(struct plot_args * self,PyObject * py_img,int flip)3269 SWIGINTERN int plot_args_set_image_from_numpy(struct plot_args *self,PyObject *py_img,int flip){
3270         unsigned char* img;
3271         unsigned char* inimg;
3272         PyArray_Descr* dtype = PyArray_DescrFromType(NPY_UBYTE);
3273         int req = NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED;
3274         PyArrayObject *np_img=NULL;
3275         Py_INCREF(dtype);
3276         np_img = (PyArrayObject*)PyArray_FromAny(py_img, dtype, 3, 3, req, NULL);
3277         if ((PyArray_DIM(np_img, 0) != self->H) ||
3278             (PyArray_DIM(np_img, 1) != self->W) ||
3279             (PyArray_DIM(np_img, 2) != 4)) {
3280             PyErr_SetString(PyExc_ValueError, "Expected image with shape (H, W, 4)");
3281             return -1;
3282         }
3283         if (!np_img) {
3284             PyErr_SetString(PyExc_ValueError, "img wasn't the type expected");
3285             Py_DECREF(dtype);
3286             return -1;
3287         }
3288         inimg = PyArray_DATA(np_img);
3289         img = cairo_image_surface_get_data(self->target);
3290         if (flip) {
3291             cairoutils_rgba_to_argb32_flip(inimg, img, self->W, self->H);
3292         } else {
3293             cairoutils_rgba_to_argb32_2(inimg, img, self->W, self->H);
3294         }
3295         Py_DECREF(np_img);
3296         Py_DECREF(dtype);
3297         return 0;
3298     }
plot_args_set_wcs_file(struct plot_args * self,char const * fn,int ext)3299 SWIGINTERN int plot_args_set_wcs_file(struct plot_args *self,char const *fn,int ext){
3300         return plotstuff_set_wcs_file(self, fn, ext);
3301     }
plot_args_set_size_from_wcs(struct plot_args * self)3302 SWIGINTERN int plot_args_set_size_from_wcs(struct plot_args *self){
3303         return plotstuff_set_size_wcs(self);
3304     }
plot_args_count_ra_labels(struct plot_args * self)3305 SWIGINTERN int plot_args_count_ra_labels(struct plot_args *self){
3306       return plot_grid_count_ra_labels(self);
3307     }
plot_args_count_dec_labels(struct plot_args * self)3308 SWIGINTERN int plot_args_count_dec_labels(struct plot_args *self){
3309       return plot_grid_count_dec_labels(self);
3310     }
plot_args_loginit(struct plot_args * self,int level)3311 SWIGINTERN void plot_args_loginit(struct plot_args *self,int level){
3312         log_init(level);
3313     }
3314 
3315   #define SWIG_From_long   PyInt_FromLong
3316 
3317 
3318 SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long(unsigned long value)3319 SWIG_From_unsigned_SS_long  (unsigned long value)
3320 {
3321   return (value > LONG_MAX) ?
3322     PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value));
3323 }
3324 
3325 
3326 SWIGINTERNINLINE PyObject *
SWIG_From_unsigned_SS_char(unsigned char value)3327 SWIG_From_unsigned_SS_char  (unsigned char value)
3328 {
3329   return SWIG_From_unsigned_SS_long  (value);
3330 }
3331 
3332 
3333 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(PyObject * obj,unsigned long * val)3334 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3335 {
3336 #if PY_VERSION_HEX < 0x03000000
3337   if (PyInt_Check(obj)) {
3338     long v = PyInt_AsLong(obj);
3339     if (v >= 0) {
3340       if (val) *val = v;
3341       return SWIG_OK;
3342     } else {
3343       return SWIG_OverflowError;
3344     }
3345   } else
3346 #endif
3347   if (PyLong_Check(obj)) {
3348     unsigned long v = PyLong_AsUnsignedLong(obj);
3349     if (!PyErr_Occurred()) {
3350       if (val) *val = v;
3351       return SWIG_OK;
3352     } else {
3353       PyErr_Clear();
3354       return SWIG_OverflowError;
3355     }
3356   }
3357 #ifdef SWIG_PYTHON_CAST_MODE
3358   {
3359     int dispatch = 0;
3360     unsigned long v = PyLong_AsUnsignedLong(obj);
3361     if (!PyErr_Occurred()) {
3362       if (val) *val = v;
3363       return SWIG_AddCast(SWIG_OK);
3364     } else {
3365       PyErr_Clear();
3366     }
3367     if (!dispatch) {
3368       double d;
3369       int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3370       if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3371 	if (val) *val = (unsigned long)(d);
3372 	return res;
3373       }
3374     }
3375   }
3376 #endif
3377   return SWIG_TypeError;
3378 }
3379 
3380 
3381 SWIGINTERN int
SWIG_AsVal_unsigned_SS_char(PyObject * obj,unsigned char * val)3382 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
3383 {
3384   unsigned long v;
3385   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3386   if (SWIG_IsOK(res)) {
3387     if ((v > UCHAR_MAX)) {
3388       return SWIG_OverflowError;
3389     } else {
3390       if (val) *val = (unsigned char)(v);
3391     }
3392   }
3393   return res;
3394 }
3395 
3396 
c_image_numpy_view(float * data,int nx,int ny)3397     PyObject* c_image_numpy_view(float* data, int nx, int ny) {
3398         npy_intp dims[2];
3399         dims[0] = ny;
3400         dims[1] = nx;
3401         return PyArray_SimpleNewFromData(2, dims, NPY_FLOAT, data);
3402     }
3403 
3404 
3405 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(PyObject * obj,unsigned int * val)3406 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3407 {
3408   unsigned long v;
3409   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3410   if (SWIG_IsOK(res)) {
3411     if ((v > UINT_MAX)) {
3412       return SWIG_OverflowError;
3413     } else {
3414       if (val) *val = (unsigned int)(v);
3415     }
3416   }
3417   return res;
3418 }
3419 
plotimage_args__set_image_from_numpy(struct plotimage_args * self,PyObject * arr)3420 SWIGINTERN int plotimage_args__set_image_from_numpy(struct plotimage_args *self,PyObject *arr){
3421         // Pirate array
3422         PyArrayObject* yarr;
3423         int hasalpha = 0;
3424         int i, N;
3425         unsigned char* src;
3426 
3427         // MAGIC 3: min_depth and max_depth (number of dims)
3428         yarr = (PyArrayObject*)PyArray_FROMANY(arr, NPY_UBYTE, 3, 3,
3429                                                NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_ALIGNED);
3430         if (!yarr) {
3431             PyErr_SetString(PyExc_ValueError, "Array must be 3-dimensional ubyte");
3432             return -1;
3433         }
3434 
3435         switch (PyArray_DIM(yarr, 2)) {
3436             // RGB
3437         case 3:
3438             hasalpha = 0;
3439             break;
3440             // RGBA
3441         case 4:
3442             hasalpha = 1;
3443             break;
3444         default:
3445             PyErr_SetString(PyExc_ValueError, "Array must be RGB or RGBA");
3446             return -1;
3447         }
3448         src = PyArray_DATA(yarr);
3449         if (self->img) {
3450             free(self->img);
3451         }
3452         self->H = (int)PyArray_DIM(yarr, 0);
3453         self->W = (int)PyArray_DIM(yarr, 1);
3454         //printf("Allocating new %i x %i image\n", self->W, self->H);
3455         self->img = malloc(self->W * self->H * 4);
3456         N = self->W * self->H;
3457         for (i=0; i<N; i++) {
3458             if (hasalpha)
3459                 memcpy(self->img + 4*i, src + 4*i, 4);
3460             else {
3461                 memcpy(self->img + 4*i, src + 3*i, 3);
3462                 self->img[4*i+3] = 255;
3463             }
3464         }
3465         Py_DECREF(yarr);
3466         return 0;
3467     }
plotimage_args_set_wcs_file(struct plotimage_args * self,char const * fn,int ext)3468 SWIGINTERN int plotimage_args_set_wcs_file(struct plotimage_args *self,char const *fn,int ext){
3469         return plot_image_set_wcs(self, fn, ext);
3470     }
plotimage_args_set_file(struct plotimage_args * self,char const * fn)3471 SWIGINTERN int plotimage_args_set_file(struct plotimage_args *self,char const *fn){
3472         return plot_image_set_filename(self, fn);
3473     }
plotimage_args_set_rgbscale(struct plotimage_args * self,double r,double g,double b)3474 SWIGINTERN void plotimage_args_set_rgbscale(struct plotimage_args *self,double r,double g,double b){
3475         self->rgbscale[0] = r;
3476         self->rgbscale[1] = g;
3477         self->rgbscale[2] = b;
3478     }
plotimage_args_get_image_width(struct plotimage_args * self)3479 SWIGINTERN int plotimage_args_get_image_width(struct plotimage_args *self){
3480         int W;
3481         if (plot_image_getsize(self, &W, NULL)) {
3482             return -1;
3483         }
3484         return W;
3485     }
plotimage_args_get_image_height(struct plotimage_args * self)3486 SWIGINTERN int plotimage_args_get_image_height(struct plotimage_args *self){
3487         int H;
3488         if (plot_image_getsize(self, NULL, &H)) {
3489             return -1;
3490         }
3491         return H;
3492     }
plotoutline_args_set_wcs_file(struct plotoutline_args * self,char const * fn,int ext)3493 SWIGINTERN int plotoutline_args_set_wcs_file(struct plotoutline_args *self,char const *fn,int ext){
3494         return plot_outline_set_wcs_file(self, fn, ext);
3495     }
plotoutline_args_set_wcs_size(struct plotoutline_args * self,int W,int H)3496 SWIGINTERN int plotoutline_args_set_wcs_size(struct plotoutline_args *self,int W,int H){
3497         return plot_outline_set_wcs_size(self, W, H);
3498     }
plotoutline_args_set_wcs(struct plotoutline_args * self,tan_t const * wcs)3499 SWIGINTERN int plotoutline_args_set_wcs(struct plotoutline_args *self,tan_t const *wcs){
3500         return plot_outline_set_tan_wcs(self, wcs);
3501     }
plotgrid_args_set_formats(struct plotgrid_args * self,char const * raformat,char const * decformat)3502 SWIGINTERN int plotgrid_args_set_formats(struct plotgrid_args *self,char const *raformat,char const *decformat){
3503         return plot_grid_set_formats(self, raformat, decformat);
3504     }
plotindex_args_add_file(struct plotindex_args * self,char const * fn)3505 SWIGINTERN int plotindex_args_add_file(struct plotindex_args *self,char const *fn){
3506         return plot_index_add_file(self, fn);
3507     }
plotxy_args_set_filename(struct plotxy_args * self,char const * fn)3508 SWIGINTERN void plotxy_args_set_filename(struct plotxy_args *self,char const *fn){
3509       plot_xy_set_filename(self, fn);
3510     }
plotradec_args_set_filename(struct plotradec_args * self,char const * fn)3511 SWIGINTERN void plotradec_args_set_filename(struct plotradec_args *self,char const *fn){
3512       plot_radec_set_filename(self, fn);
3513     }
annotation_args_add_target(struct annotation_args * self,double ra,double dec,char const * name)3514 SWIGINTERN void annotation_args_add_target(struct annotation_args *self,double ra,double dec,char const *name){
3515         plot_annotations_add_target(self, ra, dec, name);
3516     }
annotation_args_add_named_target(struct annotation_args * self,char const * name)3517 SWIGINTERN void annotation_args_add_named_target(struct annotation_args *self,char const *name){
3518         plot_annotations_add_named_target(self, name);
3519     }
annotation_args_clear_targets(struct annotation_args * self)3520 SWIGINTERN void annotation_args_clear_targets(struct annotation_args *self){
3521         plot_annotations_clear_targets(self);
3522     }
3523 
new_sip_t(double crpix1,double crpix2,double crval1,double crval2,double cd11,double cd12,double cd21,double cd22)3524     sip_t* new_sip_t(double crpix1, double crpix2, double crval1, double crval2,
3525                      double cd11, double cd12, double cd21, double cd22) {
3526         sip_t* sip = sip_create();
3527         tan_t* tan = &(sip->wcstan);
3528         tan->crpix[0] = crpix1;
3529         tan->crpix[1] = crpix2;
3530         tan->crval[0] = crval1;
3531         tan->crval[1] = crval2;
3532         tan->cd[0][0] = cd11;
3533         tan->cd[0][1] = cd12;
3534         tan->cd[1][0] = cd21;
3535         tan->cd[1][1] = cd22;
3536         return sip;
3537     }
3538 
3539 
image_debug(float * img,int W,int H)3540     void image_debug(float* img, int W, int H) {
3541         int i;
3542         double mn,mx;
3543         mn = 1e300;
3544         mx = -1e300;
3545         for (i=0; i<(W*H); i++) {
3546             mn = MIN(mn, img[i]);
3547             mx = MAX(mx, img[i]);
3548         }
3549         logmsg("Image min,max %g,%g\n", mn,mx);
3550     }
3551 
image_add(float * img,int W,int H,float val)3552     void image_add(float* img, int W, int H, float val) {
3553         int i;
3554         for (i=0; i<(W*H); i++)
3555             img[i] += val;
3556     }
3557 
image_weighted_smooth(float * img,int W,int H,const float * weight,float sigma)3558     void image_weighted_smooth(float* img, int W, int H, const float* weight,
3559                                float sigma) {
3560         int K0, NK;
3561         float* kernel = convolve_get_gaussian_kernel_f(sigma, 5., &K0, &NK);
3562         convolve_separable_weighted_f(img, W, H, weight, kernel, K0, NK, img, NULL);
3563         free(kernel);
3564     }
3565 
3566 #ifdef __cplusplus
3567 extern "C" {
3568 #endif
_wrap_plot_args_plotters_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3569 SWIGINTERN PyObject *_wrap_plot_args_plotters_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3570   PyObject *resultobj = 0;
3571   struct plot_args *arg1 = (struct plot_args *) 0 ;
3572   plotter_t *arg2 = (plotter_t *) 0 ;
3573   void *argp1 = 0 ;
3574   int res1 = 0 ;
3575   void *argp2 = 0 ;
3576   int res2 = 0 ;
3577   PyObject *swig_obj[2] ;
3578 
3579   if (!SWIG_Python_UnpackTuple(args, "plot_args_plotters_set", 2, 2, swig_obj)) SWIG_fail;
3580   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3581   if (!SWIG_IsOK(res1)) {
3582     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_plotters_set" "', argument " "1"" of type '" "struct plot_args *""'");
3583   }
3584   arg1 = (struct plot_args *)(argp1);
3585   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotter, SWIG_POINTER_DISOWN |  0 );
3586   if (!SWIG_IsOK(res2)) {
3587     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_plotters_set" "', argument " "2"" of type '" "plotter_t *""'");
3588   }
3589   arg2 = (plotter_t *)(argp2);
3590   if (arg1) (arg1)->plotters = arg2;
3591   resultobj = SWIG_Py_Void();
3592   return resultobj;
3593 fail:
3594   return NULL;
3595 }
3596 
3597 
_wrap_plot_args_plotters_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3598 SWIGINTERN PyObject *_wrap_plot_args_plotters_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3599   PyObject *resultobj = 0;
3600   struct plot_args *arg1 = (struct plot_args *) 0 ;
3601   void *argp1 = 0 ;
3602   int res1 = 0 ;
3603   PyObject *swig_obj[1] ;
3604   plotter_t *result = 0 ;
3605 
3606   if (!args) SWIG_fail;
3607   swig_obj[0] = args;
3608   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3609   if (!SWIG_IsOK(res1)) {
3610     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_plotters_get" "', argument " "1"" of type '" "struct plot_args *""'");
3611   }
3612   arg1 = (struct plot_args *)(argp1);
3613   result = (plotter_t *) ((arg1)->plotters);
3614   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotter, 0 |  0 );
3615   return resultobj;
3616 fail:
3617   return NULL;
3618 }
3619 
3620 
_wrap_plot_args_NP_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3621 SWIGINTERN PyObject *_wrap_plot_args_NP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3622   PyObject *resultobj = 0;
3623   struct plot_args *arg1 = (struct plot_args *) 0 ;
3624   int arg2 ;
3625   void *argp1 = 0 ;
3626   int res1 = 0 ;
3627   int val2 ;
3628   int ecode2 = 0 ;
3629   PyObject *swig_obj[2] ;
3630 
3631   if (!SWIG_Python_UnpackTuple(args, "plot_args_NP_set", 2, 2, swig_obj)) SWIG_fail;
3632   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3633   if (!SWIG_IsOK(res1)) {
3634     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_NP_set" "', argument " "1"" of type '" "struct plot_args *""'");
3635   }
3636   arg1 = (struct plot_args *)(argp1);
3637   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
3638   if (!SWIG_IsOK(ecode2)) {
3639     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_NP_set" "', argument " "2"" of type '" "int""'");
3640   }
3641   arg2 = (int)(val2);
3642   if (arg1) (arg1)->NP = arg2;
3643   resultobj = SWIG_Py_Void();
3644   return resultobj;
3645 fail:
3646   return NULL;
3647 }
3648 
3649 
_wrap_plot_args_NP_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3650 SWIGINTERN PyObject *_wrap_plot_args_NP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3651   PyObject *resultobj = 0;
3652   struct plot_args *arg1 = (struct plot_args *) 0 ;
3653   void *argp1 = 0 ;
3654   int res1 = 0 ;
3655   PyObject *swig_obj[1] ;
3656   int result;
3657 
3658   if (!args) SWIG_fail;
3659   swig_obj[0] = args;
3660   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3661   if (!SWIG_IsOK(res1)) {
3662     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_NP_get" "', argument " "1"" of type '" "struct plot_args *""'");
3663   }
3664   arg1 = (struct plot_args *)(argp1);
3665   result = (int) ((arg1)->NP);
3666   resultobj = SWIG_From_int((int)(result));
3667   return resultobj;
3668 fail:
3669   return NULL;
3670 }
3671 
3672 
_wrap_plot_args_outfn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3673 SWIGINTERN PyObject *_wrap_plot_args_outfn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3674   PyObject *resultobj = 0;
3675   struct plot_args *arg1 = (struct plot_args *) 0 ;
3676   char *arg2 = (char *) 0 ;
3677   void *argp1 = 0 ;
3678   int res1 = 0 ;
3679   int res2 ;
3680   char *buf2 = 0 ;
3681   int alloc2 = 0 ;
3682   PyObject *swig_obj[2] ;
3683 
3684   if (!SWIG_Python_UnpackTuple(args, "plot_args_outfn_set", 2, 2, swig_obj)) SWIG_fail;
3685   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3686   if (!SWIG_IsOK(res1)) {
3687     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outfn_set" "', argument " "1"" of type '" "struct plot_args *""'");
3688   }
3689   arg1 = (struct plot_args *)(argp1);
3690   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
3691   if (!SWIG_IsOK(res2)) {
3692     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_outfn_set" "', argument " "2"" of type '" "char *""'");
3693   }
3694   arg2 = (char *)(buf2);
3695   if (arg1->outfn) free((char*)arg1->outfn);
3696   if (arg2) {
3697     size_t size = strlen((const char *)(arg2)) + 1;
3698     arg1->outfn = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
3699   } else {
3700     arg1->outfn = 0;
3701   }
3702   resultobj = SWIG_Py_Void();
3703   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3704   return resultobj;
3705 fail:
3706   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
3707   return NULL;
3708 }
3709 
3710 
_wrap_plot_args_outfn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3711 SWIGINTERN PyObject *_wrap_plot_args_outfn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3712   PyObject *resultobj = 0;
3713   struct plot_args *arg1 = (struct plot_args *) 0 ;
3714   void *argp1 = 0 ;
3715   int res1 = 0 ;
3716   PyObject *swig_obj[1] ;
3717   char *result = 0 ;
3718 
3719   if (!args) SWIG_fail;
3720   swig_obj[0] = args;
3721   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3722   if (!SWIG_IsOK(res1)) {
3723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outfn_get" "', argument " "1"" of type '" "struct plot_args *""'");
3724   }
3725   arg1 = (struct plot_args *)(argp1);
3726   result = (char *) ((arg1)->outfn);
3727   resultobj = SWIG_FromCharPtr((const char *)result);
3728   return resultobj;
3729 fail:
3730   return NULL;
3731 }
3732 
3733 
_wrap_plot_args_fout_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3734 SWIGINTERN PyObject *_wrap_plot_args_fout_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3735   PyObject *resultobj = 0;
3736   struct plot_args *arg1 = (struct plot_args *) 0 ;
3737   FILE *arg2 = (FILE *) 0 ;
3738   void *argp1 = 0 ;
3739   int res1 = 0 ;
3740   void *argp2 = 0 ;
3741   int res2 = 0 ;
3742   PyObject *swig_obj[2] ;
3743 
3744   if (!SWIG_Python_UnpackTuple(args, "plot_args_fout_set", 2, 2, swig_obj)) SWIG_fail;
3745   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3746   if (!SWIG_IsOK(res1)) {
3747     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_fout_set" "', argument " "1"" of type '" "struct plot_args *""'");
3748   }
3749   arg1 = (struct plot_args *)(argp1);
3750   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN |  0 );
3751   if (!SWIG_IsOK(res2)) {
3752     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_fout_set" "', argument " "2"" of type '" "FILE *""'");
3753   }
3754   arg2 = (FILE *)(argp2);
3755   if (arg1) (arg1)->fout = arg2;
3756   resultobj = SWIG_Py_Void();
3757   return resultobj;
3758 fail:
3759   return NULL;
3760 }
3761 
3762 
_wrap_plot_args_fout_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3763 SWIGINTERN PyObject *_wrap_plot_args_fout_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764   PyObject *resultobj = 0;
3765   struct plot_args *arg1 = (struct plot_args *) 0 ;
3766   void *argp1 = 0 ;
3767   int res1 = 0 ;
3768   PyObject *swig_obj[1] ;
3769   FILE *result = 0 ;
3770 
3771   if (!args) SWIG_fail;
3772   swig_obj[0] = args;
3773   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3774   if (!SWIG_IsOK(res1)) {
3775     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_fout_get" "', argument " "1"" of type '" "struct plot_args *""'");
3776   }
3777   arg1 = (struct plot_args *)(argp1);
3778   result = (FILE *) ((arg1)->fout);
3779   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 |  0 );
3780   return resultobj;
3781 fail:
3782   return NULL;
3783 }
3784 
3785 
_wrap_plot_args_outformat_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3786 SWIGINTERN PyObject *_wrap_plot_args_outformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3787   PyObject *resultobj = 0;
3788   struct plot_args *arg1 = (struct plot_args *) 0 ;
3789   int arg2 ;
3790   void *argp1 = 0 ;
3791   int res1 = 0 ;
3792   int val2 ;
3793   int ecode2 = 0 ;
3794   PyObject *swig_obj[2] ;
3795 
3796   if (!SWIG_Python_UnpackTuple(args, "plot_args_outformat_set", 2, 2, swig_obj)) SWIG_fail;
3797   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3798   if (!SWIG_IsOK(res1)) {
3799     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outformat_set" "', argument " "1"" of type '" "struct plot_args *""'");
3800   }
3801   arg1 = (struct plot_args *)(argp1);
3802   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
3803   if (!SWIG_IsOK(ecode2)) {
3804     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_outformat_set" "', argument " "2"" of type '" "int""'");
3805   }
3806   arg2 = (int)(val2);
3807   if (arg1) (arg1)->outformat = arg2;
3808   resultobj = SWIG_Py_Void();
3809   return resultobj;
3810 fail:
3811   return NULL;
3812 }
3813 
3814 
_wrap_plot_args_outformat_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3815 SWIGINTERN PyObject *_wrap_plot_args_outformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3816   PyObject *resultobj = 0;
3817   struct plot_args *arg1 = (struct plot_args *) 0 ;
3818   void *argp1 = 0 ;
3819   int res1 = 0 ;
3820   PyObject *swig_obj[1] ;
3821   int result;
3822 
3823   if (!args) SWIG_fail;
3824   swig_obj[0] = args;
3825   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3826   if (!SWIG_IsOK(res1)) {
3827     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outformat_get" "', argument " "1"" of type '" "struct plot_args *""'");
3828   }
3829   arg1 = (struct plot_args *)(argp1);
3830   result = (int) ((arg1)->outformat);
3831   resultobj = SWIG_From_int((int)(result));
3832   return resultobj;
3833 fail:
3834   return NULL;
3835 }
3836 
3837 
_wrap_plot_args_outimage_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3838 SWIGINTERN PyObject *_wrap_plot_args_outimage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3839   PyObject *resultobj = 0;
3840   struct plot_args *arg1 = (struct plot_args *) 0 ;
3841   unsigned char *arg2 = (unsigned char *) 0 ;
3842   void *argp1 = 0 ;
3843   int res1 = 0 ;
3844   void *argp2 = 0 ;
3845   int res2 = 0 ;
3846   PyObject *swig_obj[2] ;
3847 
3848   if (!SWIG_Python_UnpackTuple(args, "plot_args_outimage_set", 2, 2, swig_obj)) SWIG_fail;
3849   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3850   if (!SWIG_IsOK(res1)) {
3851     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outimage_set" "', argument " "1"" of type '" "struct plot_args *""'");
3852   }
3853   arg1 = (struct plot_args *)(argp1);
3854   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN |  0 );
3855   if (!SWIG_IsOK(res2)) {
3856     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_outimage_set" "', argument " "2"" of type '" "unsigned char *""'");
3857   }
3858   arg2 = (unsigned char *)(argp2);
3859   if (arg1) (arg1)->outimage = arg2;
3860   resultobj = SWIG_Py_Void();
3861   return resultobj;
3862 fail:
3863   return NULL;
3864 }
3865 
3866 
_wrap_plot_args_outimage_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3867 SWIGINTERN PyObject *_wrap_plot_args_outimage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3868   PyObject *resultobj = 0;
3869   struct plot_args *arg1 = (struct plot_args *) 0 ;
3870   void *argp1 = 0 ;
3871   int res1 = 0 ;
3872   PyObject *swig_obj[1] ;
3873   unsigned char *result = 0 ;
3874 
3875   if (!args) SWIG_fail;
3876   swig_obj[0] = args;
3877   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3878   if (!SWIG_IsOK(res1)) {
3879     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_outimage_get" "', argument " "1"" of type '" "struct plot_args *""'");
3880   }
3881   arg1 = (struct plot_args *)(argp1);
3882   result = (unsigned char *) ((arg1)->outimage);
3883   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 |  0 );
3884   return resultobj;
3885 fail:
3886   return NULL;
3887 }
3888 
3889 
_wrap_plot_args_cairo_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3890 SWIGINTERN PyObject *_wrap_plot_args_cairo_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3891   PyObject *resultobj = 0;
3892   struct plot_args *arg1 = (struct plot_args *) 0 ;
3893   cairo_t *arg2 = (cairo_t *) 0 ;
3894   void *argp1 = 0 ;
3895   int res1 = 0 ;
3896   void *argp2 = 0 ;
3897   int res2 = 0 ;
3898   PyObject *swig_obj[2] ;
3899 
3900   if (!SWIG_Python_UnpackTuple(args, "plot_args_cairo_set", 2, 2, swig_obj)) SWIG_fail;
3901   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3902   if (!SWIG_IsOK(res1)) {
3903     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_cairo_set" "', argument " "1"" of type '" "struct plot_args *""'");
3904   }
3905   arg1 = (struct plot_args *)(argp1);
3906   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, SWIG_POINTER_DISOWN |  0 );
3907   if (!SWIG_IsOK(res2)) {
3908     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_cairo_set" "', argument " "2"" of type '" "cairo_t *""'");
3909   }
3910   arg2 = (cairo_t *)(argp2);
3911   if (arg1) (arg1)->cairo = arg2;
3912   resultobj = SWIG_Py_Void();
3913   return resultobj;
3914 fail:
3915   return NULL;
3916 }
3917 
3918 
_wrap_plot_args_cairo_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3919 SWIGINTERN PyObject *_wrap_plot_args_cairo_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3920   PyObject *resultobj = 0;
3921   struct plot_args *arg1 = (struct plot_args *) 0 ;
3922   void *argp1 = 0 ;
3923   int res1 = 0 ;
3924   PyObject *swig_obj[1] ;
3925   cairo_t *result = 0 ;
3926 
3927   if (!args) SWIG_fail;
3928   swig_obj[0] = args;
3929   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3930   if (!SWIG_IsOK(res1)) {
3931     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_cairo_get" "', argument " "1"" of type '" "struct plot_args *""'");
3932   }
3933   arg1 = (struct plot_args *)(argp1);
3934   result = (cairo_t *) ((arg1)->cairo);
3935   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cairo_t, 0 |  0 );
3936   return resultobj;
3937 fail:
3938   return NULL;
3939 }
3940 
3941 
_wrap_plot_args_target_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3942 SWIGINTERN PyObject *_wrap_plot_args_target_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3943   PyObject *resultobj = 0;
3944   struct plot_args *arg1 = (struct plot_args *) 0 ;
3945   cairo_surface_t *arg2 = (cairo_surface_t *) 0 ;
3946   void *argp1 = 0 ;
3947   int res1 = 0 ;
3948   void *argp2 = 0 ;
3949   int res2 = 0 ;
3950   PyObject *swig_obj[2] ;
3951 
3952   if (!SWIG_Python_UnpackTuple(args, "plot_args_target_set", 2, 2, swig_obj)) SWIG_fail;
3953   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3954   if (!SWIG_IsOK(res1)) {
3955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_target_set" "', argument " "1"" of type '" "struct plot_args *""'");
3956   }
3957   arg1 = (struct plot_args *)(argp1);
3958   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_surface_t, SWIG_POINTER_DISOWN |  0 );
3959   if (!SWIG_IsOK(res2)) {
3960     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_target_set" "', argument " "2"" of type '" "cairo_surface_t *""'");
3961   }
3962   arg2 = (cairo_surface_t *)(argp2);
3963   if (arg1) (arg1)->target = arg2;
3964   resultobj = SWIG_Py_Void();
3965   return resultobj;
3966 fail:
3967   return NULL;
3968 }
3969 
3970 
_wrap_plot_args_target_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3971 SWIGINTERN PyObject *_wrap_plot_args_target_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3972   PyObject *resultobj = 0;
3973   struct plot_args *arg1 = (struct plot_args *) 0 ;
3974   void *argp1 = 0 ;
3975   int res1 = 0 ;
3976   PyObject *swig_obj[1] ;
3977   cairo_surface_t *result = 0 ;
3978 
3979   if (!args) SWIG_fail;
3980   swig_obj[0] = args;
3981   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
3982   if (!SWIG_IsOK(res1)) {
3983     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_target_get" "', argument " "1"" of type '" "struct plot_args *""'");
3984   }
3985   arg1 = (struct plot_args *)(argp1);
3986   result = (cairo_surface_t *) ((arg1)->target);
3987   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cairo_surface_t, 0 |  0 );
3988   return resultobj;
3989 fail:
3990   return NULL;
3991 }
3992 
3993 
_wrap_plot_args_op_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)3994 SWIGINTERN PyObject *_wrap_plot_args_op_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3995   PyObject *resultobj = 0;
3996   struct plot_args *arg1 = (struct plot_args *) 0 ;
3997   cairo_operator_t arg2 ;
3998   void *argp1 = 0 ;
3999   int res1 = 0 ;
4000   int val2 ;
4001   int ecode2 = 0 ;
4002   PyObject *swig_obj[2] ;
4003 
4004   if (!SWIG_Python_UnpackTuple(args, "plot_args_op_set", 2, 2, swig_obj)) SWIG_fail;
4005   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4006   if (!SWIG_IsOK(res1)) {
4007     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_op_set" "', argument " "1"" of type '" "struct plot_args *""'");
4008   }
4009   arg1 = (struct plot_args *)(argp1);
4010   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4011   if (!SWIG_IsOK(ecode2)) {
4012     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_op_set" "', argument " "2"" of type '" "cairo_operator_t""'");
4013   }
4014   arg2 = (cairo_operator_t)(val2);
4015   if (arg1) (arg1)->op = arg2;
4016   resultobj = SWIG_Py_Void();
4017   return resultobj;
4018 fail:
4019   return NULL;
4020 }
4021 
4022 
_wrap_plot_args_op_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4023 SWIGINTERN PyObject *_wrap_plot_args_op_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4024   PyObject *resultobj = 0;
4025   struct plot_args *arg1 = (struct plot_args *) 0 ;
4026   void *argp1 = 0 ;
4027   int res1 = 0 ;
4028   PyObject *swig_obj[1] ;
4029   cairo_operator_t result;
4030 
4031   if (!args) SWIG_fail;
4032   swig_obj[0] = args;
4033   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4034   if (!SWIG_IsOK(res1)) {
4035     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_op_get" "', argument " "1"" of type '" "struct plot_args *""'");
4036   }
4037   arg1 = (struct plot_args *)(argp1);
4038   result = (cairo_operator_t) ((arg1)->op);
4039   resultobj = SWIG_From_int((int)(result));
4040   return resultobj;
4041 fail:
4042   return NULL;
4043 }
4044 
4045 
_wrap_plot_args_move_to_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4046 SWIGINTERN PyObject *_wrap_plot_args_move_to_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047   PyObject *resultobj = 0;
4048   struct plot_args *arg1 = (struct plot_args *) 0 ;
4049   void (*arg2)(struct plot_args *,double,double,void *) = (void (*)(struct plot_args *,double,double,void *)) 0 ;
4050   void *argp1 = 0 ;
4051   int res1 = 0 ;
4052   PyObject *swig_obj[2] ;
4053 
4054   if (!SWIG_Python_UnpackTuple(args, "plot_args_move_to_set", 2, 2, swig_obj)) SWIG_fail;
4055   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4056   if (!SWIG_IsOK(res1)) {
4057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_move_to_set" "', argument " "1"" of type '" "struct plot_args *""'");
4058   }
4059   arg1 = (struct plot_args *)(argp1);
4060   {
4061     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_plot_args_double_double_p_void__void);
4062     if (!SWIG_IsOK(res)) {
4063       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plot_args_move_to_set" "', argument " "2"" of type '" "void (*)(struct plot_args *,double,double,void *)""'");
4064     }
4065   }
4066   if (arg1) (arg1)->move_to = arg2;
4067   resultobj = SWIG_Py_Void();
4068   return resultobj;
4069 fail:
4070   return NULL;
4071 }
4072 
4073 
_wrap_plot_args_move_to_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4074 SWIGINTERN PyObject *_wrap_plot_args_move_to_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4075   PyObject *resultobj = 0;
4076   struct plot_args *arg1 = (struct plot_args *) 0 ;
4077   void *argp1 = 0 ;
4078   int res1 = 0 ;
4079   PyObject *swig_obj[1] ;
4080   void (*result)(struct plot_args *,double,double,void *) = 0 ;
4081 
4082   if (!args) SWIG_fail;
4083   swig_obj[0] = args;
4084   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4085   if (!SWIG_IsOK(res1)) {
4086     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_move_to_get" "', argument " "1"" of type '" "struct plot_args *""'");
4087   }
4088   arg1 = (struct plot_args *)(argp1);
4089   result = (void (*)(struct plot_args *,double,double,void *)) ((arg1)->move_to);
4090   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_plot_args_double_double_p_void__void);
4091   return resultobj;
4092 fail:
4093   return NULL;
4094 }
4095 
4096 
_wrap_plot_args_move_to_baton_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4097 SWIGINTERN PyObject *_wrap_plot_args_move_to_baton_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098   PyObject *resultobj = 0;
4099   struct plot_args *arg1 = (struct plot_args *) 0 ;
4100   void *arg2 = (void *) 0 ;
4101   void *argp1 = 0 ;
4102   int res1 = 0 ;
4103   int res2 ;
4104   PyObject *swig_obj[2] ;
4105 
4106   if (!SWIG_Python_UnpackTuple(args, "plot_args_move_to_baton_set", 2, 2, swig_obj)) SWIG_fail;
4107   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4108   if (!SWIG_IsOK(res1)) {
4109     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_move_to_baton_set" "', argument " "1"" of type '" "struct plot_args *""'");
4110   }
4111   arg1 = (struct plot_args *)(argp1);
4112   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4113   if (!SWIG_IsOK(res2)) {
4114     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_move_to_baton_set" "', argument " "2"" of type '" "void *""'");
4115   }
4116   if (arg1) (arg1)->move_to_baton = arg2;
4117   resultobj = SWIG_Py_Void();
4118   return resultobj;
4119 fail:
4120   return NULL;
4121 }
4122 
4123 
_wrap_plot_args_move_to_baton_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4124 SWIGINTERN PyObject *_wrap_plot_args_move_to_baton_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4125   PyObject *resultobj = 0;
4126   struct plot_args *arg1 = (struct plot_args *) 0 ;
4127   void *argp1 = 0 ;
4128   int res1 = 0 ;
4129   PyObject *swig_obj[1] ;
4130   void *result = 0 ;
4131 
4132   if (!args) SWIG_fail;
4133   swig_obj[0] = args;
4134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4135   if (!SWIG_IsOK(res1)) {
4136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_move_to_baton_get" "', argument " "1"" of type '" "struct plot_args *""'");
4137   }
4138   arg1 = (struct plot_args *)(argp1);
4139   result = (void *) ((arg1)->move_to_baton);
4140   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
4141   return resultobj;
4142 fail:
4143   return NULL;
4144 }
4145 
4146 
_wrap_plot_args_line_to_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4147 SWIGINTERN PyObject *_wrap_plot_args_line_to_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4148   PyObject *resultobj = 0;
4149   struct plot_args *arg1 = (struct plot_args *) 0 ;
4150   void (*arg2)(struct plot_args *,double,double,void *) = (void (*)(struct plot_args *,double,double,void *)) 0 ;
4151   void *argp1 = 0 ;
4152   int res1 = 0 ;
4153   PyObject *swig_obj[2] ;
4154 
4155   if (!SWIG_Python_UnpackTuple(args, "plot_args_line_to_set", 2, 2, swig_obj)) SWIG_fail;
4156   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4157   if (!SWIG_IsOK(res1)) {
4158     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_line_to_set" "', argument " "1"" of type '" "struct plot_args *""'");
4159   }
4160   arg1 = (struct plot_args *)(argp1);
4161   {
4162     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_plot_args_double_double_p_void__void);
4163     if (!SWIG_IsOK(res)) {
4164       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plot_args_line_to_set" "', argument " "2"" of type '" "void (*)(struct plot_args *,double,double,void *)""'");
4165     }
4166   }
4167   if (arg1) (arg1)->line_to = arg2;
4168   resultobj = SWIG_Py_Void();
4169   return resultobj;
4170 fail:
4171   return NULL;
4172 }
4173 
4174 
_wrap_plot_args_line_to_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4175 SWIGINTERN PyObject *_wrap_plot_args_line_to_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4176   PyObject *resultobj = 0;
4177   struct plot_args *arg1 = (struct plot_args *) 0 ;
4178   void *argp1 = 0 ;
4179   int res1 = 0 ;
4180   PyObject *swig_obj[1] ;
4181   void (*result)(struct plot_args *,double,double,void *) = 0 ;
4182 
4183   if (!args) SWIG_fail;
4184   swig_obj[0] = args;
4185   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4186   if (!SWIG_IsOK(res1)) {
4187     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_line_to_get" "', argument " "1"" of type '" "struct plot_args *""'");
4188   }
4189   arg1 = (struct plot_args *)(argp1);
4190   result = (void (*)(struct plot_args *,double,double,void *)) ((arg1)->line_to);
4191   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_plot_args_double_double_p_void__void);
4192   return resultobj;
4193 fail:
4194   return NULL;
4195 }
4196 
4197 
_wrap_plot_args_line_to_baton_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4198 SWIGINTERN PyObject *_wrap_plot_args_line_to_baton_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4199   PyObject *resultobj = 0;
4200   struct plot_args *arg1 = (struct plot_args *) 0 ;
4201   void *arg2 = (void *) 0 ;
4202   void *argp1 = 0 ;
4203   int res1 = 0 ;
4204   int res2 ;
4205   PyObject *swig_obj[2] ;
4206 
4207   if (!SWIG_Python_UnpackTuple(args, "plot_args_line_to_baton_set", 2, 2, swig_obj)) SWIG_fail;
4208   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4209   if (!SWIG_IsOK(res1)) {
4210     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_line_to_baton_set" "', argument " "1"" of type '" "struct plot_args *""'");
4211   }
4212   arg1 = (struct plot_args *)(argp1);
4213   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4214   if (!SWIG_IsOK(res2)) {
4215     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_line_to_baton_set" "', argument " "2"" of type '" "void *""'");
4216   }
4217   if (arg1) (arg1)->line_to_baton = arg2;
4218   resultobj = SWIG_Py_Void();
4219   return resultobj;
4220 fail:
4221   return NULL;
4222 }
4223 
4224 
_wrap_plot_args_line_to_baton_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4225 SWIGINTERN PyObject *_wrap_plot_args_line_to_baton_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4226   PyObject *resultobj = 0;
4227   struct plot_args *arg1 = (struct plot_args *) 0 ;
4228   void *argp1 = 0 ;
4229   int res1 = 0 ;
4230   PyObject *swig_obj[1] ;
4231   void *result = 0 ;
4232 
4233   if (!args) SWIG_fail;
4234   swig_obj[0] = args;
4235   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4236   if (!SWIG_IsOK(res1)) {
4237     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_line_to_baton_get" "', argument " "1"" of type '" "struct plot_args *""'");
4238   }
4239   arg1 = (struct plot_args *)(argp1);
4240   result = (void *) ((arg1)->line_to_baton);
4241   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
4242   return resultobj;
4243 fail:
4244   return NULL;
4245 }
4246 
4247 
_wrap_plot_args_wcs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4248 SWIGINTERN PyObject *_wrap_plot_args_wcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4249   PyObject *resultobj = 0;
4250   struct plot_args *arg1 = (struct plot_args *) 0 ;
4251   anwcs_t *arg2 = (anwcs_t *) 0 ;
4252   void *argp1 = 0 ;
4253   int res1 = 0 ;
4254   void *argp2 = 0 ;
4255   int res2 = 0 ;
4256   PyObject *swig_obj[2] ;
4257 
4258   if (!SWIG_Python_UnpackTuple(args, "plot_args_wcs_set", 2, 2, swig_obj)) SWIG_fail;
4259   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4260   if (!SWIG_IsOK(res1)) {
4261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_wcs_set" "', argument " "1"" of type '" "struct plot_args *""'");
4262   }
4263   arg1 = (struct plot_args *)(argp1);
4264   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
4265   if (!SWIG_IsOK(res2)) {
4266     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_wcs_set" "', argument " "2"" of type '" "anwcs_t *""'");
4267   }
4268   arg2 = (anwcs_t *)(argp2);
4269   if (arg1) (arg1)->wcs = arg2;
4270   resultobj = SWIG_Py_Void();
4271   return resultobj;
4272 fail:
4273   return NULL;
4274 }
4275 
4276 
_wrap_plot_args_wcs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4277 SWIGINTERN PyObject *_wrap_plot_args_wcs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4278   PyObject *resultobj = 0;
4279   struct plot_args *arg1 = (struct plot_args *) 0 ;
4280   void *argp1 = 0 ;
4281   int res1 = 0 ;
4282   PyObject *swig_obj[1] ;
4283   anwcs_t *result = 0 ;
4284 
4285   if (!args) SWIG_fail;
4286   swig_obj[0] = args;
4287   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4288   if (!SWIG_IsOK(res1)) {
4289     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_wcs_get" "', argument " "1"" of type '" "struct plot_args *""'");
4290   }
4291   arg1 = (struct plot_args *)(argp1);
4292   result = (anwcs_t *) ((arg1)->wcs);
4293   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
4294   return resultobj;
4295 fail:
4296   return NULL;
4297 }
4298 
4299 
_wrap_plot_args_W_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4300 SWIGINTERN PyObject *_wrap_plot_args_W_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4301   PyObject *resultobj = 0;
4302   struct plot_args *arg1 = (struct plot_args *) 0 ;
4303   int arg2 ;
4304   void *argp1 = 0 ;
4305   int res1 = 0 ;
4306   int val2 ;
4307   int ecode2 = 0 ;
4308   PyObject *swig_obj[2] ;
4309 
4310   if (!SWIG_Python_UnpackTuple(args, "plot_args_W_set", 2, 2, swig_obj)) SWIG_fail;
4311   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4312   if (!SWIG_IsOK(res1)) {
4313     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_W_set" "', argument " "1"" of type '" "struct plot_args *""'");
4314   }
4315   arg1 = (struct plot_args *)(argp1);
4316   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4317   if (!SWIG_IsOK(ecode2)) {
4318     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_W_set" "', argument " "2"" of type '" "int""'");
4319   }
4320   arg2 = (int)(val2);
4321   if (arg1) (arg1)->W = arg2;
4322   resultobj = SWIG_Py_Void();
4323   return resultobj;
4324 fail:
4325   return NULL;
4326 }
4327 
4328 
_wrap_plot_args_W_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4329 SWIGINTERN PyObject *_wrap_plot_args_W_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330   PyObject *resultobj = 0;
4331   struct plot_args *arg1 = (struct plot_args *) 0 ;
4332   void *argp1 = 0 ;
4333   int res1 = 0 ;
4334   PyObject *swig_obj[1] ;
4335   int result;
4336 
4337   if (!args) SWIG_fail;
4338   swig_obj[0] = args;
4339   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4340   if (!SWIG_IsOK(res1)) {
4341     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_W_get" "', argument " "1"" of type '" "struct plot_args *""'");
4342   }
4343   arg1 = (struct plot_args *)(argp1);
4344   result = (int) ((arg1)->W);
4345   resultobj = SWIG_From_int((int)(result));
4346   return resultobj;
4347 fail:
4348   return NULL;
4349 }
4350 
4351 
_wrap_plot_args_H_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4352 SWIGINTERN PyObject *_wrap_plot_args_H_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4353   PyObject *resultobj = 0;
4354   struct plot_args *arg1 = (struct plot_args *) 0 ;
4355   int arg2 ;
4356   void *argp1 = 0 ;
4357   int res1 = 0 ;
4358   int val2 ;
4359   int ecode2 = 0 ;
4360   PyObject *swig_obj[2] ;
4361 
4362   if (!SWIG_Python_UnpackTuple(args, "plot_args_H_set", 2, 2, swig_obj)) SWIG_fail;
4363   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4364   if (!SWIG_IsOK(res1)) {
4365     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_H_set" "', argument " "1"" of type '" "struct plot_args *""'");
4366   }
4367   arg1 = (struct plot_args *)(argp1);
4368   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4369   if (!SWIG_IsOK(ecode2)) {
4370     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_H_set" "', argument " "2"" of type '" "int""'");
4371   }
4372   arg2 = (int)(val2);
4373   if (arg1) (arg1)->H = arg2;
4374   resultobj = SWIG_Py_Void();
4375   return resultobj;
4376 fail:
4377   return NULL;
4378 }
4379 
4380 
_wrap_plot_args_H_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4381 SWIGINTERN PyObject *_wrap_plot_args_H_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4382   PyObject *resultobj = 0;
4383   struct plot_args *arg1 = (struct plot_args *) 0 ;
4384   void *argp1 = 0 ;
4385   int res1 = 0 ;
4386   PyObject *swig_obj[1] ;
4387   int result;
4388 
4389   if (!args) SWIG_fail;
4390   swig_obj[0] = args;
4391   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4392   if (!SWIG_IsOK(res1)) {
4393     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_H_get" "', argument " "1"" of type '" "struct plot_args *""'");
4394   }
4395   arg1 = (struct plot_args *)(argp1);
4396   result = (int) ((arg1)->H);
4397   resultobj = SWIG_From_int((int)(result));
4398   return resultobj;
4399 fail:
4400   return NULL;
4401 }
4402 
4403 
_wrap_plot_args_rgba_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4404 SWIGINTERN PyObject *_wrap_plot_args_rgba_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4405   PyObject *resultobj = 0;
4406   struct plot_args *arg1 = (struct plot_args *) 0 ;
4407   float *arg2 ;
4408   void *argp1 = 0 ;
4409   int res1 = 0 ;
4410   void *argp2 = 0 ;
4411   int res2 = 0 ;
4412   PyObject *swig_obj[2] ;
4413 
4414   if (!SWIG_Python_UnpackTuple(args, "plot_args_rgba_set", 2, 2, swig_obj)) SWIG_fail;
4415   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4416   if (!SWIG_IsOK(res1)) {
4417     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_rgba_set" "', argument " "1"" of type '" "struct plot_args *""'");
4418   }
4419   arg1 = (struct plot_args *)(argp1);
4420   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
4421   if (!SWIG_IsOK(res2)) {
4422     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_rgba_set" "', argument " "2"" of type '" "float [4]""'");
4423   }
4424   arg2 = (float *)(argp2);
4425   {
4426     if (arg2) {
4427       size_t ii = 0;
4428       for (; ii < (size_t)4; ++ii) *(float *)&arg1->rgba[ii] = *((float *)arg2 + ii);
4429     } else {
4430       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""rgba""' of type '""float [4]""'");
4431     }
4432   }
4433   resultobj = SWIG_Py_Void();
4434   return resultobj;
4435 fail:
4436   return NULL;
4437 }
4438 
4439 
_wrap_plot_args_rgba_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4440 SWIGINTERN PyObject *_wrap_plot_args_rgba_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4441   PyObject *resultobj = 0;
4442   struct plot_args *arg1 = (struct plot_args *) 0 ;
4443   void *argp1 = 0 ;
4444   int res1 = 0 ;
4445   PyObject *swig_obj[1] ;
4446   float *result = 0 ;
4447 
4448   if (!args) SWIG_fail;
4449   swig_obj[0] = args;
4450   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4451   if (!SWIG_IsOK(res1)) {
4452     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_rgba_get" "', argument " "1"" of type '" "struct plot_args *""'");
4453   }
4454   arg1 = (struct plot_args *)(argp1);
4455   result = (float *)(float *) ((arg1)->rgba);
4456   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
4457   return resultobj;
4458 fail:
4459   return NULL;
4460 }
4461 
4462 
_wrap_plot_args_lw_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4463 SWIGINTERN PyObject *_wrap_plot_args_lw_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464   PyObject *resultobj = 0;
4465   struct plot_args *arg1 = (struct plot_args *) 0 ;
4466   float arg2 ;
4467   void *argp1 = 0 ;
4468   int res1 = 0 ;
4469   float val2 ;
4470   int ecode2 = 0 ;
4471   PyObject *swig_obj[2] ;
4472 
4473   if (!SWIG_Python_UnpackTuple(args, "plot_args_lw_set", 2, 2, swig_obj)) SWIG_fail;
4474   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4475   if (!SWIG_IsOK(res1)) {
4476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_lw_set" "', argument " "1"" of type '" "struct plot_args *""'");
4477   }
4478   arg1 = (struct plot_args *)(argp1);
4479   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
4480   if (!SWIG_IsOK(ecode2)) {
4481     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_lw_set" "', argument " "2"" of type '" "float""'");
4482   }
4483   arg2 = (float)(val2);
4484   if (arg1) (arg1)->lw = arg2;
4485   resultobj = SWIG_Py_Void();
4486   return resultobj;
4487 fail:
4488   return NULL;
4489 }
4490 
4491 
_wrap_plot_args_lw_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4492 SWIGINTERN PyObject *_wrap_plot_args_lw_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493   PyObject *resultobj = 0;
4494   struct plot_args *arg1 = (struct plot_args *) 0 ;
4495   void *argp1 = 0 ;
4496   int res1 = 0 ;
4497   PyObject *swig_obj[1] ;
4498   float result;
4499 
4500   if (!args) SWIG_fail;
4501   swig_obj[0] = args;
4502   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4503   if (!SWIG_IsOK(res1)) {
4504     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_lw_get" "', argument " "1"" of type '" "struct plot_args *""'");
4505   }
4506   arg1 = (struct plot_args *)(argp1);
4507   result = (float) ((arg1)->lw);
4508   resultobj = SWIG_From_float((float)(result));
4509   return resultobj;
4510 fail:
4511   return NULL;
4512 }
4513 
4514 
_wrap_plot_args_marker_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4515 SWIGINTERN PyObject *_wrap_plot_args_marker_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4516   PyObject *resultobj = 0;
4517   struct plot_args *arg1 = (struct plot_args *) 0 ;
4518   int arg2 ;
4519   void *argp1 = 0 ;
4520   int res1 = 0 ;
4521   int val2 ;
4522   int ecode2 = 0 ;
4523   PyObject *swig_obj[2] ;
4524 
4525   if (!SWIG_Python_UnpackTuple(args, "plot_args_marker_set", 2, 2, swig_obj)) SWIG_fail;
4526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4527   if (!SWIG_IsOK(res1)) {
4528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_marker_set" "', argument " "1"" of type '" "struct plot_args *""'");
4529   }
4530   arg1 = (struct plot_args *)(argp1);
4531   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4532   if (!SWIG_IsOK(ecode2)) {
4533     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_marker_set" "', argument " "2"" of type '" "int""'");
4534   }
4535   arg2 = (int)(val2);
4536   if (arg1) (arg1)->marker = arg2;
4537   resultobj = SWIG_Py_Void();
4538   return resultobj;
4539 fail:
4540   return NULL;
4541 }
4542 
4543 
_wrap_plot_args_marker_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4544 SWIGINTERN PyObject *_wrap_plot_args_marker_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4545   PyObject *resultobj = 0;
4546   struct plot_args *arg1 = (struct plot_args *) 0 ;
4547   void *argp1 = 0 ;
4548   int res1 = 0 ;
4549   PyObject *swig_obj[1] ;
4550   int result;
4551 
4552   if (!args) SWIG_fail;
4553   swig_obj[0] = args;
4554   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4555   if (!SWIG_IsOK(res1)) {
4556     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_marker_get" "', argument " "1"" of type '" "struct plot_args *""'");
4557   }
4558   arg1 = (struct plot_args *)(argp1);
4559   result = (int) ((arg1)->marker);
4560   resultobj = SWIG_From_int((int)(result));
4561   return resultobj;
4562 fail:
4563   return NULL;
4564 }
4565 
4566 
_wrap_plot_args_markersize_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4567 SWIGINTERN PyObject *_wrap_plot_args_markersize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4568   PyObject *resultobj = 0;
4569   struct plot_args *arg1 = (struct plot_args *) 0 ;
4570   float arg2 ;
4571   void *argp1 = 0 ;
4572   int res1 = 0 ;
4573   float val2 ;
4574   int ecode2 = 0 ;
4575   PyObject *swig_obj[2] ;
4576 
4577   if (!SWIG_Python_UnpackTuple(args, "plot_args_markersize_set", 2, 2, swig_obj)) SWIG_fail;
4578   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4579   if (!SWIG_IsOK(res1)) {
4580     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_markersize_set" "', argument " "1"" of type '" "struct plot_args *""'");
4581   }
4582   arg1 = (struct plot_args *)(argp1);
4583   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
4584   if (!SWIG_IsOK(ecode2)) {
4585     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_markersize_set" "', argument " "2"" of type '" "float""'");
4586   }
4587   arg2 = (float)(val2);
4588   if (arg1) (arg1)->markersize = arg2;
4589   resultobj = SWIG_Py_Void();
4590   return resultobj;
4591 fail:
4592   return NULL;
4593 }
4594 
4595 
_wrap_plot_args_markersize_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4596 SWIGINTERN PyObject *_wrap_plot_args_markersize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4597   PyObject *resultobj = 0;
4598   struct plot_args *arg1 = (struct plot_args *) 0 ;
4599   void *argp1 = 0 ;
4600   int res1 = 0 ;
4601   PyObject *swig_obj[1] ;
4602   float result;
4603 
4604   if (!args) SWIG_fail;
4605   swig_obj[0] = args;
4606   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4607   if (!SWIG_IsOK(res1)) {
4608     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_markersize_get" "', argument " "1"" of type '" "struct plot_args *""'");
4609   }
4610   arg1 = (struct plot_args *)(argp1);
4611   result = (float) ((arg1)->markersize);
4612   resultobj = SWIG_From_float((float)(result));
4613   return resultobj;
4614 fail:
4615   return NULL;
4616 }
4617 
4618 
_wrap_plot_args_bg_rgba_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4619 SWIGINTERN PyObject *_wrap_plot_args_bg_rgba_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620   PyObject *resultobj = 0;
4621   struct plot_args *arg1 = (struct plot_args *) 0 ;
4622   float *arg2 ;
4623   void *argp1 = 0 ;
4624   int res1 = 0 ;
4625   void *argp2 = 0 ;
4626   int res2 = 0 ;
4627   PyObject *swig_obj[2] ;
4628 
4629   if (!SWIG_Python_UnpackTuple(args, "plot_args_bg_rgba_set", 2, 2, swig_obj)) SWIG_fail;
4630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4631   if (!SWIG_IsOK(res1)) {
4632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_rgba_set" "', argument " "1"" of type '" "struct plot_args *""'");
4633   }
4634   arg1 = (struct plot_args *)(argp1);
4635   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
4636   if (!SWIG_IsOK(res2)) {
4637     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_bg_rgba_set" "', argument " "2"" of type '" "float [4]""'");
4638   }
4639   arg2 = (float *)(argp2);
4640   {
4641     if (arg2) {
4642       size_t ii = 0;
4643       for (; ii < (size_t)4; ++ii) *(float *)&arg1->bg_rgba[ii] = *((float *)arg2 + ii);
4644     } else {
4645       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""bg_rgba""' of type '""float [4]""'");
4646     }
4647   }
4648   resultobj = SWIG_Py_Void();
4649   return resultobj;
4650 fail:
4651   return NULL;
4652 }
4653 
4654 
_wrap_plot_args_bg_rgba_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4655 SWIGINTERN PyObject *_wrap_plot_args_bg_rgba_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4656   PyObject *resultobj = 0;
4657   struct plot_args *arg1 = (struct plot_args *) 0 ;
4658   void *argp1 = 0 ;
4659   int res1 = 0 ;
4660   PyObject *swig_obj[1] ;
4661   float *result = 0 ;
4662 
4663   if (!args) SWIG_fail;
4664   swig_obj[0] = args;
4665   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4666   if (!SWIG_IsOK(res1)) {
4667     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_rgba_get" "', argument " "1"" of type '" "struct plot_args *""'");
4668   }
4669   arg1 = (struct plot_args *)(argp1);
4670   result = (float *)(float *) ((arg1)->bg_rgba);
4671   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
4672   return resultobj;
4673 fail:
4674   return NULL;
4675 }
4676 
4677 
_wrap_plot_args_bg_lw_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4678 SWIGINTERN PyObject *_wrap_plot_args_bg_lw_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679   PyObject *resultobj = 0;
4680   struct plot_args *arg1 = (struct plot_args *) 0 ;
4681   float arg2 ;
4682   void *argp1 = 0 ;
4683   int res1 = 0 ;
4684   float val2 ;
4685   int ecode2 = 0 ;
4686   PyObject *swig_obj[2] ;
4687 
4688   if (!SWIG_Python_UnpackTuple(args, "plot_args_bg_lw_set", 2, 2, swig_obj)) SWIG_fail;
4689   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4690   if (!SWIG_IsOK(res1)) {
4691     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_lw_set" "', argument " "1"" of type '" "struct plot_args *""'");
4692   }
4693   arg1 = (struct plot_args *)(argp1);
4694   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
4695   if (!SWIG_IsOK(ecode2)) {
4696     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_bg_lw_set" "', argument " "2"" of type '" "float""'");
4697   }
4698   arg2 = (float)(val2);
4699   if (arg1) (arg1)->bg_lw = arg2;
4700   resultobj = SWIG_Py_Void();
4701   return resultobj;
4702 fail:
4703   return NULL;
4704 }
4705 
4706 
_wrap_plot_args_bg_lw_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4707 SWIGINTERN PyObject *_wrap_plot_args_bg_lw_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4708   PyObject *resultobj = 0;
4709   struct plot_args *arg1 = (struct plot_args *) 0 ;
4710   void *argp1 = 0 ;
4711   int res1 = 0 ;
4712   PyObject *swig_obj[1] ;
4713   float result;
4714 
4715   if (!args) SWIG_fail;
4716   swig_obj[0] = args;
4717   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4718   if (!SWIG_IsOK(res1)) {
4719     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_lw_get" "', argument " "1"" of type '" "struct plot_args *""'");
4720   }
4721   arg1 = (struct plot_args *)(argp1);
4722   result = (float) ((arg1)->bg_lw);
4723   resultobj = SWIG_From_float((float)(result));
4724   return resultobj;
4725 fail:
4726   return NULL;
4727 }
4728 
4729 
_wrap_plot_args_bg_box_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4730 SWIGINTERN PyObject *_wrap_plot_args_bg_box_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731   PyObject *resultobj = 0;
4732   struct plot_args *arg1 = (struct plot_args *) 0 ;
4733   int arg2 ;
4734   void *argp1 = 0 ;
4735   int res1 = 0 ;
4736   int val2 ;
4737   int ecode2 = 0 ;
4738   PyObject *swig_obj[2] ;
4739 
4740   if (!SWIG_Python_UnpackTuple(args, "plot_args_bg_box_set", 2, 2, swig_obj)) SWIG_fail;
4741   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4742   if (!SWIG_IsOK(res1)) {
4743     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_box_set" "', argument " "1"" of type '" "struct plot_args *""'");
4744   }
4745   arg1 = (struct plot_args *)(argp1);
4746   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
4747   if (!SWIG_IsOK(ecode2)) {
4748     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_bg_box_set" "', argument " "2"" of type '" "int""'");
4749   }
4750   arg2 = (int)(val2);
4751   if (arg1) (arg1)->bg_box = arg2;
4752   resultobj = SWIG_Py_Void();
4753   return resultobj;
4754 fail:
4755   return NULL;
4756 }
4757 
4758 
_wrap_plot_args_bg_box_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4759 SWIGINTERN PyObject *_wrap_plot_args_bg_box_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4760   PyObject *resultobj = 0;
4761   struct plot_args *arg1 = (struct plot_args *) 0 ;
4762   void *argp1 = 0 ;
4763   int res1 = 0 ;
4764   PyObject *swig_obj[1] ;
4765   int result;
4766 
4767   if (!args) SWIG_fail;
4768   swig_obj[0] = args;
4769   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4770   if (!SWIG_IsOK(res1)) {
4771     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_bg_box_get" "', argument " "1"" of type '" "struct plot_args *""'");
4772   }
4773   arg1 = (struct plot_args *)(argp1);
4774   result = (int) ((arg1)->bg_box);
4775   resultobj = SWIG_From_int((int)(result));
4776   return resultobj;
4777 fail:
4778   return NULL;
4779 }
4780 
4781 
_wrap_plot_args_fontsize_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4782 SWIGINTERN PyObject *_wrap_plot_args_fontsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4783   PyObject *resultobj = 0;
4784   struct plot_args *arg1 = (struct plot_args *) 0 ;
4785   float arg2 ;
4786   void *argp1 = 0 ;
4787   int res1 = 0 ;
4788   float val2 ;
4789   int ecode2 = 0 ;
4790   PyObject *swig_obj[2] ;
4791 
4792   if (!SWIG_Python_UnpackTuple(args, "plot_args_fontsize_set", 2, 2, swig_obj)) SWIG_fail;
4793   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4794   if (!SWIG_IsOK(res1)) {
4795     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_fontsize_set" "', argument " "1"" of type '" "struct plot_args *""'");
4796   }
4797   arg1 = (struct plot_args *)(argp1);
4798   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
4799   if (!SWIG_IsOK(ecode2)) {
4800     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_fontsize_set" "', argument " "2"" of type '" "float""'");
4801   }
4802   arg2 = (float)(val2);
4803   if (arg1) (arg1)->fontsize = arg2;
4804   resultobj = SWIG_Py_Void();
4805   return resultobj;
4806 fail:
4807   return NULL;
4808 }
4809 
4810 
_wrap_plot_args_fontsize_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4811 SWIGINTERN PyObject *_wrap_plot_args_fontsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4812   PyObject *resultobj = 0;
4813   struct plot_args *arg1 = (struct plot_args *) 0 ;
4814   void *argp1 = 0 ;
4815   int res1 = 0 ;
4816   PyObject *swig_obj[1] ;
4817   float result;
4818 
4819   if (!args) SWIG_fail;
4820   swig_obj[0] = args;
4821   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4822   if (!SWIG_IsOK(res1)) {
4823     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_fontsize_get" "', argument " "1"" of type '" "struct plot_args *""'");
4824   }
4825   arg1 = (struct plot_args *)(argp1);
4826   result = (float) ((arg1)->fontsize);
4827   resultobj = SWIG_From_float((float)(result));
4828   return resultobj;
4829 fail:
4830   return NULL;
4831 }
4832 
4833 
_wrap_plot_args_halign_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4834 SWIGINTERN PyObject *_wrap_plot_args_halign_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835   PyObject *resultobj = 0;
4836   struct plot_args *arg1 = (struct plot_args *) 0 ;
4837   char arg2 ;
4838   void *argp1 = 0 ;
4839   int res1 = 0 ;
4840   char val2 ;
4841   int ecode2 = 0 ;
4842   PyObject *swig_obj[2] ;
4843 
4844   if (!SWIG_Python_UnpackTuple(args, "plot_args_halign_set", 2, 2, swig_obj)) SWIG_fail;
4845   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4846   if (!SWIG_IsOK(res1)) {
4847     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_halign_set" "', argument " "1"" of type '" "struct plot_args *""'");
4848   }
4849   arg1 = (struct plot_args *)(argp1);
4850   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
4851   if (!SWIG_IsOK(ecode2)) {
4852     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_halign_set" "', argument " "2"" of type '" "char""'");
4853   }
4854   arg2 = (char)(val2);
4855   if (arg1) (arg1)->halign = arg2;
4856   resultobj = SWIG_Py_Void();
4857   return resultobj;
4858 fail:
4859   return NULL;
4860 }
4861 
4862 
_wrap_plot_args_halign_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4863 SWIGINTERN PyObject *_wrap_plot_args_halign_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4864   PyObject *resultobj = 0;
4865   struct plot_args *arg1 = (struct plot_args *) 0 ;
4866   void *argp1 = 0 ;
4867   int res1 = 0 ;
4868   PyObject *swig_obj[1] ;
4869   char result;
4870 
4871   if (!args) SWIG_fail;
4872   swig_obj[0] = args;
4873   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4874   if (!SWIG_IsOK(res1)) {
4875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_halign_get" "', argument " "1"" of type '" "struct plot_args *""'");
4876   }
4877   arg1 = (struct plot_args *)(argp1);
4878   result = (char) ((arg1)->halign);
4879   resultobj = SWIG_From_char((char)(result));
4880   return resultobj;
4881 fail:
4882   return NULL;
4883 }
4884 
4885 
_wrap_plot_args_valign_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4886 SWIGINTERN PyObject *_wrap_plot_args_valign_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4887   PyObject *resultobj = 0;
4888   struct plot_args *arg1 = (struct plot_args *) 0 ;
4889   char arg2 ;
4890   void *argp1 = 0 ;
4891   int res1 = 0 ;
4892   char val2 ;
4893   int ecode2 = 0 ;
4894   PyObject *swig_obj[2] ;
4895 
4896   if (!SWIG_Python_UnpackTuple(args, "plot_args_valign_set", 2, 2, swig_obj)) SWIG_fail;
4897   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4898   if (!SWIG_IsOK(res1)) {
4899     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_valign_set" "', argument " "1"" of type '" "struct plot_args *""'");
4900   }
4901   arg1 = (struct plot_args *)(argp1);
4902   ecode2 = SWIG_AsVal_char(swig_obj[1], &val2);
4903   if (!SWIG_IsOK(ecode2)) {
4904     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_valign_set" "', argument " "2"" of type '" "char""'");
4905   }
4906   arg2 = (char)(val2);
4907   if (arg1) (arg1)->valign = arg2;
4908   resultobj = SWIG_Py_Void();
4909   return resultobj;
4910 fail:
4911   return NULL;
4912 }
4913 
4914 
_wrap_plot_args_valign_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4915 SWIGINTERN PyObject *_wrap_plot_args_valign_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4916   PyObject *resultobj = 0;
4917   struct plot_args *arg1 = (struct plot_args *) 0 ;
4918   void *argp1 = 0 ;
4919   int res1 = 0 ;
4920   PyObject *swig_obj[1] ;
4921   char result;
4922 
4923   if (!args) SWIG_fail;
4924   swig_obj[0] = args;
4925   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4926   if (!SWIG_IsOK(res1)) {
4927     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_valign_get" "', argument " "1"" of type '" "struct plot_args *""'");
4928   }
4929   arg1 = (struct plot_args *)(argp1);
4930   result = (char) ((arg1)->valign);
4931   resultobj = SWIG_From_char((char)(result));
4932   return resultobj;
4933 fail:
4934   return NULL;
4935 }
4936 
4937 
_wrap_plot_args_label_offset_x_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4938 SWIGINTERN PyObject *_wrap_plot_args_label_offset_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939   PyObject *resultobj = 0;
4940   struct plot_args *arg1 = (struct plot_args *) 0 ;
4941   double arg2 ;
4942   void *argp1 = 0 ;
4943   int res1 = 0 ;
4944   double val2 ;
4945   int ecode2 = 0 ;
4946   PyObject *swig_obj[2] ;
4947 
4948   if (!SWIG_Python_UnpackTuple(args, "plot_args_label_offset_x_set", 2, 2, swig_obj)) SWIG_fail;
4949   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4950   if (!SWIG_IsOK(res1)) {
4951     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_label_offset_x_set" "', argument " "1"" of type '" "struct plot_args *""'");
4952   }
4953   arg1 = (struct plot_args *)(argp1);
4954   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
4955   if (!SWIG_IsOK(ecode2)) {
4956     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_label_offset_x_set" "', argument " "2"" of type '" "double""'");
4957   }
4958   arg2 = (double)(val2);
4959   if (arg1) (arg1)->label_offset_x = arg2;
4960   resultobj = SWIG_Py_Void();
4961   return resultobj;
4962 fail:
4963   return NULL;
4964 }
4965 
4966 
_wrap_plot_args_label_offset_x_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4967 SWIGINTERN PyObject *_wrap_plot_args_label_offset_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968   PyObject *resultobj = 0;
4969   struct plot_args *arg1 = (struct plot_args *) 0 ;
4970   void *argp1 = 0 ;
4971   int res1 = 0 ;
4972   PyObject *swig_obj[1] ;
4973   double result;
4974 
4975   if (!args) SWIG_fail;
4976   swig_obj[0] = args;
4977   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
4978   if (!SWIG_IsOK(res1)) {
4979     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_label_offset_x_get" "', argument " "1"" of type '" "struct plot_args *""'");
4980   }
4981   arg1 = (struct plot_args *)(argp1);
4982   result = (double) ((arg1)->label_offset_x);
4983   resultobj = SWIG_From_double((double)(result));
4984   return resultobj;
4985 fail:
4986   return NULL;
4987 }
4988 
4989 
_wrap_plot_args_label_offset_y_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)4990 SWIGINTERN PyObject *_wrap_plot_args_label_offset_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4991   PyObject *resultobj = 0;
4992   struct plot_args *arg1 = (struct plot_args *) 0 ;
4993   double arg2 ;
4994   void *argp1 = 0 ;
4995   int res1 = 0 ;
4996   double val2 ;
4997   int ecode2 = 0 ;
4998   PyObject *swig_obj[2] ;
4999 
5000   if (!SWIG_Python_UnpackTuple(args, "plot_args_label_offset_y_set", 2, 2, swig_obj)) SWIG_fail;
5001   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5002   if (!SWIG_IsOK(res1)) {
5003     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_label_offset_y_set" "', argument " "1"" of type '" "struct plot_args *""'");
5004   }
5005   arg1 = (struct plot_args *)(argp1);
5006   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
5007   if (!SWIG_IsOK(ecode2)) {
5008     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_label_offset_y_set" "', argument " "2"" of type '" "double""'");
5009   }
5010   arg2 = (double)(val2);
5011   if (arg1) (arg1)->label_offset_y = arg2;
5012   resultobj = SWIG_Py_Void();
5013   return resultobj;
5014 fail:
5015   return NULL;
5016 }
5017 
5018 
_wrap_plot_args_label_offset_y_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5019 SWIGINTERN PyObject *_wrap_plot_args_label_offset_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5020   PyObject *resultobj = 0;
5021   struct plot_args *arg1 = (struct plot_args *) 0 ;
5022   void *argp1 = 0 ;
5023   int res1 = 0 ;
5024   PyObject *swig_obj[1] ;
5025   double result;
5026 
5027   if (!args) SWIG_fail;
5028   swig_obj[0] = args;
5029   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5030   if (!SWIG_IsOK(res1)) {
5031     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_label_offset_y_get" "', argument " "1"" of type '" "struct plot_args *""'");
5032   }
5033   arg1 = (struct plot_args *)(argp1);
5034   result = (double) ((arg1)->label_offset_y);
5035   resultobj = SWIG_From_double((double)(result));
5036   return resultobj;
5037 fail:
5038   return NULL;
5039 }
5040 
5041 
_wrap_plot_args_text_bg_layer_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5042 SWIGINTERN PyObject *_wrap_plot_args_text_bg_layer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5043   PyObject *resultobj = 0;
5044   struct plot_args *arg1 = (struct plot_args *) 0 ;
5045   int arg2 ;
5046   void *argp1 = 0 ;
5047   int res1 = 0 ;
5048   int val2 ;
5049   int ecode2 = 0 ;
5050   PyObject *swig_obj[2] ;
5051 
5052   if (!SWIG_Python_UnpackTuple(args, "plot_args_text_bg_layer_set", 2, 2, swig_obj)) SWIG_fail;
5053   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5054   if (!SWIG_IsOK(res1)) {
5055     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_text_bg_layer_set" "', argument " "1"" of type '" "struct plot_args *""'");
5056   }
5057   arg1 = (struct plot_args *)(argp1);
5058   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5059   if (!SWIG_IsOK(ecode2)) {
5060     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_text_bg_layer_set" "', argument " "2"" of type '" "int""'");
5061   }
5062   arg2 = (int)(val2);
5063   if (arg1) (arg1)->text_bg_layer = arg2;
5064   resultobj = SWIG_Py_Void();
5065   return resultobj;
5066 fail:
5067   return NULL;
5068 }
5069 
5070 
_wrap_plot_args_text_bg_layer_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5071 SWIGINTERN PyObject *_wrap_plot_args_text_bg_layer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5072   PyObject *resultobj = 0;
5073   struct plot_args *arg1 = (struct plot_args *) 0 ;
5074   void *argp1 = 0 ;
5075   int res1 = 0 ;
5076   PyObject *swig_obj[1] ;
5077   int result;
5078 
5079   if (!args) SWIG_fail;
5080   swig_obj[0] = args;
5081   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5082   if (!SWIG_IsOK(res1)) {
5083     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_text_bg_layer_get" "', argument " "1"" of type '" "struct plot_args *""'");
5084   }
5085   arg1 = (struct plot_args *)(argp1);
5086   result = (int) ((arg1)->text_bg_layer);
5087   resultobj = SWIG_From_int((int)(result));
5088   return resultobj;
5089 fail:
5090   return NULL;
5091 }
5092 
5093 
_wrap_plot_args_text_fg_layer_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5094 SWIGINTERN PyObject *_wrap_plot_args_text_fg_layer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5095   PyObject *resultobj = 0;
5096   struct plot_args *arg1 = (struct plot_args *) 0 ;
5097   int arg2 ;
5098   void *argp1 = 0 ;
5099   int res1 = 0 ;
5100   int val2 ;
5101   int ecode2 = 0 ;
5102   PyObject *swig_obj[2] ;
5103 
5104   if (!SWIG_Python_UnpackTuple(args, "plot_args_text_fg_layer_set", 2, 2, swig_obj)) SWIG_fail;
5105   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5106   if (!SWIG_IsOK(res1)) {
5107     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_text_fg_layer_set" "', argument " "1"" of type '" "struct plot_args *""'");
5108   }
5109   arg1 = (struct plot_args *)(argp1);
5110   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5111   if (!SWIG_IsOK(ecode2)) {
5112     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_text_fg_layer_set" "', argument " "2"" of type '" "int""'");
5113   }
5114   arg2 = (int)(val2);
5115   if (arg1) (arg1)->text_fg_layer = arg2;
5116   resultobj = SWIG_Py_Void();
5117   return resultobj;
5118 fail:
5119   return NULL;
5120 }
5121 
5122 
_wrap_plot_args_text_fg_layer_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5123 SWIGINTERN PyObject *_wrap_plot_args_text_fg_layer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5124   PyObject *resultobj = 0;
5125   struct plot_args *arg1 = (struct plot_args *) 0 ;
5126   void *argp1 = 0 ;
5127   int res1 = 0 ;
5128   PyObject *swig_obj[1] ;
5129   int result;
5130 
5131   if (!args) SWIG_fail;
5132   swig_obj[0] = args;
5133   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5134   if (!SWIG_IsOK(res1)) {
5135     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_text_fg_layer_get" "', argument " "1"" of type '" "struct plot_args *""'");
5136   }
5137   arg1 = (struct plot_args *)(argp1);
5138   result = (int) ((arg1)->text_fg_layer);
5139   resultobj = SWIG_From_int((int)(result));
5140   return resultobj;
5141 fail:
5142   return NULL;
5143 }
5144 
5145 
_wrap_plot_args_marker_fg_layer_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5146 SWIGINTERN PyObject *_wrap_plot_args_marker_fg_layer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5147   PyObject *resultobj = 0;
5148   struct plot_args *arg1 = (struct plot_args *) 0 ;
5149   int arg2 ;
5150   void *argp1 = 0 ;
5151   int res1 = 0 ;
5152   int val2 ;
5153   int ecode2 = 0 ;
5154   PyObject *swig_obj[2] ;
5155 
5156   if (!SWIG_Python_UnpackTuple(args, "plot_args_marker_fg_layer_set", 2, 2, swig_obj)) SWIG_fail;
5157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5158   if (!SWIG_IsOK(res1)) {
5159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_marker_fg_layer_set" "', argument " "1"" of type '" "struct plot_args *""'");
5160   }
5161   arg1 = (struct plot_args *)(argp1);
5162   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5163   if (!SWIG_IsOK(ecode2)) {
5164     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_marker_fg_layer_set" "', argument " "2"" of type '" "int""'");
5165   }
5166   arg2 = (int)(val2);
5167   if (arg1) (arg1)->marker_fg_layer = arg2;
5168   resultobj = SWIG_Py_Void();
5169   return resultobj;
5170 fail:
5171   return NULL;
5172 }
5173 
5174 
_wrap_plot_args_marker_fg_layer_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5175 SWIGINTERN PyObject *_wrap_plot_args_marker_fg_layer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176   PyObject *resultobj = 0;
5177   struct plot_args *arg1 = (struct plot_args *) 0 ;
5178   void *argp1 = 0 ;
5179   int res1 = 0 ;
5180   PyObject *swig_obj[1] ;
5181   int result;
5182 
5183   if (!args) SWIG_fail;
5184   swig_obj[0] = args;
5185   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5186   if (!SWIG_IsOK(res1)) {
5187     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_marker_fg_layer_get" "', argument " "1"" of type '" "struct plot_args *""'");
5188   }
5189   arg1 = (struct plot_args *)(argp1);
5190   result = (int) ((arg1)->marker_fg_layer);
5191   resultobj = SWIG_From_int((int)(result));
5192   return resultobj;
5193 fail:
5194   return NULL;
5195 }
5196 
5197 
_wrap_plot_args_cairocmds_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5198 SWIGINTERN PyObject *_wrap_plot_args_cairocmds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5199   PyObject *resultobj = 0;
5200   struct plot_args *arg1 = (struct plot_args *) 0 ;
5201   bl *arg2 = (bl *) 0 ;
5202   void *argp1 = 0 ;
5203   int res1 = 0 ;
5204   void *argp2 = 0 ;
5205   int res2 = 0 ;
5206   PyObject *swig_obj[2] ;
5207 
5208   if (!SWIG_Python_UnpackTuple(args, "plot_args_cairocmds_set", 2, 2, swig_obj)) SWIG_fail;
5209   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5210   if (!SWIG_IsOK(res1)) {
5211     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_cairocmds_set" "', argument " "1"" of type '" "struct plot_args *""'");
5212   }
5213   arg1 = (struct plot_args *)(argp1);
5214   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_bl, SWIG_POINTER_DISOWN |  0 );
5215   if (!SWIG_IsOK(res2)) {
5216     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_cairocmds_set" "', argument " "2"" of type '" "bl *""'");
5217   }
5218   arg2 = (bl *)(argp2);
5219   if (arg1) (arg1)->cairocmds = arg2;
5220   resultobj = SWIG_Py_Void();
5221   return resultobj;
5222 fail:
5223   return NULL;
5224 }
5225 
5226 
_wrap_plot_args_cairocmds_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5227 SWIGINTERN PyObject *_wrap_plot_args_cairocmds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228   PyObject *resultobj = 0;
5229   struct plot_args *arg1 = (struct plot_args *) 0 ;
5230   void *argp1 = 0 ;
5231   int res1 = 0 ;
5232   PyObject *swig_obj[1] ;
5233   bl *result = 0 ;
5234 
5235   if (!args) SWIG_fail;
5236   swig_obj[0] = args;
5237   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5238   if (!SWIG_IsOK(res1)) {
5239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_cairocmds_get" "', argument " "1"" of type '" "struct plot_args *""'");
5240   }
5241   arg1 = (struct plot_args *)(argp1);
5242   result = (bl *) ((arg1)->cairocmds);
5243   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bl, 0 |  0 );
5244   return resultobj;
5245 fail:
5246   return NULL;
5247 }
5248 
5249 
_wrap_plot_args_linestep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5250 SWIGINTERN PyObject *_wrap_plot_args_linestep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251   PyObject *resultobj = 0;
5252   struct plot_args *arg1 = (struct plot_args *) 0 ;
5253   float arg2 ;
5254   void *argp1 = 0 ;
5255   int res1 = 0 ;
5256   float val2 ;
5257   int ecode2 = 0 ;
5258   PyObject *swig_obj[2] ;
5259 
5260   if (!SWIG_Python_UnpackTuple(args, "plot_args_linestep_set", 2, 2, swig_obj)) SWIG_fail;
5261   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5262   if (!SWIG_IsOK(res1)) {
5263     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_linestep_set" "', argument " "1"" of type '" "struct plot_args *""'");
5264   }
5265   arg1 = (struct plot_args *)(argp1);
5266   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
5267   if (!SWIG_IsOK(ecode2)) {
5268     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_linestep_set" "', argument " "2"" of type '" "float""'");
5269   }
5270   arg2 = (float)(val2);
5271   if (arg1) (arg1)->linestep = arg2;
5272   resultobj = SWIG_Py_Void();
5273   return resultobj;
5274 fail:
5275   return NULL;
5276 }
5277 
5278 
_wrap_plot_args_linestep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5279 SWIGINTERN PyObject *_wrap_plot_args_linestep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280   PyObject *resultobj = 0;
5281   struct plot_args *arg1 = (struct plot_args *) 0 ;
5282   void *argp1 = 0 ;
5283   int res1 = 0 ;
5284   PyObject *swig_obj[1] ;
5285   float result;
5286 
5287   if (!args) SWIG_fail;
5288   swig_obj[0] = args;
5289   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5290   if (!SWIG_IsOK(res1)) {
5291     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_linestep_get" "', argument " "1"" of type '" "struct plot_args *""'");
5292   }
5293   arg1 = (struct plot_args *)(argp1);
5294   result = (float) ((arg1)->linestep);
5295   resultobj = SWIG_From_float((float)(result));
5296   return resultobj;
5297 fail:
5298   return NULL;
5299 }
5300 
5301 
_wrap_plot_args_view_image_as_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5302 SWIGINTERN PyObject *_wrap_plot_args_view_image_as_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5303   PyObject *resultobj = 0;
5304   struct plot_args *arg1 = (struct plot_args *) 0 ;
5305   void *argp1 = 0 ;
5306   int res1 = 0 ;
5307   PyObject *swig_obj[1] ;
5308   PyObject *result = 0 ;
5309 
5310   if (!args) SWIG_fail;
5311   swig_obj[0] = args;
5312   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5313   if (!SWIG_IsOK(res1)) {
5314     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_view_image_as_numpy" "', argument " "1"" of type '" "struct plot_args *""'");
5315   }
5316   arg1 = (struct plot_args *)(argp1);
5317   result = (PyObject *)plot_args_view_image_as_numpy(arg1);
5318   resultobj = result;
5319   return resultobj;
5320 fail:
5321   return NULL;
5322 }
5323 
5324 
_wrap_plot_args_get_image_as_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5325 SWIGINTERN PyObject *_wrap_plot_args_get_image_as_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5326   PyObject *resultobj = 0;
5327   struct plot_args *arg1 = (struct plot_args *) 0 ;
5328   int arg2 ;
5329   PyObject *arg3 = (PyObject *) 0 ;
5330   void *argp1 = 0 ;
5331   int res1 = 0 ;
5332   int val2 ;
5333   int ecode2 = 0 ;
5334   PyObject *swig_obj[3] ;
5335   PyObject *result = 0 ;
5336 
5337   if (!SWIG_Python_UnpackTuple(args, "plot_args_get_image_as_numpy", 3, 3, swig_obj)) SWIG_fail;
5338   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5339   if (!SWIG_IsOK(res1)) {
5340     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_get_image_as_numpy" "', argument " "1"" of type '" "struct plot_args *""'");
5341   }
5342   arg1 = (struct plot_args *)(argp1);
5343   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5344   if (!SWIG_IsOK(ecode2)) {
5345     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_get_image_as_numpy" "', argument " "2"" of type '" "int""'");
5346   }
5347   arg2 = (int)(val2);
5348   arg3 = swig_obj[2];
5349   result = (PyObject *)plot_args_get_image_as_numpy(arg1,arg2,arg3);
5350   resultobj = result;
5351   return resultobj;
5352 fail:
5353   return NULL;
5354 }
5355 
5356 
_wrap_plot_args_get_image_as_numpy_view(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5357 SWIGINTERN PyObject *_wrap_plot_args_get_image_as_numpy_view(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5358   PyObject *resultobj = 0;
5359   struct plot_args *arg1 = (struct plot_args *) 0 ;
5360   void *argp1 = 0 ;
5361   int res1 = 0 ;
5362   PyObject *swig_obj[1] ;
5363   PyObject *result = 0 ;
5364 
5365   if (!args) SWIG_fail;
5366   swig_obj[0] = args;
5367   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5368   if (!SWIG_IsOK(res1)) {
5369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_get_image_as_numpy_view" "', argument " "1"" of type '" "struct plot_args *""'");
5370   }
5371   arg1 = (struct plot_args *)(argp1);
5372   result = (PyObject *)plot_args_get_image_as_numpy_view(arg1);
5373   resultobj = result;
5374   return resultobj;
5375 fail:
5376   return NULL;
5377 }
5378 
5379 
_wrap_plot_args_set_image_from_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5380 SWIGINTERN PyObject *_wrap_plot_args_set_image_from_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5381   PyObject *resultobj = 0;
5382   struct plot_args *arg1 = (struct plot_args *) 0 ;
5383   PyObject *arg2 = (PyObject *) 0 ;
5384   int arg3 ;
5385   void *argp1 = 0 ;
5386   int res1 = 0 ;
5387   int val3 ;
5388   int ecode3 = 0 ;
5389   PyObject *swig_obj[3] ;
5390   int result;
5391 
5392   if (!SWIG_Python_UnpackTuple(args, "plot_args_set_image_from_numpy", 3, 3, swig_obj)) SWIG_fail;
5393   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5394   if (!SWIG_IsOK(res1)) {
5395     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_set_image_from_numpy" "', argument " "1"" of type '" "struct plot_args *""'");
5396   }
5397   arg1 = (struct plot_args *)(argp1);
5398   arg2 = swig_obj[1];
5399   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
5400   if (!SWIG_IsOK(ecode3)) {
5401     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_args_set_image_from_numpy" "', argument " "3"" of type '" "int""'");
5402   }
5403   arg3 = (int)(val3);
5404   result = (int)plot_args_set_image_from_numpy(arg1,arg2,arg3);
5405   resultobj = SWIG_From_int((int)(result));
5406   return resultobj;
5407 fail:
5408   return NULL;
5409 }
5410 
5411 
_wrap_plot_args_set_wcs_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5412 SWIGINTERN PyObject *_wrap_plot_args_set_wcs_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5413   PyObject *resultobj = 0;
5414   struct plot_args *arg1 = (struct plot_args *) 0 ;
5415   char *arg2 = (char *) 0 ;
5416   int arg3 ;
5417   void *argp1 = 0 ;
5418   int res1 = 0 ;
5419   int res2 ;
5420   char *buf2 = 0 ;
5421   int alloc2 = 0 ;
5422   int val3 ;
5423   int ecode3 = 0 ;
5424   PyObject *swig_obj[3] ;
5425   int result;
5426 
5427   if (!SWIG_Python_UnpackTuple(args, "plot_args_set_wcs_file", 3, 3, swig_obj)) SWIG_fail;
5428   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5429   if (!SWIG_IsOK(res1)) {
5430     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_set_wcs_file" "', argument " "1"" of type '" "struct plot_args *""'");
5431   }
5432   arg1 = (struct plot_args *)(argp1);
5433   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5434   if (!SWIG_IsOK(res2)) {
5435     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_args_set_wcs_file" "', argument " "2"" of type '" "char const *""'");
5436   }
5437   arg2 = (char *)(buf2);
5438   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
5439   if (!SWIG_IsOK(ecode3)) {
5440     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_args_set_wcs_file" "', argument " "3"" of type '" "int""'");
5441   }
5442   arg3 = (int)(val3);
5443   result = (int)plot_args_set_wcs_file(arg1,(char const *)arg2,arg3);
5444   resultobj = SWIG_From_int((int)(result));
5445   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5446   return resultobj;
5447 fail:
5448   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5449   return NULL;
5450 }
5451 
5452 
_wrap_plot_args_set_size_from_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5453 SWIGINTERN PyObject *_wrap_plot_args_set_size_from_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5454   PyObject *resultobj = 0;
5455   struct plot_args *arg1 = (struct plot_args *) 0 ;
5456   void *argp1 = 0 ;
5457   int res1 = 0 ;
5458   PyObject *swig_obj[1] ;
5459   int result;
5460 
5461   if (!args) SWIG_fail;
5462   swig_obj[0] = args;
5463   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5464   if (!SWIG_IsOK(res1)) {
5465     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_set_size_from_wcs" "', argument " "1"" of type '" "struct plot_args *""'");
5466   }
5467   arg1 = (struct plot_args *)(argp1);
5468   result = (int)plot_args_set_size_from_wcs(arg1);
5469   resultobj = SWIG_From_int((int)(result));
5470   return resultobj;
5471 fail:
5472   return NULL;
5473 }
5474 
5475 
_wrap_plot_args_count_ra_labels(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5476 SWIGINTERN PyObject *_wrap_plot_args_count_ra_labels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5477   PyObject *resultobj = 0;
5478   struct plot_args *arg1 = (struct plot_args *) 0 ;
5479   void *argp1 = 0 ;
5480   int res1 = 0 ;
5481   PyObject *swig_obj[1] ;
5482   int result;
5483 
5484   if (!args) SWIG_fail;
5485   swig_obj[0] = args;
5486   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5487   if (!SWIG_IsOK(res1)) {
5488     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_count_ra_labels" "', argument " "1"" of type '" "struct plot_args *""'");
5489   }
5490   arg1 = (struct plot_args *)(argp1);
5491   result = (int)plot_args_count_ra_labels(arg1);
5492   resultobj = SWIG_From_int((int)(result));
5493   return resultobj;
5494 fail:
5495   return NULL;
5496 }
5497 
5498 
_wrap_plot_args_count_dec_labels(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5499 SWIGINTERN PyObject *_wrap_plot_args_count_dec_labels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5500   PyObject *resultobj = 0;
5501   struct plot_args *arg1 = (struct plot_args *) 0 ;
5502   void *argp1 = 0 ;
5503   int res1 = 0 ;
5504   PyObject *swig_obj[1] ;
5505   int result;
5506 
5507   if (!args) SWIG_fail;
5508   swig_obj[0] = args;
5509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5510   if (!SWIG_IsOK(res1)) {
5511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_count_dec_labels" "', argument " "1"" of type '" "struct plot_args *""'");
5512   }
5513   arg1 = (struct plot_args *)(argp1);
5514   result = (int)plot_args_count_dec_labels(arg1);
5515   resultobj = SWIG_From_int((int)(result));
5516   return resultobj;
5517 fail:
5518   return NULL;
5519 }
5520 
5521 
_wrap_plot_args_loginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5522 SWIGINTERN PyObject *_wrap_plot_args_loginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5523   PyObject *resultobj = 0;
5524   struct plot_args *arg1 = (struct plot_args *) 0 ;
5525   int arg2 ;
5526   void *argp1 = 0 ;
5527   int res1 = 0 ;
5528   int val2 ;
5529   int ecode2 = 0 ;
5530   PyObject *swig_obj[2] ;
5531 
5532   if (!SWIG_Python_UnpackTuple(args, "plot_args_loginit", 2, 2, swig_obj)) SWIG_fail;
5533   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
5534   if (!SWIG_IsOK(res1)) {
5535     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_args_loginit" "', argument " "1"" of type '" "struct plot_args *""'");
5536   }
5537   arg1 = (struct plot_args *)(argp1);
5538   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
5539   if (!SWIG_IsOK(ecode2)) {
5540     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_args_loginit" "', argument " "2"" of type '" "int""'");
5541   }
5542   arg2 = (int)(val2);
5543   plot_args_loginit(arg1,arg2);
5544   resultobj = SWIG_Py_Void();
5545   return resultobj;
5546 fail:
5547   return NULL;
5548 }
5549 
5550 
_wrap_new_plot_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5551 SWIGINTERN PyObject *_wrap_new_plot_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5552   PyObject *resultobj = 0;
5553   struct plot_args *result = 0 ;
5554 
5555   if (!SWIG_Python_UnpackTuple(args, "new_plot_args", 0, 0, 0)) SWIG_fail;
5556   result = (struct plot_args *)calloc(1, sizeof(struct plot_args));
5557   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plot_args, SWIG_POINTER_NEW |  0 );
5558   return resultobj;
5559 fail:
5560   return NULL;
5561 }
5562 
5563 
_wrap_delete_plot_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5564 SWIGINTERN PyObject *_wrap_delete_plot_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5565   PyObject *resultobj = 0;
5566   struct plot_args *arg1 = (struct plot_args *) 0 ;
5567   void *argp1 = 0 ;
5568   int res1 = 0 ;
5569   PyObject *swig_obj[1] ;
5570 
5571   if (!args) SWIG_fail;
5572   swig_obj[0] = args;
5573   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, SWIG_POINTER_DISOWN |  0 );
5574   if (!SWIG_IsOK(res1)) {
5575     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plot_args" "', argument " "1"" of type '" "struct plot_args *""'");
5576   }
5577   arg1 = (struct plot_args *)(argp1);
5578   free((char *) arg1);
5579   resultobj = SWIG_Py_Void();
5580   return resultobj;
5581 fail:
5582   return NULL;
5583 }
5584 
5585 
plot_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5586 SWIGINTERN PyObject *plot_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5587   PyObject *obj;
5588   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
5589   SWIG_TypeNewClientData(SWIGTYPE_p_plot_args, SWIG_NewClientData(obj));
5590   return SWIG_Py_Void();
5591 }
5592 
plot_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5593 SWIGINTERN PyObject *plot_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5594   return SWIG_Python_InitShadowInstance(args);
5595 }
5596 
_wrap_plotter_name_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5597 SWIGINTERN PyObject *_wrap_plotter_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5598   PyObject *resultobj = 0;
5599   struct plotter *arg1 = (struct plotter *) 0 ;
5600   char *arg2 = (char *) 0 ;
5601   void *argp1 = 0 ;
5602   int res1 = 0 ;
5603   int res2 ;
5604   char *buf2 = 0 ;
5605   int alloc2 = 0 ;
5606   PyObject *swig_obj[2] ;
5607 
5608   if (!SWIG_Python_UnpackTuple(args, "plotter_name_set", 2, 2, swig_obj)) SWIG_fail;
5609   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5610   if (!SWIG_IsOK(res1)) {
5611     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_name_set" "', argument " "1"" of type '" "struct plotter *""'");
5612   }
5613   arg1 = (struct plotter *)(argp1);
5614   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
5615   if (!SWIG_IsOK(res2)) {
5616     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotter_name_set" "', argument " "2"" of type '" "char *""'");
5617   }
5618   arg2 = (char *)(buf2);
5619   if (arg1->name) free((char*)arg1->name);
5620   if (arg2) {
5621     size_t size = strlen((const char *)(arg2)) + 1;
5622     arg1->name = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
5623   } else {
5624     arg1->name = 0;
5625   }
5626   resultobj = SWIG_Py_Void();
5627   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5628   return resultobj;
5629 fail:
5630   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5631   return NULL;
5632 }
5633 
5634 
_wrap_plotter_name_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5635 SWIGINTERN PyObject *_wrap_plotter_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5636   PyObject *resultobj = 0;
5637   struct plotter *arg1 = (struct plotter *) 0 ;
5638   void *argp1 = 0 ;
5639   int res1 = 0 ;
5640   PyObject *swig_obj[1] ;
5641   char *result = 0 ;
5642 
5643   if (!args) SWIG_fail;
5644   swig_obj[0] = args;
5645   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5646   if (!SWIG_IsOK(res1)) {
5647     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_name_get" "', argument " "1"" of type '" "struct plotter *""'");
5648   }
5649   arg1 = (struct plotter *)(argp1);
5650   result = (char *) ((arg1)->name);
5651   resultobj = SWIG_FromCharPtr((const char *)result);
5652   return resultobj;
5653 fail:
5654   return NULL;
5655 }
5656 
5657 
_wrap_plotter_init_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5658 SWIGINTERN PyObject *_wrap_plotter_init_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5659   PyObject *resultobj = 0;
5660   struct plotter *arg1 = (struct plotter *) 0 ;
5661   plot_func_init_t arg2 = (plot_func_init_t) 0 ;
5662   void *argp1 = 0 ;
5663   int res1 = 0 ;
5664   PyObject *swig_obj[2] ;
5665 
5666   if (!SWIG_Python_UnpackTuple(args, "plotter_init_set", 2, 2, swig_obj)) SWIG_fail;
5667   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5668   if (!SWIG_IsOK(res1)) {
5669     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_init_set" "', argument " "1"" of type '" "struct plotter *""'");
5670   }
5671   arg1 = (struct plotter *)(argp1);
5672   {
5673     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_plot_args__p_void);
5674     if (!SWIG_IsOK(res)) {
5675       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plotter_init_set" "', argument " "2"" of type '" "plot_func_init_t""'");
5676     }
5677   }
5678   if (arg1) (arg1)->init = arg2;
5679   resultobj = SWIG_Py_Void();
5680   return resultobj;
5681 fail:
5682   return NULL;
5683 }
5684 
5685 
_wrap_plotter_init_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5686 SWIGINTERN PyObject *_wrap_plotter_init_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687   PyObject *resultobj = 0;
5688   struct plotter *arg1 = (struct plotter *) 0 ;
5689   void *argp1 = 0 ;
5690   int res1 = 0 ;
5691   PyObject *swig_obj[1] ;
5692   plot_func_init_t result;
5693 
5694   if (!args) SWIG_fail;
5695   swig_obj[0] = args;
5696   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5697   if (!SWIG_IsOK(res1)) {
5698     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_init_get" "', argument " "1"" of type '" "struct plotter *""'");
5699   }
5700   arg1 = (struct plotter *)(argp1);
5701   result = (plot_func_init_t) ((arg1)->init);
5702   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_plot_args__p_void);
5703   return resultobj;
5704 fail:
5705   return NULL;
5706 }
5707 
5708 
_wrap_plotter_init2_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5709 SWIGINTERN PyObject *_wrap_plotter_init2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5710   PyObject *resultobj = 0;
5711   struct plotter *arg1 = (struct plotter *) 0 ;
5712   plot_func_init2_t arg2 = (plot_func_init2_t) 0 ;
5713   void *argp1 = 0 ;
5714   int res1 = 0 ;
5715   PyObject *swig_obj[2] ;
5716 
5717   if (!SWIG_Python_UnpackTuple(args, "plotter_init2_set", 2, 2, swig_obj)) SWIG_fail;
5718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5719   if (!SWIG_IsOK(res1)) {
5720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_init2_set" "', argument " "1"" of type '" "struct plotter *""'");
5721   }
5722   arg1 = (struct plotter *)(argp1);
5723   {
5724     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_plot_args_p_void__int);
5725     if (!SWIG_IsOK(res)) {
5726       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plotter_init2_set" "', argument " "2"" of type '" "plot_func_init2_t""'");
5727     }
5728   }
5729   if (arg1) (arg1)->init2 = arg2;
5730   resultobj = SWIG_Py_Void();
5731   return resultobj;
5732 fail:
5733   return NULL;
5734 }
5735 
5736 
_wrap_plotter_init2_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5737 SWIGINTERN PyObject *_wrap_plotter_init2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5738   PyObject *resultobj = 0;
5739   struct plotter *arg1 = (struct plotter *) 0 ;
5740   void *argp1 = 0 ;
5741   int res1 = 0 ;
5742   PyObject *swig_obj[1] ;
5743   plot_func_init2_t result;
5744 
5745   if (!args) SWIG_fail;
5746   swig_obj[0] = args;
5747   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5748   if (!SWIG_IsOK(res1)) {
5749     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_init2_get" "', argument " "1"" of type '" "struct plotter *""'");
5750   }
5751   arg1 = (struct plotter *)(argp1);
5752   result = (plot_func_init2_t) ((arg1)->init2);
5753   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_plot_args_p_void__int);
5754   return resultobj;
5755 fail:
5756   return NULL;
5757 }
5758 
5759 
_wrap_plotter_command_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5760 SWIGINTERN PyObject *_wrap_plotter_command_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5761   PyObject *resultobj = 0;
5762   struct plotter *arg1 = (struct plotter *) 0 ;
5763   plot_func_command_t arg2 = (plot_func_command_t) 0 ;
5764   void *argp1 = 0 ;
5765   int res1 = 0 ;
5766   PyObject *swig_obj[2] ;
5767 
5768   if (!SWIG_Python_UnpackTuple(args, "plotter_command_set", 2, 2, swig_obj)) SWIG_fail;
5769   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5770   if (!SWIG_IsOK(res1)) {
5771     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_command_set" "', argument " "1"" of type '" "struct plotter *""'");
5772   }
5773   arg1 = (struct plotter *)(argp1);
5774   {
5775     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int);
5776     if (!SWIG_IsOK(res)) {
5777       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plotter_command_set" "', argument " "2"" of type '" "plot_func_command_t""'");
5778     }
5779   }
5780   if (arg1) (arg1)->command = arg2;
5781   resultobj = SWIG_Py_Void();
5782   return resultobj;
5783 fail:
5784   return NULL;
5785 }
5786 
5787 
_wrap_plotter_command_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5788 SWIGINTERN PyObject *_wrap_plotter_command_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5789   PyObject *resultobj = 0;
5790   struct plotter *arg1 = (struct plotter *) 0 ;
5791   void *argp1 = 0 ;
5792   int res1 = 0 ;
5793   PyObject *swig_obj[1] ;
5794   plot_func_command_t result;
5795 
5796   if (!args) SWIG_fail;
5797   swig_obj[0] = args;
5798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5799   if (!SWIG_IsOK(res1)) {
5800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_command_get" "', argument " "1"" of type '" "struct plotter *""'");
5801   }
5802   arg1 = (struct plotter *)(argp1);
5803   result = (plot_func_command_t) ((arg1)->command);
5804   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int);
5805   return resultobj;
5806 fail:
5807   return NULL;
5808 }
5809 
5810 
_wrap_plotter_doplot_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5811 SWIGINTERN PyObject *_wrap_plotter_doplot_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5812   PyObject *resultobj = 0;
5813   struct plotter *arg1 = (struct plotter *) 0 ;
5814   plot_func_plot_t arg2 = (plot_func_plot_t) 0 ;
5815   void *argp1 = 0 ;
5816   int res1 = 0 ;
5817   PyObject *swig_obj[2] ;
5818 
5819   if (!SWIG_Python_UnpackTuple(args, "plotter_doplot_set", 2, 2, swig_obj)) SWIG_fail;
5820   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5821   if (!SWIG_IsOK(res1)) {
5822     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_doplot_set" "', argument " "1"" of type '" "struct plotter *""'");
5823   }
5824   arg1 = (struct plotter *)(argp1);
5825   {
5826     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int);
5827     if (!SWIG_IsOK(res)) {
5828       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plotter_doplot_set" "', argument " "2"" of type '" "plot_func_plot_t""'");
5829     }
5830   }
5831   if (arg1) (arg1)->doplot = arg2;
5832   resultobj = SWIG_Py_Void();
5833   return resultobj;
5834 fail:
5835   return NULL;
5836 }
5837 
5838 
_wrap_plotter_doplot_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5839 SWIGINTERN PyObject *_wrap_plotter_doplot_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5840   PyObject *resultobj = 0;
5841   struct plotter *arg1 = (struct plotter *) 0 ;
5842   void *argp1 = 0 ;
5843   int res1 = 0 ;
5844   PyObject *swig_obj[1] ;
5845   plot_func_plot_t result;
5846 
5847   if (!args) SWIG_fail;
5848   swig_obj[0] = args;
5849   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5850   if (!SWIG_IsOK(res1)) {
5851     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_doplot_get" "', argument " "1"" of type '" "struct plotter *""'");
5852   }
5853   arg1 = (struct plotter *)(argp1);
5854   result = (plot_func_plot_t) ((arg1)->doplot);
5855   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int);
5856   return resultobj;
5857 fail:
5858   return NULL;
5859 }
5860 
5861 
_wrap_plotter_free_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5862 SWIGINTERN PyObject *_wrap_plotter_free_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5863   PyObject *resultobj = 0;
5864   struct plotter *arg1 = (struct plotter *) 0 ;
5865   plot_func_free_t arg2 = (plot_func_free_t) 0 ;
5866   void *argp1 = 0 ;
5867   int res1 = 0 ;
5868   PyObject *swig_obj[2] ;
5869 
5870   if (!SWIG_Python_UnpackTuple(args, "plotter_free_set", 2, 2, swig_obj)) SWIG_fail;
5871   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5872   if (!SWIG_IsOK(res1)) {
5873     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_free_set" "', argument " "1"" of type '" "struct plotter *""'");
5874   }
5875   arg1 = (struct plotter *)(argp1);
5876   {
5877     int res = SWIG_ConvertFunctionPtr(swig_obj[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_plot_args_p_void__void);
5878     if (!SWIG_IsOK(res)) {
5879       SWIG_exception_fail(SWIG_ArgError(res), "in method '" "plotter_free_set" "', argument " "2"" of type '" "plot_func_free_t""'");
5880     }
5881   }
5882   if (arg1) (arg1)->free = arg2;
5883   resultobj = SWIG_Py_Void();
5884   return resultobj;
5885 fail:
5886   return NULL;
5887 }
5888 
5889 
_wrap_plotter_free_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5890 SWIGINTERN PyObject *_wrap_plotter_free_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5891   PyObject *resultobj = 0;
5892   struct plotter *arg1 = (struct plotter *) 0 ;
5893   void *argp1 = 0 ;
5894   int res1 = 0 ;
5895   PyObject *swig_obj[1] ;
5896   plot_func_free_t result;
5897 
5898   if (!args) SWIG_fail;
5899   swig_obj[0] = args;
5900   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5901   if (!SWIG_IsOK(res1)) {
5902     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_free_get" "', argument " "1"" of type '" "struct plotter *""'");
5903   }
5904   arg1 = (struct plotter *)(argp1);
5905   result = (plot_func_free_t) ((arg1)->free);
5906   resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_plot_args_p_void__void);
5907   return resultobj;
5908 fail:
5909   return NULL;
5910 }
5911 
5912 
_wrap_plotter_baton_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5913 SWIGINTERN PyObject *_wrap_plotter_baton_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5914   PyObject *resultobj = 0;
5915   struct plotter *arg1 = (struct plotter *) 0 ;
5916   void *arg2 = (void *) 0 ;
5917   void *argp1 = 0 ;
5918   int res1 = 0 ;
5919   int res2 ;
5920   PyObject *swig_obj[2] ;
5921 
5922   if (!SWIG_Python_UnpackTuple(args, "plotter_baton_set", 2, 2, swig_obj)) SWIG_fail;
5923   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5924   if (!SWIG_IsOK(res1)) {
5925     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_baton_set" "', argument " "1"" of type '" "struct plotter *""'");
5926   }
5927   arg1 = (struct plotter *)(argp1);
5928   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
5929   if (!SWIG_IsOK(res2)) {
5930     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotter_baton_set" "', argument " "2"" of type '" "void *""'");
5931   }
5932   if (arg1) (arg1)->baton = arg2;
5933   resultobj = SWIG_Py_Void();
5934   return resultobj;
5935 fail:
5936   return NULL;
5937 }
5938 
5939 
_wrap_plotter_baton_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5940 SWIGINTERN PyObject *_wrap_plotter_baton_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5941   PyObject *resultobj = 0;
5942   struct plotter *arg1 = (struct plotter *) 0 ;
5943   void *argp1 = 0 ;
5944   int res1 = 0 ;
5945   PyObject *swig_obj[1] ;
5946   void *result = 0 ;
5947 
5948   if (!args) SWIG_fail;
5949   swig_obj[0] = args;
5950   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
5951   if (!SWIG_IsOK(res1)) {
5952     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotter_baton_get" "', argument " "1"" of type '" "struct plotter *""'");
5953   }
5954   arg1 = (struct plotter *)(argp1);
5955   result = (void *) ((arg1)->baton);
5956   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
5957   return resultobj;
5958 fail:
5959   return NULL;
5960 }
5961 
5962 
_wrap_new_plotter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5963 SWIGINTERN PyObject *_wrap_new_plotter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5964   PyObject *resultobj = 0;
5965   struct plotter *result = 0 ;
5966 
5967   if (!SWIG_Python_UnpackTuple(args, "new_plotter", 0, 0, 0)) SWIG_fail;
5968   result = (struct plotter *)calloc(1, sizeof(struct plotter));
5969   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotter, SWIG_POINTER_NEW |  0 );
5970   return resultobj;
5971 fail:
5972   return NULL;
5973 }
5974 
5975 
_wrap_delete_plotter(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5976 SWIGINTERN PyObject *_wrap_delete_plotter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5977   PyObject *resultobj = 0;
5978   struct plotter *arg1 = (struct plotter *) 0 ;
5979   void *argp1 = 0 ;
5980   int res1 = 0 ;
5981   PyObject *swig_obj[1] ;
5982 
5983   if (!args) SWIG_fail;
5984   swig_obj[0] = args;
5985   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, SWIG_POINTER_DISOWN |  0 );
5986   if (!SWIG_IsOK(res1)) {
5987     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotter" "', argument " "1"" of type '" "struct plotter *""'");
5988   }
5989   arg1 = (struct plotter *)(argp1);
5990   free((char *) arg1);
5991   resultobj = SWIG_Py_Void();
5992   return resultobj;
5993 fail:
5994   return NULL;
5995 }
5996 
5997 
plotter_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)5998 SWIGINTERN PyObject *plotter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5999   PyObject *obj;
6000   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
6001   SWIG_TypeNewClientData(SWIGTYPE_p_plotter, SWIG_NewClientData(obj));
6002   return SWIG_Py_Void();
6003 }
6004 
plotter_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6005 SWIGINTERN PyObject *plotter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6006   return SWIG_Python_InitShadowInstance(args);
6007 }
6008 
_wrap_parse_image_format(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6009 SWIGINTERN PyObject *_wrap_parse_image_format(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6010   PyObject *resultobj = 0;
6011   char *arg1 = (char *) 0 ;
6012   int res1 ;
6013   char *buf1 = 0 ;
6014   int alloc1 = 0 ;
6015   PyObject *swig_obj[1] ;
6016   int result;
6017 
6018   if (!args) SWIG_fail;
6019   swig_obj[0] = args;
6020   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
6021   if (!SWIG_IsOK(res1)) {
6022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_image_format" "', argument " "1"" of type '" "char const *""'");
6023   }
6024   arg1 = (char *)(buf1);
6025   result = (int)parse_image_format((char const *)arg1);
6026   resultobj = SWIG_From_int((int)(result));
6027   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6028   return resultobj;
6029 fail:
6030   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6031   return NULL;
6032 }
6033 
6034 
_wrap_guess_image_format_from_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6035 SWIGINTERN PyObject *_wrap_guess_image_format_from_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6036   PyObject *resultobj = 0;
6037   char *arg1 = (char *) 0 ;
6038   int res1 ;
6039   char *buf1 = 0 ;
6040   int alloc1 = 0 ;
6041   PyObject *swig_obj[1] ;
6042   int result;
6043 
6044   if (!args) SWIG_fail;
6045   swig_obj[0] = args;
6046   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
6047   if (!SWIG_IsOK(res1)) {
6048     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "guess_image_format_from_filename" "', argument " "1"" of type '" "char const *""'");
6049   }
6050   arg1 = (char *)(buf1);
6051   result = (int)guess_image_format_from_filename((char const *)arg1);
6052   resultobj = SWIG_From_int((int)(result));
6053   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6054   return resultobj;
6055 fail:
6056   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6057   return NULL;
6058 }
6059 
6060 
_wrap_image_format_name_from_code(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6061 SWIGINTERN PyObject *_wrap_image_format_name_from_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6062   PyObject *resultobj = 0;
6063   int arg1 ;
6064   int val1 ;
6065   int ecode1 = 0 ;
6066   PyObject *swig_obj[1] ;
6067   char *result = 0 ;
6068 
6069   if (!args) SWIG_fail;
6070   swig_obj[0] = args;
6071   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
6072   if (!SWIG_IsOK(ecode1)) {
6073     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "image_format_name_from_code" "', argument " "1"" of type '" "int""'");
6074   }
6075   arg1 = (int)(val1);
6076   result = (char *)image_format_name_from_code(arg1);
6077   resultobj = SWIG_FromCharPtr((const char *)result);
6078   return resultobj;
6079 fail:
6080   return NULL;
6081 }
6082 
6083 
_wrap_parse_color(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6084 SWIGINTERN PyObject *_wrap_parse_color(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085   PyObject *resultobj = 0;
6086   char *arg1 = (char *) 0 ;
6087   float *arg2 = (float *) 0 ;
6088   float *arg3 = (float *) 0 ;
6089   float *arg4 = (float *) 0 ;
6090   float *arg5 = (float *) 0 ;
6091   int res1 ;
6092   char *buf1 = 0 ;
6093   int alloc1 = 0 ;
6094   void *argp2 = 0 ;
6095   int res2 = 0 ;
6096   void *argp3 = 0 ;
6097   int res3 = 0 ;
6098   void *argp4 = 0 ;
6099   int res4 = 0 ;
6100   void *argp5 = 0 ;
6101   int res5 = 0 ;
6102   PyObject *swig_obj[5] ;
6103   int result;
6104 
6105   if (!SWIG_Python_UnpackTuple(args, "parse_color", 5, 5, swig_obj)) SWIG_fail;
6106   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
6107   if (!SWIG_IsOK(res1)) {
6108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_color" "', argument " "1"" of type '" "char const *""'");
6109   }
6110   arg1 = (char *)(buf1);
6111   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
6112   if (!SWIG_IsOK(res2)) {
6113     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "parse_color" "', argument " "2"" of type '" "float *""'");
6114   }
6115   arg2 = (float *)(argp2);
6116   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
6117   if (!SWIG_IsOK(res3)) {
6118     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parse_color" "', argument " "3"" of type '" "float *""'");
6119   }
6120   arg3 = (float *)(argp3);
6121   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
6122   if (!SWIG_IsOK(res4)) {
6123     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "parse_color" "', argument " "4"" of type '" "float *""'");
6124   }
6125   arg4 = (float *)(argp4);
6126   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
6127   if (!SWIG_IsOK(res5)) {
6128     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "parse_color" "', argument " "5"" of type '" "float *""'");
6129   }
6130   arg5 = (float *)(argp5);
6131   result = (int)parse_color((char const *)arg1,arg2,arg3,arg4,arg5);
6132   resultobj = SWIG_From_int((int)(result));
6133   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6134   return resultobj;
6135 fail:
6136   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6137   return NULL;
6138 }
6139 
6140 
_wrap_parse_color_rgba(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6141 SWIGINTERN PyObject *_wrap_parse_color_rgba(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142   PyObject *resultobj = 0;
6143   char *arg1 = (char *) 0 ;
6144   float *arg2 = (float *) 0 ;
6145   int res1 ;
6146   char *buf1 = 0 ;
6147   int alloc1 = 0 ;
6148   void *argp2 = 0 ;
6149   int res2 = 0 ;
6150   PyObject *swig_obj[2] ;
6151   int result;
6152 
6153   if (!SWIG_Python_UnpackTuple(args, "parse_color_rgba", 2, 2, swig_obj)) SWIG_fail;
6154   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
6155   if (!SWIG_IsOK(res1)) {
6156     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_color_rgba" "', argument " "1"" of type '" "char const *""'");
6157   }
6158   arg1 = (char *)(buf1);
6159   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
6160   if (!SWIG_IsOK(res2)) {
6161     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "parse_color_rgba" "', argument " "2"" of type '" "float *""'");
6162   }
6163   arg2 = (float *)(argp2);
6164   result = (int)parse_color_rgba((char const *)arg1,arg2);
6165   resultobj = SWIG_From_int((int)(result));
6166   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6167   return resultobj;
6168 fail:
6169   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
6170   return NULL;
6171 }
6172 
6173 
_wrap_cairo_set_color(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6174 SWIGINTERN PyObject *_wrap_cairo_set_color(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6175   PyObject *resultobj = 0;
6176   cairo_t *arg1 = (cairo_t *) 0 ;
6177   char *arg2 = (char *) 0 ;
6178   void *argp1 = 0 ;
6179   int res1 = 0 ;
6180   int res2 ;
6181   char *buf2 = 0 ;
6182   int alloc2 = 0 ;
6183   PyObject *swig_obj[2] ;
6184   int result;
6185 
6186   if (!SWIG_Python_UnpackTuple(args, "cairo_set_color", 2, 2, swig_obj)) SWIG_fail;
6187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
6188   if (!SWIG_IsOK(res1)) {
6189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cairo_set_color" "', argument " "1"" of type '" "cairo_t *""'");
6190   }
6191   arg1 = (cairo_t *)(argp1);
6192   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6193   if (!SWIG_IsOK(res2)) {
6194     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cairo_set_color" "', argument " "2"" of type '" "char const *""'");
6195   }
6196   arg2 = (char *)(buf2);
6197   result = (int)cairo_set_color(arg1,(char const *)arg2);
6198   resultobj = SWIG_From_int((int)(result));
6199   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6200   return resultobj;
6201 fail:
6202   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6203   return NULL;
6204 }
6205 
6206 
_wrap_cairo_set_rgba(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6207 SWIGINTERN PyObject *_wrap_cairo_set_rgba(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6208   PyObject *resultobj = 0;
6209   cairo_t *arg1 = (cairo_t *) 0 ;
6210   float *arg2 = (float *) 0 ;
6211   void *argp1 = 0 ;
6212   int res1 = 0 ;
6213   void *argp2 = 0 ;
6214   int res2 = 0 ;
6215   PyObject *swig_obj[2] ;
6216 
6217   if (!SWIG_Python_UnpackTuple(args, "cairo_set_rgba", 2, 2, swig_obj)) SWIG_fail;
6218   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
6219   if (!SWIG_IsOK(res1)) {
6220     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cairo_set_rgba" "', argument " "1"" of type '" "cairo_t *""'");
6221   }
6222   arg1 = (cairo_t *)(argp1);
6223   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
6224   if (!SWIG_IsOK(res2)) {
6225     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cairo_set_rgba" "', argument " "2"" of type '" "float const *""'");
6226   }
6227   arg2 = (float *)(argp2);
6228   cairo_set_rgba(arg1,(float const *)arg2);
6229   resultobj = SWIG_Py_Void();
6230   return resultobj;
6231 fail:
6232   return NULL;
6233 }
6234 
6235 
_wrap_plotstuff_new(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6236 SWIGINTERN PyObject *_wrap_plotstuff_new(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6237   PyObject *resultobj = 0;
6238   plot_args_t *result = 0 ;
6239 
6240   if (!SWIG_Python_UnpackTuple(args, "plotstuff_new", 0, 0, 0)) SWIG_fail;
6241   result = (plot_args_t *)plotstuff_new();
6242   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plot_args, 0 |  0 );
6243   return resultobj;
6244 fail:
6245   return NULL;
6246 }
6247 
6248 
_wrap_plotstuff_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6249 SWIGINTERN PyObject *_wrap_plotstuff_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6250   PyObject *resultobj = 0;
6251   plot_args_t *arg1 = (plot_args_t *) 0 ;
6252   void *argp1 = 0 ;
6253   int res1 = 0 ;
6254   PyObject *swig_obj[1] ;
6255   int result;
6256 
6257   if (!args) SWIG_fail;
6258   swig_obj[0] = args;
6259   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6260   if (!SWIG_IsOK(res1)) {
6261     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_init" "', argument " "1"" of type '" "plot_args_t *""'");
6262   }
6263   arg1 = (plot_args_t *)(argp1);
6264   result = (int)plotstuff_init(arg1);
6265   resultobj = SWIG_From_int((int)(result));
6266   return resultobj;
6267 fail:
6268   return NULL;
6269 }
6270 
6271 
_wrap_plotstuff_read_and_run_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6272 SWIGINTERN PyObject *_wrap_plotstuff_read_and_run_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6273   PyObject *resultobj = 0;
6274   plot_args_t *arg1 = (plot_args_t *) 0 ;
6275   FILE *arg2 = (FILE *) 0 ;
6276   void *argp1 = 0 ;
6277   int res1 = 0 ;
6278   void *argp2 = 0 ;
6279   int res2 = 0 ;
6280   PyObject *swig_obj[2] ;
6281   int result;
6282 
6283   if (!SWIG_Python_UnpackTuple(args, "plotstuff_read_and_run_command", 2, 2, swig_obj)) SWIG_fail;
6284   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6285   if (!SWIG_IsOK(res1)) {
6286     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_read_and_run_command" "', argument " "1"" of type '" "plot_args_t *""'");
6287   }
6288   arg1 = (plot_args_t *)(argp1);
6289   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_FILE, 0 |  0 );
6290   if (!SWIG_IsOK(res2)) {
6291     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_read_and_run_command" "', argument " "2"" of type '" "FILE *""'");
6292   }
6293   arg2 = (FILE *)(argp2);
6294   result = (int)plotstuff_read_and_run_command(arg1,arg2);
6295   resultobj = SWIG_From_int((int)(result));
6296   return resultobj;
6297 fail:
6298   return NULL;
6299 }
6300 
6301 
_wrap_plotstuff_run_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6302 SWIGINTERN PyObject *_wrap_plotstuff_run_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6303   PyObject *resultobj = 0;
6304   plot_args_t *arg1 = (plot_args_t *) 0 ;
6305   char *arg2 = (char *) 0 ;
6306   void *argp1 = 0 ;
6307   int res1 = 0 ;
6308   int res2 ;
6309   char *buf2 = 0 ;
6310   int alloc2 = 0 ;
6311   PyObject *swig_obj[2] ;
6312   int result;
6313 
6314   if (!SWIG_Python_UnpackTuple(args, "plotstuff_run_command", 2, 2, swig_obj)) SWIG_fail;
6315   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6316   if (!SWIG_IsOK(res1)) {
6317     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_run_command" "', argument " "1"" of type '" "plot_args_t *""'");
6318   }
6319   arg1 = (plot_args_t *)(argp1);
6320   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6321   if (!SWIG_IsOK(res2)) {
6322     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_run_command" "', argument " "2"" of type '" "char const *""'");
6323   }
6324   arg2 = (char *)(buf2);
6325   result = (int)plotstuff_run_command(arg1,(char const *)arg2);
6326   resultobj = SWIG_From_int((int)(result));
6327   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6328   return resultobj;
6329 fail:
6330   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6331   return NULL;
6332 }
6333 
6334 
_wrap_plotstuff_set_text_bg_alpha(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6335 SWIGINTERN PyObject *_wrap_plotstuff_set_text_bg_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6336   PyObject *resultobj = 0;
6337   plot_args_t *arg1 = (plot_args_t *) 0 ;
6338   float arg2 ;
6339   void *argp1 = 0 ;
6340   int res1 = 0 ;
6341   float val2 ;
6342   int ecode2 = 0 ;
6343   PyObject *swig_obj[2] ;
6344 
6345   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_text_bg_alpha", 2, 2, swig_obj)) SWIG_fail;
6346   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6347   if (!SWIG_IsOK(res1)) {
6348     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_text_bg_alpha" "', argument " "1"" of type '" "plot_args_t *""'");
6349   }
6350   arg1 = (plot_args_t *)(argp1);
6351   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
6352   if (!SWIG_IsOK(ecode2)) {
6353     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_text_bg_alpha" "', argument " "2"" of type '" "float""'");
6354   }
6355   arg2 = (float)(val2);
6356   plotstuff_set_text_bg_alpha(arg1,arg2);
6357   resultobj = SWIG_Py_Void();
6358   return resultobj;
6359 fail:
6360   return NULL;
6361 }
6362 
6363 
_wrap_plotstuff_plot_layer(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6364 SWIGINTERN PyObject *_wrap_plotstuff_plot_layer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6365   PyObject *resultobj = 0;
6366   plot_args_t *arg1 = (plot_args_t *) 0 ;
6367   char *arg2 = (char *) 0 ;
6368   void *argp1 = 0 ;
6369   int res1 = 0 ;
6370   int res2 ;
6371   char *buf2 = 0 ;
6372   int alloc2 = 0 ;
6373   PyObject *swig_obj[2] ;
6374   int result;
6375 
6376   if (!SWIG_Python_UnpackTuple(args, "plotstuff_plot_layer", 2, 2, swig_obj)) SWIG_fail;
6377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6378   if (!SWIG_IsOK(res1)) {
6379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_plot_layer" "', argument " "1"" of type '" "plot_args_t *""'");
6380   }
6381   arg1 = (plot_args_t *)(argp1);
6382   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6383   if (!SWIG_IsOK(res2)) {
6384     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_plot_layer" "', argument " "2"" of type '" "char const *""'");
6385   }
6386   arg2 = (char *)(buf2);
6387   result = (int)plotstuff_plot_layer(arg1,(char const *)arg2);
6388   resultobj = SWIG_From_int((int)(result));
6389   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6390   return resultobj;
6391 fail:
6392   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6393   return NULL;
6394 }
6395 
6396 
_wrap_plotstuff_get_config(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6397 SWIGINTERN PyObject *_wrap_plotstuff_get_config(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6398   PyObject *resultobj = 0;
6399   plot_args_t *arg1 = (plot_args_t *) 0 ;
6400   char *arg2 = (char *) 0 ;
6401   void *argp1 = 0 ;
6402   int res1 = 0 ;
6403   int res2 ;
6404   char *buf2 = 0 ;
6405   int alloc2 = 0 ;
6406   PyObject *swig_obj[2] ;
6407   void *result = 0 ;
6408 
6409   if (!SWIG_Python_UnpackTuple(args, "plotstuff_get_config", 2, 2, swig_obj)) SWIG_fail;
6410   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6411   if (!SWIG_IsOK(res1)) {
6412     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_get_config" "', argument " "1"" of type '" "plot_args_t *""'");
6413   }
6414   arg1 = (plot_args_t *)(argp1);
6415   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6416   if (!SWIG_IsOK(res2)) {
6417     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_get_config" "', argument " "2"" of type '" "char const *""'");
6418   }
6419   arg2 = (char *)(buf2);
6420   result = (void *)plotstuff_get_config(arg1,(char const *)arg2);
6421   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
6422   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6423   return resultobj;
6424 fail:
6425   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6426   return NULL;
6427 }
6428 
6429 
_wrap_plotstuff_set_color(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6430 SWIGINTERN PyObject *_wrap_plotstuff_set_color(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6431   PyObject *resultobj = 0;
6432   plot_args_t *arg1 = (plot_args_t *) 0 ;
6433   char *arg2 = (char *) 0 ;
6434   void *argp1 = 0 ;
6435   int res1 = 0 ;
6436   int res2 ;
6437   char *buf2 = 0 ;
6438   int alloc2 = 0 ;
6439   PyObject *swig_obj[2] ;
6440   int result;
6441 
6442   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_color", 2, 2, swig_obj)) SWIG_fail;
6443   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6444   if (!SWIG_IsOK(res1)) {
6445     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_color" "', argument " "1"" of type '" "plot_args_t *""'");
6446   }
6447   arg1 = (plot_args_t *)(argp1);
6448   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6449   if (!SWIG_IsOK(res2)) {
6450     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_color" "', argument " "2"" of type '" "char const *""'");
6451   }
6452   arg2 = (char *)(buf2);
6453   result = (int)plotstuff_set_color(arg1,(char const *)arg2);
6454   resultobj = SWIG_From_int((int)(result));
6455   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6456   return resultobj;
6457 fail:
6458   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6459   return NULL;
6460 }
6461 
6462 
_wrap_plotstuff_set_bgcolor(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6463 SWIGINTERN PyObject *_wrap_plotstuff_set_bgcolor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6464   PyObject *resultobj = 0;
6465   plot_args_t *arg1 = (plot_args_t *) 0 ;
6466   char *arg2 = (char *) 0 ;
6467   void *argp1 = 0 ;
6468   int res1 = 0 ;
6469   int res2 ;
6470   char *buf2 = 0 ;
6471   int alloc2 = 0 ;
6472   PyObject *swig_obj[2] ;
6473   int result;
6474 
6475   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_bgcolor", 2, 2, swig_obj)) SWIG_fail;
6476   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6477   if (!SWIG_IsOK(res1)) {
6478     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_bgcolor" "', argument " "1"" of type '" "plot_args_t *""'");
6479   }
6480   arg1 = (plot_args_t *)(argp1);
6481   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6482   if (!SWIG_IsOK(res2)) {
6483     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_bgcolor" "', argument " "2"" of type '" "char const *""'");
6484   }
6485   arg2 = (char *)(buf2);
6486   result = (int)plotstuff_set_bgcolor(arg1,(char const *)arg2);
6487   resultobj = SWIG_From_int((int)(result));
6488   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6489   return resultobj;
6490 fail:
6491   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6492   return NULL;
6493 }
6494 
6495 
_wrap_plotstuff_get_alpha(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6496 SWIGINTERN PyObject *_wrap_plotstuff_get_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497   PyObject *resultobj = 0;
6498   plot_args_t *arg1 = (plot_args_t *) 0 ;
6499   void *argp1 = 0 ;
6500   int res1 = 0 ;
6501   PyObject *swig_obj[1] ;
6502   float result;
6503 
6504   if (!args) SWIG_fail;
6505   swig_obj[0] = args;
6506   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6507   if (!SWIG_IsOK(res1)) {
6508     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_get_alpha" "', argument " "1"" of type '" "plot_args_t const *""'");
6509   }
6510   arg1 = (plot_args_t *)(argp1);
6511   result = (float)plotstuff_get_alpha((struct plot_args const *)arg1);
6512   resultobj = SWIG_From_float((float)(result));
6513   return resultobj;
6514 fail:
6515   return NULL;
6516 }
6517 
6518 
_wrap_plotstuff_set_alpha(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6519 SWIGINTERN PyObject *_wrap_plotstuff_set_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6520   PyObject *resultobj = 0;
6521   plot_args_t *arg1 = (plot_args_t *) 0 ;
6522   float arg2 ;
6523   void *argp1 = 0 ;
6524   int res1 = 0 ;
6525   float val2 ;
6526   int ecode2 = 0 ;
6527   PyObject *swig_obj[2] ;
6528   int result;
6529 
6530   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_alpha", 2, 2, swig_obj)) SWIG_fail;
6531   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6532   if (!SWIG_IsOK(res1)) {
6533     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_alpha" "', argument " "1"" of type '" "plot_args_t *""'");
6534   }
6535   arg1 = (plot_args_t *)(argp1);
6536   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
6537   if (!SWIG_IsOK(ecode2)) {
6538     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_alpha" "', argument " "2"" of type '" "float""'");
6539   }
6540   arg2 = (float)(val2);
6541   result = (int)plotstuff_set_alpha(arg1,arg2);
6542   resultobj = SWIG_From_int((int)(result));
6543   return resultobj;
6544 fail:
6545   return NULL;
6546 }
6547 
6548 
_wrap_plotstuff_set_rgba(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6549 SWIGINTERN PyObject *_wrap_plotstuff_set_rgba(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6550   PyObject *resultobj = 0;
6551   plot_args_t *arg1 = (plot_args_t *) 0 ;
6552   float *arg2 = (float *) 0 ;
6553   void *argp1 = 0 ;
6554   int res1 = 0 ;
6555   void *argp2 = 0 ;
6556   int res2 = 0 ;
6557   PyObject *swig_obj[2] ;
6558   int result;
6559 
6560   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_rgba", 2, 2, swig_obj)) SWIG_fail;
6561   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6562   if (!SWIG_IsOK(res1)) {
6563     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_rgba" "', argument " "1"" of type '" "plot_args_t *""'");
6564   }
6565   arg1 = (plot_args_t *)(argp1);
6566   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
6567   if (!SWIG_IsOK(res2)) {
6568     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_rgba" "', argument " "2"" of type '" "float const *""'");
6569   }
6570   arg2 = (float *)(argp2);
6571   result = (int)plotstuff_set_rgba(arg1,(float const *)arg2);
6572   resultobj = SWIG_From_int((int)(result));
6573   return resultobj;
6574 fail:
6575   return NULL;
6576 }
6577 
6578 
_wrap_plotstuff_set_rgba2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6579 SWIGINTERN PyObject *_wrap_plotstuff_set_rgba2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6580   PyObject *resultobj = 0;
6581   plot_args_t *arg1 = (plot_args_t *) 0 ;
6582   float arg2 ;
6583   float arg3 ;
6584   float arg4 ;
6585   float arg5 ;
6586   void *argp1 = 0 ;
6587   int res1 = 0 ;
6588   float val2 ;
6589   int ecode2 = 0 ;
6590   float val3 ;
6591   int ecode3 = 0 ;
6592   float val4 ;
6593   int ecode4 = 0 ;
6594   float val5 ;
6595   int ecode5 = 0 ;
6596   PyObject *swig_obj[5] ;
6597   int result;
6598 
6599   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_rgba2", 5, 5, swig_obj)) SWIG_fail;
6600   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6601   if (!SWIG_IsOK(res1)) {
6602     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_rgba2" "', argument " "1"" of type '" "plot_args_t *""'");
6603   }
6604   arg1 = (plot_args_t *)(argp1);
6605   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
6606   if (!SWIG_IsOK(ecode2)) {
6607     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_rgba2" "', argument " "2"" of type '" "float""'");
6608   }
6609   arg2 = (float)(val2);
6610   ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
6611   if (!SWIG_IsOK(ecode3)) {
6612     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_set_rgba2" "', argument " "3"" of type '" "float""'");
6613   }
6614   arg3 = (float)(val3);
6615   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
6616   if (!SWIG_IsOK(ecode4)) {
6617     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_set_rgba2" "', argument " "4"" of type '" "float""'");
6618   }
6619   arg4 = (float)(val4);
6620   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
6621   if (!SWIG_IsOK(ecode5)) {
6622     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_set_rgba2" "', argument " "5"" of type '" "float""'");
6623   }
6624   arg5 = (float)(val5);
6625   result = (int)plotstuff_set_rgba2(arg1,arg2,arg3,arg4,arg5);
6626   resultobj = SWIG_From_int((int)(result));
6627   return resultobj;
6628 fail:
6629   return NULL;
6630 }
6631 
6632 
_wrap_plotstuff_set_bgrgba2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6633 SWIGINTERN PyObject *_wrap_plotstuff_set_bgrgba2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6634   PyObject *resultobj = 0;
6635   plot_args_t *arg1 = (plot_args_t *) 0 ;
6636   float arg2 ;
6637   float arg3 ;
6638   float arg4 ;
6639   float arg5 ;
6640   void *argp1 = 0 ;
6641   int res1 = 0 ;
6642   float val2 ;
6643   int ecode2 = 0 ;
6644   float val3 ;
6645   int ecode3 = 0 ;
6646   float val4 ;
6647   int ecode4 = 0 ;
6648   float val5 ;
6649   int ecode5 = 0 ;
6650   PyObject *swig_obj[5] ;
6651   int result;
6652 
6653   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_bgrgba2", 5, 5, swig_obj)) SWIG_fail;
6654   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6655   if (!SWIG_IsOK(res1)) {
6656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_bgrgba2" "', argument " "1"" of type '" "plot_args_t *""'");
6657   }
6658   arg1 = (plot_args_t *)(argp1);
6659   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
6660   if (!SWIG_IsOK(ecode2)) {
6661     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_bgrgba2" "', argument " "2"" of type '" "float""'");
6662   }
6663   arg2 = (float)(val2);
6664   ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
6665   if (!SWIG_IsOK(ecode3)) {
6666     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_set_bgrgba2" "', argument " "3"" of type '" "float""'");
6667   }
6668   arg3 = (float)(val3);
6669   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
6670   if (!SWIG_IsOK(ecode4)) {
6671     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_set_bgrgba2" "', argument " "4"" of type '" "float""'");
6672   }
6673   arg4 = (float)(val4);
6674   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
6675   if (!SWIG_IsOK(ecode5)) {
6676     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_set_bgrgba2" "', argument " "5"" of type '" "float""'");
6677   }
6678   arg5 = (float)(val5);
6679   result = (int)plotstuff_set_bgrgba2(arg1,arg2,arg3,arg4,arg5);
6680   resultobj = SWIG_From_int((int)(result));
6681   return resultobj;
6682 fail:
6683   return NULL;
6684 }
6685 
6686 
_wrap_plotstuff_set_marker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6687 SWIGINTERN PyObject *_wrap_plotstuff_set_marker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6688   PyObject *resultobj = 0;
6689   plot_args_t *arg1 = (plot_args_t *) 0 ;
6690   char *arg2 = (char *) 0 ;
6691   void *argp1 = 0 ;
6692   int res1 = 0 ;
6693   int res2 ;
6694   char *buf2 = 0 ;
6695   int alloc2 = 0 ;
6696   PyObject *swig_obj[2] ;
6697   int result;
6698 
6699   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_marker", 2, 2, swig_obj)) SWIG_fail;
6700   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6701   if (!SWIG_IsOK(res1)) {
6702     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_marker" "', argument " "1"" of type '" "plot_args_t *""'");
6703   }
6704   arg1 = (plot_args_t *)(argp1);
6705   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6706   if (!SWIG_IsOK(res2)) {
6707     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_marker" "', argument " "2"" of type '" "char const *""'");
6708   }
6709   arg2 = (char *)(buf2);
6710   result = (int)plotstuff_set_marker(arg1,(char const *)arg2);
6711   resultobj = SWIG_From_int((int)(result));
6712   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6713   return resultobj;
6714 fail:
6715   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6716   return NULL;
6717 }
6718 
6719 
_wrap_plotstuff_set_markersize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6720 SWIGINTERN PyObject *_wrap_plotstuff_set_markersize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6721   PyObject *resultobj = 0;
6722   plot_args_t *arg1 = (plot_args_t *) 0 ;
6723   double arg2 ;
6724   void *argp1 = 0 ;
6725   int res1 = 0 ;
6726   double val2 ;
6727   int ecode2 = 0 ;
6728   PyObject *swig_obj[2] ;
6729   int result;
6730 
6731   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_markersize", 2, 2, swig_obj)) SWIG_fail;
6732   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6733   if (!SWIG_IsOK(res1)) {
6734     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_markersize" "', argument " "1"" of type '" "plot_args_t *""'");
6735   }
6736   arg1 = (plot_args_t *)(argp1);
6737   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6738   if (!SWIG_IsOK(ecode2)) {
6739     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_markersize" "', argument " "2"" of type '" "double""'");
6740   }
6741   arg2 = (double)(val2);
6742   result = (int)plotstuff_set_markersize(arg1,arg2);
6743   resultobj = SWIG_From_int((int)(result));
6744   return resultobj;
6745 fail:
6746   return NULL;
6747 }
6748 
6749 
_wrap_plotstuff_set_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6750 SWIGINTERN PyObject *_wrap_plotstuff_set_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6751   PyObject *resultobj = 0;
6752   plot_args_t *arg1 = (plot_args_t *) 0 ;
6753   int arg2 ;
6754   int arg3 ;
6755   void *argp1 = 0 ;
6756   int res1 = 0 ;
6757   int val2 ;
6758   int ecode2 = 0 ;
6759   int val3 ;
6760   int ecode3 = 0 ;
6761   PyObject *swig_obj[3] ;
6762   int result;
6763 
6764   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_size", 3, 3, swig_obj)) SWIG_fail;
6765   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6766   if (!SWIG_IsOK(res1)) {
6767     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_size" "', argument " "1"" of type '" "plot_args_t *""'");
6768   }
6769   arg1 = (plot_args_t *)(argp1);
6770   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
6771   if (!SWIG_IsOK(ecode2)) {
6772     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_size" "', argument " "2"" of type '" "int""'");
6773   }
6774   arg2 = (int)(val2);
6775   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
6776   if (!SWIG_IsOK(ecode3)) {
6777     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_set_size" "', argument " "3"" of type '" "int""'");
6778   }
6779   arg3 = (int)(val3);
6780   result = (int)plotstuff_set_size(arg1,arg2,arg3);
6781   resultobj = SWIG_From_int((int)(result));
6782   return resultobj;
6783 fail:
6784   return NULL;
6785 }
6786 
6787 
_wrap_plotstuff_set_size_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6788 SWIGINTERN PyObject *_wrap_plotstuff_set_size_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6789   PyObject *resultobj = 0;
6790   plot_args_t *arg1 = (plot_args_t *) 0 ;
6791   void *argp1 = 0 ;
6792   int res1 = 0 ;
6793   PyObject *swig_obj[1] ;
6794   int result;
6795 
6796   if (!args) SWIG_fail;
6797   swig_obj[0] = args;
6798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6799   if (!SWIG_IsOK(res1)) {
6800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_size_wcs" "', argument " "1"" of type '" "plot_args_t *""'");
6801   }
6802   arg1 = (plot_args_t *)(argp1);
6803   result = (int)plotstuff_set_size_wcs(arg1);
6804   resultobj = SWIG_From_int((int)(result));
6805   return resultobj;
6806 fail:
6807   return NULL;
6808 }
6809 
6810 
_wrap_plotstuff_scale_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6811 SWIGINTERN PyObject *_wrap_plotstuff_scale_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6812   PyObject *resultobj = 0;
6813   plot_args_t *arg1 = (plot_args_t *) 0 ;
6814   double arg2 ;
6815   void *argp1 = 0 ;
6816   int res1 = 0 ;
6817   double val2 ;
6818   int ecode2 = 0 ;
6819   PyObject *swig_obj[2] ;
6820   int result;
6821 
6822   if (!SWIG_Python_UnpackTuple(args, "plotstuff_scale_wcs", 2, 2, swig_obj)) SWIG_fail;
6823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6824   if (!SWIG_IsOK(res1)) {
6825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_scale_wcs" "', argument " "1"" of type '" "plot_args_t *""'");
6826   }
6827   arg1 = (plot_args_t *)(argp1);
6828   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6829   if (!SWIG_IsOK(ecode2)) {
6830     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_scale_wcs" "', argument " "2"" of type '" "double""'");
6831   }
6832   arg2 = (double)(val2);
6833   result = (int)plotstuff_scale_wcs(arg1,arg2);
6834   resultobj = SWIG_From_int((int)(result));
6835   return resultobj;
6836 fail:
6837   return NULL;
6838 }
6839 
6840 
_wrap_plotstuff_rotate_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6841 SWIGINTERN PyObject *_wrap_plotstuff_rotate_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6842   PyObject *resultobj = 0;
6843   plot_args_t *arg1 = (plot_args_t *) 0 ;
6844   double arg2 ;
6845   void *argp1 = 0 ;
6846   int res1 = 0 ;
6847   double val2 ;
6848   int ecode2 = 0 ;
6849   PyObject *swig_obj[2] ;
6850   int result;
6851 
6852   if (!SWIG_Python_UnpackTuple(args, "plotstuff_rotate_wcs", 2, 2, swig_obj)) SWIG_fail;
6853   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6854   if (!SWIG_IsOK(res1)) {
6855     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_rotate_wcs" "', argument " "1"" of type '" "plot_args_t *""'");
6856   }
6857   arg1 = (plot_args_t *)(argp1);
6858   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
6859   if (!SWIG_IsOK(ecode2)) {
6860     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_rotate_wcs" "', argument " "2"" of type '" "double""'");
6861   }
6862   arg2 = (double)(val2);
6863   result = (int)plotstuff_rotate_wcs(arg1,arg2);
6864   resultobj = SWIG_From_int((int)(result));
6865   return resultobj;
6866 fail:
6867   return NULL;
6868 }
6869 
6870 
_wrap_plotstuff_set_wcs_box(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6871 SWIGINTERN PyObject *_wrap_plotstuff_set_wcs_box(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6872   PyObject *resultobj = 0;
6873   plot_args_t *arg1 = (plot_args_t *) 0 ;
6874   float arg2 ;
6875   float arg3 ;
6876   float arg4 ;
6877   void *argp1 = 0 ;
6878   int res1 = 0 ;
6879   float val2 ;
6880   int ecode2 = 0 ;
6881   float val3 ;
6882   int ecode3 = 0 ;
6883   float val4 ;
6884   int ecode4 = 0 ;
6885   PyObject *swig_obj[4] ;
6886   int result;
6887 
6888   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_wcs_box", 4, 4, swig_obj)) SWIG_fail;
6889   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6890   if (!SWIG_IsOK(res1)) {
6891     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_wcs_box" "', argument " "1"" of type '" "plot_args_t *""'");
6892   }
6893   arg1 = (plot_args_t *)(argp1);
6894   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
6895   if (!SWIG_IsOK(ecode2)) {
6896     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_wcs_box" "', argument " "2"" of type '" "float""'");
6897   }
6898   arg2 = (float)(val2);
6899   ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
6900   if (!SWIG_IsOK(ecode3)) {
6901     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_set_wcs_box" "', argument " "3"" of type '" "float""'");
6902   }
6903   arg3 = (float)(val3);
6904   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
6905   if (!SWIG_IsOK(ecode4)) {
6906     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_set_wcs_box" "', argument " "4"" of type '" "float""'");
6907   }
6908   arg4 = (float)(val4);
6909   result = (int)plotstuff_set_wcs_box(arg1,arg2,arg3,arg4);
6910   resultobj = SWIG_From_int((int)(result));
6911   return resultobj;
6912 fail:
6913   return NULL;
6914 }
6915 
6916 
_wrap_plotstuff_set_wcs_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6917 SWIGINTERN PyObject *_wrap_plotstuff_set_wcs_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918   PyObject *resultobj = 0;
6919   plot_args_t *arg1 = (plot_args_t *) 0 ;
6920   char *arg2 = (char *) 0 ;
6921   int arg3 ;
6922   void *argp1 = 0 ;
6923   int res1 = 0 ;
6924   int res2 ;
6925   char *buf2 = 0 ;
6926   int alloc2 = 0 ;
6927   int val3 ;
6928   int ecode3 = 0 ;
6929   PyObject *swig_obj[3] ;
6930   int result;
6931 
6932   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_wcs_file", 3, 3, swig_obj)) SWIG_fail;
6933   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6934   if (!SWIG_IsOK(res1)) {
6935     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_wcs_file" "', argument " "1"" of type '" "plot_args_t *""'");
6936   }
6937   arg1 = (plot_args_t *)(argp1);
6938   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
6939   if (!SWIG_IsOK(res2)) {
6940     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_wcs_file" "', argument " "2"" of type '" "char const *""'");
6941   }
6942   arg2 = (char *)(buf2);
6943   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
6944   if (!SWIG_IsOK(ecode3)) {
6945     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_set_wcs_file" "', argument " "3"" of type '" "int""'");
6946   }
6947   arg3 = (int)(val3);
6948   result = (int)plotstuff_set_wcs_file(arg1,(char const *)arg2,arg3);
6949   resultobj = SWIG_From_int((int)(result));
6950   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6951   return resultobj;
6952 fail:
6953   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6954   return NULL;
6955 }
6956 
6957 
_wrap_plotstuff_set_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6958 SWIGINTERN PyObject *_wrap_plotstuff_set_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6959   PyObject *resultobj = 0;
6960   plot_args_t *arg1 = (plot_args_t *) 0 ;
6961   anwcs_t *arg2 = (anwcs_t *) 0 ;
6962   void *argp1 = 0 ;
6963   int res1 = 0 ;
6964   void *argp2 = 0 ;
6965   int res2 = 0 ;
6966   PyObject *swig_obj[2] ;
6967   int result;
6968 
6969   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_wcs", 2, 2, swig_obj)) SWIG_fail;
6970   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
6971   if (!SWIG_IsOK(res1)) {
6972     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_wcs" "', argument " "1"" of type '" "plot_args_t *""'");
6973   }
6974   arg1 = (plot_args_t *)(argp1);
6975   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, 0 |  0 );
6976   if (!SWIG_IsOK(res2)) {
6977     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_wcs" "', argument " "2"" of type '" "anwcs_t *""'");
6978   }
6979   arg2 = (anwcs_t *)(argp2);
6980   result = (int)plotstuff_set_wcs(arg1,arg2);
6981   resultobj = SWIG_From_int((int)(result));
6982   return resultobj;
6983 fail:
6984   return NULL;
6985 }
6986 
6987 
_wrap_plotstuff_set_wcs_tan(PyObject * SWIGUNUSEDPARM (self),PyObject * args)6988 SWIGINTERN PyObject *_wrap_plotstuff_set_wcs_tan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6989   PyObject *resultobj = 0;
6990   plot_args_t *arg1 = (plot_args_t *) 0 ;
6991   tan_t *arg2 = (tan_t *) 0 ;
6992   void *argp1 = 0 ;
6993   int res1 = 0 ;
6994   void *argp2 = 0 ;
6995   int res2 = 0 ;
6996   PyObject *swig_obj[2] ;
6997   int result;
6998 
6999   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_wcs_tan", 2, 2, swig_obj)) SWIG_fail;
7000   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7001   if (!SWIG_IsOK(res1)) {
7002     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_wcs_tan" "', argument " "1"" of type '" "plot_args_t *""'");
7003   }
7004   arg1 = (plot_args_t *)(argp1);
7005   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
7006   if (!SWIG_IsOK(res2)) {
7007     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_wcs_tan" "', argument " "2"" of type '" "tan_t *""'");
7008   }
7009   arg2 = (tan_t *)(argp2);
7010   result = (int)plotstuff_set_wcs_tan(arg1,arg2);
7011   resultobj = SWIG_From_int((int)(result));
7012   return resultobj;
7013 fail:
7014   return NULL;
7015 }
7016 
7017 
_wrap_plotstuff_set_wcs_sip(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7018 SWIGINTERN PyObject *_wrap_plotstuff_set_wcs_sip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7019   PyObject *resultobj = 0;
7020   plot_args_t *arg1 = (plot_args_t *) 0 ;
7021   sip_t *arg2 = (sip_t *) 0 ;
7022   void *argp1 = 0 ;
7023   int res1 = 0 ;
7024   void *argp2 = 0 ;
7025   int res2 = 0 ;
7026   PyObject *swig_obj[2] ;
7027   int result;
7028 
7029   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_wcs_sip", 2, 2, swig_obj)) SWIG_fail;
7030   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7031   if (!SWIG_IsOK(res1)) {
7032     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_wcs_sip" "', argument " "1"" of type '" "plot_args_t *""'");
7033   }
7034   arg1 = (plot_args_t *)(argp1);
7035   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
7036   if (!SWIG_IsOK(res2)) {
7037     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_set_wcs_sip" "', argument " "2"" of type '" "sip_t *""'");
7038   }
7039   arg2 = (sip_t *)(argp2);
7040   result = (int)plotstuff_set_wcs_sip(arg1,arg2);
7041   resultobj = SWIG_From_int((int)(result));
7042   return resultobj;
7043 fail:
7044   return NULL;
7045 }
7046 
7047 
_wrap_plotstuff_builtin_apply(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7048 SWIGINTERN PyObject *_wrap_plotstuff_builtin_apply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7049   PyObject *resultobj = 0;
7050   cairo_t *arg1 = (cairo_t *) 0 ;
7051   plot_args_t *arg2 = (plot_args_t *) 0 ;
7052   void *argp1 = 0 ;
7053   int res1 = 0 ;
7054   void *argp2 = 0 ;
7055   int res2 = 0 ;
7056   PyObject *swig_obj[2] ;
7057 
7058   if (!SWIG_Python_UnpackTuple(args, "plotstuff_builtin_apply", 2, 2, swig_obj)) SWIG_fail;
7059   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
7060   if (!SWIG_IsOK(res1)) {
7061     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_builtin_apply" "', argument " "1"" of type '" "cairo_t *""'");
7062   }
7063   arg1 = (cairo_t *)(argp1);
7064   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plot_args, 0 |  0 );
7065   if (!SWIG_IsOK(res2)) {
7066     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_builtin_apply" "', argument " "2"" of type '" "plot_args_t *""'");
7067   }
7068   arg2 = (plot_args_t *)(argp2);
7069   plotstuff_builtin_apply(arg1,arg2);
7070   resultobj = SWIG_Py_Void();
7071   return resultobj;
7072 fail:
7073   return NULL;
7074 }
7075 
7076 
_wrap_plotstuff_marker_in_bounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7077 SWIGINTERN PyObject *_wrap_plotstuff_marker_in_bounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7078   PyObject *resultobj = 0;
7079   plot_args_t *arg1 = (plot_args_t *) 0 ;
7080   double arg2 ;
7081   double arg3 ;
7082   void *argp1 = 0 ;
7083   int res1 = 0 ;
7084   double val2 ;
7085   int ecode2 = 0 ;
7086   double val3 ;
7087   int ecode3 = 0 ;
7088   PyObject *swig_obj[3] ;
7089   anbool result;
7090 
7091   if (!SWIG_Python_UnpackTuple(args, "plotstuff_marker_in_bounds", 3, 3, swig_obj)) SWIG_fail;
7092   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7093   if (!SWIG_IsOK(res1)) {
7094     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_marker_in_bounds" "', argument " "1"" of type '" "plot_args_t *""'");
7095   }
7096   arg1 = (plot_args_t *)(argp1);
7097   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7098   if (!SWIG_IsOK(ecode2)) {
7099     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_marker_in_bounds" "', argument " "2"" of type '" "double""'");
7100   }
7101   arg2 = (double)(val2);
7102   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7103   if (!SWIG_IsOK(ecode3)) {
7104     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_marker_in_bounds" "', argument " "3"" of type '" "double""'");
7105   }
7106   arg3 = (double)(val3);
7107   result = (anbool)plotstuff_marker_in_bounds(arg1,arg2,arg3);
7108   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
7109   return resultobj;
7110 fail:
7111   return NULL;
7112 }
7113 
7114 
_wrap_plotstuff_run_commandf__varargs__(PyObject * SWIGUNUSEDPARM (self),PyObject * args,PyObject * varargs)7115 SWIGINTERN PyObject *_wrap_plotstuff_run_commandf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) {
7116   PyObject *resultobj = 0;
7117   plot_args_t *arg1 = (plot_args_t *) 0 ;
7118   char *arg2 = (char *) 0 ;
7119   void *arg3 = 0 ;
7120   void *argp1 = 0 ;
7121   int res1 = 0 ;
7122   int res2 ;
7123   char *buf2 = 0 ;
7124   int alloc2 = 0 ;
7125   PyObject * obj0 = 0 ;
7126   PyObject * obj1 = 0 ;
7127   int result;
7128 
7129   if (!PyArg_UnpackTuple(args, "plotstuff_run_commandf", 2, 2, &obj0, &obj1)) SWIG_fail;
7130   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7131   if (!SWIG_IsOK(res1)) {
7132     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_run_commandf" "', argument " "1"" of type '" "plot_args_t *""'");
7133   }
7134   arg1 = (plot_args_t *)(argp1);
7135   res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
7136   if (!SWIG_IsOK(res2)) {
7137     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_run_commandf" "', argument " "2"" of type '" "char const *""'");
7138   }
7139   arg2 = (char *)(buf2);
7140   result = (int)plotstuff_run_commandf(arg1,(char const *)arg2,arg3);
7141   resultobj = SWIG_From_int((int)(result));
7142   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7143   return resultobj;
7144 fail:
7145   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
7146   return NULL;
7147 }
7148 
7149 
_wrap_plotstuff_run_commandf(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7150 SWIGINTERN PyObject *_wrap_plotstuff_run_commandf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7151   PyObject *resultobj;
7152   PyObject *varargs;
7153   PyObject *newargs;
7154 
7155   newargs = PyTuple_GetSlice(args,0,2);
7156   varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args));
7157   resultobj = _wrap_plotstuff_run_commandf__varargs__(NULL,newargs,varargs);
7158   Py_XDECREF(newargs);
7159   Py_XDECREF(varargs);
7160   return resultobj;
7161 }
7162 
7163 
_wrap_plotstuff_output(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7164 SWIGINTERN PyObject *_wrap_plotstuff_output(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7165   PyObject *resultobj = 0;
7166   plot_args_t *arg1 = (plot_args_t *) 0 ;
7167   void *argp1 = 0 ;
7168   int res1 = 0 ;
7169   PyObject *swig_obj[1] ;
7170   int result;
7171 
7172   if (!args) SWIG_fail;
7173   swig_obj[0] = args;
7174   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7175   if (!SWIG_IsOK(res1)) {
7176     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_output" "', argument " "1"" of type '" "plot_args_t *""'");
7177   }
7178   arg1 = (plot_args_t *)(argp1);
7179   result = (int)plotstuff_output(arg1);
7180   resultobj = SWIG_From_int((int)(result));
7181   return resultobj;
7182 fail:
7183   return NULL;
7184 }
7185 
7186 
_wrap_plotstuff_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7187 SWIGINTERN PyObject *_wrap_plotstuff_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7188   PyObject *resultobj = 0;
7189   plot_args_t *arg1 = (plot_args_t *) 0 ;
7190   void *argp1 = 0 ;
7191   int res1 = 0 ;
7192   PyObject *swig_obj[1] ;
7193 
7194   if (!args) SWIG_fail;
7195   swig_obj[0] = args;
7196   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7197   if (!SWIG_IsOK(res1)) {
7198     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_free" "', argument " "1"" of type '" "plot_args_t *""'");
7199   }
7200   arg1 = (plot_args_t *)(argp1);
7201   plotstuff_free(arg1);
7202   resultobj = SWIG_Py_Void();
7203   return resultobj;
7204 fail:
7205   return NULL;
7206 }
7207 
7208 
_wrap_plotstuff_clear(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7209 SWIGINTERN PyObject *_wrap_plotstuff_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7210   PyObject *resultobj = 0;
7211   plot_args_t *arg1 = (plot_args_t *) 0 ;
7212   void *argp1 = 0 ;
7213   int res1 = 0 ;
7214   PyObject *swig_obj[1] ;
7215 
7216   if (!args) SWIG_fail;
7217   swig_obj[0] = args;
7218   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7219   if (!SWIG_IsOK(res1)) {
7220     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_clear" "', argument " "1"" of type '" "plot_args_t *""'");
7221   }
7222   arg1 = (plot_args_t *)(argp1);
7223   plotstuff_clear(arg1);
7224   resultobj = SWIG_Py_Void();
7225   return resultobj;
7226 fail:
7227   return NULL;
7228 }
7229 
7230 
_wrap_plotstuff_stack_marker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7231 SWIGINTERN PyObject *_wrap_plotstuff_stack_marker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7232   PyObject *resultobj = 0;
7233   plot_args_t *arg1 = (plot_args_t *) 0 ;
7234   double arg2 ;
7235   double arg3 ;
7236   void *argp1 = 0 ;
7237   int res1 = 0 ;
7238   double val2 ;
7239   int ecode2 = 0 ;
7240   double val3 ;
7241   int ecode3 = 0 ;
7242   PyObject *swig_obj[3] ;
7243 
7244   if (!SWIG_Python_UnpackTuple(args, "plotstuff_stack_marker", 3, 3, swig_obj)) SWIG_fail;
7245   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7246   if (!SWIG_IsOK(res1)) {
7247     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_stack_marker" "', argument " "1"" of type '" "plot_args_t *""'");
7248   }
7249   arg1 = (plot_args_t *)(argp1);
7250   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7251   if (!SWIG_IsOK(ecode2)) {
7252     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_stack_marker" "', argument " "2"" of type '" "double""'");
7253   }
7254   arg2 = (double)(val2);
7255   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7256   if (!SWIG_IsOK(ecode3)) {
7257     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_stack_marker" "', argument " "3"" of type '" "double""'");
7258   }
7259   arg3 = (double)(val3);
7260   plotstuff_stack_marker(arg1,arg2,arg3);
7261   resultobj = SWIG_Py_Void();
7262   return resultobj;
7263 fail:
7264   return NULL;
7265 }
7266 
7267 
_wrap_plotstuff_stack_arrow(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7268 SWIGINTERN PyObject *_wrap_plotstuff_stack_arrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7269   PyObject *resultobj = 0;
7270   plot_args_t *arg1 = (plot_args_t *) 0 ;
7271   double arg2 ;
7272   double arg3 ;
7273   double arg4 ;
7274   double arg5 ;
7275   void *argp1 = 0 ;
7276   int res1 = 0 ;
7277   double val2 ;
7278   int ecode2 = 0 ;
7279   double val3 ;
7280   int ecode3 = 0 ;
7281   double val4 ;
7282   int ecode4 = 0 ;
7283   double val5 ;
7284   int ecode5 = 0 ;
7285   PyObject *swig_obj[5] ;
7286 
7287   if (!SWIG_Python_UnpackTuple(args, "plotstuff_stack_arrow", 5, 5, swig_obj)) SWIG_fail;
7288   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7289   if (!SWIG_IsOK(res1)) {
7290     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_stack_arrow" "', argument " "1"" of type '" "plot_args_t *""'");
7291   }
7292   arg1 = (plot_args_t *)(argp1);
7293   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7294   if (!SWIG_IsOK(ecode2)) {
7295     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_stack_arrow" "', argument " "2"" of type '" "double""'");
7296   }
7297   arg2 = (double)(val2);
7298   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7299   if (!SWIG_IsOK(ecode3)) {
7300     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_stack_arrow" "', argument " "3"" of type '" "double""'");
7301   }
7302   arg3 = (double)(val3);
7303   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7304   if (!SWIG_IsOK(ecode4)) {
7305     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_stack_arrow" "', argument " "4"" of type '" "double""'");
7306   }
7307   arg4 = (double)(val4);
7308   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
7309   if (!SWIG_IsOK(ecode5)) {
7310     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_stack_arrow" "', argument " "5"" of type '" "double""'");
7311   }
7312   arg5 = (double)(val5);
7313   plotstuff_stack_arrow(arg1,arg2,arg3,arg4,arg5);
7314   resultobj = SWIG_Py_Void();
7315   return resultobj;
7316 fail:
7317   return NULL;
7318 }
7319 
7320 
_wrap_plotstuff_stack_text(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7321 SWIGINTERN PyObject *_wrap_plotstuff_stack_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7322   PyObject *resultobj = 0;
7323   plot_args_t *arg1 = (plot_args_t *) 0 ;
7324   cairo_t *arg2 = (cairo_t *) 0 ;
7325   char *arg3 = (char *) 0 ;
7326   double arg4 ;
7327   double arg5 ;
7328   void *argp1 = 0 ;
7329   int res1 = 0 ;
7330   void *argp2 = 0 ;
7331   int res2 = 0 ;
7332   int res3 ;
7333   char *buf3 = 0 ;
7334   int alloc3 = 0 ;
7335   double val4 ;
7336   int ecode4 = 0 ;
7337   double val5 ;
7338   int ecode5 = 0 ;
7339   PyObject *swig_obj[5] ;
7340 
7341   if (!SWIG_Python_UnpackTuple(args, "plotstuff_stack_text", 5, 5, swig_obj)) SWIG_fail;
7342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7343   if (!SWIG_IsOK(res1)) {
7344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_stack_text" "', argument " "1"" of type '" "plot_args_t *""'");
7345   }
7346   arg1 = (plot_args_t *)(argp1);
7347   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
7348   if (!SWIG_IsOK(res2)) {
7349     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_stack_text" "', argument " "2"" of type '" "cairo_t *""'");
7350   }
7351   arg2 = (cairo_t *)(argp2);
7352   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
7353   if (!SWIG_IsOK(res3)) {
7354     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plotstuff_stack_text" "', argument " "3"" of type '" "char const *""'");
7355   }
7356   arg3 = (char *)(buf3);
7357   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7358   if (!SWIG_IsOK(ecode4)) {
7359     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_stack_text" "', argument " "4"" of type '" "double""'");
7360   }
7361   arg4 = (double)(val4);
7362   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
7363   if (!SWIG_IsOK(ecode5)) {
7364     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_stack_text" "', argument " "5"" of type '" "double""'");
7365   }
7366   arg5 = (double)(val5);
7367   plotstuff_stack_text(arg1,arg2,(char const *)arg3,arg4,arg5);
7368   resultobj = SWIG_Py_Void();
7369   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7370   return resultobj;
7371 fail:
7372   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
7373   return NULL;
7374 }
7375 
7376 
_wrap_plotstuff_plot_stack(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7377 SWIGINTERN PyObject *_wrap_plotstuff_plot_stack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7378   PyObject *resultobj = 0;
7379   plot_args_t *arg1 = (plot_args_t *) 0 ;
7380   cairo_t *arg2 = (cairo_t *) 0 ;
7381   void *argp1 = 0 ;
7382   int res1 = 0 ;
7383   void *argp2 = 0 ;
7384   int res2 = 0 ;
7385   PyObject *swig_obj[2] ;
7386   int result;
7387 
7388   if (!SWIG_Python_UnpackTuple(args, "plotstuff_plot_stack", 2, 2, swig_obj)) SWIG_fail;
7389   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7390   if (!SWIG_IsOK(res1)) {
7391     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_plot_stack" "', argument " "1"" of type '" "plot_args_t *""'");
7392   }
7393   arg1 = (plot_args_t *)(argp1);
7394   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
7395   if (!SWIG_IsOK(res2)) {
7396     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_plot_stack" "', argument " "2"" of type '" "cairo_t *""'");
7397   }
7398   arg2 = (cairo_t *)(argp2);
7399   result = (int)plotstuff_plot_stack(arg1,arg2);
7400   resultobj = SWIG_From_int((int)(result));
7401   return resultobj;
7402 fail:
7403   return NULL;
7404 }
7405 
7406 
_wrap_plotstuff_get_maximum_rgba(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7407 SWIGINTERN PyObject *_wrap_plotstuff_get_maximum_rgba(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7408   PyObject *resultobj = 0;
7409   plot_args_t *arg1 = (plot_args_t *) 0 ;
7410   int *arg2 = (int *) 0 ;
7411   int *arg3 = (int *) 0 ;
7412   int *arg4 = (int *) 0 ;
7413   int *arg5 = (int *) 0 ;
7414   void *argp1 = 0 ;
7415   int res1 = 0 ;
7416   int temp2 ;
7417   int res2 = SWIG_TMPOBJ ;
7418   int temp3 ;
7419   int res3 = SWIG_TMPOBJ ;
7420   int temp4 ;
7421   int res4 = SWIG_TMPOBJ ;
7422   int temp5 ;
7423   int res5 = SWIG_TMPOBJ ;
7424   PyObject *swig_obj[1] ;
7425 
7426   arg2 = &temp2;
7427   arg3 = &temp3;
7428   arg4 = &temp4;
7429   arg5 = &temp5;
7430   if (!args) SWIG_fail;
7431   swig_obj[0] = args;
7432   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7433   if (!SWIG_IsOK(res1)) {
7434     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_get_maximum_rgba" "', argument " "1"" of type '" "plot_args_t *""'");
7435   }
7436   arg1 = (plot_args_t *)(argp1);
7437   plotstuff_get_maximum_rgba(arg1,arg2,arg3,arg4,arg5);
7438   resultobj = SWIG_Py_Void();
7439   if (SWIG_IsTmpObj(res2)) {
7440     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
7441   } else {
7442     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7443     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
7444   }
7445   if (SWIG_IsTmpObj(res3)) {
7446     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
7447   } else {
7448     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7449     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
7450   }
7451   if (SWIG_IsTmpObj(res4)) {
7452     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
7453   } else {
7454     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7455     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
7456   }
7457   if (SWIG_IsTmpObj(res5)) {
7458     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
7459   } else {
7460     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7461     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
7462   }
7463   return resultobj;
7464 fail:
7465   return NULL;
7466 }
7467 
7468 
_wrap_plotstuff_pixel_scale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7469 SWIGINTERN PyObject *_wrap_plotstuff_pixel_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7470   PyObject *resultobj = 0;
7471   plot_args_t *arg1 = (plot_args_t *) 0 ;
7472   void *argp1 = 0 ;
7473   int res1 = 0 ;
7474   PyObject *swig_obj[1] ;
7475   double result;
7476 
7477   if (!args) SWIG_fail;
7478   swig_obj[0] = args;
7479   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7480   if (!SWIG_IsOK(res1)) {
7481     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_pixel_scale" "', argument " "1"" of type '" "plot_args_t *""'");
7482   }
7483   arg1 = (plot_args_t *)(argp1);
7484   result = (double)plotstuff_pixel_scale(arg1);
7485   resultobj = SWIG_From_double((double)(result));
7486   return resultobj;
7487 fail:
7488   return NULL;
7489 }
7490 
7491 
_wrap_plotstuff_radec2xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7492 SWIGINTERN PyObject *_wrap_plotstuff_radec2xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7493   PyObject *resultobj = 0;
7494   plot_args_t *arg1 = (plot_args_t *) 0 ;
7495   double arg2 ;
7496   double arg3 ;
7497   double *arg4 = (double *) 0 ;
7498   double *arg5 = (double *) 0 ;
7499   void *argp1 = 0 ;
7500   int res1 = 0 ;
7501   double val2 ;
7502   int ecode2 = 0 ;
7503   double val3 ;
7504   int ecode3 = 0 ;
7505   double temp4 ;
7506   int res4 = SWIG_TMPOBJ ;
7507   double temp5 ;
7508   int res5 = SWIG_TMPOBJ ;
7509   PyObject *swig_obj[3] ;
7510   anbool result;
7511 
7512   arg4 = &temp4;
7513   arg5 = &temp5;
7514   if (!SWIG_Python_UnpackTuple(args, "plotstuff_radec2xy", 3, 3, swig_obj)) SWIG_fail;
7515   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7516   if (!SWIG_IsOK(res1)) {
7517     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_radec2xy" "', argument " "1"" of type '" "plot_args_t *""'");
7518   }
7519   arg1 = (plot_args_t *)(argp1);
7520   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7521   if (!SWIG_IsOK(ecode2)) {
7522     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_radec2xy" "', argument " "2"" of type '" "double""'");
7523   }
7524   arg2 = (double)(val2);
7525   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7526   if (!SWIG_IsOK(ecode3)) {
7527     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_radec2xy" "', argument " "3"" of type '" "double""'");
7528   }
7529   arg3 = (double)(val3);
7530   result = (anbool)plotstuff_radec2xy(arg1,arg2,arg3,arg4,arg5);
7531   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
7532   if (SWIG_IsTmpObj(res4)) {
7533     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
7534   } else {
7535     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7536     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
7537   }
7538   if (SWIG_IsTmpObj(res5)) {
7539     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
7540   } else {
7541     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7542     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
7543   }
7544   return resultobj;
7545 fail:
7546   return NULL;
7547 }
7548 
7549 
_wrap_plotstuff_xy2radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7550 SWIGINTERN PyObject *_wrap_plotstuff_xy2radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551   PyObject *resultobj = 0;
7552   plot_args_t *arg1 = (plot_args_t *) 0 ;
7553   double arg2 ;
7554   double arg3 ;
7555   double *arg4 = (double *) 0 ;
7556   double *arg5 = (double *) 0 ;
7557   void *argp1 = 0 ;
7558   int res1 = 0 ;
7559   double val2 ;
7560   int ecode2 = 0 ;
7561   double val3 ;
7562   int ecode3 = 0 ;
7563   void *argp4 = 0 ;
7564   int res4 = 0 ;
7565   double temp5 ;
7566   int res5 = SWIG_TMPOBJ ;
7567   PyObject *swig_obj[4] ;
7568   anbool result;
7569 
7570   arg5 = &temp5;
7571   if (!SWIG_Python_UnpackTuple(args, "plotstuff_xy2radec", 4, 4, swig_obj)) SWIG_fail;
7572   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7573   if (!SWIG_IsOK(res1)) {
7574     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_xy2radec" "', argument " "1"" of type '" "plot_args_t *""'");
7575   }
7576   arg1 = (plot_args_t *)(argp1);
7577   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7578   if (!SWIG_IsOK(ecode2)) {
7579     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_xy2radec" "', argument " "2"" of type '" "double""'");
7580   }
7581   arg2 = (double)(val2);
7582   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7583   if (!SWIG_IsOK(ecode3)) {
7584     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_xy2radec" "', argument " "3"" of type '" "double""'");
7585   }
7586   arg3 = (double)(val3);
7587   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
7588   if (!SWIG_IsOK(res4)) {
7589     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plotstuff_xy2radec" "', argument " "4"" of type '" "double *""'");
7590   }
7591   arg4 = (double *)(argp4);
7592   result = (anbool)plotstuff_xy2radec(arg1,arg2,arg3,arg4,arg5);
7593   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
7594   if (SWIG_IsTmpObj(res5)) {
7595     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
7596   } else {
7597     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7598     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
7599   }
7600   return resultobj;
7601 fail:
7602   return NULL;
7603 }
7604 
7605 
_wrap_plotstuff_get_radec_center_and_radius(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7606 SWIGINTERN PyObject *_wrap_plotstuff_get_radec_center_and_radius(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7607   PyObject *resultobj = 0;
7608   plot_args_t *arg1 = (plot_args_t *) 0 ;
7609   double *arg2 = (double *) 0 ;
7610   double *arg3 = (double *) 0 ;
7611   double *arg4 = (double *) 0 ;
7612   void *argp1 = 0 ;
7613   int res1 = 0 ;
7614   double temp2 ;
7615   int res2 = SWIG_TMPOBJ ;
7616   double temp3 ;
7617   int res3 = SWIG_TMPOBJ ;
7618   double temp4 ;
7619   int res4 = SWIG_TMPOBJ ;
7620   PyObject *swig_obj[1] ;
7621   int result;
7622 
7623   arg2 = &temp2;
7624   arg3 = &temp3;
7625   arg4 = &temp4;
7626   if (!args) SWIG_fail;
7627   swig_obj[0] = args;
7628   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7629   if (!SWIG_IsOK(res1)) {
7630     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_get_radec_center_and_radius" "', argument " "1"" of type '" "plot_args_t *""'");
7631   }
7632   arg1 = (plot_args_t *)(argp1);
7633   result = (int)plotstuff_get_radec_center_and_radius(arg1,arg2,arg3,arg4);
7634   resultobj = SWIG_From_int((int)(result));
7635   if (SWIG_IsTmpObj(res2)) {
7636     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
7637   } else {
7638     int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7639     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
7640   }
7641   if (SWIG_IsTmpObj(res3)) {
7642     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
7643   } else {
7644     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7645     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
7646   }
7647   if (SWIG_IsTmpObj(res4)) {
7648     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
7649   } else {
7650     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7651     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
7652   }
7653   return resultobj;
7654 fail:
7655   return NULL;
7656 }
7657 
7658 
_wrap_plotstuff_get_radec_bounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7659 SWIGINTERN PyObject *_wrap_plotstuff_get_radec_bounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7660   PyObject *resultobj = 0;
7661   plot_args_t *arg1 = (plot_args_t *) 0 ;
7662   int arg2 ;
7663   double *arg3 = (double *) 0 ;
7664   double *arg4 = (double *) 0 ;
7665   double *arg5 = (double *) 0 ;
7666   double *arg6 = (double *) 0 ;
7667   void *argp1 = 0 ;
7668   int res1 = 0 ;
7669   int val2 ;
7670   int ecode2 = 0 ;
7671   double temp3 ;
7672   int res3 = SWIG_TMPOBJ ;
7673   double temp4 ;
7674   int res4 = SWIG_TMPOBJ ;
7675   double temp5 ;
7676   int res5 = SWIG_TMPOBJ ;
7677   double temp6 ;
7678   int res6 = SWIG_TMPOBJ ;
7679   PyObject *swig_obj[2] ;
7680 
7681   arg3 = &temp3;
7682   arg4 = &temp4;
7683   arg5 = &temp5;
7684   arg6 = &temp6;
7685   if (!SWIG_Python_UnpackTuple(args, "plotstuff_get_radec_bounds", 2, 2, swig_obj)) SWIG_fail;
7686   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7687   if (!SWIG_IsOK(res1)) {
7688     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_get_radec_bounds" "', argument " "1"" of type '" "plot_args_t const *""'");
7689   }
7690   arg1 = (plot_args_t *)(argp1);
7691   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
7692   if (!SWIG_IsOK(ecode2)) {
7693     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_get_radec_bounds" "', argument " "2"" of type '" "int""'");
7694   }
7695   arg2 = (int)(val2);
7696   plotstuff_get_radec_bounds((struct plot_args const *)arg1,arg2,arg3,arg4,arg5,arg6);
7697   resultobj = SWIG_Py_Void();
7698   if (SWIG_IsTmpObj(res3)) {
7699     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
7700   } else {
7701     int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7702     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
7703   }
7704   if (SWIG_IsTmpObj(res4)) {
7705     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
7706   } else {
7707     int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7708     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
7709   }
7710   if (SWIG_IsTmpObj(res5)) {
7711     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
7712   } else {
7713     int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7714     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
7715   }
7716   if (SWIG_IsTmpObj(res6)) {
7717     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
7718   } else {
7719     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
7720     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
7721   }
7722   return resultobj;
7723 fail:
7724   return NULL;
7725 }
7726 
7727 
_wrap_plotstuff_radec_is_inside_image(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7728 SWIGINTERN PyObject *_wrap_plotstuff_radec_is_inside_image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7729   PyObject *resultobj = 0;
7730   plot_args_t *arg1 = (plot_args_t *) 0 ;
7731   double arg2 ;
7732   double arg3 ;
7733   void *argp1 = 0 ;
7734   int res1 = 0 ;
7735   double val2 ;
7736   int ecode2 = 0 ;
7737   double val3 ;
7738   int ecode3 = 0 ;
7739   PyObject *swig_obj[3] ;
7740   anbool result;
7741 
7742   if (!SWIG_Python_UnpackTuple(args, "plotstuff_radec_is_inside_image", 3, 3, swig_obj)) SWIG_fail;
7743   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7744   if (!SWIG_IsOK(res1)) {
7745     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_radec_is_inside_image" "', argument " "1"" of type '" "plot_args_t *""'");
7746   }
7747   arg1 = (plot_args_t *)(argp1);
7748   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7749   if (!SWIG_IsOK(ecode2)) {
7750     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_radec_is_inside_image" "', argument " "2"" of type '" "double""'");
7751   }
7752   arg2 = (double)(val2);
7753   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7754   if (!SWIG_IsOK(ecode3)) {
7755     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_radec_is_inside_image" "', argument " "3"" of type '" "double""'");
7756   }
7757   arg3 = (double)(val3);
7758   result = (anbool)plotstuff_radec_is_inside_image(arg1,arg2,arg3);
7759   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
7760   return resultobj;
7761 fail:
7762   return NULL;
7763 }
7764 
7765 
_wrap_plotstuff_line_constant_ra(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7766 SWIGINTERN PyObject *_wrap_plotstuff_line_constant_ra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7767   PyObject *resultobj = 0;
7768   plot_args_t *arg1 = (plot_args_t *) 0 ;
7769   double arg2 ;
7770   double arg3 ;
7771   double arg4 ;
7772   anbool arg5 ;
7773   void *argp1 = 0 ;
7774   int res1 = 0 ;
7775   double val2 ;
7776   int ecode2 = 0 ;
7777   double val3 ;
7778   int ecode3 = 0 ;
7779   double val4 ;
7780   int ecode4 = 0 ;
7781   unsigned char val5 ;
7782   int ecode5 = 0 ;
7783   PyObject *swig_obj[5] ;
7784   int result;
7785 
7786   if (!SWIG_Python_UnpackTuple(args, "plotstuff_line_constant_ra", 5, 5, swig_obj)) SWIG_fail;
7787   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7788   if (!SWIG_IsOK(res1)) {
7789     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_line_constant_ra" "', argument " "1"" of type '" "plot_args_t *""'");
7790   }
7791   arg1 = (plot_args_t *)(argp1);
7792   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7793   if (!SWIG_IsOK(ecode2)) {
7794     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_line_constant_ra" "', argument " "2"" of type '" "double""'");
7795   }
7796   arg2 = (double)(val2);
7797   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7798   if (!SWIG_IsOK(ecode3)) {
7799     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_line_constant_ra" "', argument " "3"" of type '" "double""'");
7800   }
7801   arg3 = (double)(val3);
7802   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7803   if (!SWIG_IsOK(ecode4)) {
7804     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_line_constant_ra" "', argument " "4"" of type '" "double""'");
7805   }
7806   arg4 = (double)(val4);
7807   ecode5 = SWIG_AsVal_unsigned_SS_char(swig_obj[4], &val5);
7808   if (!SWIG_IsOK(ecode5)) {
7809     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_line_constant_ra" "', argument " "5"" of type '" "anbool""'");
7810   }
7811   arg5 = (anbool)(val5);
7812   result = (int)plotstuff_line_constant_ra(arg1,arg2,arg3,arg4,arg5);
7813   resultobj = SWIG_From_int((int)(result));
7814   return resultobj;
7815 fail:
7816   return NULL;
7817 }
7818 
7819 
_wrap_plotstuff_line_constant_dec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7820 SWIGINTERN PyObject *_wrap_plotstuff_line_constant_dec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7821   PyObject *resultobj = 0;
7822   plot_args_t *arg1 = (plot_args_t *) 0 ;
7823   double arg2 ;
7824   double arg3 ;
7825   double arg4 ;
7826   void *argp1 = 0 ;
7827   int res1 = 0 ;
7828   double val2 ;
7829   int ecode2 = 0 ;
7830   double val3 ;
7831   int ecode3 = 0 ;
7832   double val4 ;
7833   int ecode4 = 0 ;
7834   PyObject *swig_obj[4] ;
7835   int result;
7836 
7837   if (!SWIG_Python_UnpackTuple(args, "plotstuff_line_constant_dec", 4, 4, swig_obj)) SWIG_fail;
7838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7839   if (!SWIG_IsOK(res1)) {
7840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_line_constant_dec" "', argument " "1"" of type '" "plot_args_t *""'");
7841   }
7842   arg1 = (plot_args_t *)(argp1);
7843   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7844   if (!SWIG_IsOK(ecode2)) {
7845     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_line_constant_dec" "', argument " "2"" of type '" "double""'");
7846   }
7847   arg2 = (double)(val2);
7848   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7849   if (!SWIG_IsOK(ecode3)) {
7850     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_line_constant_dec" "', argument " "3"" of type '" "double""'");
7851   }
7852   arg3 = (double)(val3);
7853   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7854   if (!SWIG_IsOK(ecode4)) {
7855     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_line_constant_dec" "', argument " "4"" of type '" "double""'");
7856   }
7857   arg4 = (double)(val4);
7858   result = (int)plotstuff_line_constant_dec(arg1,arg2,arg3,arg4);
7859   resultobj = SWIG_From_int((int)(result));
7860   return resultobj;
7861 fail:
7862   return NULL;
7863 }
7864 
7865 
_wrap_plotstuff_line_constant_dec2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7866 SWIGINTERN PyObject *_wrap_plotstuff_line_constant_dec2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7867   PyObject *resultobj = 0;
7868   plot_args_t *arg1 = (plot_args_t *) 0 ;
7869   double arg2 ;
7870   double arg3 ;
7871   double arg4 ;
7872   double arg5 ;
7873   void *argp1 = 0 ;
7874   int res1 = 0 ;
7875   double val2 ;
7876   int ecode2 = 0 ;
7877   double val3 ;
7878   int ecode3 = 0 ;
7879   double val4 ;
7880   int ecode4 = 0 ;
7881   double val5 ;
7882   int ecode5 = 0 ;
7883   PyObject *swig_obj[5] ;
7884   int result;
7885 
7886   if (!SWIG_Python_UnpackTuple(args, "plotstuff_line_constant_dec2", 5, 5, swig_obj)) SWIG_fail;
7887   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7888   if (!SWIG_IsOK(res1)) {
7889     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_line_constant_dec2" "', argument " "1"" of type '" "plot_args_t *""'");
7890   }
7891   arg1 = (plot_args_t *)(argp1);
7892   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7893   if (!SWIG_IsOK(ecode2)) {
7894     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_line_constant_dec2" "', argument " "2"" of type '" "double""'");
7895   }
7896   arg2 = (double)(val2);
7897   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7898   if (!SWIG_IsOK(ecode3)) {
7899     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_line_constant_dec2" "', argument " "3"" of type '" "double""'");
7900   }
7901   arg3 = (double)(val3);
7902   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
7903   if (!SWIG_IsOK(ecode4)) {
7904     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotstuff_line_constant_dec2" "', argument " "4"" of type '" "double""'");
7905   }
7906   arg4 = (double)(val4);
7907   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
7908   if (!SWIG_IsOK(ecode5)) {
7909     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plotstuff_line_constant_dec2" "', argument " "5"" of type '" "double""'");
7910   }
7911   arg5 = (double)(val5);
7912   result = (int)plotstuff_line_constant_dec2(arg1,arg2,arg3,arg4,arg5);
7913   resultobj = SWIG_From_int((int)(result));
7914   return resultobj;
7915 fail:
7916   return NULL;
7917 }
7918 
7919 
_wrap_plotstuff_text_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7920 SWIGINTERN PyObject *_wrap_plotstuff_text_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7921   PyObject *resultobj = 0;
7922   plot_args_t *arg1 = (plot_args_t *) 0 ;
7923   double arg2 ;
7924   double arg3 ;
7925   char *arg4 = (char *) 0 ;
7926   void *argp1 = 0 ;
7927   int res1 = 0 ;
7928   double val2 ;
7929   int ecode2 = 0 ;
7930   double val3 ;
7931   int ecode3 = 0 ;
7932   int res4 ;
7933   char *buf4 = 0 ;
7934   int alloc4 = 0 ;
7935   PyObject *swig_obj[4] ;
7936   int result;
7937 
7938   if (!SWIG_Python_UnpackTuple(args, "plotstuff_text_xy", 4, 4, swig_obj)) SWIG_fail;
7939   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7940   if (!SWIG_IsOK(res1)) {
7941     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_text_xy" "', argument " "1"" of type '" "plot_args_t *""'");
7942   }
7943   arg1 = (plot_args_t *)(argp1);
7944   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7945   if (!SWIG_IsOK(ecode2)) {
7946     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_text_xy" "', argument " "2"" of type '" "double""'");
7947   }
7948   arg2 = (double)(val2);
7949   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7950   if (!SWIG_IsOK(ecode3)) {
7951     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_text_xy" "', argument " "3"" of type '" "double""'");
7952   }
7953   arg3 = (double)(val3);
7954   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
7955   if (!SWIG_IsOK(res4)) {
7956     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plotstuff_text_xy" "', argument " "4"" of type '" "char const *""'");
7957   }
7958   arg4 = (char *)(buf4);
7959   result = (int)plotstuff_text_xy(arg1,arg2,arg3,(char const *)arg4);
7960   resultobj = SWIG_From_int((int)(result));
7961   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
7962   return resultobj;
7963 fail:
7964   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
7965   return NULL;
7966 }
7967 
7968 
_wrap_plotstuff_text_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)7969 SWIGINTERN PyObject *_wrap_plotstuff_text_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970   PyObject *resultobj = 0;
7971   plot_args_t *arg1 = (plot_args_t *) 0 ;
7972   double arg2 ;
7973   double arg3 ;
7974   char *arg4 = (char *) 0 ;
7975   void *argp1 = 0 ;
7976   int res1 = 0 ;
7977   double val2 ;
7978   int ecode2 = 0 ;
7979   double val3 ;
7980   int ecode3 = 0 ;
7981   int res4 ;
7982   char *buf4 = 0 ;
7983   int alloc4 = 0 ;
7984   PyObject *swig_obj[4] ;
7985   int result;
7986 
7987   if (!SWIG_Python_UnpackTuple(args, "plotstuff_text_radec", 4, 4, swig_obj)) SWIG_fail;
7988   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
7989   if (!SWIG_IsOK(res1)) {
7990     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_text_radec" "', argument " "1"" of type '" "plot_args_t *""'");
7991   }
7992   arg1 = (plot_args_t *)(argp1);
7993   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
7994   if (!SWIG_IsOK(ecode2)) {
7995     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_text_radec" "', argument " "2"" of type '" "double""'");
7996   }
7997   arg2 = (double)(val2);
7998   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
7999   if (!SWIG_IsOK(ecode3)) {
8000     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_text_radec" "', argument " "3"" of type '" "double""'");
8001   }
8002   arg3 = (double)(val3);
8003   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
8004   if (!SWIG_IsOK(res4)) {
8005     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plotstuff_text_radec" "', argument " "4"" of type '" "char const *""'");
8006   }
8007   arg4 = (char *)(buf4);
8008   result = (int)plotstuff_text_radec(arg1,arg2,arg3,(char const *)arg4);
8009   resultobj = SWIG_From_int((int)(result));
8010   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8011   return resultobj;
8012 fail:
8013   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
8014   return NULL;
8015 }
8016 
8017 
_wrap_plotstuff_move_to_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8018 SWIGINTERN PyObject *_wrap_plotstuff_move_to_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8019   PyObject *resultobj = 0;
8020   plot_args_t *arg1 = (plot_args_t *) 0 ;
8021   double arg2 ;
8022   double arg3 ;
8023   void *argp1 = 0 ;
8024   int res1 = 0 ;
8025   double val2 ;
8026   int ecode2 = 0 ;
8027   double val3 ;
8028   int ecode3 = 0 ;
8029   PyObject *swig_obj[3] ;
8030   int result;
8031 
8032   if (!SWIG_Python_UnpackTuple(args, "plotstuff_move_to_radec", 3, 3, swig_obj)) SWIG_fail;
8033   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8034   if (!SWIG_IsOK(res1)) {
8035     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_move_to_radec" "', argument " "1"" of type '" "plot_args_t *""'");
8036   }
8037   arg1 = (plot_args_t *)(argp1);
8038   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8039   if (!SWIG_IsOK(ecode2)) {
8040     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_move_to_radec" "', argument " "2"" of type '" "double""'");
8041   }
8042   arg2 = (double)(val2);
8043   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8044   if (!SWIG_IsOK(ecode3)) {
8045     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_move_to_radec" "', argument " "3"" of type '" "double""'");
8046   }
8047   arg3 = (double)(val3);
8048   result = (int)plotstuff_move_to_radec(arg1,arg2,arg3);
8049   resultobj = SWIG_From_int((int)(result));
8050   return resultobj;
8051 fail:
8052   return NULL;
8053 }
8054 
8055 
_wrap_plotstuff_line_to_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8056 SWIGINTERN PyObject *_wrap_plotstuff_line_to_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8057   PyObject *resultobj = 0;
8058   plot_args_t *arg1 = (plot_args_t *) 0 ;
8059   double arg2 ;
8060   double arg3 ;
8061   void *argp1 = 0 ;
8062   int res1 = 0 ;
8063   double val2 ;
8064   int ecode2 = 0 ;
8065   double val3 ;
8066   int ecode3 = 0 ;
8067   PyObject *swig_obj[3] ;
8068   int result;
8069 
8070   if (!SWIG_Python_UnpackTuple(args, "plotstuff_line_to_radec", 3, 3, swig_obj)) SWIG_fail;
8071   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8072   if (!SWIG_IsOK(res1)) {
8073     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_line_to_radec" "', argument " "1"" of type '" "plot_args_t *""'");
8074   }
8075   arg1 = (plot_args_t *)(argp1);
8076   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8077   if (!SWIG_IsOK(ecode2)) {
8078     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_line_to_radec" "', argument " "2"" of type '" "double""'");
8079   }
8080   arg2 = (double)(val2);
8081   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8082   if (!SWIG_IsOK(ecode3)) {
8083     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_line_to_radec" "', argument " "3"" of type '" "double""'");
8084   }
8085   arg3 = (double)(val3);
8086   result = (int)plotstuff_line_to_radec(arg1,arg2,arg3);
8087   resultobj = SWIG_From_int((int)(result));
8088   return resultobj;
8089 fail:
8090   return NULL;
8091 }
8092 
8093 
_wrap_plotstuff_close_path(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8094 SWIGINTERN PyObject *_wrap_plotstuff_close_path(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8095   PyObject *resultobj = 0;
8096   plot_args_t *arg1 = (plot_args_t *) 0 ;
8097   void *argp1 = 0 ;
8098   int res1 = 0 ;
8099   PyObject *swig_obj[1] ;
8100   int result;
8101 
8102   if (!args) SWIG_fail;
8103   swig_obj[0] = args;
8104   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8105   if (!SWIG_IsOK(res1)) {
8106     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_close_path" "', argument " "1"" of type '" "plot_args_t *""'");
8107   }
8108   arg1 = (plot_args_t *)(argp1);
8109   result = (int)plotstuff_close_path(arg1);
8110   resultobj = SWIG_From_int((int)(result));
8111   return resultobj;
8112 fail:
8113   return NULL;
8114 }
8115 
8116 
_wrap_plotstuff_stroke(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8117 SWIGINTERN PyObject *_wrap_plotstuff_stroke(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8118   PyObject *resultobj = 0;
8119   plot_args_t *arg1 = (plot_args_t *) 0 ;
8120   void *argp1 = 0 ;
8121   int res1 = 0 ;
8122   PyObject *swig_obj[1] ;
8123   int result;
8124 
8125   if (!args) SWIG_fail;
8126   swig_obj[0] = args;
8127   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8128   if (!SWIG_IsOK(res1)) {
8129     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_stroke" "', argument " "1"" of type '" "plot_args_t *""'");
8130   }
8131   arg1 = (plot_args_t *)(argp1);
8132   result = (int)plotstuff_stroke(arg1);
8133   resultobj = SWIG_From_int((int)(result));
8134   return resultobj;
8135 fail:
8136   return NULL;
8137 }
8138 
8139 
_wrap_plotstuff_fill(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8140 SWIGINTERN PyObject *_wrap_plotstuff_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8141   PyObject *resultobj = 0;
8142   plot_args_t *arg1 = (plot_args_t *) 0 ;
8143   void *argp1 = 0 ;
8144   int res1 = 0 ;
8145   PyObject *swig_obj[1] ;
8146   int result;
8147 
8148   if (!args) SWIG_fail;
8149   swig_obj[0] = args;
8150   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8151   if (!SWIG_IsOK(res1)) {
8152     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_fill" "', argument " "1"" of type '" "plot_args_t *""'");
8153   }
8154   arg1 = (plot_args_t *)(argp1);
8155   result = (int)plotstuff_fill(arg1);
8156   resultobj = SWIG_From_int((int)(result));
8157   return resultobj;
8158 fail:
8159   return NULL;
8160 }
8161 
8162 
_wrap_plotstuff_stroke_preserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8163 SWIGINTERN PyObject *_wrap_plotstuff_stroke_preserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8164   PyObject *resultobj = 0;
8165   plot_args_t *arg1 = (plot_args_t *) 0 ;
8166   void *argp1 = 0 ;
8167   int res1 = 0 ;
8168   PyObject *swig_obj[1] ;
8169   int result;
8170 
8171   if (!args) SWIG_fail;
8172   swig_obj[0] = args;
8173   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8174   if (!SWIG_IsOK(res1)) {
8175     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_stroke_preserve" "', argument " "1"" of type '" "plot_args_t *""'");
8176   }
8177   arg1 = (plot_args_t *)(argp1);
8178   result = (int)plotstuff_stroke_preserve(arg1);
8179   resultobj = SWIG_From_int((int)(result));
8180   return resultobj;
8181 fail:
8182   return NULL;
8183 }
8184 
8185 
_wrap_plotstuff_fill_preserve(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8186 SWIGINTERN PyObject *_wrap_plotstuff_fill_preserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8187   PyObject *resultobj = 0;
8188   plot_args_t *arg1 = (plot_args_t *) 0 ;
8189   void *argp1 = 0 ;
8190   int res1 = 0 ;
8191   PyObject *swig_obj[1] ;
8192   int result;
8193 
8194   if (!args) SWIG_fail;
8195   swig_obj[0] = args;
8196   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8197   if (!SWIG_IsOK(res1)) {
8198     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_fill_preserve" "', argument " "1"" of type '" "plot_args_t *""'");
8199   }
8200   arg1 = (plot_args_t *)(argp1);
8201   result = (int)plotstuff_fill_preserve(arg1);
8202   resultobj = SWIG_From_int((int)(result));
8203   return resultobj;
8204 fail:
8205   return NULL;
8206 }
8207 
8208 
_wrap_plotstuff_move_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8209 SWIGINTERN PyObject *_wrap_plotstuff_move_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8210   PyObject *resultobj = 0;
8211   plot_args_t *arg1 = (plot_args_t *) 0 ;
8212   double arg2 ;
8213   double arg3 ;
8214   void *argp1 = 0 ;
8215   int res1 = 0 ;
8216   double val2 ;
8217   int ecode2 = 0 ;
8218   double val3 ;
8219   int ecode3 = 0 ;
8220   PyObject *swig_obj[3] ;
8221 
8222   if (!SWIG_Python_UnpackTuple(args, "plotstuff_move_to", 3, 3, swig_obj)) SWIG_fail;
8223   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8224   if (!SWIG_IsOK(res1)) {
8225     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_move_to" "', argument " "1"" of type '" "plot_args_t *""'");
8226   }
8227   arg1 = (plot_args_t *)(argp1);
8228   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8229   if (!SWIG_IsOK(ecode2)) {
8230     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_move_to" "', argument " "2"" of type '" "double""'");
8231   }
8232   arg2 = (double)(val2);
8233   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8234   if (!SWIG_IsOK(ecode3)) {
8235     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_move_to" "', argument " "3"" of type '" "double""'");
8236   }
8237   arg3 = (double)(val3);
8238   plotstuff_move_to(arg1,arg2,arg3);
8239   resultobj = SWIG_Py_Void();
8240   return resultobj;
8241 fail:
8242   return NULL;
8243 }
8244 
8245 
_wrap_plotstuff_line_to(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8246 SWIGINTERN PyObject *_wrap_plotstuff_line_to(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8247   PyObject *resultobj = 0;
8248   plot_args_t *arg1 = (plot_args_t *) 0 ;
8249   double arg2 ;
8250   double arg3 ;
8251   void *argp1 = 0 ;
8252   int res1 = 0 ;
8253   double val2 ;
8254   int ecode2 = 0 ;
8255   double val3 ;
8256   int ecode3 = 0 ;
8257   PyObject *swig_obj[3] ;
8258 
8259   if (!SWIG_Python_UnpackTuple(args, "plotstuff_line_to", 3, 3, swig_obj)) SWIG_fail;
8260   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8261   if (!SWIG_IsOK(res1)) {
8262     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_line_to" "', argument " "1"" of type '" "plot_args_t *""'");
8263   }
8264   arg1 = (plot_args_t *)(argp1);
8265   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8266   if (!SWIG_IsOK(ecode2)) {
8267     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_line_to" "', argument " "2"" of type '" "double""'");
8268   }
8269   arg2 = (double)(val2);
8270   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8271   if (!SWIG_IsOK(ecode3)) {
8272     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_line_to" "', argument " "3"" of type '" "double""'");
8273   }
8274   arg3 = (double)(val3);
8275   plotstuff_line_to(arg1,arg2,arg3);
8276   resultobj = SWIG_Py_Void();
8277   return resultobj;
8278 fail:
8279   return NULL;
8280 }
8281 
8282 
_wrap_plotstuff_marker(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8283 SWIGINTERN PyObject *_wrap_plotstuff_marker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8284   PyObject *resultobj = 0;
8285   plot_args_t *arg1 = (plot_args_t *) 0 ;
8286   double arg2 ;
8287   double arg3 ;
8288   void *argp1 = 0 ;
8289   int res1 = 0 ;
8290   double val2 ;
8291   int ecode2 = 0 ;
8292   double val3 ;
8293   int ecode3 = 0 ;
8294   PyObject *swig_obj[3] ;
8295 
8296   if (!SWIG_Python_UnpackTuple(args, "plotstuff_marker", 3, 3, swig_obj)) SWIG_fail;
8297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8298   if (!SWIG_IsOK(res1)) {
8299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_marker" "', argument " "1"" of type '" "plot_args_t *""'");
8300   }
8301   arg1 = (plot_args_t *)(argp1);
8302   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8303   if (!SWIG_IsOK(ecode2)) {
8304     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_marker" "', argument " "2"" of type '" "double""'");
8305   }
8306   arg2 = (double)(val2);
8307   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8308   if (!SWIG_IsOK(ecode3)) {
8309     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_marker" "', argument " "3"" of type '" "double""'");
8310   }
8311   arg3 = (double)(val3);
8312   plotstuff_marker(arg1,arg2,arg3);
8313   resultobj = SWIG_Py_Void();
8314   return resultobj;
8315 fail:
8316   return NULL;
8317 }
8318 
8319 
_wrap_plotstuff_marker_radec(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8320 SWIGINTERN PyObject *_wrap_plotstuff_marker_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8321   PyObject *resultobj = 0;
8322   plot_args_t *arg1 = (plot_args_t *) 0 ;
8323   double arg2 ;
8324   double arg3 ;
8325   void *argp1 = 0 ;
8326   int res1 = 0 ;
8327   double val2 ;
8328   int ecode2 = 0 ;
8329   double val3 ;
8330   int ecode3 = 0 ;
8331   PyObject *swig_obj[3] ;
8332   int result;
8333 
8334   if (!SWIG_Python_UnpackTuple(args, "plotstuff_marker_radec", 3, 3, swig_obj)) SWIG_fail;
8335   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8336   if (!SWIG_IsOK(res1)) {
8337     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_marker_radec" "', argument " "1"" of type '" "plot_args_t *""'");
8338   }
8339   arg1 = (plot_args_t *)(argp1);
8340   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8341   if (!SWIG_IsOK(ecode2)) {
8342     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_marker_radec" "', argument " "2"" of type '" "double""'");
8343   }
8344   arg2 = (double)(val2);
8345   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
8346   if (!SWIG_IsOK(ecode3)) {
8347     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotstuff_marker_radec" "', argument " "3"" of type '" "double""'");
8348   }
8349   arg3 = (double)(val3);
8350   result = (int)plotstuff_marker_radec(arg1,arg2,arg3);
8351   resultobj = SWIG_From_int((int)(result));
8352   return resultobj;
8353 fail:
8354   return NULL;
8355 }
8356 
8357 
_wrap_plotstuff_append_doubles(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8358 SWIGINTERN PyObject *_wrap_plotstuff_append_doubles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8359   PyObject *resultobj = 0;
8360   char *arg1 = (char *) 0 ;
8361   dl *arg2 = (dl *) 0 ;
8362   int res1 ;
8363   char *buf1 = 0 ;
8364   int alloc1 = 0 ;
8365   void *argp2 = 0 ;
8366   int res2 = 0 ;
8367   PyObject *swig_obj[2] ;
8368   int result;
8369 
8370   if (!SWIG_Python_UnpackTuple(args, "plotstuff_append_doubles", 2, 2, swig_obj)) SWIG_fail;
8371   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
8372   if (!SWIG_IsOK(res1)) {
8373     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_append_doubles" "', argument " "1"" of type '" "char const *""'");
8374   }
8375   arg1 = (char *)(buf1);
8376   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_dl, 0 |  0 );
8377   if (!SWIG_IsOK(res2)) {
8378     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotstuff_append_doubles" "', argument " "2"" of type '" "dl *""'");
8379   }
8380   arg2 = (dl *)(argp2);
8381   result = (int)plotstuff_append_doubles((char const *)arg1,arg2);
8382   resultobj = SWIG_From_int((int)(result));
8383   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
8384   return resultobj;
8385 fail:
8386   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
8387   return NULL;
8388 }
8389 
8390 
_wrap_plotstuff_set_dashed(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8391 SWIGINTERN PyObject *_wrap_plotstuff_set_dashed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8392   PyObject *resultobj = 0;
8393   plot_args_t *arg1 = (plot_args_t *) 0 ;
8394   double arg2 ;
8395   void *argp1 = 0 ;
8396   int res1 = 0 ;
8397   double val2 ;
8398   int ecode2 = 0 ;
8399   PyObject *swig_obj[2] ;
8400 
8401   if (!SWIG_Python_UnpackTuple(args, "plotstuff_set_dashed", 2, 2, swig_obj)) SWIG_fail;
8402   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8403   if (!SWIG_IsOK(res1)) {
8404     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_dashed" "', argument " "1"" of type '" "plot_args_t *""'");
8405   }
8406   arg1 = (plot_args_t *)(argp1);
8407   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8408   if (!SWIG_IsOK(ecode2)) {
8409     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotstuff_set_dashed" "', argument " "2"" of type '" "double""'");
8410   }
8411   arg2 = (double)(val2);
8412   plotstuff_set_dashed(arg1,arg2);
8413   resultobj = SWIG_Py_Void();
8414   return resultobj;
8415 fail:
8416   return NULL;
8417 }
8418 
8419 
_wrap_plotstuff_set_solid(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8420 SWIGINTERN PyObject *_wrap_plotstuff_set_solid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8421   PyObject *resultobj = 0;
8422   plot_args_t *arg1 = (plot_args_t *) 0 ;
8423   void *argp1 = 0 ;
8424   int res1 = 0 ;
8425   PyObject *swig_obj[1] ;
8426 
8427   if (!args) SWIG_fail;
8428   swig_obj[0] = args;
8429   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
8430   if (!SWIG_IsOK(res1)) {
8431     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotstuff_set_solid" "', argument " "1"" of type '" "plot_args_t *""'");
8432   }
8433   arg1 = (plot_args_t *)(argp1);
8434   plotstuff_set_solid(arg1);
8435   resultobj = SWIG_Py_Void();
8436   return resultobj;
8437 fail:
8438   return NULL;
8439 }
8440 
8441 
_wrap_qfitsdumper_filename_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8442 SWIGINTERN PyObject *_wrap_qfitsdumper_filename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8443   PyObject *resultobj = 0;
8444   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8445   char *arg2 = (char *) 0 ;
8446   void *argp1 = 0 ;
8447   int res1 = 0 ;
8448   int res2 ;
8449   char *buf2 = 0 ;
8450   int alloc2 = 0 ;
8451   PyObject *swig_obj[2] ;
8452 
8453   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_filename_set", 2, 2, swig_obj)) SWIG_fail;
8454   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8455   if (!SWIG_IsOK(res1)) {
8456     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_filename_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8457   }
8458   arg1 = (struct qfitsdumper *)(argp1);
8459   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
8460   if (!SWIG_IsOK(res2)) {
8461     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfitsdumper_filename_set" "', argument " "2"" of type '" "char const *""'");
8462   }
8463   arg2 = (char *)(buf2);
8464   if (arg2) {
8465     size_t size = strlen((const char *)((const char *)(arg2))) + 1;
8466     arg1->filename = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
8467   } else {
8468     arg1->filename = 0;
8469   }
8470   resultobj = SWIG_Py_Void();
8471   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8472   return resultobj;
8473 fail:
8474   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
8475   return NULL;
8476 }
8477 
8478 
_wrap_qfitsdumper_filename_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8479 SWIGINTERN PyObject *_wrap_qfitsdumper_filename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8480   PyObject *resultobj = 0;
8481   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8482   void *argp1 = 0 ;
8483   int res1 = 0 ;
8484   PyObject *swig_obj[1] ;
8485   char *result = 0 ;
8486 
8487   if (!args) SWIG_fail;
8488   swig_obj[0] = args;
8489   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8490   if (!SWIG_IsOK(res1)) {
8491     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_filename_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8492   }
8493   arg1 = (struct qfitsdumper *)(argp1);
8494   result = (char *) ((arg1)->filename);
8495   resultobj = SWIG_FromCharPtr((const char *)result);
8496   return resultobj;
8497 fail:
8498   return NULL;
8499 }
8500 
8501 
_wrap_qfitsdumper_npix_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8502 SWIGINTERN PyObject *_wrap_qfitsdumper_npix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8503   PyObject *resultobj = 0;
8504   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8505   int arg2 ;
8506   void *argp1 = 0 ;
8507   int res1 = 0 ;
8508   int val2 ;
8509   int ecode2 = 0 ;
8510   PyObject *swig_obj[2] ;
8511 
8512   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_npix_set", 2, 2, swig_obj)) SWIG_fail;
8513   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8514   if (!SWIG_IsOK(res1)) {
8515     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_npix_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8516   }
8517   arg1 = (struct qfitsdumper *)(argp1);
8518   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8519   if (!SWIG_IsOK(ecode2)) {
8520     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfitsdumper_npix_set" "', argument " "2"" of type '" "int""'");
8521   }
8522   arg2 = (int)(val2);
8523   if (arg1) (arg1)->npix = arg2;
8524   resultobj = SWIG_Py_Void();
8525   return resultobj;
8526 fail:
8527   return NULL;
8528 }
8529 
8530 
_wrap_qfitsdumper_npix_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8531 SWIGINTERN PyObject *_wrap_qfitsdumper_npix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8532   PyObject *resultobj = 0;
8533   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8534   void *argp1 = 0 ;
8535   int res1 = 0 ;
8536   PyObject *swig_obj[1] ;
8537   int result;
8538 
8539   if (!args) SWIG_fail;
8540   swig_obj[0] = args;
8541   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8542   if (!SWIG_IsOK(res1)) {
8543     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_npix_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8544   }
8545   arg1 = (struct qfitsdumper *)(argp1);
8546   result = (int) ((arg1)->npix);
8547   resultobj = SWIG_From_int((int)(result));
8548   return resultobj;
8549 fail:
8550   return NULL;
8551 }
8552 
8553 
_wrap_qfitsdumper_ptype_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8554 SWIGINTERN PyObject *_wrap_qfitsdumper_ptype_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8555   PyObject *resultobj = 0;
8556   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8557   int arg2 ;
8558   void *argp1 = 0 ;
8559   int res1 = 0 ;
8560   int val2 ;
8561   int ecode2 = 0 ;
8562   PyObject *swig_obj[2] ;
8563 
8564   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_ptype_set", 2, 2, swig_obj)) SWIG_fail;
8565   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8566   if (!SWIG_IsOK(res1)) {
8567     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_ptype_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8568   }
8569   arg1 = (struct qfitsdumper *)(argp1);
8570   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8571   if (!SWIG_IsOK(ecode2)) {
8572     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfitsdumper_ptype_set" "', argument " "2"" of type '" "int""'");
8573   }
8574   arg2 = (int)(val2);
8575   if (arg1) (arg1)->ptype = arg2;
8576   resultobj = SWIG_Py_Void();
8577   return resultobj;
8578 fail:
8579   return NULL;
8580 }
8581 
8582 
_wrap_qfitsdumper_ptype_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8583 SWIGINTERN PyObject *_wrap_qfitsdumper_ptype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8584   PyObject *resultobj = 0;
8585   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8586   void *argp1 = 0 ;
8587   int res1 = 0 ;
8588   PyObject *swig_obj[1] ;
8589   int result;
8590 
8591   if (!args) SWIG_fail;
8592   swig_obj[0] = args;
8593   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8594   if (!SWIG_IsOK(res1)) {
8595     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_ptype_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8596   }
8597   arg1 = (struct qfitsdumper *)(argp1);
8598   result = (int) ((arg1)->ptype);
8599   resultobj = SWIG_From_int((int)(result));
8600   return resultobj;
8601 fail:
8602   return NULL;
8603 }
8604 
8605 
_wrap_qfitsdumper_ibuf_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8606 SWIGINTERN PyObject *_wrap_qfitsdumper_ibuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8607   PyObject *resultobj = 0;
8608   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8609   int *arg2 = (int *) 0 ;
8610   void *argp1 = 0 ;
8611   int res1 = 0 ;
8612   void *argp2 = 0 ;
8613   int res2 = 0 ;
8614   PyObject *swig_obj[2] ;
8615 
8616   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_ibuf_set", 2, 2, swig_obj)) SWIG_fail;
8617   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8618   if (!SWIG_IsOK(res1)) {
8619     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_ibuf_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8620   }
8621   arg1 = (struct qfitsdumper *)(argp1);
8622   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN |  0 );
8623   if (!SWIG_IsOK(res2)) {
8624     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfitsdumper_ibuf_set" "', argument " "2"" of type '" "int const *""'");
8625   }
8626   arg2 = (int *)(argp2);
8627   if (arg1) (arg1)->ibuf = (int const *)arg2;
8628   resultobj = SWIG_Py_Void();
8629   return resultobj;
8630 fail:
8631   return NULL;
8632 }
8633 
8634 
_wrap_qfitsdumper_ibuf_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8635 SWIGINTERN PyObject *_wrap_qfitsdumper_ibuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8636   PyObject *resultobj = 0;
8637   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8638   void *argp1 = 0 ;
8639   int res1 = 0 ;
8640   PyObject *swig_obj[1] ;
8641   int *result = 0 ;
8642 
8643   if (!args) SWIG_fail;
8644   swig_obj[0] = args;
8645   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8646   if (!SWIG_IsOK(res1)) {
8647     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_ibuf_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8648   }
8649   arg1 = (struct qfitsdumper *)(argp1);
8650   result = (int *) ((arg1)->ibuf);
8651   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
8652   return resultobj;
8653 fail:
8654   return NULL;
8655 }
8656 
8657 
_wrap_qfitsdumper_fbuf_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8658 SWIGINTERN PyObject *_wrap_qfitsdumper_fbuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8659   PyObject *resultobj = 0;
8660   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8661   float *arg2 = (float *) 0 ;
8662   void *argp1 = 0 ;
8663   int res1 = 0 ;
8664   void *argp2 = 0 ;
8665   int res2 = 0 ;
8666   PyObject *swig_obj[2] ;
8667 
8668   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_fbuf_set", 2, 2, swig_obj)) SWIG_fail;
8669   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8670   if (!SWIG_IsOK(res1)) {
8671     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_fbuf_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8672   }
8673   arg1 = (struct qfitsdumper *)(argp1);
8674   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN |  0 );
8675   if (!SWIG_IsOK(res2)) {
8676     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfitsdumper_fbuf_set" "', argument " "2"" of type '" "float const *""'");
8677   }
8678   arg2 = (float *)(argp2);
8679   if (arg1) (arg1)->fbuf = (float const *)arg2;
8680   resultobj = SWIG_Py_Void();
8681   return resultobj;
8682 fail:
8683   return NULL;
8684 }
8685 
8686 
_wrap_qfitsdumper_fbuf_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8687 SWIGINTERN PyObject *_wrap_qfitsdumper_fbuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8688   PyObject *resultobj = 0;
8689   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8690   void *argp1 = 0 ;
8691   int res1 = 0 ;
8692   PyObject *swig_obj[1] ;
8693   float *result = 0 ;
8694 
8695   if (!args) SWIG_fail;
8696   swig_obj[0] = args;
8697   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8698   if (!SWIG_IsOK(res1)) {
8699     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_fbuf_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8700   }
8701   arg1 = (struct qfitsdumper *)(argp1);
8702   result = (float *) ((arg1)->fbuf);
8703   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
8704   return resultobj;
8705 fail:
8706   return NULL;
8707 }
8708 
8709 
_wrap_qfitsdumper_dbuf_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8710 SWIGINTERN PyObject *_wrap_qfitsdumper_dbuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8711   PyObject *resultobj = 0;
8712   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8713   double *arg2 = (double *) 0 ;
8714   void *argp1 = 0 ;
8715   int res1 = 0 ;
8716   void *argp2 = 0 ;
8717   int res2 = 0 ;
8718   PyObject *swig_obj[2] ;
8719 
8720   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_dbuf_set", 2, 2, swig_obj)) SWIG_fail;
8721   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8722   if (!SWIG_IsOK(res1)) {
8723     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_dbuf_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8724   }
8725   arg1 = (struct qfitsdumper *)(argp1);
8726   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN |  0 );
8727   if (!SWIG_IsOK(res2)) {
8728     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfitsdumper_dbuf_set" "', argument " "2"" of type '" "double const *""'");
8729   }
8730   arg2 = (double *)(argp2);
8731   if (arg1) (arg1)->dbuf = (double const *)arg2;
8732   resultobj = SWIG_Py_Void();
8733   return resultobj;
8734 fail:
8735   return NULL;
8736 }
8737 
8738 
_wrap_qfitsdumper_dbuf_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8739 SWIGINTERN PyObject *_wrap_qfitsdumper_dbuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8740   PyObject *resultobj = 0;
8741   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8742   void *argp1 = 0 ;
8743   int res1 = 0 ;
8744   PyObject *swig_obj[1] ;
8745   double *result = 0 ;
8746 
8747   if (!args) SWIG_fail;
8748   swig_obj[0] = args;
8749   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8750   if (!SWIG_IsOK(res1)) {
8751     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_dbuf_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8752   }
8753   arg1 = (struct qfitsdumper *)(argp1);
8754   result = (double *) ((arg1)->dbuf);
8755   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
8756   return resultobj;
8757 fail:
8758   return NULL;
8759 }
8760 
8761 
_wrap_qfitsdumper_vbuf_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8762 SWIGINTERN PyObject *_wrap_qfitsdumper_vbuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8763   PyObject *resultobj = 0;
8764   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8765   void *arg2 = (void *) 0 ;
8766   void *argp1 = 0 ;
8767   int res1 = 0 ;
8768   int res2 ;
8769   PyObject *swig_obj[2] ;
8770 
8771   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_vbuf_set", 2, 2, swig_obj)) SWIG_fail;
8772   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8773   if (!SWIG_IsOK(res1)) {
8774     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_vbuf_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8775   }
8776   arg1 = (struct qfitsdumper *)(argp1);
8777   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
8778   if (!SWIG_IsOK(res2)) {
8779     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qfitsdumper_vbuf_set" "', argument " "2"" of type '" "void const *""'");
8780   }
8781   if (arg1) (arg1)->vbuf = (void const *)arg2;
8782   resultobj = SWIG_Py_Void();
8783   return resultobj;
8784 fail:
8785   return NULL;
8786 }
8787 
8788 
_wrap_qfitsdumper_vbuf_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8789 SWIGINTERN PyObject *_wrap_qfitsdumper_vbuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8790   PyObject *resultobj = 0;
8791   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8792   void *argp1 = 0 ;
8793   int res1 = 0 ;
8794   PyObject *swig_obj[1] ;
8795   void *result = 0 ;
8796 
8797   if (!args) SWIG_fail;
8798   swig_obj[0] = args;
8799   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8800   if (!SWIG_IsOK(res1)) {
8801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_vbuf_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8802   }
8803   arg1 = (struct qfitsdumper *)(argp1);
8804   result = (void *) ((arg1)->vbuf);
8805   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
8806   return resultobj;
8807 fail:
8808   return NULL;
8809 }
8810 
8811 
_wrap_qfitsdumper_out_ptype_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8812 SWIGINTERN PyObject *_wrap_qfitsdumper_out_ptype_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8813   PyObject *resultobj = 0;
8814   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8815   int arg2 ;
8816   void *argp1 = 0 ;
8817   int res1 = 0 ;
8818   int val2 ;
8819   int ecode2 = 0 ;
8820   PyObject *swig_obj[2] ;
8821 
8822   if (!SWIG_Python_UnpackTuple(args, "qfitsdumper_out_ptype_set", 2, 2, swig_obj)) SWIG_fail;
8823   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8824   if (!SWIG_IsOK(res1)) {
8825     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_out_ptype_set" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8826   }
8827   arg1 = (struct qfitsdumper *)(argp1);
8828   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
8829   if (!SWIG_IsOK(ecode2)) {
8830     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qfitsdumper_out_ptype_set" "', argument " "2"" of type '" "int""'");
8831   }
8832   arg2 = (int)(val2);
8833   if (arg1) (arg1)->out_ptype = arg2;
8834   resultobj = SWIG_Py_Void();
8835   return resultobj;
8836 fail:
8837   return NULL;
8838 }
8839 
8840 
_wrap_qfitsdumper_out_ptype_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8841 SWIGINTERN PyObject *_wrap_qfitsdumper_out_ptype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8842   PyObject *resultobj = 0;
8843   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8844   void *argp1 = 0 ;
8845   int res1 = 0 ;
8846   PyObject *swig_obj[1] ;
8847   int result;
8848 
8849   if (!args) SWIG_fail;
8850   swig_obj[0] = args;
8851   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8852   if (!SWIG_IsOK(res1)) {
8853     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfitsdumper_out_ptype_get" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8854   }
8855   arg1 = (struct qfitsdumper *)(argp1);
8856   result = (int) ((arg1)->out_ptype);
8857   resultobj = SWIG_From_int((int)(result));
8858   return resultobj;
8859 fail:
8860   return NULL;
8861 }
8862 
8863 
_wrap_new_qfitsdumper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8864 SWIGINTERN PyObject *_wrap_new_qfitsdumper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8865   PyObject *resultobj = 0;
8866   struct qfitsdumper *result = 0 ;
8867 
8868   if (!SWIG_Python_UnpackTuple(args, "new_qfitsdumper", 0, 0, 0)) SWIG_fail;
8869   result = (struct qfitsdumper *)calloc(1, sizeof(struct qfitsdumper));
8870   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qfitsdumper, SWIG_POINTER_NEW |  0 );
8871   return resultobj;
8872 fail:
8873   return NULL;
8874 }
8875 
8876 
_wrap_delete_qfitsdumper(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8877 SWIGINTERN PyObject *_wrap_delete_qfitsdumper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8878   PyObject *resultobj = 0;
8879   struct qfitsdumper *arg1 = (struct qfitsdumper *) 0 ;
8880   void *argp1 = 0 ;
8881   int res1 = 0 ;
8882   PyObject *swig_obj[1] ;
8883 
8884   if (!args) SWIG_fail;
8885   swig_obj[0] = args;
8886   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, SWIG_POINTER_DISOWN |  0 );
8887   if (!SWIG_IsOK(res1)) {
8888     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_qfitsdumper" "', argument " "1"" of type '" "struct qfitsdumper *""'");
8889   }
8890   arg1 = (struct qfitsdumper *)(argp1);
8891   free((char *) arg1);
8892   resultobj = SWIG_Py_Void();
8893   return resultobj;
8894 fail:
8895   return NULL;
8896 }
8897 
8898 
qfitsdumper_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8899 SWIGINTERN PyObject *qfitsdumper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8900   PyObject *obj;
8901   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
8902   SWIG_TypeNewClientData(SWIGTYPE_p_qfitsdumper, SWIG_NewClientData(obj));
8903   return SWIG_Py_Void();
8904 }
8905 
qfitsdumper_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8906 SWIGINTERN PyObject *qfitsdumper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8907   return SWIG_Python_InitShadowInstance(args);
8908 }
8909 
_wrap_qfits_pixdump(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8910 SWIGINTERN PyObject *_wrap_qfits_pixdump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8911   PyObject *resultobj = 0;
8912   qfitsdumper *arg1 = (qfitsdumper *) 0 ;
8913   void *argp1 = 0 ;
8914   int res1 = 0 ;
8915   PyObject *swig_obj[1] ;
8916   int result;
8917 
8918   if (!args) SWIG_fail;
8919   swig_obj[0] = args;
8920   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_qfitsdumper, 0 |  0 );
8921   if (!SWIG_IsOK(res1)) {
8922     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qfits_pixdump" "', argument " "1"" of type '" "qfitsdumper const *""'");
8923   }
8924   arg1 = (qfitsdumper *)(argp1);
8925   result = (int)qfits_pixdump((struct qfitsdumper const *)arg1);
8926   resultobj = SWIG_From_int((int)(result));
8927   return resultobj;
8928 fail:
8929   return NULL;
8930 }
8931 
8932 
_wrap_convolve_get_gaussian_kernel_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8933 SWIGINTERN PyObject *_wrap_convolve_get_gaussian_kernel_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8934   PyObject *resultobj = 0;
8935   double arg1 ;
8936   double arg2 ;
8937   int *arg3 = (int *) 0 ;
8938   int *arg4 = (int *) 0 ;
8939   double val1 ;
8940   int ecode1 = 0 ;
8941   double val2 ;
8942   int ecode2 = 0 ;
8943   void *argp3 = 0 ;
8944   int res3 = 0 ;
8945   void *argp4 = 0 ;
8946   int res4 = 0 ;
8947   PyObject *swig_obj[4] ;
8948   float *result = 0 ;
8949 
8950   if (!SWIG_Python_UnpackTuple(args, "convolve_get_gaussian_kernel_f", 4, 4, swig_obj)) SWIG_fail;
8951   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
8952   if (!SWIG_IsOK(ecode1)) {
8953     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "convolve_get_gaussian_kernel_f" "', argument " "1"" of type '" "double""'");
8954   }
8955   arg1 = (double)(val1);
8956   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
8957   if (!SWIG_IsOK(ecode2)) {
8958     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "convolve_get_gaussian_kernel_f" "', argument " "2"" of type '" "double""'");
8959   }
8960   arg2 = (double)(val2);
8961   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
8962   if (!SWIG_IsOK(res3)) {
8963     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "convolve_get_gaussian_kernel_f" "', argument " "3"" of type '" "int *""'");
8964   }
8965   arg3 = (int *)(argp3);
8966   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_int, 0 |  0 );
8967   if (!SWIG_IsOK(res4)) {
8968     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "convolve_get_gaussian_kernel_f" "', argument " "4"" of type '" "int *""'");
8969   }
8970   arg4 = (int *)(argp4);
8971   result = (float *)convolve_get_gaussian_kernel_f(arg1,arg2,arg3,arg4);
8972   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
8973   return resultobj;
8974 fail:
8975   return NULL;
8976 }
8977 
8978 
_wrap_convolve_separable_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)8979 SWIGINTERN PyObject *_wrap_convolve_separable_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8980   PyObject *resultobj = 0;
8981   float *arg1 = (float *) 0 ;
8982   int arg2 ;
8983   int arg3 ;
8984   float *arg4 = (float *) 0 ;
8985   int arg5 ;
8986   int arg6 ;
8987   float *arg7 = (float *) 0 ;
8988   float *arg8 = (float *) 0 ;
8989   void *argp1 = 0 ;
8990   int res1 = 0 ;
8991   int val2 ;
8992   int ecode2 = 0 ;
8993   int val3 ;
8994   int ecode3 = 0 ;
8995   void *argp4 = 0 ;
8996   int res4 = 0 ;
8997   int val5 ;
8998   int ecode5 = 0 ;
8999   int val6 ;
9000   int ecode6 = 0 ;
9001   void *argp7 = 0 ;
9002   int res7 = 0 ;
9003   void *argp8 = 0 ;
9004   int res8 = 0 ;
9005   PyObject *swig_obj[8] ;
9006   float *result = 0 ;
9007 
9008   if (!SWIG_Python_UnpackTuple(args, "convolve_separable_f", 8, 8, swig_obj)) SWIG_fail;
9009   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
9010   if (!SWIG_IsOK(res1)) {
9011     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "convolve_separable_f" "', argument " "1"" of type '" "float const *""'");
9012   }
9013   arg1 = (float *)(argp1);
9014   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9015   if (!SWIG_IsOK(ecode2)) {
9016     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "convolve_separable_f" "', argument " "2"" of type '" "int""'");
9017   }
9018   arg2 = (int)(val2);
9019   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9020   if (!SWIG_IsOK(ecode3)) {
9021     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "convolve_separable_f" "', argument " "3"" of type '" "int""'");
9022   }
9023   arg3 = (int)(val3);
9024   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
9025   if (!SWIG_IsOK(res4)) {
9026     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "convolve_separable_f" "', argument " "4"" of type '" "float const *""'");
9027   }
9028   arg4 = (float *)(argp4);
9029   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
9030   if (!SWIG_IsOK(ecode5)) {
9031     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "convolve_separable_f" "', argument " "5"" of type '" "int""'");
9032   }
9033   arg5 = (int)(val5);
9034   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
9035   if (!SWIG_IsOK(ecode6)) {
9036     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "convolve_separable_f" "', argument " "6"" of type '" "int""'");
9037   }
9038   arg6 = (int)(val6);
9039   res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_float, 0 |  0 );
9040   if (!SWIG_IsOK(res7)) {
9041     SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "convolve_separable_f" "', argument " "7"" of type '" "float *""'");
9042   }
9043   arg7 = (float *)(argp7);
9044   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_float, 0 |  0 );
9045   if (!SWIG_IsOK(res8)) {
9046     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "convolve_separable_f" "', argument " "8"" of type '" "float *""'");
9047   }
9048   arg8 = (float *)(argp8);
9049   result = (float *)convolve_separable_f((float const *)arg1,arg2,arg3,(float const *)arg4,arg5,arg6,arg7,arg8);
9050   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
9051   return resultobj;
9052 fail:
9053   return NULL;
9054 }
9055 
9056 
_wrap_convolve_separable_weighted_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9057 SWIGINTERN PyObject *_wrap_convolve_separable_weighted_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9058   PyObject *resultobj = 0;
9059   float *arg1 = (float *) 0 ;
9060   int arg2 ;
9061   int arg3 ;
9062   float *arg4 = (float *) 0 ;
9063   float *arg5 = (float *) 0 ;
9064   int arg6 ;
9065   int arg7 ;
9066   float *arg8 = (float *) 0 ;
9067   float *arg9 = (float *) 0 ;
9068   void *argp1 = 0 ;
9069   int res1 = 0 ;
9070   int val2 ;
9071   int ecode2 = 0 ;
9072   int val3 ;
9073   int ecode3 = 0 ;
9074   void *argp4 = 0 ;
9075   int res4 = 0 ;
9076   void *argp5 = 0 ;
9077   int res5 = 0 ;
9078   int val6 ;
9079   int ecode6 = 0 ;
9080   int val7 ;
9081   int ecode7 = 0 ;
9082   void *argp8 = 0 ;
9083   int res8 = 0 ;
9084   void *argp9 = 0 ;
9085   int res9 = 0 ;
9086   PyObject *swig_obj[9] ;
9087   float *result = 0 ;
9088 
9089   if (!SWIG_Python_UnpackTuple(args, "convolve_separable_weighted_f", 9, 9, swig_obj)) SWIG_fail;
9090   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
9091   if (!SWIG_IsOK(res1)) {
9092     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "convolve_separable_weighted_f" "', argument " "1"" of type '" "float const *""'");
9093   }
9094   arg1 = (float *)(argp1);
9095   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9096   if (!SWIG_IsOK(ecode2)) {
9097     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "convolve_separable_weighted_f" "', argument " "2"" of type '" "int""'");
9098   }
9099   arg2 = (int)(val2);
9100   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9101   if (!SWIG_IsOK(ecode3)) {
9102     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "convolve_separable_weighted_f" "', argument " "3"" of type '" "int""'");
9103   }
9104   arg3 = (int)(val3);
9105   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
9106   if (!SWIG_IsOK(res4)) {
9107     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "convolve_separable_weighted_f" "', argument " "4"" of type '" "float const *""'");
9108   }
9109   arg4 = (float *)(argp4);
9110   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_float, 0 |  0 );
9111   if (!SWIG_IsOK(res5)) {
9112     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "convolve_separable_weighted_f" "', argument " "5"" of type '" "float const *""'");
9113   }
9114   arg5 = (float *)(argp5);
9115   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
9116   if (!SWIG_IsOK(ecode6)) {
9117     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "convolve_separable_weighted_f" "', argument " "6"" of type '" "int""'");
9118   }
9119   arg6 = (int)(val6);
9120   ecode7 = SWIG_AsVal_int(swig_obj[6], &val7);
9121   if (!SWIG_IsOK(ecode7)) {
9122     SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "convolve_separable_weighted_f" "', argument " "7"" of type '" "int""'");
9123   }
9124   arg7 = (int)(val7);
9125   res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_float, 0 |  0 );
9126   if (!SWIG_IsOK(res8)) {
9127     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "convolve_separable_weighted_f" "', argument " "8"" of type '" "float *""'");
9128   }
9129   arg8 = (float *)(argp8);
9130   res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_float, 0 |  0 );
9131   if (!SWIG_IsOK(res9)) {
9132     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "convolve_separable_weighted_f" "', argument " "9"" of type '" "float *""'");
9133   }
9134   arg9 = (float *)(argp9);
9135   result = (float *)convolve_separable_weighted_f((float const *)arg1,arg2,arg3,(float const *)arg4,(float const *)arg5,arg6,arg7,arg8,arg9);
9136   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
9137   return resultobj;
9138 fail:
9139   return NULL;
9140 }
9141 
9142 
_wrap_c_image_numpy_view(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9143 SWIGINTERN PyObject *_wrap_c_image_numpy_view(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144   PyObject *resultobj = 0;
9145   float *arg1 = (float *) 0 ;
9146   int arg2 ;
9147   int arg3 ;
9148   void *argp1 = 0 ;
9149   int res1 = 0 ;
9150   int val2 ;
9151   int ecode2 = 0 ;
9152   int val3 ;
9153   int ecode3 = 0 ;
9154   PyObject *swig_obj[3] ;
9155   PyObject *result = 0 ;
9156 
9157   if (!SWIG_Python_UnpackTuple(args, "c_image_numpy_view", 3, 3, swig_obj)) SWIG_fail;
9158   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
9159   if (!SWIG_IsOK(res1)) {
9160     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "c_image_numpy_view" "', argument " "1"" of type '" "float *""'");
9161   }
9162   arg1 = (float *)(argp1);
9163   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9164   if (!SWIG_IsOK(ecode2)) {
9165     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "c_image_numpy_view" "', argument " "2"" of type '" "int""'");
9166   }
9167   arg2 = (int)(val2);
9168   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9169   if (!SWIG_IsOK(ecode3)) {
9170     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "c_image_numpy_view" "', argument " "3"" of type '" "int""'");
9171   }
9172   arg3 = (int)(val3);
9173   result = (PyObject *)c_image_numpy_view(arg1,arg2,arg3);
9174   resultobj = result;
9175   return resultobj;
9176 fail:
9177   return NULL;
9178 }
9179 
9180 
_wrap_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9181 SWIGINTERN PyObject *_wrap_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9182   PyObject *resultobj = 0;
9183   void *arg1 = (void *) 0 ;
9184   int res1 ;
9185   PyObject *swig_obj[1] ;
9186 
9187   if (!args) SWIG_fail;
9188   swig_obj[0] = args;
9189   res1 = SWIG_ConvertPtr(swig_obj[0],SWIG_as_voidptrptr(&arg1), 0, 0);
9190   if (!SWIG_IsOK(res1)) {
9191     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free" "', argument " "1"" of type '" "void *""'");
9192   }
9193   free(arg1);
9194   resultobj = SWIG_Py_Void();
9195   return resultobj;
9196 fail:
9197   return NULL;
9198 }
9199 
9200 
_wrap_point_in_polygon(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9201 SWIGINTERN PyObject *_wrap_point_in_polygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9202   PyObject *resultobj = 0;
9203   double arg1 ;
9204   double arg2 ;
9205   dl *arg3 = (dl *) 0 ;
9206   double val1 ;
9207   int ecode1 = 0 ;
9208   double val2 ;
9209   int ecode2 = 0 ;
9210   void *argp3 = 0 ;
9211   int res3 = 0 ;
9212   PyObject *swig_obj[3] ;
9213   int result;
9214 
9215   if (!SWIG_Python_UnpackTuple(args, "point_in_polygon", 3, 3, swig_obj)) SWIG_fail;
9216   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
9217   if (!SWIG_IsOK(ecode1)) {
9218     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "point_in_polygon" "', argument " "1"" of type '" "double""'");
9219   }
9220   arg1 = (double)(val1);
9221   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9222   if (!SWIG_IsOK(ecode2)) {
9223     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "point_in_polygon" "', argument " "2"" of type '" "double""'");
9224   }
9225   arg2 = (double)(val2);
9226   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_dl, 0 |  0 );
9227   if (!SWIG_IsOK(res3)) {
9228     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "point_in_polygon" "', argument " "3"" of type '" "dl const *""'");
9229   }
9230   arg3 = (dl *)(argp3);
9231   result = (int)point_in_polygon(arg1,arg2,(dl const *)arg3);
9232   resultobj = SWIG_From_int((int)(result));
9233   return resultobj;
9234 fail:
9235   return NULL;
9236 }
9237 
9238 
_wrap_tan_vectors(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9239 SWIGINTERN PyObject *_wrap_tan_vectors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240   PyObject *resultobj = 0;
9241   double *arg1 = (double *) 0 ;
9242   double *arg2 = (double *) 0 ;
9243   double *arg3 = (double *) 0 ;
9244   void *argp1 = 0 ;
9245   int res1 = 0 ;
9246   void *argp2 = 0 ;
9247   int res2 = 0 ;
9248   void *argp3 = 0 ;
9249   int res3 = 0 ;
9250   PyObject *swig_obj[3] ;
9251 
9252   if (!SWIG_Python_UnpackTuple(args, "tan_vectors", 3, 3, swig_obj)) SWIG_fail;
9253   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9254   if (!SWIG_IsOK(res1)) {
9255     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tan_vectors" "', argument " "1"" of type '" "double const *""'");
9256   }
9257   arg1 = (double *)(argp1);
9258   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9259   if (!SWIG_IsOK(res2)) {
9260     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tan_vectors" "', argument " "2"" of type '" "double *""'");
9261   }
9262   arg2 = (double *)(argp2);
9263   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
9264   if (!SWIG_IsOK(res3)) {
9265     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "tan_vectors" "', argument " "3"" of type '" "double *""'");
9266   }
9267   arg3 = (double *)(argp3);
9268   tan_vectors((double const *)arg1,arg2,arg3);
9269   resultobj = SWIG_Py_Void();
9270   return resultobj;
9271 fail:
9272   return NULL;
9273 }
9274 
9275 
_wrap_invert_2by2(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9276 SWIGINTERN PyObject *_wrap_invert_2by2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9277   PyObject *resultobj = 0;
9278   double (*arg1)[2] ;
9279   double (*arg2)[2] ;
9280   void *argp1 = 0 ;
9281   int res1 = 0 ;
9282   void *argp2 = 0 ;
9283   int res2 = 0 ;
9284   PyObject *swig_obj[2] ;
9285   int result;
9286 
9287   if (!SWIG_Python_UnpackTuple(args, "invert_2by2", 2, 2, swig_obj)) SWIG_fail;
9288   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_a_2__double, 0 |  0 );
9289   if (!SWIG_IsOK(res1)) {
9290     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "invert_2by2" "', argument " "1"" of type '" "double const [2][2]""'");
9291   }
9292   arg1 = (double (*)[2])(argp1);
9293   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_a_2__double, 0 |  0 );
9294   if (!SWIG_IsOK(res2)) {
9295     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "invert_2by2" "', argument " "2"" of type '" "double [2][2]""'");
9296   }
9297   arg2 = (double (*)[2])(argp2);
9298   result = (int)invert_2by2((double const (*)[2])arg1,(double (*)[2])arg2);
9299   resultobj = SWIG_From_int((int)(result));
9300   return resultobj;
9301 fail:
9302   return NULL;
9303 }
9304 
9305 
_wrap_invert_2by2_arr(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9306 SWIGINTERN PyObject *_wrap_invert_2by2_arr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9307   PyObject *resultobj = 0;
9308   double *arg1 = (double *) 0 ;
9309   double *arg2 = (double *) 0 ;
9310   void *argp1 = 0 ;
9311   int res1 = 0 ;
9312   void *argp2 = 0 ;
9313   int res2 = 0 ;
9314   PyObject *swig_obj[2] ;
9315   int result;
9316 
9317   if (!SWIG_Python_UnpackTuple(args, "invert_2by2_arr", 2, 2, swig_obj)) SWIG_fail;
9318   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9319   if (!SWIG_IsOK(res1)) {
9320     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "invert_2by2_arr" "', argument " "1"" of type '" "double const *""'");
9321   }
9322   arg1 = (double *)(argp1);
9323   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9324   if (!SWIG_IsOK(res2)) {
9325     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "invert_2by2_arr" "', argument " "2"" of type '" "double *""'");
9326   }
9327   arg2 = (double *)(argp2);
9328   result = (int)invert_2by2_arr((double const *)arg1,arg2);
9329   resultobj = SWIG_From_int((int)(result));
9330   return resultobj;
9331 fail:
9332   return NULL;
9333 }
9334 
9335 
_wrap_is_power_of_two(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9336 SWIGINTERN PyObject *_wrap_is_power_of_two(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9337   PyObject *resultobj = 0;
9338   unsigned int arg1 ;
9339   unsigned int val1 ;
9340   int ecode1 = 0 ;
9341   PyObject *swig_obj[1] ;
9342   int result;
9343 
9344   if (!args) SWIG_fail;
9345   swig_obj[0] = args;
9346   ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
9347   if (!SWIG_IsOK(ecode1)) {
9348     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "is_power_of_two" "', argument " "1"" of type '" "unsigned int""'");
9349   }
9350   arg1 = (unsigned int)(val1);
9351   result = (int)is_power_of_two(arg1);
9352   resultobj = SWIG_From_int((int)(result));
9353   return resultobj;
9354 fail:
9355   return NULL;
9356 }
9357 
9358 
_wrap_matrix_matrix_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9359 SWIGINTERN PyObject *_wrap_matrix_matrix_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9360   PyObject *resultobj = 0;
9361   double *arg1 = (double *) 0 ;
9362   double *arg2 = (double *) 0 ;
9363   double *arg3 = (double *) 0 ;
9364   void *argp1 = 0 ;
9365   int res1 = 0 ;
9366   void *argp2 = 0 ;
9367   int res2 = 0 ;
9368   void *argp3 = 0 ;
9369   int res3 = 0 ;
9370   PyObject *swig_obj[3] ;
9371 
9372   if (!SWIG_Python_UnpackTuple(args, "matrix_matrix_3", 3, 3, swig_obj)) SWIG_fail;
9373   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9374   if (!SWIG_IsOK(res1)) {
9375     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "matrix_matrix_3" "', argument " "1"" of type '" "double *""'");
9376   }
9377   arg1 = (double *)(argp1);
9378   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9379   if (!SWIG_IsOK(res2)) {
9380     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "matrix_matrix_3" "', argument " "2"" of type '" "double *""'");
9381   }
9382   arg2 = (double *)(argp2);
9383   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
9384   if (!SWIG_IsOK(res3)) {
9385     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "matrix_matrix_3" "', argument " "3"" of type '" "double *""'");
9386   }
9387   arg3 = (double *)(argp3);
9388   matrix_matrix_3(arg1,arg2,arg3);
9389   resultobj = SWIG_Py_Void();
9390   return resultobj;
9391 fail:
9392   return NULL;
9393 }
9394 
9395 
_wrap_matrix_vector_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9396 SWIGINTERN PyObject *_wrap_matrix_vector_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9397   PyObject *resultobj = 0;
9398   double *arg1 = (double *) 0 ;
9399   double *arg2 = (double *) 0 ;
9400   double *arg3 = (double *) 0 ;
9401   void *argp1 = 0 ;
9402   int res1 = 0 ;
9403   void *argp2 = 0 ;
9404   int res2 = 0 ;
9405   void *argp3 = 0 ;
9406   int res3 = 0 ;
9407   PyObject *swig_obj[3] ;
9408 
9409   if (!SWIG_Python_UnpackTuple(args, "matrix_vector_3", 3, 3, swig_obj)) SWIG_fail;
9410   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9411   if (!SWIG_IsOK(res1)) {
9412     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "matrix_vector_3" "', argument " "1"" of type '" "double *""'");
9413   }
9414   arg1 = (double *)(argp1);
9415   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9416   if (!SWIG_IsOK(res2)) {
9417     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "matrix_vector_3" "', argument " "2"" of type '" "double *""'");
9418   }
9419   arg2 = (double *)(argp2);
9420   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
9421   if (!SWIG_IsOK(res3)) {
9422     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "matrix_vector_3" "', argument " "3"" of type '" "double *""'");
9423   }
9424   arg3 = (double *)(argp3);
9425   matrix_vector_3(arg1,arg2,arg3);
9426   resultobj = SWIG_Py_Void();
9427   return resultobj;
9428 fail:
9429   return NULL;
9430 }
9431 
9432 
_wrap_dot_product_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9433 SWIGINTERN PyObject *_wrap_dot_product_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9434   PyObject *resultobj = 0;
9435   double *arg1 = (double *) 0 ;
9436   double *arg2 = (double *) 0 ;
9437   void *argp1 = 0 ;
9438   int res1 = 0 ;
9439   void *argp2 = 0 ;
9440   int res2 = 0 ;
9441   PyObject *swig_obj[2] ;
9442   double result;
9443 
9444   if (!SWIG_Python_UnpackTuple(args, "dot_product_3", 2, 2, swig_obj)) SWIG_fail;
9445   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9446   if (!SWIG_IsOK(res1)) {
9447     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dot_product_3" "', argument " "1"" of type '" "double *""'");
9448   }
9449   arg1 = (double *)(argp1);
9450   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9451   if (!SWIG_IsOK(res2)) {
9452     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dot_product_3" "', argument " "2"" of type '" "double *""'");
9453   }
9454   arg2 = (double *)(argp2);
9455   result = (double)dot_product_3(arg1,arg2);
9456   resultobj = SWIG_From_double((double)(result));
9457   return resultobj;
9458 fail:
9459   return NULL;
9460 }
9461 
9462 
_wrap_vector_length_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9463 SWIGINTERN PyObject *_wrap_vector_length_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9464   PyObject *resultobj = 0;
9465   double *arg1 = (double *) 0 ;
9466   void *argp1 = 0 ;
9467   int res1 = 0 ;
9468   PyObject *swig_obj[1] ;
9469   double result;
9470 
9471   if (!args) SWIG_fail;
9472   swig_obj[0] = args;
9473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9474   if (!SWIG_IsOK(res1)) {
9475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_length_3" "', argument " "1"" of type '" "double *""'");
9476   }
9477   arg1 = (double *)(argp1);
9478   result = (double)vector_length_3(arg1);
9479   resultobj = SWIG_From_double((double)(result));
9480   return resultobj;
9481 fail:
9482   return NULL;
9483 }
9484 
9485 
_wrap_vector_length_squared_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9486 SWIGINTERN PyObject *_wrap_vector_length_squared_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9487   PyObject *resultobj = 0;
9488   double *arg1 = (double *) 0 ;
9489   void *argp1 = 0 ;
9490   int res1 = 0 ;
9491   PyObject *swig_obj[1] ;
9492   double result;
9493 
9494   if (!args) SWIG_fail;
9495   swig_obj[0] = args;
9496   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9497   if (!SWIG_IsOK(res1)) {
9498     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_length_squared_3" "', argument " "1"" of type '" "double *""'");
9499   }
9500   arg1 = (double *)(argp1);
9501   result = (double)vector_length_squared_3(arg1);
9502   resultobj = SWIG_From_double((double)(result));
9503   return resultobj;
9504 fail:
9505   return NULL;
9506 }
9507 
9508 
_wrap_inverse_3by3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9509 SWIGINTERN PyObject *_wrap_inverse_3by3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9510   PyObject *resultobj = 0;
9511   double *arg1 = (double *) 0 ;
9512   void *argp1 = 0 ;
9513   int res1 = 0 ;
9514   PyObject *swig_obj[1] ;
9515   double result;
9516 
9517   if (!args) SWIG_fail;
9518   swig_obj[0] = args;
9519   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9520   if (!SWIG_IsOK(res1)) {
9521     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inverse_3by3" "', argument " "1"" of type '" "double *""'");
9522   }
9523   arg1 = (double *)(argp1);
9524   result = (double)inverse_3by3(arg1);
9525   resultobj = SWIG_From_double((double)(result));
9526   return resultobj;
9527 fail:
9528   return NULL;
9529 }
9530 
9531 
_wrap_image_to_xyz(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9532 SWIGINTERN PyObject *_wrap_image_to_xyz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9533   PyObject *resultobj = 0;
9534   double arg1 ;
9535   double arg2 ;
9536   double *arg3 = (double *) 0 ;
9537   double *arg4 = (double *) 0 ;
9538   double val1 ;
9539   int ecode1 = 0 ;
9540   double val2 ;
9541   int ecode2 = 0 ;
9542   void *argp3 = 0 ;
9543   int res3 = 0 ;
9544   void *argp4 = 0 ;
9545   int res4 = 0 ;
9546   PyObject *swig_obj[4] ;
9547 
9548   if (!SWIG_Python_UnpackTuple(args, "image_to_xyz", 4, 4, swig_obj)) SWIG_fail;
9549   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
9550   if (!SWIG_IsOK(ecode1)) {
9551     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "image_to_xyz" "', argument " "1"" of type '" "double""'");
9552   }
9553   arg1 = (double)(val1);
9554   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9555   if (!SWIG_IsOK(ecode2)) {
9556     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "image_to_xyz" "', argument " "2"" of type '" "double""'");
9557   }
9558   arg2 = (double)(val2);
9559   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
9560   if (!SWIG_IsOK(res3)) {
9561     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "image_to_xyz" "', argument " "3"" of type '" "double *""'");
9562   }
9563   arg3 = (double *)(argp3);
9564   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
9565   if (!SWIG_IsOK(res4)) {
9566     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "image_to_xyz" "', argument " "4"" of type '" "double *""'");
9567   }
9568   arg4 = (double *)(argp4);
9569   image_to_xyz(arg1,arg2,arg3,arg4);
9570   resultobj = SWIG_Py_Void();
9571   return resultobj;
9572 fail:
9573   return NULL;
9574 }
9575 
9576 
_wrap_fit_transform(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9577 SWIGINTERN PyObject *_wrap_fit_transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9578   PyObject *resultobj = 0;
9579   double *arg1 = (double *) 0 ;
9580   double *arg2 = (double *) 0 ;
9581   int arg3 ;
9582   double *arg4 = (double *) 0 ;
9583   void *argp1 = 0 ;
9584   int res1 = 0 ;
9585   void *argp2 = 0 ;
9586   int res2 = 0 ;
9587   int val3 ;
9588   int ecode3 = 0 ;
9589   void *argp4 = 0 ;
9590   int res4 = 0 ;
9591   PyObject *swig_obj[4] ;
9592 
9593   if (!SWIG_Python_UnpackTuple(args, "fit_transform", 4, 4, swig_obj)) SWIG_fail;
9594   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
9595   if (!SWIG_IsOK(res1)) {
9596     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fit_transform" "', argument " "1"" of type '" "double *""'");
9597   }
9598   arg1 = (double *)(argp1);
9599   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
9600   if (!SWIG_IsOK(res2)) {
9601     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fit_transform" "', argument " "2"" of type '" "double *""'");
9602   }
9603   arg2 = (double *)(argp2);
9604   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9605   if (!SWIG_IsOK(ecode3)) {
9606     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fit_transform" "', argument " "3"" of type '" "int""'");
9607   }
9608   arg3 = (int)(val3);
9609   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_double, 0 |  0 );
9610   if (!SWIG_IsOK(res4)) {
9611     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "fit_transform" "', argument " "4"" of type '" "double *""'");
9612   }
9613   arg4 = (double *)(argp4);
9614   fit_transform(arg1,arg2,arg3,arg4);
9615   resultobj = SWIG_Py_Void();
9616   return resultobj;
9617 fail:
9618   return NULL;
9619 }
9620 
9621 
_wrap_uniform_sample(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9622 SWIGINTERN PyObject *_wrap_uniform_sample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9623   PyObject *resultobj = 0;
9624   double arg1 ;
9625   double arg2 ;
9626   double val1 ;
9627   int ecode1 = 0 ;
9628   double val2 ;
9629   int ecode2 = 0 ;
9630   PyObject *swig_obj[2] ;
9631   double result;
9632 
9633   if (!SWIG_Python_UnpackTuple(args, "uniform_sample", 2, 2, swig_obj)) SWIG_fail;
9634   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
9635   if (!SWIG_IsOK(ecode1)) {
9636     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "uniform_sample" "', argument " "1"" of type '" "double""'");
9637   }
9638   arg1 = (double)(val1);
9639   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9640   if (!SWIG_IsOK(ecode2)) {
9641     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "uniform_sample" "', argument " "2"" of type '" "double""'");
9642   }
9643   arg2 = (double)(val2);
9644   result = (double)uniform_sample(arg1,arg2);
9645   resultobj = SWIG_From_double((double)(result));
9646   return resultobj;
9647 fail:
9648   return NULL;
9649 }
9650 
9651 
_wrap_gaussian_sample(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9652 SWIGINTERN PyObject *_wrap_gaussian_sample(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9653   PyObject *resultobj = 0;
9654   double arg1 ;
9655   double arg2 ;
9656   double val1 ;
9657   int ecode1 = 0 ;
9658   double val2 ;
9659   int ecode2 = 0 ;
9660   PyObject *swig_obj[2] ;
9661   double result;
9662 
9663   if (!SWIG_Python_UnpackTuple(args, "gaussian_sample", 2, 2, swig_obj)) SWIG_fail;
9664   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
9665   if (!SWIG_IsOK(ecode1)) {
9666     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gaussian_sample" "', argument " "1"" of type '" "double""'");
9667   }
9668   arg1 = (double)(val1);
9669   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
9670   if (!SWIG_IsOK(ecode2)) {
9671     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gaussian_sample" "', argument " "2"" of type '" "double""'");
9672   }
9673   arg2 = (double)(val2);
9674   result = (double)gaussian_sample(arg1,arg2);
9675   resultobj = SWIG_From_double((double)(result));
9676   return resultobj;
9677 fail:
9678   return NULL;
9679 }
9680 
9681 
_wrap_get_output_image_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9682 SWIGINTERN PyObject *_wrap_get_output_image_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683   PyObject *resultobj = 0;
9684   int arg1 ;
9685   int arg2 ;
9686   int arg3 ;
9687   int arg4 ;
9688   int *arg5 = (int *) 0 ;
9689   int *arg6 = (int *) 0 ;
9690   int val1 ;
9691   int ecode1 = 0 ;
9692   int val2 ;
9693   int ecode2 = 0 ;
9694   int val3 ;
9695   int ecode3 = 0 ;
9696   int val4 ;
9697   int ecode4 = 0 ;
9698   void *argp5 = 0 ;
9699   int res5 = 0 ;
9700   void *argp6 = 0 ;
9701   int res6 = 0 ;
9702   PyObject *swig_obj[6] ;
9703   int result;
9704 
9705   if (!SWIG_Python_UnpackTuple(args, "get_output_image_size", 6, 6, swig_obj)) SWIG_fail;
9706   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
9707   if (!SWIG_IsOK(ecode1)) {
9708     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "get_output_image_size" "', argument " "1"" of type '" "int""'");
9709   }
9710   arg1 = (int)(val1);
9711   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9712   if (!SWIG_IsOK(ecode2)) {
9713     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_output_image_size" "', argument " "2"" of type '" "int""'");
9714   }
9715   arg2 = (int)(val2);
9716   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9717   if (!SWIG_IsOK(ecode3)) {
9718     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "get_output_image_size" "', argument " "3"" of type '" "int""'");
9719   }
9720   arg3 = (int)(val3);
9721   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
9722   if (!SWIG_IsOK(ecode4)) {
9723     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "get_output_image_size" "', argument " "4"" of type '" "int""'");
9724   }
9725   arg4 = (int)(val4);
9726   res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_int, 0 |  0 );
9727   if (!SWIG_IsOK(res5)) {
9728     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "get_output_image_size" "', argument " "5"" of type '" "int *""'");
9729   }
9730   arg5 = (int *)(argp5);
9731   res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_int, 0 |  0 );
9732   if (!SWIG_IsOK(res6)) {
9733     SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "get_output_image_size" "', argument " "6"" of type '" "int *""'");
9734   }
9735   arg6 = (int *)(argp6);
9736   result = (int)get_output_image_size(arg1,arg2,arg3,arg4,arg5,arg6);
9737   resultobj = SWIG_From_int((int)(result));
9738   return resultobj;
9739 fail:
9740   return NULL;
9741 }
9742 
9743 
_wrap_average_image_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9744 SWIGINTERN PyObject *_wrap_average_image_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9745   PyObject *resultobj = 0;
9746   float *arg1 = (float *) 0 ;
9747   int arg2 ;
9748   int arg3 ;
9749   int arg4 ;
9750   int arg5 ;
9751   int *arg6 = (int *) 0 ;
9752   int *arg7 = (int *) 0 ;
9753   float *arg8 = (float *) 0 ;
9754   void *argp1 = 0 ;
9755   int res1 = 0 ;
9756   int val2 ;
9757   int ecode2 = 0 ;
9758   int val3 ;
9759   int ecode3 = 0 ;
9760   int val4 ;
9761   int ecode4 = 0 ;
9762   int val5 ;
9763   int ecode5 = 0 ;
9764   int temp6 ;
9765   int res6 = SWIG_TMPOBJ ;
9766   int temp7 ;
9767   int res7 = SWIG_TMPOBJ ;
9768   void *argp8 = 0 ;
9769   int res8 = 0 ;
9770   PyObject *swig_obj[6] ;
9771   float *result = 0 ;
9772 
9773   arg6 = &temp6;
9774   arg7 = &temp7;
9775   if (!SWIG_Python_UnpackTuple(args, "average_image_f", 6, 6, swig_obj)) SWIG_fail;
9776   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
9777   if (!SWIG_IsOK(res1)) {
9778     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_image_f" "', argument " "1"" of type '" "float const *""'");
9779   }
9780   arg1 = (float *)(argp1);
9781   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9782   if (!SWIG_IsOK(ecode2)) {
9783     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "average_image_f" "', argument " "2"" of type '" "int""'");
9784   }
9785   arg2 = (int)(val2);
9786   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9787   if (!SWIG_IsOK(ecode3)) {
9788     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "average_image_f" "', argument " "3"" of type '" "int""'");
9789   }
9790   arg3 = (int)(val3);
9791   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
9792   if (!SWIG_IsOK(ecode4)) {
9793     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "average_image_f" "', argument " "4"" of type '" "int""'");
9794   }
9795   arg4 = (int)(val4);
9796   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
9797   if (!SWIG_IsOK(ecode5)) {
9798     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "average_image_f" "', argument " "5"" of type '" "int""'");
9799   }
9800   arg5 = (int)(val5);
9801   res8 = SWIG_ConvertPtr(swig_obj[5], &argp8,SWIGTYPE_p_float, 0 |  0 );
9802   if (!SWIG_IsOK(res8)) {
9803     SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "average_image_f" "', argument " "8"" of type '" "float *""'");
9804   }
9805   arg8 = (float *)(argp8);
9806   result = (float *)average_image_f((float const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
9807   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
9808   if (SWIG_IsTmpObj(res6)) {
9809     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
9810   } else {
9811     int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
9812     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
9813   }
9814   if (SWIG_IsTmpObj(res7)) {
9815     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg7)));
9816   } else {
9817     int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
9818     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
9819   }
9820   return resultobj;
9821 fail:
9822   return NULL;
9823 }
9824 
9825 
_wrap_average_weighted_image_f(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9826 SWIGINTERN PyObject *_wrap_average_weighted_image_f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9827   PyObject *resultobj = 0;
9828   float *arg1 = (float *) 0 ;
9829   float *arg2 = (float *) 0 ;
9830   int arg3 ;
9831   int arg4 ;
9832   int arg5 ;
9833   int arg6 ;
9834   int *arg7 = (int *) 0 ;
9835   int *arg8 = (int *) 0 ;
9836   float *arg9 = (float *) 0 ;
9837   float arg10 ;
9838   void *argp1 = 0 ;
9839   int res1 = 0 ;
9840   void *argp2 = 0 ;
9841   int res2 = 0 ;
9842   int val3 ;
9843   int ecode3 = 0 ;
9844   int val4 ;
9845   int ecode4 = 0 ;
9846   int val5 ;
9847   int ecode5 = 0 ;
9848   int val6 ;
9849   int ecode6 = 0 ;
9850   int temp7 ;
9851   int res7 = SWIG_TMPOBJ ;
9852   int temp8 ;
9853   int res8 = SWIG_TMPOBJ ;
9854   void *argp9 = 0 ;
9855   int res9 = 0 ;
9856   float val10 ;
9857   int ecode10 = 0 ;
9858   PyObject *swig_obj[8] ;
9859   float *result = 0 ;
9860 
9861   arg7 = &temp7;
9862   arg8 = &temp8;
9863   if (!SWIG_Python_UnpackTuple(args, "average_weighted_image_f", 8, 8, swig_obj)) SWIG_fail;
9864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
9865   if (!SWIG_IsOK(res1)) {
9866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_weighted_image_f" "', argument " "1"" of type '" "float const *""'");
9867   }
9868   arg1 = (float *)(argp1);
9869   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
9870   if (!SWIG_IsOK(res2)) {
9871     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "average_weighted_image_f" "', argument " "2"" of type '" "float const *""'");
9872   }
9873   arg2 = (float *)(argp2);
9874   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
9875   if (!SWIG_IsOK(ecode3)) {
9876     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "average_weighted_image_f" "', argument " "3"" of type '" "int""'");
9877   }
9878   arg3 = (int)(val3);
9879   ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
9880   if (!SWIG_IsOK(ecode4)) {
9881     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "average_weighted_image_f" "', argument " "4"" of type '" "int""'");
9882   }
9883   arg4 = (int)(val4);
9884   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
9885   if (!SWIG_IsOK(ecode5)) {
9886     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "average_weighted_image_f" "', argument " "5"" of type '" "int""'");
9887   }
9888   arg5 = (int)(val5);
9889   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
9890   if (!SWIG_IsOK(ecode6)) {
9891     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "average_weighted_image_f" "', argument " "6"" of type '" "int""'");
9892   }
9893   arg6 = (int)(val6);
9894   res9 = SWIG_ConvertPtr(swig_obj[6], &argp9,SWIGTYPE_p_float, 0 |  0 );
9895   if (!SWIG_IsOK(res9)) {
9896     SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "average_weighted_image_f" "', argument " "9"" of type '" "float *""'");
9897   }
9898   arg9 = (float *)(argp9);
9899   ecode10 = SWIG_AsVal_float(swig_obj[7], &val10);
9900   if (!SWIG_IsOK(ecode10)) {
9901     SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "average_weighted_image_f" "', argument " "10"" of type '" "float""'");
9902   }
9903   arg10 = (float)(val10);
9904   result = (float *)average_weighted_image_f((float const *)arg1,(float const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
9905   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 |  0 );
9906   if (SWIG_IsTmpObj(res7)) {
9907     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg7)));
9908   } else {
9909     int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
9910     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
9911   }
9912   if (SWIG_IsTmpObj(res8)) {
9913     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg8)));
9914   } else {
9915     int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
9916     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9917   }
9918   return resultobj;
9919 fail:
9920   return NULL;
9921 }
9922 
9923 
_wrap_imax(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9924 SWIGINTERN PyObject *_wrap_imax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9925   PyObject *resultobj = 0;
9926   int arg1 ;
9927   int arg2 ;
9928   int val1 ;
9929   int ecode1 = 0 ;
9930   int val2 ;
9931   int ecode2 = 0 ;
9932   PyObject *swig_obj[2] ;
9933   int result;
9934 
9935   if (!SWIG_Python_UnpackTuple(args, "imax", 2, 2, swig_obj)) SWIG_fail;
9936   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
9937   if (!SWIG_IsOK(ecode1)) {
9938     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "imax" "', argument " "1"" of type '" "int""'");
9939   }
9940   arg1 = (int)(val1);
9941   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9942   if (!SWIG_IsOK(ecode2)) {
9943     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "imax" "', argument " "2"" of type '" "int""'");
9944   }
9945   arg2 = (int)(val2);
9946   result = (int)imax(arg1,arg2);
9947   resultobj = SWIG_From_int((int)(result));
9948   return resultobj;
9949 fail:
9950   return NULL;
9951 }
9952 
9953 
_wrap_imin(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9954 SWIGINTERN PyObject *_wrap_imin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9955   PyObject *resultobj = 0;
9956   int arg1 ;
9957   int arg2 ;
9958   int val1 ;
9959   int ecode1 = 0 ;
9960   int val2 ;
9961   int ecode2 = 0 ;
9962   PyObject *swig_obj[2] ;
9963   int result;
9964 
9965   if (!SWIG_Python_UnpackTuple(args, "imin", 2, 2, swig_obj)) SWIG_fail;
9966   ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
9967   if (!SWIG_IsOK(ecode1)) {
9968     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "imin" "', argument " "1"" of type '" "int""'");
9969   }
9970   arg1 = (int)(val1);
9971   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
9972   if (!SWIG_IsOK(ecode2)) {
9973     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "imin" "', argument " "2"" of type '" "int""'");
9974   }
9975   arg2 = (int)(val2);
9976   result = (int)imin(arg1,arg2);
9977   resultobj = SWIG_From_int((int)(result));
9978   return resultobj;
9979 fail:
9980   return NULL;
9981 }
9982 
9983 
_wrap_distsq_exceeds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)9984 SWIGINTERN PyObject *_wrap_distsq_exceeds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9985   PyObject *resultobj = 0;
9986   double *arg1 = (double *) 0 ;
9987   double *arg2 = (double *) 0 ;
9988   int arg3 ;
9989   double arg4 ;
9990   void *argp1 = 0 ;
9991   int res1 = 0 ;
9992   void *argp2 = 0 ;
9993   int res2 = 0 ;
9994   int val3 ;
9995   int ecode3 = 0 ;
9996   double val4 ;
9997   int ecode4 = 0 ;
9998   PyObject *swig_obj[4] ;
9999   double result;
10000 
10001   if (!SWIG_Python_UnpackTuple(args, "distsq_exceeds", 4, 4, swig_obj)) SWIG_fail;
10002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
10003   if (!SWIG_IsOK(res1)) {
10004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distsq_exceeds" "', argument " "1"" of type '" "double *""'");
10005   }
10006   arg1 = (double *)(argp1);
10007   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
10008   if (!SWIG_IsOK(res2)) {
10009     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "distsq_exceeds" "', argument " "2"" of type '" "double *""'");
10010   }
10011   arg2 = (double *)(argp2);
10012   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10013   if (!SWIG_IsOK(ecode3)) {
10014     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "distsq_exceeds" "', argument " "3"" of type '" "int""'");
10015   }
10016   arg3 = (int)(val3);
10017   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
10018   if (!SWIG_IsOK(ecode4)) {
10019     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "distsq_exceeds" "', argument " "4"" of type '" "double""'");
10020   }
10021   arg4 = (double)(val4);
10022   result = (double)distsq_exceeds(arg1,arg2,arg3,arg4);
10023   resultobj = SWIG_From_double((double)(result));
10024   return resultobj;
10025 fail:
10026   return NULL;
10027 }
10028 
10029 
_wrap_square(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10030 SWIGINTERN PyObject *_wrap_square(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10031   PyObject *resultobj = 0;
10032   double arg1 ;
10033   double val1 ;
10034   int ecode1 = 0 ;
10035   PyObject *swig_obj[1] ;
10036   double result;
10037 
10038   if (!args) SWIG_fail;
10039   swig_obj[0] = args;
10040   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
10041   if (!SWIG_IsOK(ecode1)) {
10042     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "square" "', argument " "1"" of type '" "double""'");
10043   }
10044   arg1 = (double)(val1);
10045   result = (double)square(arg1);
10046   resultobj = SWIG_From_double((double)(result));
10047   return resultobj;
10048 fail:
10049   return NULL;
10050 }
10051 
10052 
_wrap_inrange(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10053 SWIGINTERN PyObject *_wrap_inrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10054   PyObject *resultobj = 0;
10055   double arg1 ;
10056   double arg2 ;
10057   double arg3 ;
10058   double val1 ;
10059   int ecode1 = 0 ;
10060   double val2 ;
10061   int ecode2 = 0 ;
10062   double val3 ;
10063   int ecode3 = 0 ;
10064   PyObject *swig_obj[3] ;
10065   int result;
10066 
10067   if (!SWIG_Python_UnpackTuple(args, "inrange", 3, 3, swig_obj)) SWIG_fail;
10068   ecode1 = SWIG_AsVal_double(swig_obj[0], &val1);
10069   if (!SWIG_IsOK(ecode1)) {
10070     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "inrange" "', argument " "1"" of type '" "double""'");
10071   }
10072   arg1 = (double)(val1);
10073   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10074   if (!SWIG_IsOK(ecode2)) {
10075     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "inrange" "', argument " "2"" of type '" "double""'");
10076   }
10077   arg2 = (double)(val2);
10078   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
10079   if (!SWIG_IsOK(ecode3)) {
10080     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "inrange" "', argument " "3"" of type '" "double""'");
10081   }
10082   arg3 = (double)(val3);
10083   result = (int)inrange(arg1,arg2,arg3);
10084   resultobj = SWIG_From_int((int)(result));
10085   return resultobj;
10086 fail:
10087   return NULL;
10088 }
10089 
10090 
_wrap_distsq(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10091 SWIGINTERN PyObject *_wrap_distsq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10092   PyObject *resultobj = 0;
10093   double *arg1 = (double *) 0 ;
10094   double *arg2 = (double *) 0 ;
10095   int arg3 ;
10096   void *argp1 = 0 ;
10097   int res1 = 0 ;
10098   void *argp2 = 0 ;
10099   int res2 = 0 ;
10100   int val3 ;
10101   int ecode3 = 0 ;
10102   PyObject *swig_obj[3] ;
10103   double result;
10104 
10105   if (!SWIG_Python_UnpackTuple(args, "distsq", 3, 3, swig_obj)) SWIG_fail;
10106   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
10107   if (!SWIG_IsOK(res1)) {
10108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distsq" "', argument " "1"" of type '" "double const *""'");
10109   }
10110   arg1 = (double *)(argp1);
10111   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
10112   if (!SWIG_IsOK(res2)) {
10113     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "distsq" "', argument " "2"" of type '" "double const *""'");
10114   }
10115   arg2 = (double *)(argp2);
10116   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
10117   if (!SWIG_IsOK(ecode3)) {
10118     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "distsq" "', argument " "3"" of type '" "int""'");
10119   }
10120   arg3 = (int)(val3);
10121   result = (double)distsq((double const *)arg1,(double const *)arg2,arg3);
10122   resultobj = SWIG_From_double((double)(result));
10123   return resultobj;
10124 fail:
10125   return NULL;
10126 }
10127 
10128 
_wrap_cross_product(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10129 SWIGINTERN PyObject *_wrap_cross_product(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10130   PyObject *resultobj = 0;
10131   double *arg1 = (double *) 0 ;
10132   double *arg2 = (double *) 0 ;
10133   double *arg3 = (double *) 0 ;
10134   void *argp1 = 0 ;
10135   int res1 = 0 ;
10136   void *argp2 = 0 ;
10137   int res2 = 0 ;
10138   void *argp3 = 0 ;
10139   int res3 = 0 ;
10140   PyObject *swig_obj[3] ;
10141 
10142   if (!SWIG_Python_UnpackTuple(args, "cross_product", 3, 3, swig_obj)) SWIG_fail;
10143   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
10144   if (!SWIG_IsOK(res1)) {
10145     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cross_product" "', argument " "1"" of type '" "double *""'");
10146   }
10147   arg1 = (double *)(argp1);
10148   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
10149   if (!SWIG_IsOK(res2)) {
10150     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cross_product" "', argument " "2"" of type '" "double *""'");
10151   }
10152   arg2 = (double *)(argp2);
10153   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
10154   if (!SWIG_IsOK(res3)) {
10155     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cross_product" "', argument " "3"" of type '" "double *""'");
10156   }
10157   arg3 = (double *)(argp3);
10158   cross_product(arg1,arg2,arg3);
10159   resultobj = SWIG_Py_Void();
10160   return resultobj;
10161 fail:
10162   return NULL;
10163 }
10164 
10165 
_wrap_normalize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10166 SWIGINTERN PyObject *_wrap_normalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10167   PyObject *resultobj = 0;
10168   double *arg1 = (double *) 0 ;
10169   double *arg2 = (double *) 0 ;
10170   double *arg3 = (double *) 0 ;
10171   void *argp1 = 0 ;
10172   int res1 = 0 ;
10173   void *argp2 = 0 ;
10174   int res2 = 0 ;
10175   void *argp3 = 0 ;
10176   int res3 = 0 ;
10177   PyObject *swig_obj[3] ;
10178 
10179   if (!SWIG_Python_UnpackTuple(args, "normalize", 3, 3, swig_obj)) SWIG_fail;
10180   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
10181   if (!SWIG_IsOK(res1)) {
10182     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "normalize" "', argument " "1"" of type '" "double *""'");
10183   }
10184   arg1 = (double *)(argp1);
10185   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
10186   if (!SWIG_IsOK(res2)) {
10187     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "normalize" "', argument " "2"" of type '" "double *""'");
10188   }
10189   arg2 = (double *)(argp2);
10190   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_double, 0 |  0 );
10191   if (!SWIG_IsOK(res3)) {
10192     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "normalize" "', argument " "3"" of type '" "double *""'");
10193   }
10194   arg3 = (double *)(argp3);
10195   normalize(arg1,arg2,arg3);
10196   resultobj = SWIG_Py_Void();
10197   return resultobj;
10198 fail:
10199   return NULL;
10200 }
10201 
10202 
_wrap_normalize_3(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10203 SWIGINTERN PyObject *_wrap_normalize_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10204   PyObject *resultobj = 0;
10205   double *arg1 = (double *) 0 ;
10206   void *argp1 = 0 ;
10207   int res1 = 0 ;
10208   PyObject *swig_obj[1] ;
10209 
10210   if (!args) SWIG_fail;
10211   swig_obj[0] = args;
10212   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_double, 0 |  0 );
10213   if (!SWIG_IsOK(res1)) {
10214     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "normalize_3" "', argument " "1"" of type '" "double *""'");
10215   }
10216   arg1 = (double *)(argp1);
10217   normalize_3(arg1);
10218   resultobj = SWIG_Py_Void();
10219   return resultobj;
10220 fail:
10221   return NULL;
10222 }
10223 
10224 
_wrap_plotimage_args_fn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10225 SWIGINTERN PyObject *_wrap_plotimage_args_fn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10226   PyObject *resultobj = 0;
10227   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10228   char *arg2 = (char *) 0 ;
10229   void *argp1 = 0 ;
10230   int res1 = 0 ;
10231   int res2 ;
10232   char *buf2 = 0 ;
10233   int alloc2 = 0 ;
10234   PyObject *swig_obj[2] ;
10235 
10236   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_fn_set", 2, 2, swig_obj)) SWIG_fail;
10237   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10238   if (!SWIG_IsOK(res1)) {
10239     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fn_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10240   }
10241   arg1 = (struct plotimage_args *)(argp1);
10242   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
10243   if (!SWIG_IsOK(res2)) {
10244     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotimage_args_fn_set" "', argument " "2"" of type '" "char *""'");
10245   }
10246   arg2 = (char *)(buf2);
10247   if (arg1->fn) free((char*)arg1->fn);
10248   if (arg2) {
10249     size_t size = strlen((const char *)(arg2)) + 1;
10250     arg1->fn = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
10251   } else {
10252     arg1->fn = 0;
10253   }
10254   resultobj = SWIG_Py_Void();
10255   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10256   return resultobj;
10257 fail:
10258   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
10259   return NULL;
10260 }
10261 
10262 
_wrap_plotimage_args_fn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10263 SWIGINTERN PyObject *_wrap_plotimage_args_fn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10264   PyObject *resultobj = 0;
10265   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10266   void *argp1 = 0 ;
10267   int res1 = 0 ;
10268   PyObject *swig_obj[1] ;
10269   char *result = 0 ;
10270 
10271   if (!args) SWIG_fail;
10272   swig_obj[0] = args;
10273   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10274   if (!SWIG_IsOK(res1)) {
10275     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fn_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10276   }
10277   arg1 = (struct plotimage_args *)(argp1);
10278   result = (char *) ((arg1)->fn);
10279   resultobj = SWIG_FromCharPtr((const char *)result);
10280   return resultobj;
10281 fail:
10282   return NULL;
10283 }
10284 
10285 
_wrap_plotimage_args_format_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10286 SWIGINTERN PyObject *_wrap_plotimage_args_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10287   PyObject *resultobj = 0;
10288   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10289   int arg2 ;
10290   void *argp1 = 0 ;
10291   int res1 = 0 ;
10292   int val2 ;
10293   int ecode2 = 0 ;
10294   PyObject *swig_obj[2] ;
10295 
10296   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_format_set", 2, 2, swig_obj)) SWIG_fail;
10297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10298   if (!SWIG_IsOK(res1)) {
10299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_format_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10300   }
10301   arg1 = (struct plotimage_args *)(argp1);
10302   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10303   if (!SWIG_IsOK(ecode2)) {
10304     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_format_set" "', argument " "2"" of type '" "int""'");
10305   }
10306   arg2 = (int)(val2);
10307   if (arg1) (arg1)->format = arg2;
10308   resultobj = SWIG_Py_Void();
10309   return resultobj;
10310 fail:
10311   return NULL;
10312 }
10313 
10314 
_wrap_plotimage_args_format_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10315 SWIGINTERN PyObject *_wrap_plotimage_args_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10316   PyObject *resultobj = 0;
10317   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10318   void *argp1 = 0 ;
10319   int res1 = 0 ;
10320   PyObject *swig_obj[1] ;
10321   int result;
10322 
10323   if (!args) SWIG_fail;
10324   swig_obj[0] = args;
10325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10326   if (!SWIG_IsOK(res1)) {
10327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_format_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10328   }
10329   arg1 = (struct plotimage_args *)(argp1);
10330   result = (int) ((arg1)->format);
10331   resultobj = SWIG_From_int((int)(result));
10332   return resultobj;
10333 fail:
10334   return NULL;
10335 }
10336 
10337 
_wrap_plotimage_args_resample_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10338 SWIGINTERN PyObject *_wrap_plotimage_args_resample_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10339   PyObject *resultobj = 0;
10340   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10341   anbool arg2 ;
10342   void *argp1 = 0 ;
10343   int res1 = 0 ;
10344   unsigned char val2 ;
10345   int ecode2 = 0 ;
10346   PyObject *swig_obj[2] ;
10347 
10348   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_resample_set", 2, 2, swig_obj)) SWIG_fail;
10349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10350   if (!SWIG_IsOK(res1)) {
10351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_resample_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10352   }
10353   arg1 = (struct plotimage_args *)(argp1);
10354   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
10355   if (!SWIG_IsOK(ecode2)) {
10356     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_resample_set" "', argument " "2"" of type '" "anbool""'");
10357   }
10358   arg2 = (anbool)(val2);
10359   if (arg1) (arg1)->resample = arg2;
10360   resultobj = SWIG_Py_Void();
10361   return resultobj;
10362 fail:
10363   return NULL;
10364 }
10365 
10366 
_wrap_plotimage_args_resample_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10367 SWIGINTERN PyObject *_wrap_plotimage_args_resample_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10368   PyObject *resultobj = 0;
10369   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10370   void *argp1 = 0 ;
10371   int res1 = 0 ;
10372   PyObject *swig_obj[1] ;
10373   anbool result;
10374 
10375   if (!args) SWIG_fail;
10376   swig_obj[0] = args;
10377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10378   if (!SWIG_IsOK(res1)) {
10379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_resample_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10380   }
10381   arg1 = (struct plotimage_args *)(argp1);
10382   result = (anbool) ((arg1)->resample);
10383   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
10384   return resultobj;
10385 fail:
10386   return NULL;
10387 }
10388 
10389 
_wrap_plotimage_args_downsample_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10390 SWIGINTERN PyObject *_wrap_plotimage_args_downsample_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10391   PyObject *resultobj = 0;
10392   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10393   int arg2 ;
10394   void *argp1 = 0 ;
10395   int res1 = 0 ;
10396   int val2 ;
10397   int ecode2 = 0 ;
10398   PyObject *swig_obj[2] ;
10399 
10400   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_downsample_set", 2, 2, swig_obj)) SWIG_fail;
10401   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10402   if (!SWIG_IsOK(res1)) {
10403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_downsample_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10404   }
10405   arg1 = (struct plotimage_args *)(argp1);
10406   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10407   if (!SWIG_IsOK(ecode2)) {
10408     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_downsample_set" "', argument " "2"" of type '" "int""'");
10409   }
10410   arg2 = (int)(val2);
10411   if (arg1) (arg1)->downsample = arg2;
10412   resultobj = SWIG_Py_Void();
10413   return resultobj;
10414 fail:
10415   return NULL;
10416 }
10417 
10418 
_wrap_plotimage_args_downsample_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10419 SWIGINTERN PyObject *_wrap_plotimage_args_downsample_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420   PyObject *resultobj = 0;
10421   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10422   void *argp1 = 0 ;
10423   int res1 = 0 ;
10424   PyObject *swig_obj[1] ;
10425   int result;
10426 
10427   if (!args) SWIG_fail;
10428   swig_obj[0] = args;
10429   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10430   if (!SWIG_IsOK(res1)) {
10431     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_downsample_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10432   }
10433   arg1 = (struct plotimage_args *)(argp1);
10434   result = (int) ((arg1)->downsample);
10435   resultobj = SWIG_From_int((int)(result));
10436   return resultobj;
10437 fail:
10438   return NULL;
10439 }
10440 
10441 
_wrap_plotimage_args_arcsinh_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10442 SWIGINTERN PyObject *_wrap_plotimage_args_arcsinh_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10443   PyObject *resultobj = 0;
10444   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10445   double arg2 ;
10446   void *argp1 = 0 ;
10447   int res1 = 0 ;
10448   double val2 ;
10449   int ecode2 = 0 ;
10450   PyObject *swig_obj[2] ;
10451 
10452   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_arcsinh_set", 2, 2, swig_obj)) SWIG_fail;
10453   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10454   if (!SWIG_IsOK(res1)) {
10455     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_arcsinh_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10456   }
10457   arg1 = (struct plotimage_args *)(argp1);
10458   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10459   if (!SWIG_IsOK(ecode2)) {
10460     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_arcsinh_set" "', argument " "2"" of type '" "double""'");
10461   }
10462   arg2 = (double)(val2);
10463   if (arg1) (arg1)->arcsinh = arg2;
10464   resultobj = SWIG_Py_Void();
10465   return resultobj;
10466 fail:
10467   return NULL;
10468 }
10469 
10470 
_wrap_plotimage_args_arcsinh_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10471 SWIGINTERN PyObject *_wrap_plotimage_args_arcsinh_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10472   PyObject *resultobj = 0;
10473   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10474   void *argp1 = 0 ;
10475   int res1 = 0 ;
10476   PyObject *swig_obj[1] ;
10477   double result;
10478 
10479   if (!args) SWIG_fail;
10480   swig_obj[0] = args;
10481   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10482   if (!SWIG_IsOK(res1)) {
10483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_arcsinh_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10484   }
10485   arg1 = (struct plotimage_args *)(argp1);
10486   result = (double) ((arg1)->arcsinh);
10487   resultobj = SWIG_From_double((double)(result));
10488   return resultobj;
10489 fail:
10490   return NULL;
10491 }
10492 
10493 
_wrap_plotimage_args_rgbscale_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10494 SWIGINTERN PyObject *_wrap_plotimage_args_rgbscale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10495   PyObject *resultobj = 0;
10496   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10497   double *arg2 ;
10498   void *argp1 = 0 ;
10499   int res1 = 0 ;
10500   double temp2[3] ;
10501   PyObject *swig_obj[2] ;
10502 
10503   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_rgbscale_set", 2, 2, swig_obj)) SWIG_fail;
10504   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10505   if (!SWIG_IsOK(res1)) {
10506     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_rgbscale_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10507   }
10508   arg1 = (struct plotimage_args *)(argp1);
10509   {
10510     int i;
10511     if (!PySequence_Check(swig_obj[1])) {
10512       PyErr_SetString(PyExc_ValueError,"Expected a sequence");
10513       return NULL;
10514     }
10515     if (PySequence_Length(swig_obj[1]) != 3) {
10516       PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 3 elements");
10517       return NULL;
10518     }
10519     for (i = 0; i < 3; i++) {
10520       PyObject *o = PySequence_GetItem(swig_obj[1],i);
10521       if (PyNumber_Check(o)) {
10522         temp2[i] = PyFloat_AsDouble(o);
10523       } else {
10524         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
10525         return NULL;
10526       }
10527     }
10528     arg2 = temp2;
10529   }
10530   {
10531     if (arg2) {
10532       size_t ii = 0;
10533       for (; ii < (size_t)3; ++ii) *(double *)&arg1->rgbscale[ii] = *((double *)arg2 + ii);
10534     } else {
10535       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""rgbscale""' of type '""double [3]""'");
10536     }
10537   }
10538   resultobj = SWIG_Py_Void();
10539   return resultobj;
10540 fail:
10541   return NULL;
10542 }
10543 
10544 
_wrap_plotimage_args_rgbscale_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10545 SWIGINTERN PyObject *_wrap_plotimage_args_rgbscale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546   PyObject *resultobj = 0;
10547   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10548   void *argp1 = 0 ;
10549   int res1 = 0 ;
10550   PyObject *swig_obj[1] ;
10551   double *result = 0 ;
10552 
10553   if (!args) SWIG_fail;
10554   swig_obj[0] = args;
10555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10556   if (!SWIG_IsOK(res1)) {
10557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_rgbscale_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10558   }
10559   arg1 = (struct plotimage_args *)(argp1);
10560   result = (double *)(double *) ((arg1)->rgbscale);
10561   {
10562     int i;
10563     resultobj = PyList_New(3);
10564     for (i = 0; i < 3; i++) {
10565       PyObject *o = PyFloat_FromDouble(result[i]);
10566       PyList_SetItem(resultobj,i,o);
10567     }
10568   }
10569   return resultobj;
10570 fail:
10571   return NULL;
10572 }
10573 
10574 
_wrap_plotimage_args_alpha_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10575 SWIGINTERN PyObject *_wrap_plotimage_args_alpha_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10576   PyObject *resultobj = 0;
10577   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10578   double arg2 ;
10579   void *argp1 = 0 ;
10580   int res1 = 0 ;
10581   double val2 ;
10582   int ecode2 = 0 ;
10583   PyObject *swig_obj[2] ;
10584 
10585   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_alpha_set", 2, 2, swig_obj)) SWIG_fail;
10586   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10587   if (!SWIG_IsOK(res1)) {
10588     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_alpha_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10589   }
10590   arg1 = (struct plotimage_args *)(argp1);
10591   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10592   if (!SWIG_IsOK(ecode2)) {
10593     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_alpha_set" "', argument " "2"" of type '" "double""'");
10594   }
10595   arg2 = (double)(val2);
10596   if (arg1) (arg1)->alpha = arg2;
10597   resultobj = SWIG_Py_Void();
10598   return resultobj;
10599 fail:
10600   return NULL;
10601 }
10602 
10603 
_wrap_plotimage_args_alpha_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10604 SWIGINTERN PyObject *_wrap_plotimage_args_alpha_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10605   PyObject *resultobj = 0;
10606   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10607   void *argp1 = 0 ;
10608   int res1 = 0 ;
10609   PyObject *swig_obj[1] ;
10610   double result;
10611 
10612   if (!args) SWIG_fail;
10613   swig_obj[0] = args;
10614   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10615   if (!SWIG_IsOK(res1)) {
10616     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_alpha_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10617   }
10618   arg1 = (struct plotimage_args *)(argp1);
10619   result = (double) ((arg1)->alpha);
10620   resultobj = SWIG_From_double((double)(result));
10621   return resultobj;
10622 fail:
10623   return NULL;
10624 }
10625 
10626 
_wrap_plotimage_args_wcs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10627 SWIGINTERN PyObject *_wrap_plotimage_args_wcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10628   PyObject *resultobj = 0;
10629   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10630   anwcs_t *arg2 = (anwcs_t *) 0 ;
10631   void *argp1 = 0 ;
10632   int res1 = 0 ;
10633   void *argp2 = 0 ;
10634   int res2 = 0 ;
10635   PyObject *swig_obj[2] ;
10636 
10637   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_wcs_set", 2, 2, swig_obj)) SWIG_fail;
10638   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10639   if (!SWIG_IsOK(res1)) {
10640     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_wcs_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10641   }
10642   arg1 = (struct plotimage_args *)(argp1);
10643   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
10644   if (!SWIG_IsOK(res2)) {
10645     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotimage_args_wcs_set" "', argument " "2"" of type '" "anwcs_t *""'");
10646   }
10647   arg2 = (anwcs_t *)(argp2);
10648   if (arg1) (arg1)->wcs = arg2;
10649   resultobj = SWIG_Py_Void();
10650   return resultobj;
10651 fail:
10652   return NULL;
10653 }
10654 
10655 
_wrap_plotimage_args_wcs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10656 SWIGINTERN PyObject *_wrap_plotimage_args_wcs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10657   PyObject *resultobj = 0;
10658   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10659   void *argp1 = 0 ;
10660   int res1 = 0 ;
10661   PyObject *swig_obj[1] ;
10662   anwcs_t *result = 0 ;
10663 
10664   if (!args) SWIG_fail;
10665   swig_obj[0] = args;
10666   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10667   if (!SWIG_IsOK(res1)) {
10668     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_wcs_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10669   }
10670   arg1 = (struct plotimage_args *)(argp1);
10671   result = (anwcs_t *) ((arg1)->wcs);
10672   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
10673   return resultobj;
10674 fail:
10675   return NULL;
10676 }
10677 
10678 
_wrap_plotimage_args_gridsize_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10679 SWIGINTERN PyObject *_wrap_plotimage_args_gridsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10680   PyObject *resultobj = 0;
10681   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10682   double arg2 ;
10683   void *argp1 = 0 ;
10684   int res1 = 0 ;
10685   double val2 ;
10686   int ecode2 = 0 ;
10687   PyObject *swig_obj[2] ;
10688 
10689   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_gridsize_set", 2, 2, swig_obj)) SWIG_fail;
10690   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10691   if (!SWIG_IsOK(res1)) {
10692     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_gridsize_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10693   }
10694   arg1 = (struct plotimage_args *)(argp1);
10695   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10696   if (!SWIG_IsOK(ecode2)) {
10697     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_gridsize_set" "', argument " "2"" of type '" "double""'");
10698   }
10699   arg2 = (double)(val2);
10700   if (arg1) (arg1)->gridsize = arg2;
10701   resultobj = SWIG_Py_Void();
10702   return resultobj;
10703 fail:
10704   return NULL;
10705 }
10706 
10707 
_wrap_plotimage_args_gridsize_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10708 SWIGINTERN PyObject *_wrap_plotimage_args_gridsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10709   PyObject *resultobj = 0;
10710   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10711   void *argp1 = 0 ;
10712   int res1 = 0 ;
10713   PyObject *swig_obj[1] ;
10714   double result;
10715 
10716   if (!args) SWIG_fail;
10717   swig_obj[0] = args;
10718   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10719   if (!SWIG_IsOK(res1)) {
10720     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_gridsize_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10721   }
10722   arg1 = (struct plotimage_args *)(argp1);
10723   result = (double) ((arg1)->gridsize);
10724   resultobj = SWIG_From_double((double)(result));
10725   return resultobj;
10726 fail:
10727   return NULL;
10728 }
10729 
10730 
_wrap_plotimage_args_image_low_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10731 SWIGINTERN PyObject *_wrap_plotimage_args_image_low_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10732   PyObject *resultobj = 0;
10733   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10734   double arg2 ;
10735   void *argp1 = 0 ;
10736   int res1 = 0 ;
10737   double val2 ;
10738   int ecode2 = 0 ;
10739   PyObject *swig_obj[2] ;
10740 
10741   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_image_low_set", 2, 2, swig_obj)) SWIG_fail;
10742   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10743   if (!SWIG_IsOK(res1)) {
10744     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_low_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10745   }
10746   arg1 = (struct plotimage_args *)(argp1);
10747   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10748   if (!SWIG_IsOK(ecode2)) {
10749     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_image_low_set" "', argument " "2"" of type '" "double""'");
10750   }
10751   arg2 = (double)(val2);
10752   if (arg1) (arg1)->image_low = arg2;
10753   resultobj = SWIG_Py_Void();
10754   return resultobj;
10755 fail:
10756   return NULL;
10757 }
10758 
10759 
_wrap_plotimage_args_image_low_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10760 SWIGINTERN PyObject *_wrap_plotimage_args_image_low_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10761   PyObject *resultobj = 0;
10762   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10763   void *argp1 = 0 ;
10764   int res1 = 0 ;
10765   PyObject *swig_obj[1] ;
10766   double result;
10767 
10768   if (!args) SWIG_fail;
10769   swig_obj[0] = args;
10770   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10771   if (!SWIG_IsOK(res1)) {
10772     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_low_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10773   }
10774   arg1 = (struct plotimage_args *)(argp1);
10775   result = (double) ((arg1)->image_low);
10776   resultobj = SWIG_From_double((double)(result));
10777   return resultobj;
10778 fail:
10779   return NULL;
10780 }
10781 
10782 
_wrap_plotimage_args_image_high_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10783 SWIGINTERN PyObject *_wrap_plotimage_args_image_high_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10784   PyObject *resultobj = 0;
10785   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10786   double arg2 ;
10787   void *argp1 = 0 ;
10788   int res1 = 0 ;
10789   double val2 ;
10790   int ecode2 = 0 ;
10791   PyObject *swig_obj[2] ;
10792 
10793   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_image_high_set", 2, 2, swig_obj)) SWIG_fail;
10794   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10795   if (!SWIG_IsOK(res1)) {
10796     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_high_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10797   }
10798   arg1 = (struct plotimage_args *)(argp1);
10799   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10800   if (!SWIG_IsOK(ecode2)) {
10801     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_image_high_set" "', argument " "2"" of type '" "double""'");
10802   }
10803   arg2 = (double)(val2);
10804   if (arg1) (arg1)->image_high = arg2;
10805   resultobj = SWIG_Py_Void();
10806   return resultobj;
10807 fail:
10808   return NULL;
10809 }
10810 
10811 
_wrap_plotimage_args_image_high_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10812 SWIGINTERN PyObject *_wrap_plotimage_args_image_high_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10813   PyObject *resultobj = 0;
10814   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10815   void *argp1 = 0 ;
10816   int res1 = 0 ;
10817   PyObject *swig_obj[1] ;
10818   double result;
10819 
10820   if (!args) SWIG_fail;
10821   swig_obj[0] = args;
10822   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10823   if (!SWIG_IsOK(res1)) {
10824     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_high_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10825   }
10826   arg1 = (struct plotimage_args *)(argp1);
10827   result = (double) ((arg1)->image_high);
10828   resultobj = SWIG_From_double((double)(result));
10829   return resultobj;
10830 fail:
10831   return NULL;
10832 }
10833 
10834 
_wrap_plotimage_args_image_null_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10835 SWIGINTERN PyObject *_wrap_plotimage_args_image_null_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10836   PyObject *resultobj = 0;
10837   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10838   double arg2 ;
10839   void *argp1 = 0 ;
10840   int res1 = 0 ;
10841   double val2 ;
10842   int ecode2 = 0 ;
10843   PyObject *swig_obj[2] ;
10844 
10845   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_image_null_set", 2, 2, swig_obj)) SWIG_fail;
10846   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10847   if (!SWIG_IsOK(res1)) {
10848     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_null_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10849   }
10850   arg1 = (struct plotimage_args *)(argp1);
10851   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10852   if (!SWIG_IsOK(ecode2)) {
10853     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_image_null_set" "', argument " "2"" of type '" "double""'");
10854   }
10855   arg2 = (double)(val2);
10856   if (arg1) (arg1)->image_null = arg2;
10857   resultobj = SWIG_Py_Void();
10858   return resultobj;
10859 fail:
10860   return NULL;
10861 }
10862 
10863 
_wrap_plotimage_args_image_null_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10864 SWIGINTERN PyObject *_wrap_plotimage_args_image_null_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10865   PyObject *resultobj = 0;
10866   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10867   void *argp1 = 0 ;
10868   int res1 = 0 ;
10869   PyObject *swig_obj[1] ;
10870   double result;
10871 
10872   if (!args) SWIG_fail;
10873   swig_obj[0] = args;
10874   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10875   if (!SWIG_IsOK(res1)) {
10876     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_null_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10877   }
10878   arg1 = (struct plotimage_args *)(argp1);
10879   result = (double) ((arg1)->image_null);
10880   resultobj = SWIG_From_double((double)(result));
10881   return resultobj;
10882 fail:
10883   return NULL;
10884 }
10885 
10886 
_wrap_plotimage_args_image_valid_low_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10887 SWIGINTERN PyObject *_wrap_plotimage_args_image_valid_low_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10888   PyObject *resultobj = 0;
10889   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10890   double arg2 ;
10891   void *argp1 = 0 ;
10892   int res1 = 0 ;
10893   double val2 ;
10894   int ecode2 = 0 ;
10895   PyObject *swig_obj[2] ;
10896 
10897   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_image_valid_low_set", 2, 2, swig_obj)) SWIG_fail;
10898   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10899   if (!SWIG_IsOK(res1)) {
10900     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_valid_low_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10901   }
10902   arg1 = (struct plotimage_args *)(argp1);
10903   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10904   if (!SWIG_IsOK(ecode2)) {
10905     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_image_valid_low_set" "', argument " "2"" of type '" "double""'");
10906   }
10907   arg2 = (double)(val2);
10908   if (arg1) (arg1)->image_valid_low = arg2;
10909   resultobj = SWIG_Py_Void();
10910   return resultobj;
10911 fail:
10912   return NULL;
10913 }
10914 
10915 
_wrap_plotimage_args_image_valid_low_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10916 SWIGINTERN PyObject *_wrap_plotimage_args_image_valid_low_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10917   PyObject *resultobj = 0;
10918   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10919   void *argp1 = 0 ;
10920   int res1 = 0 ;
10921   PyObject *swig_obj[1] ;
10922   double result;
10923 
10924   if (!args) SWIG_fail;
10925   swig_obj[0] = args;
10926   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10927   if (!SWIG_IsOK(res1)) {
10928     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_valid_low_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10929   }
10930   arg1 = (struct plotimage_args *)(argp1);
10931   result = (double) ((arg1)->image_valid_low);
10932   resultobj = SWIG_From_double((double)(result));
10933   return resultobj;
10934 fail:
10935   return NULL;
10936 }
10937 
10938 
_wrap_plotimage_args_image_valid_high_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10939 SWIGINTERN PyObject *_wrap_plotimage_args_image_valid_high_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10940   PyObject *resultobj = 0;
10941   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10942   double arg2 ;
10943   void *argp1 = 0 ;
10944   int res1 = 0 ;
10945   double val2 ;
10946   int ecode2 = 0 ;
10947   PyObject *swig_obj[2] ;
10948 
10949   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_image_valid_high_set", 2, 2, swig_obj)) SWIG_fail;
10950   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10951   if (!SWIG_IsOK(res1)) {
10952     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_valid_high_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
10953   }
10954   arg1 = (struct plotimage_args *)(argp1);
10955   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
10956   if (!SWIG_IsOK(ecode2)) {
10957     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_image_valid_high_set" "', argument " "2"" of type '" "double""'");
10958   }
10959   arg2 = (double)(val2);
10960   if (arg1) (arg1)->image_valid_high = arg2;
10961   resultobj = SWIG_Py_Void();
10962   return resultobj;
10963 fail:
10964   return NULL;
10965 }
10966 
10967 
_wrap_plotimage_args_image_valid_high_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10968 SWIGINTERN PyObject *_wrap_plotimage_args_image_valid_high_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10969   PyObject *resultobj = 0;
10970   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10971   void *argp1 = 0 ;
10972   int res1 = 0 ;
10973   PyObject *swig_obj[1] ;
10974   double result;
10975 
10976   if (!args) SWIG_fail;
10977   swig_obj[0] = args;
10978   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
10979   if (!SWIG_IsOK(res1)) {
10980     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_image_valid_high_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
10981   }
10982   arg1 = (struct plotimage_args *)(argp1);
10983   result = (double) ((arg1)->image_valid_high);
10984   resultobj = SWIG_From_double((double)(result));
10985   return resultobj;
10986 fail:
10987   return NULL;
10988 }
10989 
10990 
_wrap_plotimage_args_n_invalid_low_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)10991 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_low_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10992   PyObject *resultobj = 0;
10993   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
10994   int arg2 ;
10995   void *argp1 = 0 ;
10996   int res1 = 0 ;
10997   int val2 ;
10998   int ecode2 = 0 ;
10999   PyObject *swig_obj[2] ;
11000 
11001   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_n_invalid_low_set", 2, 2, swig_obj)) SWIG_fail;
11002   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11003   if (!SWIG_IsOK(res1)) {
11004     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_low_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11005   }
11006   arg1 = (struct plotimage_args *)(argp1);
11007   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11008   if (!SWIG_IsOK(ecode2)) {
11009     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_n_invalid_low_set" "', argument " "2"" of type '" "int""'");
11010   }
11011   arg2 = (int)(val2);
11012   if (arg1) (arg1)->n_invalid_low = arg2;
11013   resultobj = SWIG_Py_Void();
11014   return resultobj;
11015 fail:
11016   return NULL;
11017 }
11018 
11019 
_wrap_plotimage_args_n_invalid_low_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11020 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_low_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11021   PyObject *resultobj = 0;
11022   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11023   void *argp1 = 0 ;
11024   int res1 = 0 ;
11025   PyObject *swig_obj[1] ;
11026   int result;
11027 
11028   if (!args) SWIG_fail;
11029   swig_obj[0] = args;
11030   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11031   if (!SWIG_IsOK(res1)) {
11032     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_low_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11033   }
11034   arg1 = (struct plotimage_args *)(argp1);
11035   result = (int) ((arg1)->n_invalid_low);
11036   resultobj = SWIG_From_int((int)(result));
11037   return resultobj;
11038 fail:
11039   return NULL;
11040 }
11041 
11042 
_wrap_plotimage_args_n_invalid_high_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11043 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_high_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11044   PyObject *resultobj = 0;
11045   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11046   int arg2 ;
11047   void *argp1 = 0 ;
11048   int res1 = 0 ;
11049   int val2 ;
11050   int ecode2 = 0 ;
11051   PyObject *swig_obj[2] ;
11052 
11053   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_n_invalid_high_set", 2, 2, swig_obj)) SWIG_fail;
11054   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11055   if (!SWIG_IsOK(res1)) {
11056     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_high_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11057   }
11058   arg1 = (struct plotimage_args *)(argp1);
11059   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11060   if (!SWIG_IsOK(ecode2)) {
11061     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_n_invalid_high_set" "', argument " "2"" of type '" "int""'");
11062   }
11063   arg2 = (int)(val2);
11064   if (arg1) (arg1)->n_invalid_high = arg2;
11065   resultobj = SWIG_Py_Void();
11066   return resultobj;
11067 fail:
11068   return NULL;
11069 }
11070 
11071 
_wrap_plotimage_args_n_invalid_high_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11072 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_high_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11073   PyObject *resultobj = 0;
11074   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11075   void *argp1 = 0 ;
11076   int res1 = 0 ;
11077   PyObject *swig_obj[1] ;
11078   int result;
11079 
11080   if (!args) SWIG_fail;
11081   swig_obj[0] = args;
11082   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11083   if (!SWIG_IsOK(res1)) {
11084     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_high_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11085   }
11086   arg1 = (struct plotimage_args *)(argp1);
11087   result = (int) ((arg1)->n_invalid_high);
11088   resultobj = SWIG_From_int((int)(result));
11089   return resultobj;
11090 fail:
11091   return NULL;
11092 }
11093 
11094 
_wrap_plotimage_args_n_invalid_null_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11095 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_null_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11096   PyObject *resultobj = 0;
11097   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11098   int arg2 ;
11099   void *argp1 = 0 ;
11100   int res1 = 0 ;
11101   int val2 ;
11102   int ecode2 = 0 ;
11103   PyObject *swig_obj[2] ;
11104 
11105   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_n_invalid_null_set", 2, 2, swig_obj)) SWIG_fail;
11106   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11107   if (!SWIG_IsOK(res1)) {
11108     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_null_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11109   }
11110   arg1 = (struct plotimage_args *)(argp1);
11111   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11112   if (!SWIG_IsOK(ecode2)) {
11113     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_n_invalid_null_set" "', argument " "2"" of type '" "int""'");
11114   }
11115   arg2 = (int)(val2);
11116   if (arg1) (arg1)->n_invalid_null = arg2;
11117   resultobj = SWIG_Py_Void();
11118   return resultobj;
11119 fail:
11120   return NULL;
11121 }
11122 
11123 
_wrap_plotimage_args_n_invalid_null_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11124 SWIGINTERN PyObject *_wrap_plotimage_args_n_invalid_null_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11125   PyObject *resultobj = 0;
11126   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11127   void *argp1 = 0 ;
11128   int res1 = 0 ;
11129   PyObject *swig_obj[1] ;
11130   int result;
11131 
11132   if (!args) SWIG_fail;
11133   swig_obj[0] = args;
11134   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11135   if (!SWIG_IsOK(res1)) {
11136     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_n_invalid_null_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11137   }
11138   arg1 = (struct plotimage_args *)(argp1);
11139   result = (int) ((arg1)->n_invalid_null);
11140   resultobj = SWIG_From_int((int)(result));
11141   return resultobj;
11142 fail:
11143   return NULL;
11144 }
11145 
11146 
_wrap_plotimage_args_fitsext_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11147 SWIGINTERN PyObject *_wrap_plotimage_args_fitsext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11148   PyObject *resultobj = 0;
11149   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11150   int arg2 ;
11151   void *argp1 = 0 ;
11152   int res1 = 0 ;
11153   int val2 ;
11154   int ecode2 = 0 ;
11155   PyObject *swig_obj[2] ;
11156 
11157   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_fitsext_set", 2, 2, swig_obj)) SWIG_fail;
11158   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11159   if (!SWIG_IsOK(res1)) {
11160     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fitsext_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11161   }
11162   arg1 = (struct plotimage_args *)(argp1);
11163   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11164   if (!SWIG_IsOK(ecode2)) {
11165     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_fitsext_set" "', argument " "2"" of type '" "int""'");
11166   }
11167   arg2 = (int)(val2);
11168   if (arg1) (arg1)->fitsext = arg2;
11169   resultobj = SWIG_Py_Void();
11170   return resultobj;
11171 fail:
11172   return NULL;
11173 }
11174 
11175 
_wrap_plotimage_args_fitsext_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11176 SWIGINTERN PyObject *_wrap_plotimage_args_fitsext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11177   PyObject *resultobj = 0;
11178   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11179   void *argp1 = 0 ;
11180   int res1 = 0 ;
11181   PyObject *swig_obj[1] ;
11182   int result;
11183 
11184   if (!args) SWIG_fail;
11185   swig_obj[0] = args;
11186   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11187   if (!SWIG_IsOK(res1)) {
11188     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fitsext_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11189   }
11190   arg1 = (struct plotimage_args *)(argp1);
11191   result = (int) ((arg1)->fitsext);
11192   resultobj = SWIG_From_int((int)(result));
11193   return resultobj;
11194 fail:
11195   return NULL;
11196 }
11197 
11198 
_wrap_plotimage_args_fitsplane_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11199 SWIGINTERN PyObject *_wrap_plotimage_args_fitsplane_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11200   PyObject *resultobj = 0;
11201   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11202   int arg2 ;
11203   void *argp1 = 0 ;
11204   int res1 = 0 ;
11205   int val2 ;
11206   int ecode2 = 0 ;
11207   PyObject *swig_obj[2] ;
11208 
11209   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_fitsplane_set", 2, 2, swig_obj)) SWIG_fail;
11210   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11211   if (!SWIG_IsOK(res1)) {
11212     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fitsplane_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11213   }
11214   arg1 = (struct plotimage_args *)(argp1);
11215   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11216   if (!SWIG_IsOK(ecode2)) {
11217     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_fitsplane_set" "', argument " "2"" of type '" "int""'");
11218   }
11219   arg2 = (int)(val2);
11220   if (arg1) (arg1)->fitsplane = arg2;
11221   resultobj = SWIG_Py_Void();
11222   return resultobj;
11223 fail:
11224   return NULL;
11225 }
11226 
11227 
_wrap_plotimage_args_fitsplane_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11228 SWIGINTERN PyObject *_wrap_plotimage_args_fitsplane_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11229   PyObject *resultobj = 0;
11230   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11231   void *argp1 = 0 ;
11232   int res1 = 0 ;
11233   PyObject *swig_obj[1] ;
11234   int result;
11235 
11236   if (!args) SWIG_fail;
11237   swig_obj[0] = args;
11238   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11239   if (!SWIG_IsOK(res1)) {
11240     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_fitsplane_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11241   }
11242   arg1 = (struct plotimage_args *)(argp1);
11243   result = (int) ((arg1)->fitsplane);
11244   resultobj = SWIG_From_int((int)(result));
11245   return resultobj;
11246 fail:
11247   return NULL;
11248 }
11249 
11250 
_wrap_plotimage_args_auto_scale_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11251 SWIGINTERN PyObject *_wrap_plotimage_args_auto_scale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11252   PyObject *resultobj = 0;
11253   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11254   anbool arg2 ;
11255   void *argp1 = 0 ;
11256   int res1 = 0 ;
11257   unsigned char val2 ;
11258   int ecode2 = 0 ;
11259   PyObject *swig_obj[2] ;
11260 
11261   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_auto_scale_set", 2, 2, swig_obj)) SWIG_fail;
11262   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11263   if (!SWIG_IsOK(res1)) {
11264     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_auto_scale_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11265   }
11266   arg1 = (struct plotimage_args *)(argp1);
11267   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
11268   if (!SWIG_IsOK(ecode2)) {
11269     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_auto_scale_set" "', argument " "2"" of type '" "anbool""'");
11270   }
11271   arg2 = (anbool)(val2);
11272   if (arg1) (arg1)->auto_scale = arg2;
11273   resultobj = SWIG_Py_Void();
11274   return resultobj;
11275 fail:
11276   return NULL;
11277 }
11278 
11279 
_wrap_plotimage_args_auto_scale_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11280 SWIGINTERN PyObject *_wrap_plotimage_args_auto_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11281   PyObject *resultobj = 0;
11282   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11283   void *argp1 = 0 ;
11284   int res1 = 0 ;
11285   PyObject *swig_obj[1] ;
11286   anbool result;
11287 
11288   if (!args) SWIG_fail;
11289   swig_obj[0] = args;
11290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11291   if (!SWIG_IsOK(res1)) {
11292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_auto_scale_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11293   }
11294   arg1 = (struct plotimage_args *)(argp1);
11295   result = (anbool) ((arg1)->auto_scale);
11296   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
11297   return resultobj;
11298 fail:
11299   return NULL;
11300 }
11301 
11302 
_wrap_plotimage_args_img_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11303 SWIGINTERN PyObject *_wrap_plotimage_args_img_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11304   PyObject *resultobj = 0;
11305   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11306   unsigned char *arg2 = (unsigned char *) 0 ;
11307   void *argp1 = 0 ;
11308   int res1 = 0 ;
11309   void *argp2 = 0 ;
11310   int res2 = 0 ;
11311   PyObject *swig_obj[2] ;
11312 
11313   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_img_set", 2, 2, swig_obj)) SWIG_fail;
11314   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11315   if (!SWIG_IsOK(res1)) {
11316     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_img_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11317   }
11318   arg1 = (struct plotimage_args *)(argp1);
11319   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN |  0 );
11320   if (!SWIG_IsOK(res2)) {
11321     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotimage_args_img_set" "', argument " "2"" of type '" "unsigned char *""'");
11322   }
11323   arg2 = (unsigned char *)(argp2);
11324   if (arg1) (arg1)->img = arg2;
11325   resultobj = SWIG_Py_Void();
11326   return resultobj;
11327 fail:
11328   return NULL;
11329 }
11330 
11331 
_wrap_plotimage_args_img_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11332 SWIGINTERN PyObject *_wrap_plotimage_args_img_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11333   PyObject *resultobj = 0;
11334   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11335   void *argp1 = 0 ;
11336   int res1 = 0 ;
11337   PyObject *swig_obj[1] ;
11338   unsigned char *result = 0 ;
11339 
11340   if (!args) SWIG_fail;
11341   swig_obj[0] = args;
11342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11343   if (!SWIG_IsOK(res1)) {
11344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_img_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11345   }
11346   arg1 = (struct plotimage_args *)(argp1);
11347   result = (unsigned char *) ((arg1)->img);
11348   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 |  0 );
11349   return resultobj;
11350 fail:
11351   return NULL;
11352 }
11353 
11354 
_wrap_plotimage_args_W_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11355 SWIGINTERN PyObject *_wrap_plotimage_args_W_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11356   PyObject *resultobj = 0;
11357   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11358   int arg2 ;
11359   void *argp1 = 0 ;
11360   int res1 = 0 ;
11361   int val2 ;
11362   int ecode2 = 0 ;
11363   PyObject *swig_obj[2] ;
11364 
11365   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_W_set", 2, 2, swig_obj)) SWIG_fail;
11366   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11367   if (!SWIG_IsOK(res1)) {
11368     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_W_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11369   }
11370   arg1 = (struct plotimage_args *)(argp1);
11371   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11372   if (!SWIG_IsOK(ecode2)) {
11373     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_W_set" "', argument " "2"" of type '" "int""'");
11374   }
11375   arg2 = (int)(val2);
11376   if (arg1) (arg1)->W = arg2;
11377   resultobj = SWIG_Py_Void();
11378   return resultobj;
11379 fail:
11380   return NULL;
11381 }
11382 
11383 
_wrap_plotimage_args_W_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11384 SWIGINTERN PyObject *_wrap_plotimage_args_W_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11385   PyObject *resultobj = 0;
11386   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11387   void *argp1 = 0 ;
11388   int res1 = 0 ;
11389   PyObject *swig_obj[1] ;
11390   int result;
11391 
11392   if (!args) SWIG_fail;
11393   swig_obj[0] = args;
11394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11395   if (!SWIG_IsOK(res1)) {
11396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_W_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11397   }
11398   arg1 = (struct plotimage_args *)(argp1);
11399   result = (int) ((arg1)->W);
11400   resultobj = SWIG_From_int((int)(result));
11401   return resultobj;
11402 fail:
11403   return NULL;
11404 }
11405 
11406 
_wrap_plotimage_args_H_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11407 SWIGINTERN PyObject *_wrap_plotimage_args_H_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11408   PyObject *resultobj = 0;
11409   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11410   int arg2 ;
11411   void *argp1 = 0 ;
11412   int res1 = 0 ;
11413   int val2 ;
11414   int ecode2 = 0 ;
11415   PyObject *swig_obj[2] ;
11416 
11417   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_H_set", 2, 2, swig_obj)) SWIG_fail;
11418   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11419   if (!SWIG_IsOK(res1)) {
11420     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_H_set" "', argument " "1"" of type '" "struct plotimage_args *""'");
11421   }
11422   arg1 = (struct plotimage_args *)(argp1);
11423   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
11424   if (!SWIG_IsOK(ecode2)) {
11425     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_H_set" "', argument " "2"" of type '" "int""'");
11426   }
11427   arg2 = (int)(val2);
11428   if (arg1) (arg1)->H = arg2;
11429   resultobj = SWIG_Py_Void();
11430   return resultobj;
11431 fail:
11432   return NULL;
11433 }
11434 
11435 
_wrap_plotimage_args_H_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11436 SWIGINTERN PyObject *_wrap_plotimage_args_H_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11437   PyObject *resultobj = 0;
11438   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11439   void *argp1 = 0 ;
11440   int res1 = 0 ;
11441   PyObject *swig_obj[1] ;
11442   int result;
11443 
11444   if (!args) SWIG_fail;
11445   swig_obj[0] = args;
11446   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11447   if (!SWIG_IsOK(res1)) {
11448     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_H_get" "', argument " "1"" of type '" "struct plotimage_args *""'");
11449   }
11450   arg1 = (struct plotimage_args *)(argp1);
11451   result = (int) ((arg1)->H);
11452   resultobj = SWIG_From_int((int)(result));
11453   return resultobj;
11454 fail:
11455   return NULL;
11456 }
11457 
11458 
_wrap_plotimage_args__set_image_from_numpy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11459 SWIGINTERN PyObject *_wrap_plotimage_args__set_image_from_numpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11460   PyObject *resultobj = 0;
11461   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11462   PyObject *arg2 = (PyObject *) 0 ;
11463   void *argp1 = 0 ;
11464   int res1 = 0 ;
11465   PyObject *swig_obj[2] ;
11466   int result;
11467 
11468   if (!SWIG_Python_UnpackTuple(args, "plotimage_args__set_image_from_numpy", 2, 2, swig_obj)) SWIG_fail;
11469   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11470   if (!SWIG_IsOK(res1)) {
11471     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args__set_image_from_numpy" "', argument " "1"" of type '" "struct plotimage_args *""'");
11472   }
11473   arg1 = (struct plotimage_args *)(argp1);
11474   arg2 = swig_obj[1];
11475   result = (int)plotimage_args__set_image_from_numpy(arg1,arg2);
11476   resultobj = SWIG_From_int((int)(result));
11477   return resultobj;
11478 fail:
11479   return NULL;
11480 }
11481 
11482 
_wrap_plotimage_args_set_wcs_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11483 SWIGINTERN PyObject *_wrap_plotimage_args_set_wcs_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11484   PyObject *resultobj = 0;
11485   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11486   char *arg2 = (char *) 0 ;
11487   int arg3 ;
11488   void *argp1 = 0 ;
11489   int res1 = 0 ;
11490   int res2 ;
11491   char *buf2 = 0 ;
11492   int alloc2 = 0 ;
11493   int val3 ;
11494   int ecode3 = 0 ;
11495   PyObject *swig_obj[3] ;
11496   int result;
11497 
11498   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_set_wcs_file", 3, 3, swig_obj)) SWIG_fail;
11499   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11500   if (!SWIG_IsOK(res1)) {
11501     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_set_wcs_file" "', argument " "1"" of type '" "struct plotimage_args *""'");
11502   }
11503   arg1 = (struct plotimage_args *)(argp1);
11504   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11505   if (!SWIG_IsOK(res2)) {
11506     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotimage_args_set_wcs_file" "', argument " "2"" of type '" "char const *""'");
11507   }
11508   arg2 = (char *)(buf2);
11509   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11510   if (!SWIG_IsOK(ecode3)) {
11511     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotimage_args_set_wcs_file" "', argument " "3"" of type '" "int""'");
11512   }
11513   arg3 = (int)(val3);
11514   result = (int)plotimage_args_set_wcs_file(arg1,(char const *)arg2,arg3);
11515   resultobj = SWIG_From_int((int)(result));
11516   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11517   return resultobj;
11518 fail:
11519   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11520   return NULL;
11521 }
11522 
11523 
_wrap_plotimage_args_set_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11524 SWIGINTERN PyObject *_wrap_plotimage_args_set_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11525   PyObject *resultobj = 0;
11526   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11527   char *arg2 = (char *) 0 ;
11528   void *argp1 = 0 ;
11529   int res1 = 0 ;
11530   int res2 ;
11531   char *buf2 = 0 ;
11532   int alloc2 = 0 ;
11533   PyObject *swig_obj[2] ;
11534   int result;
11535 
11536   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_set_file", 2, 2, swig_obj)) SWIG_fail;
11537   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11538   if (!SWIG_IsOK(res1)) {
11539     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_set_file" "', argument " "1"" of type '" "struct plotimage_args *""'");
11540   }
11541   arg1 = (struct plotimage_args *)(argp1);
11542   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11543   if (!SWIG_IsOK(res2)) {
11544     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotimage_args_set_file" "', argument " "2"" of type '" "char const *""'");
11545   }
11546   arg2 = (char *)(buf2);
11547   result = (int)plotimage_args_set_file(arg1,(char const *)arg2);
11548   resultobj = SWIG_From_int((int)(result));
11549   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11550   return resultobj;
11551 fail:
11552   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11553   return NULL;
11554 }
11555 
11556 
_wrap_plotimage_args_set_rgbscale(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11557 SWIGINTERN PyObject *_wrap_plotimage_args_set_rgbscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11558   PyObject *resultobj = 0;
11559   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11560   double arg2 ;
11561   double arg3 ;
11562   double arg4 ;
11563   void *argp1 = 0 ;
11564   int res1 = 0 ;
11565   double val2 ;
11566   int ecode2 = 0 ;
11567   double val3 ;
11568   int ecode3 = 0 ;
11569   double val4 ;
11570   int ecode4 = 0 ;
11571   PyObject *swig_obj[4] ;
11572 
11573   if (!SWIG_Python_UnpackTuple(args, "plotimage_args_set_rgbscale", 4, 4, swig_obj)) SWIG_fail;
11574   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11575   if (!SWIG_IsOK(res1)) {
11576     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_set_rgbscale" "', argument " "1"" of type '" "struct plotimage_args *""'");
11577   }
11578   arg1 = (struct plotimage_args *)(argp1);
11579   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
11580   if (!SWIG_IsOK(ecode2)) {
11581     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotimage_args_set_rgbscale" "', argument " "2"" of type '" "double""'");
11582   }
11583   arg2 = (double)(val2);
11584   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
11585   if (!SWIG_IsOK(ecode3)) {
11586     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotimage_args_set_rgbscale" "', argument " "3"" of type '" "double""'");
11587   }
11588   arg3 = (double)(val3);
11589   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
11590   if (!SWIG_IsOK(ecode4)) {
11591     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plotimage_args_set_rgbscale" "', argument " "4"" of type '" "double""'");
11592   }
11593   arg4 = (double)(val4);
11594   plotimage_args_set_rgbscale(arg1,arg2,arg3,arg4);
11595   resultobj = SWIG_Py_Void();
11596   return resultobj;
11597 fail:
11598   return NULL;
11599 }
11600 
11601 
_wrap_plotimage_args_get_image_width(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11602 SWIGINTERN PyObject *_wrap_plotimage_args_get_image_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11603   PyObject *resultobj = 0;
11604   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11605   void *argp1 = 0 ;
11606   int res1 = 0 ;
11607   PyObject *swig_obj[1] ;
11608   int result;
11609 
11610   if (!args) SWIG_fail;
11611   swig_obj[0] = args;
11612   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11613   if (!SWIG_IsOK(res1)) {
11614     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_get_image_width" "', argument " "1"" of type '" "struct plotimage_args *""'");
11615   }
11616   arg1 = (struct plotimage_args *)(argp1);
11617   result = (int)plotimage_args_get_image_width(arg1);
11618   resultobj = SWIG_From_int((int)(result));
11619   return resultobj;
11620 fail:
11621   return NULL;
11622 }
11623 
11624 
_wrap_plotimage_args_get_image_height(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11625 SWIGINTERN PyObject *_wrap_plotimage_args_get_image_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11626   PyObject *resultobj = 0;
11627   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11628   void *argp1 = 0 ;
11629   int res1 = 0 ;
11630   PyObject *swig_obj[1] ;
11631   int result;
11632 
11633   if (!args) SWIG_fail;
11634   swig_obj[0] = args;
11635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11636   if (!SWIG_IsOK(res1)) {
11637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotimage_args_get_image_height" "', argument " "1"" of type '" "struct plotimage_args *""'");
11638   }
11639   arg1 = (struct plotimage_args *)(argp1);
11640   result = (int)plotimage_args_get_image_height(arg1);
11641   resultobj = SWIG_From_int((int)(result));
11642   return resultobj;
11643 fail:
11644   return NULL;
11645 }
11646 
11647 
_wrap_new_plotimage_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11648 SWIGINTERN PyObject *_wrap_new_plotimage_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11649   PyObject *resultobj = 0;
11650   struct plotimage_args *result = 0 ;
11651 
11652   if (!SWIG_Python_UnpackTuple(args, "new_plotimage_args", 0, 0, 0)) SWIG_fail;
11653   result = (struct plotimage_args *)calloc(1, sizeof(struct plotimage_args));
11654   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotimage_args, SWIG_POINTER_NEW |  0 );
11655   return resultobj;
11656 fail:
11657   return NULL;
11658 }
11659 
11660 
_wrap_delete_plotimage_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11661 SWIGINTERN PyObject *_wrap_delete_plotimage_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11662   PyObject *resultobj = 0;
11663   struct plotimage_args *arg1 = (struct plotimage_args *) 0 ;
11664   void *argp1 = 0 ;
11665   int res1 = 0 ;
11666   PyObject *swig_obj[1] ;
11667 
11668   if (!args) SWIG_fail;
11669   swig_obj[0] = args;
11670   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, SWIG_POINTER_DISOWN |  0 );
11671   if (!SWIG_IsOK(res1)) {
11672     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotimage_args" "', argument " "1"" of type '" "struct plotimage_args *""'");
11673   }
11674   arg1 = (struct plotimage_args *)(argp1);
11675   free((char *) arg1);
11676   resultobj = SWIG_Py_Void();
11677   return resultobj;
11678 fail:
11679   return NULL;
11680 }
11681 
11682 
plotimage_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11683 SWIGINTERN PyObject *plotimage_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684   PyObject *obj;
11685   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
11686   SWIG_TypeNewClientData(SWIGTYPE_p_plotimage_args, SWIG_NewClientData(obj));
11687   return SWIG_Py_Void();
11688 }
11689 
plotimage_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11690 SWIGINTERN PyObject *plotimage_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11691   return SWIG_Python_InitShadowInstance(args);
11692 }
11693 
_wrap_plot_image_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11694 SWIGINTERN PyObject *_wrap_plot_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11695   PyObject *resultobj = 0;
11696   plot_args_t *arg1 = (plot_args_t *) 0 ;
11697   void *argp1 = 0 ;
11698   int res1 = 0 ;
11699   PyObject *swig_obj[1] ;
11700   plotimage_t *result = 0 ;
11701 
11702   if (!args) SWIG_fail;
11703   swig_obj[0] = args;
11704   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
11705   if (!SWIG_IsOK(res1)) {
11706     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_get" "', argument " "1"" of type '" "plot_args_t *""'");
11707   }
11708   arg1 = (plot_args_t *)(argp1);
11709   result = (plotimage_t *)plot_image_get(arg1);
11710   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotimage_args, 0 |  0 );
11711   return resultobj;
11712 fail:
11713   return NULL;
11714 }
11715 
11716 
_wrap_plot_image_set_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11717 SWIGINTERN PyObject *_wrap_plot_image_set_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11718   PyObject *resultobj = 0;
11719   plotimage_t *arg1 = (plotimage_t *) 0 ;
11720   char *arg2 = (char *) 0 ;
11721   int arg3 ;
11722   void *argp1 = 0 ;
11723   int res1 = 0 ;
11724   int res2 ;
11725   char *buf2 = 0 ;
11726   int alloc2 = 0 ;
11727   int val3 ;
11728   int ecode3 = 0 ;
11729   PyObject *swig_obj[3] ;
11730   int result;
11731 
11732   if (!SWIG_Python_UnpackTuple(args, "plot_image_set_wcs", 3, 3, swig_obj)) SWIG_fail;
11733   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11734   if (!SWIG_IsOK(res1)) {
11735     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_set_wcs" "', argument " "1"" of type '" "plotimage_t *""'");
11736   }
11737   arg1 = (plotimage_t *)(argp1);
11738   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11739   if (!SWIG_IsOK(res2)) {
11740     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_set_wcs" "', argument " "2"" of type '" "char const *""'");
11741   }
11742   arg2 = (char *)(buf2);
11743   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
11744   if (!SWIG_IsOK(ecode3)) {
11745     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_image_set_wcs" "', argument " "3"" of type '" "int""'");
11746   }
11747   arg3 = (int)(val3);
11748   result = (int)plot_image_set_wcs(arg1,(char const *)arg2,arg3);
11749   resultobj = SWIG_From_int((int)(result));
11750   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11751   return resultobj;
11752 fail:
11753   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11754   return NULL;
11755 }
11756 
11757 
_wrap_plot_image_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11758 SWIGINTERN PyObject *_wrap_plot_image_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11759   PyObject *resultobj = 0;
11760   plot_args_t *arg1 = (plot_args_t *) 0 ;
11761   void *argp1 = 0 ;
11762   int res1 = 0 ;
11763   PyObject *swig_obj[1] ;
11764   void *result = 0 ;
11765 
11766   if (!args) SWIG_fail;
11767   swig_obj[0] = args;
11768   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
11769   if (!SWIG_IsOK(res1)) {
11770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_init" "', argument " "1"" of type '" "plot_args_t *""'");
11771   }
11772   arg1 = (plot_args_t *)(argp1);
11773   result = (void *)plot_image_init(arg1);
11774   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
11775   return resultobj;
11776 fail:
11777   return NULL;
11778 }
11779 
11780 
_wrap_plot_image_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11781 SWIGINTERN PyObject *_wrap_plot_image_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11782   PyObject *resultobj = 0;
11783   char *arg1 = (char *) 0 ;
11784   char *arg2 = (char *) 0 ;
11785   plot_args_t *arg3 = (plot_args_t *) 0 ;
11786   void *arg4 = (void *) 0 ;
11787   int res1 ;
11788   char *buf1 = 0 ;
11789   int alloc1 = 0 ;
11790   int res2 ;
11791   char *buf2 = 0 ;
11792   int alloc2 = 0 ;
11793   void *argp3 = 0 ;
11794   int res3 = 0 ;
11795   int res4 ;
11796   PyObject *swig_obj[4] ;
11797   int result;
11798 
11799   if (!SWIG_Python_UnpackTuple(args, "plot_image_command", 4, 4, swig_obj)) SWIG_fail;
11800   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
11801   if (!SWIG_IsOK(res1)) {
11802     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_command" "', argument " "1"" of type '" "char const *""'");
11803   }
11804   arg1 = (char *)(buf1);
11805   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11806   if (!SWIG_IsOK(res2)) {
11807     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_command" "', argument " "2"" of type '" "char const *""'");
11808   }
11809   arg2 = (char *)(buf2);
11810   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
11811   if (!SWIG_IsOK(res3)) {
11812     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_image_command" "', argument " "3"" of type '" "plot_args_t *""'");
11813   }
11814   arg3 = (plot_args_t *)(argp3);
11815   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
11816   if (!SWIG_IsOK(res4)) {
11817     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_image_command" "', argument " "4"" of type '" "void *""'");
11818   }
11819   result = (int)plot_image_command((char const *)arg1,(char const *)arg2,arg3,arg4);
11820   resultobj = SWIG_From_int((int)(result));
11821   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11822   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11823   return resultobj;
11824 fail:
11825   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11826   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11827   return NULL;
11828 }
11829 
11830 
_wrap_plot_image_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11831 SWIGINTERN PyObject *_wrap_plot_image_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11832   PyObject *resultobj = 0;
11833   char *arg1 = (char *) 0 ;
11834   cairo_t *arg2 = (cairo_t *) 0 ;
11835   plot_args_t *arg3 = (plot_args_t *) 0 ;
11836   void *arg4 = (void *) 0 ;
11837   int res1 ;
11838   char *buf1 = 0 ;
11839   int alloc1 = 0 ;
11840   void *argp2 = 0 ;
11841   int res2 = 0 ;
11842   void *argp3 = 0 ;
11843   int res3 = 0 ;
11844   int res4 ;
11845   PyObject *swig_obj[4] ;
11846   int result;
11847 
11848   if (!SWIG_Python_UnpackTuple(args, "plot_image_plot", 4, 4, swig_obj)) SWIG_fail;
11849   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
11850   if (!SWIG_IsOK(res1)) {
11851     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_plot" "', argument " "1"" of type '" "char const *""'");
11852   }
11853   arg1 = (char *)(buf1);
11854   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
11855   if (!SWIG_IsOK(res2)) {
11856     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_plot" "', argument " "2"" of type '" "cairo_t *""'");
11857   }
11858   arg2 = (cairo_t *)(argp2);
11859   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
11860   if (!SWIG_IsOK(res3)) {
11861     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_image_plot" "', argument " "3"" of type '" "plot_args_t *""'");
11862   }
11863   arg3 = (plot_args_t *)(argp3);
11864   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
11865   if (!SWIG_IsOK(res4)) {
11866     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_image_plot" "', argument " "4"" of type '" "void *""'");
11867   }
11868   result = (int)plot_image_plot((char const *)arg1,arg2,arg3,arg4);
11869   resultobj = SWIG_From_int((int)(result));
11870   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11871   return resultobj;
11872 fail:
11873   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
11874   return NULL;
11875 }
11876 
11877 
_wrap_plot_image_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11878 SWIGINTERN PyObject *_wrap_plot_image_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11879   PyObject *resultobj = 0;
11880   plot_args_t *arg1 = (plot_args_t *) 0 ;
11881   void *arg2 = (void *) 0 ;
11882   void *argp1 = 0 ;
11883   int res1 = 0 ;
11884   int res2 ;
11885   PyObject *swig_obj[2] ;
11886 
11887   if (!SWIG_Python_UnpackTuple(args, "plot_image_free", 2, 2, swig_obj)) SWIG_fail;
11888   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
11889   if (!SWIG_IsOK(res1)) {
11890     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_free" "', argument " "1"" of type '" "plot_args_t *""'");
11891   }
11892   arg1 = (plot_args_t *)(argp1);
11893   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
11894   if (!SWIG_IsOK(res2)) {
11895     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_free" "', argument " "2"" of type '" "void *""'");
11896   }
11897   plot_image_free(arg1,arg2);
11898   resultobj = SWIG_Py_Void();
11899   return resultobj;
11900 fail:
11901   return NULL;
11902 }
11903 
11904 
_wrap_plot_image_getsize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11905 SWIGINTERN PyObject *_wrap_plot_image_getsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11906   PyObject *resultobj = 0;
11907   plotimage_t *arg1 = (plotimage_t *) 0 ;
11908   int *arg2 = (int *) 0 ;
11909   int *arg3 = (int *) 0 ;
11910   void *argp1 = 0 ;
11911   int res1 = 0 ;
11912   void *argp2 = 0 ;
11913   int res2 = 0 ;
11914   void *argp3 = 0 ;
11915   int res3 = 0 ;
11916   PyObject *swig_obj[3] ;
11917   int result;
11918 
11919   if (!SWIG_Python_UnpackTuple(args, "plot_image_getsize", 3, 3, swig_obj)) SWIG_fail;
11920   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11921   if (!SWIG_IsOK(res1)) {
11922     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_getsize" "', argument " "1"" of type '" "plotimage_t *""'");
11923   }
11924   arg1 = (plotimage_t *)(argp1);
11925   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_int, 0 |  0 );
11926   if (!SWIG_IsOK(res2)) {
11927     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_getsize" "', argument " "2"" of type '" "int *""'");
11928   }
11929   arg2 = (int *)(argp2);
11930   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_int, 0 |  0 );
11931   if (!SWIG_IsOK(res3)) {
11932     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_image_getsize" "', argument " "3"" of type '" "int *""'");
11933   }
11934   arg3 = (int *)(argp3);
11935   result = (int)plot_image_getsize(arg1,arg2,arg3);
11936   resultobj = SWIG_From_int((int)(result));
11937   return resultobj;
11938 fail:
11939   return NULL;
11940 }
11941 
11942 
_wrap_plot_image_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11943 SWIGINTERN PyObject *_wrap_plot_image_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11944   PyObject *resultobj = 0;
11945   plotimage_t *arg1 = (plotimage_t *) 0 ;
11946   char *arg2 = (char *) 0 ;
11947   void *argp1 = 0 ;
11948   int res1 = 0 ;
11949   int res2 ;
11950   char *buf2 = 0 ;
11951   int alloc2 = 0 ;
11952   PyObject *swig_obj[2] ;
11953   int result;
11954 
11955   if (!SWIG_Python_UnpackTuple(args, "plot_image_set_filename", 2, 2, swig_obj)) SWIG_fail;
11956   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
11957   if (!SWIG_IsOK(res1)) {
11958     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_set_filename" "', argument " "1"" of type '" "plotimage_t *""'");
11959   }
11960   arg1 = (plotimage_t *)(argp1);
11961   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
11962   if (!SWIG_IsOK(res2)) {
11963     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_set_filename" "', argument " "2"" of type '" "char const *""'");
11964   }
11965   arg2 = (char *)(buf2);
11966   result = (int)plot_image_set_filename(arg1,(char const *)arg2);
11967   resultobj = SWIG_From_int((int)(result));
11968   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11969   return resultobj;
11970 fail:
11971   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
11972   return NULL;
11973 }
11974 
11975 
_wrap_plot_image_setsize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)11976 SWIGINTERN PyObject *_wrap_plot_image_setsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977   PyObject *resultobj = 0;
11978   plot_args_t *arg1 = (plot_args_t *) 0 ;
11979   plotimage_t *arg2 = (plotimage_t *) 0 ;
11980   void *argp1 = 0 ;
11981   int res1 = 0 ;
11982   void *argp2 = 0 ;
11983   int res2 = 0 ;
11984   PyObject *swig_obj[2] ;
11985   int result;
11986 
11987   if (!SWIG_Python_UnpackTuple(args, "plot_image_setsize", 2, 2, swig_obj)) SWIG_fail;
11988   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
11989   if (!SWIG_IsOK(res1)) {
11990     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_setsize" "', argument " "1"" of type '" "plot_args_t *""'");
11991   }
11992   arg1 = (plot_args_t *)(argp1);
11993   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotimage_args, 0 |  0 );
11994   if (!SWIG_IsOK(res2)) {
11995     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_setsize" "', argument " "2"" of type '" "plotimage_t *""'");
11996   }
11997   arg2 = (plotimage_t *)(argp2);
11998   result = (int)plot_image_setsize(arg1,arg2);
11999   resultobj = SWIG_From_int((int)(result));
12000   return resultobj;
12001 fail:
12002   return NULL;
12003 }
12004 
12005 
_wrap_plot_image_get_percentile(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12006 SWIGINTERN PyObject *_wrap_plot_image_get_percentile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12007   PyObject *resultobj = 0;
12008   plot_args_t *arg1 = (plot_args_t *) 0 ;
12009   plotimage_t *arg2 = (plotimage_t *) 0 ;
12010   double arg3 ;
12011   unsigned char *arg4 = (unsigned char *) 0 ;
12012   void *argp1 = 0 ;
12013   int res1 = 0 ;
12014   void *argp2 = 0 ;
12015   int res2 = 0 ;
12016   double val3 ;
12017   int ecode3 = 0 ;
12018   unsigned char temp4[3] ;
12019   PyObject *swig_obj[3] ;
12020   int result;
12021 
12022   {
12023     arg4 = temp4;
12024   }
12025   if (!SWIG_Python_UnpackTuple(args, "plot_image_get_percentile", 3, 3, swig_obj)) SWIG_fail;
12026   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
12027   if (!SWIG_IsOK(res1)) {
12028     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_get_percentile" "', argument " "1"" of type '" "plot_args_t *""'");
12029   }
12030   arg1 = (plot_args_t *)(argp1);
12031   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotimage_args, 0 |  0 );
12032   if (!SWIG_IsOK(res2)) {
12033     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_get_percentile" "', argument " "2"" of type '" "plotimage_t *""'");
12034   }
12035   arg2 = (plotimage_t *)(argp2);
12036   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
12037   if (!SWIG_IsOK(ecode3)) {
12038     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_image_get_percentile" "', argument " "3"" of type '" "double""'");
12039   }
12040   arg3 = (double)(val3);
12041   result = (int)plot_image_get_percentile(arg1,arg2,arg3,arg4);
12042   resultobj = SWIG_From_int((int)(result));
12043   {
12044     // Append output value arg4 to resultobj
12045     if (result) {
12046       Py_DECREF(resultobj);
12047       resultobj = Py_None;
12048     } else {
12049       int i;
12050       Py_DECREF(resultobj);
12051       resultobj = PyList_New(3);
12052       for (i=0; i<3; i++) {
12053         PyObject *o = PyInt_FromLong((long)arg4[i]);
12054         PyList_SetItem(resultobj,i,o);
12055       }
12056     }
12057   }
12058   return resultobj;
12059 fail:
12060   return NULL;
12061 }
12062 
12063 
_wrap_plot_image_add_to_pixels(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12064 SWIGINTERN PyObject *_wrap_plot_image_add_to_pixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12065   PyObject *resultobj = 0;
12066   plotimage_t *arg1 = (plotimage_t *) 0 ;
12067   int *arg2 ;
12068   void *argp1 = 0 ;
12069   int res1 = 0 ;
12070   int temp2[3] ;
12071   PyObject *swig_obj[2] ;
12072 
12073   if (!SWIG_Python_UnpackTuple(args, "plot_image_add_to_pixels", 2, 2, swig_obj)) SWIG_fail;
12074   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
12075   if (!SWIG_IsOK(res1)) {
12076     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_add_to_pixels" "', argument " "1"" of type '" "plotimage_t *""'");
12077   }
12078   arg1 = (plotimage_t *)(argp1);
12079   {
12080     int i;
12081     // Convert sequence of ints to int[3]
12082     if (!PySequence_Check(swig_obj[1]) ||
12083       (PySequence_Length(swig_obj[1]) != 3)) {
12084       PyErr_SetString(PyExc_ValueError,"Expected a sequence of length 3");
12085       return NULL;
12086     }
12087     for (i=0; i<3; i++) {
12088       PyObject *o = PySequence_GetItem(swig_obj[1], i);
12089       if (PyNumber_Check(o)) {
12090         temp2[i] = (int)PyInt_AsLong(o);
12091       } else {
12092         PyErr_SetString(PyExc_ValueError,"Sequence elements must be numbers");
12093         return NULL;
12094       }
12095     }
12096     arg2 = temp2;
12097   }
12098   plot_image_add_to_pixels(arg1,arg2);
12099   resultobj = SWIG_Py_Void();
12100   return resultobj;
12101 fail:
12102   return NULL;
12103 }
12104 
12105 
_wrap_plot_image_scale_float(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12106 SWIGINTERN PyObject *_wrap_plot_image_scale_float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107   PyObject *resultobj = 0;
12108   plotimage_t *arg1 = (plotimage_t *) 0 ;
12109   float *arg2 = (float *) 0 ;
12110   void *argp1 = 0 ;
12111   int res1 = 0 ;
12112   void *argp2 = 0 ;
12113   int res2 = 0 ;
12114   PyObject *swig_obj[2] ;
12115   unsigned char *result = 0 ;
12116 
12117   if (!SWIG_Python_UnpackTuple(args, "plot_image_scale_float", 2, 2, swig_obj)) SWIG_fail;
12118   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
12119   if (!SWIG_IsOK(res1)) {
12120     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_scale_float" "', argument " "1"" of type '" "plotimage_t *""'");
12121   }
12122   arg1 = (plotimage_t *)(argp1);
12123   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
12124   if (!SWIG_IsOK(res2)) {
12125     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_scale_float" "', argument " "2"" of type '" "float const *""'");
12126   }
12127   arg2 = (float *)(argp2);
12128   result = (unsigned char *)plot_image_scale_float(arg1,(float const *)arg2);
12129   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 |  0 );
12130   return resultobj;
12131 fail:
12132   return NULL;
12133 }
12134 
12135 
_wrap_plot_image_rgba_data(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12136 SWIGINTERN PyObject *_wrap_plot_image_rgba_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12137   PyObject *resultobj = 0;
12138   cairo_t *arg1 = (cairo_t *) 0 ;
12139   plotimage_t *arg2 = (plotimage_t *) 0 ;
12140   void *argp1 = 0 ;
12141   int res1 = 0 ;
12142   void *argp2 = 0 ;
12143   int res2 = 0 ;
12144   PyObject *swig_obj[2] ;
12145 
12146   if (!SWIG_Python_UnpackTuple(args, "plot_image_rgba_data", 2, 2, swig_obj)) SWIG_fail;
12147   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
12148   if (!SWIG_IsOK(res1)) {
12149     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_rgba_data" "', argument " "1"" of type '" "cairo_t *""'");
12150   }
12151   arg1 = (cairo_t *)(argp1);
12152   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotimage_args, 0 |  0 );
12153   if (!SWIG_IsOK(res2)) {
12154     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_rgba_data" "', argument " "2"" of type '" "plotimage_t *""'");
12155   }
12156   arg2 = (plotimage_t *)(argp2);
12157   plot_image_rgba_data(arg1,arg2);
12158   resultobj = SWIG_Py_Void();
12159   return resultobj;
12160 fail:
12161   return NULL;
12162 }
12163 
12164 
_wrap_plot_image_read(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12165 SWIGINTERN PyObject *_wrap_plot_image_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12166   PyObject *resultobj = 0;
12167   plot_args_t *arg1 = (plot_args_t *) 0 ;
12168   plotimage_t *arg2 = (plotimage_t *) 0 ;
12169   void *argp1 = 0 ;
12170   int res1 = 0 ;
12171   void *argp2 = 0 ;
12172   int res2 = 0 ;
12173   PyObject *swig_obj[2] ;
12174   int result;
12175 
12176   if (!SWIG_Python_UnpackTuple(args, "plot_image_read", 2, 2, swig_obj)) SWIG_fail;
12177   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
12178   if (!SWIG_IsOK(res1)) {
12179     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_read" "', argument " "1"" of type '" "plot_args_t const *""'");
12180   }
12181   arg1 = (plot_args_t *)(argp1);
12182   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotimage_args, 0 |  0 );
12183   if (!SWIG_IsOK(res2)) {
12184     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_image_read" "', argument " "2"" of type '" "plotimage_t *""'");
12185   }
12186   arg2 = (plotimage_t *)(argp2);
12187   result = (int)plot_image_read((struct plot_args const *)arg1,arg2);
12188   resultobj = SWIG_From_int((int)(result));
12189   return resultobj;
12190 fail:
12191   return NULL;
12192 }
12193 
12194 
_wrap_plot_image_make_color_transparent(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12195 SWIGINTERN PyObject *_wrap_plot_image_make_color_transparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12196   PyObject *resultobj = 0;
12197   plotimage_t *arg1 = (plotimage_t *) 0 ;
12198   unsigned char arg2 ;
12199   unsigned char arg3 ;
12200   unsigned char arg4 ;
12201   void *argp1 = 0 ;
12202   int res1 = 0 ;
12203   unsigned char val2 ;
12204   int ecode2 = 0 ;
12205   unsigned char val3 ;
12206   int ecode3 = 0 ;
12207   unsigned char val4 ;
12208   int ecode4 = 0 ;
12209   PyObject *swig_obj[4] ;
12210 
12211   if (!SWIG_Python_UnpackTuple(args, "plot_image_make_color_transparent", 4, 4, swig_obj)) SWIG_fail;
12212   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotimage_args, 0 |  0 );
12213   if (!SWIG_IsOK(res1)) {
12214     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_make_color_transparent" "', argument " "1"" of type '" "plotimage_t *""'");
12215   }
12216   arg1 = (plotimage_t *)(argp1);
12217   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
12218   if (!SWIG_IsOK(ecode2)) {
12219     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_image_make_color_transparent" "', argument " "2"" of type '" "unsigned char""'");
12220   }
12221   arg2 = (unsigned char)(val2);
12222   ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3);
12223   if (!SWIG_IsOK(ecode3)) {
12224     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_image_make_color_transparent" "', argument " "3"" of type '" "unsigned char""'");
12225   }
12226   arg3 = (unsigned char)(val3);
12227   ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4);
12228   if (!SWIG_IsOK(ecode4)) {
12229     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot_image_make_color_transparent" "', argument " "4"" of type '" "unsigned char""'");
12230   }
12231   arg4 = (unsigned char)(val4);
12232   plot_image_make_color_transparent(arg1,arg2,arg3,arg4);
12233   resultobj = SWIG_Py_Void();
12234   return resultobj;
12235 fail:
12236   return NULL;
12237 }
12238 
12239 
_wrap_plot_image_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12240 SWIGINTERN PyObject *_wrap_plot_image_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12241   PyObject *resultobj = 0;
12242   plotter_t *arg1 = (plotter_t *) 0 ;
12243   void *argp1 = 0 ;
12244   int res1 = 0 ;
12245   PyObject *swig_obj[1] ;
12246 
12247   if (!args) SWIG_fail;
12248   swig_obj[0] = args;
12249   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
12250   if (!SWIG_IsOK(res1)) {
12251     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_image_describe" "', argument " "1"" of type '" "plotter_t *""'");
12252   }
12253   arg1 = (plotter_t *)(argp1);
12254   plot_image_describe(arg1);
12255   resultobj = SWIG_Py_Void();
12256   return resultobj;
12257 fail:
12258   return NULL;
12259 }
12260 
12261 
_wrap_plotoutline_args_wcs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12262 SWIGINTERN PyObject *_wrap_plotoutline_args_wcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12263   PyObject *resultobj = 0;
12264   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12265   anwcs_t *arg2 = (anwcs_t *) 0 ;
12266   void *argp1 = 0 ;
12267   int res1 = 0 ;
12268   void *argp2 = 0 ;
12269   int res2 = 0 ;
12270   PyObject *swig_obj[2] ;
12271 
12272   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_wcs_set", 2, 2, swig_obj)) SWIG_fail;
12273   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12274   if (!SWIG_IsOK(res1)) {
12275     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_wcs_set" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12276   }
12277   arg1 = (struct plotoutline_args *)(argp1);
12278   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
12279   if (!SWIG_IsOK(res2)) {
12280     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotoutline_args_wcs_set" "', argument " "2"" of type '" "anwcs_t *""'");
12281   }
12282   arg2 = (anwcs_t *)(argp2);
12283   if (arg1) (arg1)->wcs = arg2;
12284   resultobj = SWIG_Py_Void();
12285   return resultobj;
12286 fail:
12287   return NULL;
12288 }
12289 
12290 
_wrap_plotoutline_args_wcs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12291 SWIGINTERN PyObject *_wrap_plotoutline_args_wcs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292   PyObject *resultobj = 0;
12293   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12294   void *argp1 = 0 ;
12295   int res1 = 0 ;
12296   PyObject *swig_obj[1] ;
12297   anwcs_t *result = 0 ;
12298 
12299   if (!args) SWIG_fail;
12300   swig_obj[0] = args;
12301   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12302   if (!SWIG_IsOK(res1)) {
12303     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_wcs_get" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12304   }
12305   arg1 = (struct plotoutline_args *)(argp1);
12306   result = (anwcs_t *) ((arg1)->wcs);
12307   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
12308   return resultobj;
12309 fail:
12310   return NULL;
12311 }
12312 
12313 
_wrap_plotoutline_args_stepsize_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12314 SWIGINTERN PyObject *_wrap_plotoutline_args_stepsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12315   PyObject *resultobj = 0;
12316   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12317   double arg2 ;
12318   void *argp1 = 0 ;
12319   int res1 = 0 ;
12320   double val2 ;
12321   int ecode2 = 0 ;
12322   PyObject *swig_obj[2] ;
12323 
12324   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_stepsize_set", 2, 2, swig_obj)) SWIG_fail;
12325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12326   if (!SWIG_IsOK(res1)) {
12327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_stepsize_set" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12328   }
12329   arg1 = (struct plotoutline_args *)(argp1);
12330   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
12331   if (!SWIG_IsOK(ecode2)) {
12332     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotoutline_args_stepsize_set" "', argument " "2"" of type '" "double""'");
12333   }
12334   arg2 = (double)(val2);
12335   if (arg1) (arg1)->stepsize = arg2;
12336   resultobj = SWIG_Py_Void();
12337   return resultobj;
12338 fail:
12339   return NULL;
12340 }
12341 
12342 
_wrap_plotoutline_args_stepsize_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12343 SWIGINTERN PyObject *_wrap_plotoutline_args_stepsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12344   PyObject *resultobj = 0;
12345   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12346   void *argp1 = 0 ;
12347   int res1 = 0 ;
12348   PyObject *swig_obj[1] ;
12349   double result;
12350 
12351   if (!args) SWIG_fail;
12352   swig_obj[0] = args;
12353   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12354   if (!SWIG_IsOK(res1)) {
12355     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_stepsize_get" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12356   }
12357   arg1 = (struct plotoutline_args *)(argp1);
12358   result = (double) ((arg1)->stepsize);
12359   resultobj = SWIG_From_double((double)(result));
12360   return resultobj;
12361 fail:
12362   return NULL;
12363 }
12364 
12365 
_wrap_plotoutline_args_fill_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12366 SWIGINTERN PyObject *_wrap_plotoutline_args_fill_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12367   PyObject *resultobj = 0;
12368   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12369   anbool arg2 ;
12370   void *argp1 = 0 ;
12371   int res1 = 0 ;
12372   unsigned char val2 ;
12373   int ecode2 = 0 ;
12374   PyObject *swig_obj[2] ;
12375 
12376   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_fill_set", 2, 2, swig_obj)) SWIG_fail;
12377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12378   if (!SWIG_IsOK(res1)) {
12379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_fill_set" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12380   }
12381   arg1 = (struct plotoutline_args *)(argp1);
12382   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
12383   if (!SWIG_IsOK(ecode2)) {
12384     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotoutline_args_fill_set" "', argument " "2"" of type '" "anbool""'");
12385   }
12386   arg2 = (anbool)(val2);
12387   if (arg1) (arg1)->fill = arg2;
12388   resultobj = SWIG_Py_Void();
12389   return resultobj;
12390 fail:
12391   return NULL;
12392 }
12393 
12394 
_wrap_plotoutline_args_fill_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12395 SWIGINTERN PyObject *_wrap_plotoutline_args_fill_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12396   PyObject *resultobj = 0;
12397   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12398   void *argp1 = 0 ;
12399   int res1 = 0 ;
12400   PyObject *swig_obj[1] ;
12401   anbool result;
12402 
12403   if (!args) SWIG_fail;
12404   swig_obj[0] = args;
12405   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12406   if (!SWIG_IsOK(res1)) {
12407     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_fill_get" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12408   }
12409   arg1 = (struct plotoutline_args *)(argp1);
12410   result = (anbool) ((arg1)->fill);
12411   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
12412   return resultobj;
12413 fail:
12414   return NULL;
12415 }
12416 
12417 
_wrap_plotoutline_args_set_wcs_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12418 SWIGINTERN PyObject *_wrap_plotoutline_args_set_wcs_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12419   PyObject *resultobj = 0;
12420   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12421   char *arg2 = (char *) 0 ;
12422   int arg3 ;
12423   void *argp1 = 0 ;
12424   int res1 = 0 ;
12425   int res2 ;
12426   char *buf2 = 0 ;
12427   int alloc2 = 0 ;
12428   int val3 ;
12429   int ecode3 = 0 ;
12430   PyObject *swig_obj[3] ;
12431   int result;
12432 
12433   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_set_wcs_file", 3, 3, swig_obj)) SWIG_fail;
12434   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12435   if (!SWIG_IsOK(res1)) {
12436     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_set_wcs_file" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12437   }
12438   arg1 = (struct plotoutline_args *)(argp1);
12439   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
12440   if (!SWIG_IsOK(res2)) {
12441     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotoutline_args_set_wcs_file" "', argument " "2"" of type '" "char const *""'");
12442   }
12443   arg2 = (char *)(buf2);
12444   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12445   if (!SWIG_IsOK(ecode3)) {
12446     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotoutline_args_set_wcs_file" "', argument " "3"" of type '" "int""'");
12447   }
12448   arg3 = (int)(val3);
12449   result = (int)plotoutline_args_set_wcs_file(arg1,(char const *)arg2,arg3);
12450   resultobj = SWIG_From_int((int)(result));
12451   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12452   return resultobj;
12453 fail:
12454   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12455   return NULL;
12456 }
12457 
12458 
_wrap_plotoutline_args_set_wcs_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12459 SWIGINTERN PyObject *_wrap_plotoutline_args_set_wcs_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12460   PyObject *resultobj = 0;
12461   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12462   int arg2 ;
12463   int arg3 ;
12464   void *argp1 = 0 ;
12465   int res1 = 0 ;
12466   int val2 ;
12467   int ecode2 = 0 ;
12468   int val3 ;
12469   int ecode3 = 0 ;
12470   PyObject *swig_obj[3] ;
12471   int result;
12472 
12473   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_set_wcs_size", 3, 3, swig_obj)) SWIG_fail;
12474   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12475   if (!SWIG_IsOK(res1)) {
12476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_set_wcs_size" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12477   }
12478   arg1 = (struct plotoutline_args *)(argp1);
12479   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12480   if (!SWIG_IsOK(ecode2)) {
12481     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotoutline_args_set_wcs_size" "', argument " "2"" of type '" "int""'");
12482   }
12483   arg2 = (int)(val2);
12484   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12485   if (!SWIG_IsOK(ecode3)) {
12486     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plotoutline_args_set_wcs_size" "', argument " "3"" of type '" "int""'");
12487   }
12488   arg3 = (int)(val3);
12489   result = (int)plotoutline_args_set_wcs_size(arg1,arg2,arg3);
12490   resultobj = SWIG_From_int((int)(result));
12491   return resultobj;
12492 fail:
12493   return NULL;
12494 }
12495 
12496 
_wrap_plotoutline_args_set_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12497 SWIGINTERN PyObject *_wrap_plotoutline_args_set_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12498   PyObject *resultobj = 0;
12499   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12500   tan_t *arg2 = (tan_t *) 0 ;
12501   void *argp1 = 0 ;
12502   int res1 = 0 ;
12503   void *argp2 = 0 ;
12504   int res2 = 0 ;
12505   PyObject *swig_obj[2] ;
12506   int result;
12507 
12508   if (!SWIG_Python_UnpackTuple(args, "plotoutline_args_set_wcs", 2, 2, swig_obj)) SWIG_fail;
12509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12510   if (!SWIG_IsOK(res1)) {
12511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotoutline_args_set_wcs" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12512   }
12513   arg1 = (struct plotoutline_args *)(argp1);
12514   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
12515   if (!SWIG_IsOK(res2)) {
12516     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotoutline_args_set_wcs" "', argument " "2"" of type '" "tan_t const *""'");
12517   }
12518   arg2 = (tan_t *)(argp2);
12519   result = (int)plotoutline_args_set_wcs(arg1,(tan_t const *)arg2);
12520   resultobj = SWIG_From_int((int)(result));
12521   return resultobj;
12522 fail:
12523   return NULL;
12524 }
12525 
12526 
_wrap_new_plotoutline_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12527 SWIGINTERN PyObject *_wrap_new_plotoutline_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12528   PyObject *resultobj = 0;
12529   struct plotoutline_args *result = 0 ;
12530 
12531   if (!SWIG_Python_UnpackTuple(args, "new_plotoutline_args", 0, 0, 0)) SWIG_fail;
12532   result = (struct plotoutline_args *)calloc(1, sizeof(struct plotoutline_args));
12533   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotoutline_args, SWIG_POINTER_NEW |  0 );
12534   return resultobj;
12535 fail:
12536   return NULL;
12537 }
12538 
12539 
_wrap_delete_plotoutline_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12540 SWIGINTERN PyObject *_wrap_delete_plotoutline_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12541   PyObject *resultobj = 0;
12542   struct plotoutline_args *arg1 = (struct plotoutline_args *) 0 ;
12543   void *argp1 = 0 ;
12544   int res1 = 0 ;
12545   PyObject *swig_obj[1] ;
12546 
12547   if (!args) SWIG_fail;
12548   swig_obj[0] = args;
12549   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, SWIG_POINTER_DISOWN |  0 );
12550   if (!SWIG_IsOK(res1)) {
12551     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotoutline_args" "', argument " "1"" of type '" "struct plotoutline_args *""'");
12552   }
12553   arg1 = (struct plotoutline_args *)(argp1);
12554   free((char *) arg1);
12555   resultobj = SWIG_Py_Void();
12556   return resultobj;
12557 fail:
12558   return NULL;
12559 }
12560 
12561 
plotoutline_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12562 SWIGINTERN PyObject *plotoutline_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12563   PyObject *obj;
12564   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
12565   SWIG_TypeNewClientData(SWIGTYPE_p_plotoutline_args, SWIG_NewClientData(obj));
12566   return SWIG_Py_Void();
12567 }
12568 
plotoutline_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12569 SWIGINTERN PyObject *plotoutline_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12570   return SWIG_Python_InitShadowInstance(args);
12571 }
12572 
_wrap_plot_outline_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12573 SWIGINTERN PyObject *_wrap_plot_outline_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12574   PyObject *resultobj = 0;
12575   plot_args_t *arg1 = (plot_args_t *) 0 ;
12576   void *argp1 = 0 ;
12577   int res1 = 0 ;
12578   PyObject *swig_obj[1] ;
12579   plotoutline_t *result = 0 ;
12580 
12581   if (!args) SWIG_fail;
12582   swig_obj[0] = args;
12583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
12584   if (!SWIG_IsOK(res1)) {
12585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_get" "', argument " "1"" of type '" "plot_args_t *""'");
12586   }
12587   arg1 = (plot_args_t *)(argp1);
12588   result = (plotoutline_t *)plot_outline_get(arg1);
12589   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotoutline_args, 0 |  0 );
12590   return resultobj;
12591 fail:
12592   return NULL;
12593 }
12594 
12595 
_wrap_plot_outline_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12596 SWIGINTERN PyObject *_wrap_plot_outline_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12597   PyObject *resultobj = 0;
12598   plot_args_t *arg1 = (plot_args_t *) 0 ;
12599   void *argp1 = 0 ;
12600   int res1 = 0 ;
12601   PyObject *swig_obj[1] ;
12602   void *result = 0 ;
12603 
12604   if (!args) SWIG_fail;
12605   swig_obj[0] = args;
12606   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
12607   if (!SWIG_IsOK(res1)) {
12608     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_init" "', argument " "1"" of type '" "plot_args_t *""'");
12609   }
12610   arg1 = (plot_args_t *)(argp1);
12611   result = (void *)plot_outline_init(arg1);
12612   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
12613   return resultobj;
12614 fail:
12615   return NULL;
12616 }
12617 
12618 
_wrap_plot_outline_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12619 SWIGINTERN PyObject *_wrap_plot_outline_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12620   PyObject *resultobj = 0;
12621   char *arg1 = (char *) 0 ;
12622   char *arg2 = (char *) 0 ;
12623   plot_args_t *arg3 = (plot_args_t *) 0 ;
12624   void *arg4 = (void *) 0 ;
12625   int res1 ;
12626   char *buf1 = 0 ;
12627   int alloc1 = 0 ;
12628   int res2 ;
12629   char *buf2 = 0 ;
12630   int alloc2 = 0 ;
12631   void *argp3 = 0 ;
12632   int res3 = 0 ;
12633   int res4 ;
12634   PyObject *swig_obj[4] ;
12635   int result;
12636 
12637   if (!SWIG_Python_UnpackTuple(args, "plot_outline_command", 4, 4, swig_obj)) SWIG_fail;
12638   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
12639   if (!SWIG_IsOK(res1)) {
12640     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_command" "', argument " "1"" of type '" "char const *""'");
12641   }
12642   arg1 = (char *)(buf1);
12643   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
12644   if (!SWIG_IsOK(res2)) {
12645     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_command" "', argument " "2"" of type '" "char const *""'");
12646   }
12647   arg2 = (char *)(buf2);
12648   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
12649   if (!SWIG_IsOK(res3)) {
12650     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_outline_command" "', argument " "3"" of type '" "plot_args_t *""'");
12651   }
12652   arg3 = (plot_args_t *)(argp3);
12653   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
12654   if (!SWIG_IsOK(res4)) {
12655     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_outline_command" "', argument " "4"" of type '" "void *""'");
12656   }
12657   result = (int)plot_outline_command((char const *)arg1,(char const *)arg2,arg3,arg4);
12658   resultobj = SWIG_From_int((int)(result));
12659   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
12660   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12661   return resultobj;
12662 fail:
12663   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
12664   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12665   return NULL;
12666 }
12667 
12668 
_wrap_plot_outline_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12669 SWIGINTERN PyObject *_wrap_plot_outline_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12670   PyObject *resultobj = 0;
12671   char *arg1 = (char *) 0 ;
12672   cairo_t *arg2 = (cairo_t *) 0 ;
12673   plot_args_t *arg3 = (plot_args_t *) 0 ;
12674   void *arg4 = (void *) 0 ;
12675   int res1 ;
12676   char *buf1 = 0 ;
12677   int alloc1 = 0 ;
12678   void *argp2 = 0 ;
12679   int res2 = 0 ;
12680   void *argp3 = 0 ;
12681   int res3 = 0 ;
12682   int res4 ;
12683   PyObject *swig_obj[4] ;
12684   int result;
12685 
12686   if (!SWIG_Python_UnpackTuple(args, "plot_outline_plot", 4, 4, swig_obj)) SWIG_fail;
12687   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
12688   if (!SWIG_IsOK(res1)) {
12689     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_plot" "', argument " "1"" of type '" "char const *""'");
12690   }
12691   arg1 = (char *)(buf1);
12692   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
12693   if (!SWIG_IsOK(res2)) {
12694     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_plot" "', argument " "2"" of type '" "cairo_t *""'");
12695   }
12696   arg2 = (cairo_t *)(argp2);
12697   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
12698   if (!SWIG_IsOK(res3)) {
12699     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_outline_plot" "', argument " "3"" of type '" "plot_args_t *""'");
12700   }
12701   arg3 = (plot_args_t *)(argp3);
12702   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
12703   if (!SWIG_IsOK(res4)) {
12704     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_outline_plot" "', argument " "4"" of type '" "void *""'");
12705   }
12706   result = (int)plot_outline_plot((char const *)arg1,arg2,arg3,arg4);
12707   resultobj = SWIG_From_int((int)(result));
12708   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
12709   return resultobj;
12710 fail:
12711   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
12712   return NULL;
12713 }
12714 
12715 
_wrap_plot_outline_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12716 SWIGINTERN PyObject *_wrap_plot_outline_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12717   PyObject *resultobj = 0;
12718   plot_args_t *arg1 = (plot_args_t *) 0 ;
12719   void *arg2 = (void *) 0 ;
12720   void *argp1 = 0 ;
12721   int res1 = 0 ;
12722   int res2 ;
12723   PyObject *swig_obj[2] ;
12724 
12725   if (!SWIG_Python_UnpackTuple(args, "plot_outline_free", 2, 2, swig_obj)) SWIG_fail;
12726   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
12727   if (!SWIG_IsOK(res1)) {
12728     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_free" "', argument " "1"" of type '" "plot_args_t *""'");
12729   }
12730   arg1 = (plot_args_t *)(argp1);
12731   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
12732   if (!SWIG_IsOK(res2)) {
12733     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_free" "', argument " "2"" of type '" "void *""'");
12734   }
12735   plot_outline_free(arg1,arg2);
12736   resultobj = SWIG_Py_Void();
12737   return resultobj;
12738 fail:
12739   return NULL;
12740 }
12741 
12742 
_wrap_plot_outline_set_wcs_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12743 SWIGINTERN PyObject *_wrap_plot_outline_set_wcs_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12744   PyObject *resultobj = 0;
12745   plotoutline_t *arg1 = (plotoutline_t *) 0 ;
12746   char *arg2 = (char *) 0 ;
12747   int arg3 ;
12748   void *argp1 = 0 ;
12749   int res1 = 0 ;
12750   int res2 ;
12751   char *buf2 = 0 ;
12752   int alloc2 = 0 ;
12753   int val3 ;
12754   int ecode3 = 0 ;
12755   PyObject *swig_obj[3] ;
12756   int result;
12757 
12758   if (!SWIG_Python_UnpackTuple(args, "plot_outline_set_wcs_file", 3, 3, swig_obj)) SWIG_fail;
12759   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12760   if (!SWIG_IsOK(res1)) {
12761     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_set_wcs_file" "', argument " "1"" of type '" "plotoutline_t *""'");
12762   }
12763   arg1 = (plotoutline_t *)(argp1);
12764   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
12765   if (!SWIG_IsOK(res2)) {
12766     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_set_wcs_file" "', argument " "2"" of type '" "char const *""'");
12767   }
12768   arg2 = (char *)(buf2);
12769   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12770   if (!SWIG_IsOK(ecode3)) {
12771     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_outline_set_wcs_file" "', argument " "3"" of type '" "int""'");
12772   }
12773   arg3 = (int)(val3);
12774   result = (int)plot_outline_set_wcs_file(arg1,(char const *)arg2,arg3);
12775   resultobj = SWIG_From_int((int)(result));
12776   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12777   return resultobj;
12778 fail:
12779   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
12780   return NULL;
12781 }
12782 
12783 
_wrap_plot_outline_set_wcs_size(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12784 SWIGINTERN PyObject *_wrap_plot_outline_set_wcs_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12785   PyObject *resultobj = 0;
12786   plotoutline_t *arg1 = (plotoutline_t *) 0 ;
12787   int arg2 ;
12788   int arg3 ;
12789   void *argp1 = 0 ;
12790   int res1 = 0 ;
12791   int val2 ;
12792   int ecode2 = 0 ;
12793   int val3 ;
12794   int ecode3 = 0 ;
12795   PyObject *swig_obj[3] ;
12796   int result;
12797 
12798   if (!SWIG_Python_UnpackTuple(args, "plot_outline_set_wcs_size", 3, 3, swig_obj)) SWIG_fail;
12799   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12800   if (!SWIG_IsOK(res1)) {
12801     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_set_wcs_size" "', argument " "1"" of type '" "plotoutline_t *""'");
12802   }
12803   arg1 = (plotoutline_t *)(argp1);
12804   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12805   if (!SWIG_IsOK(ecode2)) {
12806     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_outline_set_wcs_size" "', argument " "2"" of type '" "int""'");
12807   }
12808   arg2 = (int)(val2);
12809   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
12810   if (!SWIG_IsOK(ecode3)) {
12811     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_outline_set_wcs_size" "', argument " "3"" of type '" "int""'");
12812   }
12813   arg3 = (int)(val3);
12814   result = (int)plot_outline_set_wcs_size(arg1,arg2,arg3);
12815   resultobj = SWIG_From_int((int)(result));
12816   return resultobj;
12817 fail:
12818   return NULL;
12819 }
12820 
12821 
_wrap_plot_outline_set_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12822 SWIGINTERN PyObject *_wrap_plot_outline_set_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12823   PyObject *resultobj = 0;
12824   plotoutline_t *arg1 = (plotoutline_t *) 0 ;
12825   sip_t *arg2 = (sip_t *) 0 ;
12826   void *argp1 = 0 ;
12827   int res1 = 0 ;
12828   void *argp2 = 0 ;
12829   int res2 = 0 ;
12830   PyObject *swig_obj[2] ;
12831   int result;
12832 
12833   if (!SWIG_Python_UnpackTuple(args, "plot_outline_set_wcs", 2, 2, swig_obj)) SWIG_fail;
12834   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12835   if (!SWIG_IsOK(res1)) {
12836     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_set_wcs" "', argument " "1"" of type '" "plotoutline_t *""'");
12837   }
12838   arg1 = (plotoutline_t *)(argp1);
12839   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sip_t, 0 |  0 );
12840   if (!SWIG_IsOK(res2)) {
12841     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_set_wcs" "', argument " "2"" of type '" "sip_t const *""'");
12842   }
12843   arg2 = (sip_t *)(argp2);
12844   result = (int)plot_outline_set_wcs(arg1,(sip_t const *)arg2);
12845   resultobj = SWIG_From_int((int)(result));
12846   return resultobj;
12847 fail:
12848   return NULL;
12849 }
12850 
12851 
_wrap_plot_outline_set_tan_wcs(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12852 SWIGINTERN PyObject *_wrap_plot_outline_set_tan_wcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12853   PyObject *resultobj = 0;
12854   plotoutline_t *arg1 = (plotoutline_t *) 0 ;
12855   tan_t *arg2 = (tan_t *) 0 ;
12856   void *argp1 = 0 ;
12857   int res1 = 0 ;
12858   void *argp2 = 0 ;
12859   int res2 = 0 ;
12860   PyObject *swig_obj[2] ;
12861   int result;
12862 
12863   if (!SWIG_Python_UnpackTuple(args, "plot_outline_set_tan_wcs", 2, 2, swig_obj)) SWIG_fail;
12864   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12865   if (!SWIG_IsOK(res1)) {
12866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_set_tan_wcs" "', argument " "1"" of type '" "plotoutline_t *""'");
12867   }
12868   arg1 = (plotoutline_t *)(argp1);
12869   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_tan_t, 0 |  0 );
12870   if (!SWIG_IsOK(res2)) {
12871     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_outline_set_tan_wcs" "', argument " "2"" of type '" "tan_t const *""'");
12872   }
12873   arg2 = (tan_t *)(argp2);
12874   result = (int)plot_outline_set_tan_wcs(arg1,(tan_t const *)arg2);
12875   resultobj = SWIG_From_int((int)(result));
12876   return resultobj;
12877 fail:
12878   return NULL;
12879 }
12880 
12881 
_wrap_plot_outline_set_fill(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12882 SWIGINTERN PyObject *_wrap_plot_outline_set_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12883   PyObject *resultobj = 0;
12884   plotoutline_t *arg1 = (plotoutline_t *) 0 ;
12885   anbool arg2 ;
12886   void *argp1 = 0 ;
12887   int res1 = 0 ;
12888   unsigned char val2 ;
12889   int ecode2 = 0 ;
12890   PyObject *swig_obj[2] ;
12891   int result;
12892 
12893   if (!SWIG_Python_UnpackTuple(args, "plot_outline_set_fill", 2, 2, swig_obj)) SWIG_fail;
12894   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotoutline_args, 0 |  0 );
12895   if (!SWIG_IsOK(res1)) {
12896     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_set_fill" "', argument " "1"" of type '" "plotoutline_t *""'");
12897   }
12898   arg1 = (plotoutline_t *)(argp1);
12899   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
12900   if (!SWIG_IsOK(ecode2)) {
12901     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_outline_set_fill" "', argument " "2"" of type '" "anbool""'");
12902   }
12903   arg2 = (anbool)(val2);
12904   result = (int)plot_outline_set_fill(arg1,arg2);
12905   resultobj = SWIG_From_int((int)(result));
12906   return resultobj;
12907 fail:
12908   return NULL;
12909 }
12910 
12911 
_wrap_plot_outline_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12912 SWIGINTERN PyObject *_wrap_plot_outline_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12913   PyObject *resultobj = 0;
12914   plotter_t *arg1 = (plotter_t *) 0 ;
12915   void *argp1 = 0 ;
12916   int res1 = 0 ;
12917   PyObject *swig_obj[1] ;
12918 
12919   if (!args) SWIG_fail;
12920   swig_obj[0] = args;
12921   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
12922   if (!SWIG_IsOK(res1)) {
12923     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_outline_describe" "', argument " "1"" of type '" "plotter_t *""'");
12924   }
12925   arg1 = (plotter_t *)(argp1);
12926   plot_outline_describe(arg1);
12927   resultobj = SWIG_Py_Void();
12928   return resultobj;
12929 fail:
12930   return NULL;
12931 }
12932 
12933 
_wrap_plotgrid_args_dolabel_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12934 SWIGINTERN PyObject *_wrap_plotgrid_args_dolabel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12935   PyObject *resultobj = 0;
12936   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
12937   anbool arg2 ;
12938   void *argp1 = 0 ;
12939   int res1 = 0 ;
12940   unsigned char val2 ;
12941   int ecode2 = 0 ;
12942   PyObject *swig_obj[2] ;
12943 
12944   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_dolabel_set", 2, 2, swig_obj)) SWIG_fail;
12945   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
12946   if (!SWIG_IsOK(res1)) {
12947     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_dolabel_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
12948   }
12949   arg1 = (struct plotgrid_args *)(argp1);
12950   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
12951   if (!SWIG_IsOK(ecode2)) {
12952     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_dolabel_set" "', argument " "2"" of type '" "anbool""'");
12953   }
12954   arg2 = (anbool)(val2);
12955   if (arg1) (arg1)->dolabel = arg2;
12956   resultobj = SWIG_Py_Void();
12957   return resultobj;
12958 fail:
12959   return NULL;
12960 }
12961 
12962 
_wrap_plotgrid_args_dolabel_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12963 SWIGINTERN PyObject *_wrap_plotgrid_args_dolabel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12964   PyObject *resultobj = 0;
12965   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
12966   void *argp1 = 0 ;
12967   int res1 = 0 ;
12968   PyObject *swig_obj[1] ;
12969   anbool result;
12970 
12971   if (!args) SWIG_fail;
12972   swig_obj[0] = args;
12973   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
12974   if (!SWIG_IsOK(res1)) {
12975     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_dolabel_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
12976   }
12977   arg1 = (struct plotgrid_args *)(argp1);
12978   result = (anbool) ((arg1)->dolabel);
12979   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
12980   return resultobj;
12981 fail:
12982   return NULL;
12983 }
12984 
12985 
_wrap_plotgrid_args_rastep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)12986 SWIGINTERN PyObject *_wrap_plotgrid_args_rastep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12987   PyObject *resultobj = 0;
12988   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
12989   double arg2 ;
12990   void *argp1 = 0 ;
12991   int res1 = 0 ;
12992   double val2 ;
12993   int ecode2 = 0 ;
12994   PyObject *swig_obj[2] ;
12995 
12996   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_rastep_set", 2, 2, swig_obj)) SWIG_fail;
12997   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
12998   if (!SWIG_IsOK(res1)) {
12999     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_rastep_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13000   }
13001   arg1 = (struct plotgrid_args *)(argp1);
13002   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13003   if (!SWIG_IsOK(ecode2)) {
13004     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_rastep_set" "', argument " "2"" of type '" "double""'");
13005   }
13006   arg2 = (double)(val2);
13007   if (arg1) (arg1)->rastep = arg2;
13008   resultobj = SWIG_Py_Void();
13009   return resultobj;
13010 fail:
13011   return NULL;
13012 }
13013 
13014 
_wrap_plotgrid_args_rastep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13015 SWIGINTERN PyObject *_wrap_plotgrid_args_rastep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13016   PyObject *resultobj = 0;
13017   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13018   void *argp1 = 0 ;
13019   int res1 = 0 ;
13020   PyObject *swig_obj[1] ;
13021   double result;
13022 
13023   if (!args) SWIG_fail;
13024   swig_obj[0] = args;
13025   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13026   if (!SWIG_IsOK(res1)) {
13027     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_rastep_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13028   }
13029   arg1 = (struct plotgrid_args *)(argp1);
13030   result = (double) ((arg1)->rastep);
13031   resultobj = SWIG_From_double((double)(result));
13032   return resultobj;
13033 fail:
13034   return NULL;
13035 }
13036 
13037 
_wrap_plotgrid_args_decstep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13038 SWIGINTERN PyObject *_wrap_plotgrid_args_decstep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13039   PyObject *resultobj = 0;
13040   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13041   double arg2 ;
13042   void *argp1 = 0 ;
13043   int res1 = 0 ;
13044   double val2 ;
13045   int ecode2 = 0 ;
13046   PyObject *swig_obj[2] ;
13047 
13048   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_decstep_set", 2, 2, swig_obj)) SWIG_fail;
13049   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13050   if (!SWIG_IsOK(res1)) {
13051     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_decstep_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13052   }
13053   arg1 = (struct plotgrid_args *)(argp1);
13054   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13055   if (!SWIG_IsOK(ecode2)) {
13056     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_decstep_set" "', argument " "2"" of type '" "double""'");
13057   }
13058   arg2 = (double)(val2);
13059   if (arg1) (arg1)->decstep = arg2;
13060   resultobj = SWIG_Py_Void();
13061   return resultobj;
13062 fail:
13063   return NULL;
13064 }
13065 
13066 
_wrap_plotgrid_args_decstep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13067 SWIGINTERN PyObject *_wrap_plotgrid_args_decstep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13068   PyObject *resultobj = 0;
13069   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13070   void *argp1 = 0 ;
13071   int res1 = 0 ;
13072   PyObject *swig_obj[1] ;
13073   double result;
13074 
13075   if (!args) SWIG_fail;
13076   swig_obj[0] = args;
13077   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13078   if (!SWIG_IsOK(res1)) {
13079     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_decstep_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13080   }
13081   arg1 = (struct plotgrid_args *)(argp1);
13082   result = (double) ((arg1)->decstep);
13083   resultobj = SWIG_From_double((double)(result));
13084   return resultobj;
13085 fail:
13086   return NULL;
13087 }
13088 
13089 
_wrap_plotgrid_args_ralabelstep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13090 SWIGINTERN PyObject *_wrap_plotgrid_args_ralabelstep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13091   PyObject *resultobj = 0;
13092   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13093   double arg2 ;
13094   void *argp1 = 0 ;
13095   int res1 = 0 ;
13096   double val2 ;
13097   int ecode2 = 0 ;
13098   PyObject *swig_obj[2] ;
13099 
13100   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_ralabelstep_set", 2, 2, swig_obj)) SWIG_fail;
13101   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13102   if (!SWIG_IsOK(res1)) {
13103     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralabelstep_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13104   }
13105   arg1 = (struct plotgrid_args *)(argp1);
13106   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13107   if (!SWIG_IsOK(ecode2)) {
13108     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_ralabelstep_set" "', argument " "2"" of type '" "double""'");
13109   }
13110   arg2 = (double)(val2);
13111   if (arg1) (arg1)->ralabelstep = arg2;
13112   resultobj = SWIG_Py_Void();
13113   return resultobj;
13114 fail:
13115   return NULL;
13116 }
13117 
13118 
_wrap_plotgrid_args_ralabelstep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13119 SWIGINTERN PyObject *_wrap_plotgrid_args_ralabelstep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13120   PyObject *resultobj = 0;
13121   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13122   void *argp1 = 0 ;
13123   int res1 = 0 ;
13124   PyObject *swig_obj[1] ;
13125   double result;
13126 
13127   if (!args) SWIG_fail;
13128   swig_obj[0] = args;
13129   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13130   if (!SWIG_IsOK(res1)) {
13131     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralabelstep_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13132   }
13133   arg1 = (struct plotgrid_args *)(argp1);
13134   result = (double) ((arg1)->ralabelstep);
13135   resultobj = SWIG_From_double((double)(result));
13136   return resultobj;
13137 fail:
13138   return NULL;
13139 }
13140 
13141 
_wrap_plotgrid_args_declabelstep_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13142 SWIGINTERN PyObject *_wrap_plotgrid_args_declabelstep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13143   PyObject *resultobj = 0;
13144   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13145   double arg2 ;
13146   void *argp1 = 0 ;
13147   int res1 = 0 ;
13148   double val2 ;
13149   int ecode2 = 0 ;
13150   PyObject *swig_obj[2] ;
13151 
13152   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_declabelstep_set", 2, 2, swig_obj)) SWIG_fail;
13153   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13154   if (!SWIG_IsOK(res1)) {
13155     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declabelstep_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13156   }
13157   arg1 = (struct plotgrid_args *)(argp1);
13158   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13159   if (!SWIG_IsOK(ecode2)) {
13160     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_declabelstep_set" "', argument " "2"" of type '" "double""'");
13161   }
13162   arg2 = (double)(val2);
13163   if (arg1) (arg1)->declabelstep = arg2;
13164   resultobj = SWIG_Py_Void();
13165   return resultobj;
13166 fail:
13167   return NULL;
13168 }
13169 
13170 
_wrap_plotgrid_args_declabelstep_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13171 SWIGINTERN PyObject *_wrap_plotgrid_args_declabelstep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172   PyObject *resultobj = 0;
13173   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13174   void *argp1 = 0 ;
13175   int res1 = 0 ;
13176   PyObject *swig_obj[1] ;
13177   double result;
13178 
13179   if (!args) SWIG_fail;
13180   swig_obj[0] = args;
13181   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13182   if (!SWIG_IsOK(res1)) {
13183     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declabelstep_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13184   }
13185   arg1 = (struct plotgrid_args *)(argp1);
13186   result = (double) ((arg1)->declabelstep);
13187   resultobj = SWIG_From_double((double)(result));
13188   return resultobj;
13189 fail:
13190   return NULL;
13191 }
13192 
13193 
_wrap_plotgrid_args_ralabeldir_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13194 SWIGINTERN PyObject *_wrap_plotgrid_args_ralabeldir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13195   PyObject *resultobj = 0;
13196   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13197   int arg2 ;
13198   void *argp1 = 0 ;
13199   int res1 = 0 ;
13200   int val2 ;
13201   int ecode2 = 0 ;
13202   PyObject *swig_obj[2] ;
13203 
13204   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_ralabeldir_set", 2, 2, swig_obj)) SWIG_fail;
13205   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13206   if (!SWIG_IsOK(res1)) {
13207     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralabeldir_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13208   }
13209   arg1 = (struct plotgrid_args *)(argp1);
13210   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13211   if (!SWIG_IsOK(ecode2)) {
13212     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_ralabeldir_set" "', argument " "2"" of type '" "int""'");
13213   }
13214   arg2 = (int)(val2);
13215   if (arg1) (arg1)->ralabeldir = arg2;
13216   resultobj = SWIG_Py_Void();
13217   return resultobj;
13218 fail:
13219   return NULL;
13220 }
13221 
13222 
_wrap_plotgrid_args_ralabeldir_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13223 SWIGINTERN PyObject *_wrap_plotgrid_args_ralabeldir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224   PyObject *resultobj = 0;
13225   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13226   void *argp1 = 0 ;
13227   int res1 = 0 ;
13228   PyObject *swig_obj[1] ;
13229   int result;
13230 
13231   if (!args) SWIG_fail;
13232   swig_obj[0] = args;
13233   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13234   if (!SWIG_IsOK(res1)) {
13235     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralabeldir_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13236   }
13237   arg1 = (struct plotgrid_args *)(argp1);
13238   result = (int) ((arg1)->ralabeldir);
13239   resultobj = SWIG_From_int((int)(result));
13240   return resultobj;
13241 fail:
13242   return NULL;
13243 }
13244 
13245 
_wrap_plotgrid_args_declabeldir_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13246 SWIGINTERN PyObject *_wrap_plotgrid_args_declabeldir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13247   PyObject *resultobj = 0;
13248   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13249   int arg2 ;
13250   void *argp1 = 0 ;
13251   int res1 = 0 ;
13252   int val2 ;
13253   int ecode2 = 0 ;
13254   PyObject *swig_obj[2] ;
13255 
13256   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_declabeldir_set", 2, 2, swig_obj)) SWIG_fail;
13257   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13258   if (!SWIG_IsOK(res1)) {
13259     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declabeldir_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13260   }
13261   arg1 = (struct plotgrid_args *)(argp1);
13262   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13263   if (!SWIG_IsOK(ecode2)) {
13264     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_declabeldir_set" "', argument " "2"" of type '" "int""'");
13265   }
13266   arg2 = (int)(val2);
13267   if (arg1) (arg1)->declabeldir = arg2;
13268   resultobj = SWIG_Py_Void();
13269   return resultobj;
13270 fail:
13271   return NULL;
13272 }
13273 
13274 
_wrap_plotgrid_args_declabeldir_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13275 SWIGINTERN PyObject *_wrap_plotgrid_args_declabeldir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13276   PyObject *resultobj = 0;
13277   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13278   void *argp1 = 0 ;
13279   int res1 = 0 ;
13280   PyObject *swig_obj[1] ;
13281   int result;
13282 
13283   if (!args) SWIG_fail;
13284   swig_obj[0] = args;
13285   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13286   if (!SWIG_IsOK(res1)) {
13287     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declabeldir_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13288   }
13289   arg1 = (struct plotgrid_args *)(argp1);
13290   result = (int) ((arg1)->declabeldir);
13291   resultobj = SWIG_From_int((int)(result));
13292   return resultobj;
13293 fail:
13294   return NULL;
13295 }
13296 
13297 
_wrap_plotgrid_args_ralo_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13298 SWIGINTERN PyObject *_wrap_plotgrid_args_ralo_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13299   PyObject *resultobj = 0;
13300   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13301   double arg2 ;
13302   void *argp1 = 0 ;
13303   int res1 = 0 ;
13304   double val2 ;
13305   int ecode2 = 0 ;
13306   PyObject *swig_obj[2] ;
13307 
13308   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_ralo_set", 2, 2, swig_obj)) SWIG_fail;
13309   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13310   if (!SWIG_IsOK(res1)) {
13311     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralo_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13312   }
13313   arg1 = (struct plotgrid_args *)(argp1);
13314   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13315   if (!SWIG_IsOK(ecode2)) {
13316     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_ralo_set" "', argument " "2"" of type '" "double""'");
13317   }
13318   arg2 = (double)(val2);
13319   if (arg1) (arg1)->ralo = arg2;
13320   resultobj = SWIG_Py_Void();
13321   return resultobj;
13322 fail:
13323   return NULL;
13324 }
13325 
13326 
_wrap_plotgrid_args_ralo_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13327 SWIGINTERN PyObject *_wrap_plotgrid_args_ralo_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13328   PyObject *resultobj = 0;
13329   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13330   void *argp1 = 0 ;
13331   int res1 = 0 ;
13332   PyObject *swig_obj[1] ;
13333   double result;
13334 
13335   if (!args) SWIG_fail;
13336   swig_obj[0] = args;
13337   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13338   if (!SWIG_IsOK(res1)) {
13339     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_ralo_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13340   }
13341   arg1 = (struct plotgrid_args *)(argp1);
13342   result = (double) ((arg1)->ralo);
13343   resultobj = SWIG_From_double((double)(result));
13344   return resultobj;
13345 fail:
13346   return NULL;
13347 }
13348 
13349 
_wrap_plotgrid_args_rahi_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13350 SWIGINTERN PyObject *_wrap_plotgrid_args_rahi_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13351   PyObject *resultobj = 0;
13352   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13353   double arg2 ;
13354   void *argp1 = 0 ;
13355   int res1 = 0 ;
13356   double val2 ;
13357   int ecode2 = 0 ;
13358   PyObject *swig_obj[2] ;
13359 
13360   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_rahi_set", 2, 2, swig_obj)) SWIG_fail;
13361   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13362   if (!SWIG_IsOK(res1)) {
13363     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_rahi_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13364   }
13365   arg1 = (struct plotgrid_args *)(argp1);
13366   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13367   if (!SWIG_IsOK(ecode2)) {
13368     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_rahi_set" "', argument " "2"" of type '" "double""'");
13369   }
13370   arg2 = (double)(val2);
13371   if (arg1) (arg1)->rahi = arg2;
13372   resultobj = SWIG_Py_Void();
13373   return resultobj;
13374 fail:
13375   return NULL;
13376 }
13377 
13378 
_wrap_plotgrid_args_rahi_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13379 SWIGINTERN PyObject *_wrap_plotgrid_args_rahi_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13380   PyObject *resultobj = 0;
13381   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13382   void *argp1 = 0 ;
13383   int res1 = 0 ;
13384   PyObject *swig_obj[1] ;
13385   double result;
13386 
13387   if (!args) SWIG_fail;
13388   swig_obj[0] = args;
13389   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13390   if (!SWIG_IsOK(res1)) {
13391     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_rahi_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13392   }
13393   arg1 = (struct plotgrid_args *)(argp1);
13394   result = (double) ((arg1)->rahi);
13395   resultobj = SWIG_From_double((double)(result));
13396   return resultobj;
13397 fail:
13398   return NULL;
13399 }
13400 
13401 
_wrap_plotgrid_args_declo_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13402 SWIGINTERN PyObject *_wrap_plotgrid_args_declo_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13403   PyObject *resultobj = 0;
13404   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13405   double arg2 ;
13406   void *argp1 = 0 ;
13407   int res1 = 0 ;
13408   double val2 ;
13409   int ecode2 = 0 ;
13410   PyObject *swig_obj[2] ;
13411 
13412   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_declo_set", 2, 2, swig_obj)) SWIG_fail;
13413   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13414   if (!SWIG_IsOK(res1)) {
13415     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declo_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13416   }
13417   arg1 = (struct plotgrid_args *)(argp1);
13418   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13419   if (!SWIG_IsOK(ecode2)) {
13420     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_declo_set" "', argument " "2"" of type '" "double""'");
13421   }
13422   arg2 = (double)(val2);
13423   if (arg1) (arg1)->declo = arg2;
13424   resultobj = SWIG_Py_Void();
13425   return resultobj;
13426 fail:
13427   return NULL;
13428 }
13429 
13430 
_wrap_plotgrid_args_declo_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13431 SWIGINTERN PyObject *_wrap_plotgrid_args_declo_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13432   PyObject *resultobj = 0;
13433   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13434   void *argp1 = 0 ;
13435   int res1 = 0 ;
13436   PyObject *swig_obj[1] ;
13437   double result;
13438 
13439   if (!args) SWIG_fail;
13440   swig_obj[0] = args;
13441   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13442   if (!SWIG_IsOK(res1)) {
13443     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_declo_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13444   }
13445   arg1 = (struct plotgrid_args *)(argp1);
13446   result = (double) ((arg1)->declo);
13447   resultobj = SWIG_From_double((double)(result));
13448   return resultobj;
13449 fail:
13450   return NULL;
13451 }
13452 
13453 
_wrap_plotgrid_args_dechi_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13454 SWIGINTERN PyObject *_wrap_plotgrid_args_dechi_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13455   PyObject *resultobj = 0;
13456   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13457   double arg2 ;
13458   void *argp1 = 0 ;
13459   int res1 = 0 ;
13460   double val2 ;
13461   int ecode2 = 0 ;
13462   PyObject *swig_obj[2] ;
13463 
13464   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_dechi_set", 2, 2, swig_obj)) SWIG_fail;
13465   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13466   if (!SWIG_IsOK(res1)) {
13467     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_dechi_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13468   }
13469   arg1 = (struct plotgrid_args *)(argp1);
13470   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13471   if (!SWIG_IsOK(ecode2)) {
13472     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotgrid_args_dechi_set" "', argument " "2"" of type '" "double""'");
13473   }
13474   arg2 = (double)(val2);
13475   if (arg1) (arg1)->dechi = arg2;
13476   resultobj = SWIG_Py_Void();
13477   return resultobj;
13478 fail:
13479   return NULL;
13480 }
13481 
13482 
_wrap_plotgrid_args_dechi_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13483 SWIGINTERN PyObject *_wrap_plotgrid_args_dechi_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13484   PyObject *resultobj = 0;
13485   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13486   void *argp1 = 0 ;
13487   int res1 = 0 ;
13488   PyObject *swig_obj[1] ;
13489   double result;
13490 
13491   if (!args) SWIG_fail;
13492   swig_obj[0] = args;
13493   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13494   if (!SWIG_IsOK(res1)) {
13495     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_dechi_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13496   }
13497   arg1 = (struct plotgrid_args *)(argp1);
13498   result = (double) ((arg1)->dechi);
13499   resultobj = SWIG_From_double((double)(result));
13500   return resultobj;
13501 fail:
13502   return NULL;
13503 }
13504 
13505 
_wrap_plotgrid_args_raformat_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13506 SWIGINTERN PyObject *_wrap_plotgrid_args_raformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13507   PyObject *resultobj = 0;
13508   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13509   char *arg2 = (char *) 0 ;
13510   void *argp1 = 0 ;
13511   int res1 = 0 ;
13512   int res2 ;
13513   char *buf2 = 0 ;
13514   int alloc2 = 0 ;
13515   PyObject *swig_obj[2] ;
13516 
13517   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_raformat_set", 2, 2, swig_obj)) SWIG_fail;
13518   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13519   if (!SWIG_IsOK(res1)) {
13520     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_raformat_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13521   }
13522   arg1 = (struct plotgrid_args *)(argp1);
13523   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
13524   if (!SWIG_IsOK(res2)) {
13525     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotgrid_args_raformat_set" "', argument " "2"" of type '" "char *""'");
13526   }
13527   arg2 = (char *)(buf2);
13528   if (arg1->raformat) free((char*)arg1->raformat);
13529   if (arg2) {
13530     size_t size = strlen((const char *)(arg2)) + 1;
13531     arg1->raformat = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
13532   } else {
13533     arg1->raformat = 0;
13534   }
13535   resultobj = SWIG_Py_Void();
13536   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13537   return resultobj;
13538 fail:
13539   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13540   return NULL;
13541 }
13542 
13543 
_wrap_plotgrid_args_raformat_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13544 SWIGINTERN PyObject *_wrap_plotgrid_args_raformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13545   PyObject *resultobj = 0;
13546   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13547   void *argp1 = 0 ;
13548   int res1 = 0 ;
13549   PyObject *swig_obj[1] ;
13550   char *result = 0 ;
13551 
13552   if (!args) SWIG_fail;
13553   swig_obj[0] = args;
13554   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13555   if (!SWIG_IsOK(res1)) {
13556     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_raformat_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13557   }
13558   arg1 = (struct plotgrid_args *)(argp1);
13559   result = (char *) ((arg1)->raformat);
13560   resultobj = SWIG_FromCharPtr((const char *)result);
13561   return resultobj;
13562 fail:
13563   return NULL;
13564 }
13565 
13566 
_wrap_plotgrid_args_decformat_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13567 SWIGINTERN PyObject *_wrap_plotgrid_args_decformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13568   PyObject *resultobj = 0;
13569   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13570   char *arg2 = (char *) 0 ;
13571   void *argp1 = 0 ;
13572   int res1 = 0 ;
13573   int res2 ;
13574   char *buf2 = 0 ;
13575   int alloc2 = 0 ;
13576   PyObject *swig_obj[2] ;
13577 
13578   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_decformat_set", 2, 2, swig_obj)) SWIG_fail;
13579   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13580   if (!SWIG_IsOK(res1)) {
13581     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_decformat_set" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13582   }
13583   arg1 = (struct plotgrid_args *)(argp1);
13584   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
13585   if (!SWIG_IsOK(res2)) {
13586     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotgrid_args_decformat_set" "', argument " "2"" of type '" "char *""'");
13587   }
13588   arg2 = (char *)(buf2);
13589   if (arg1->decformat) free((char*)arg1->decformat);
13590   if (arg2) {
13591     size_t size = strlen((const char *)(arg2)) + 1;
13592     arg1->decformat = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
13593   } else {
13594     arg1->decformat = 0;
13595   }
13596   resultobj = SWIG_Py_Void();
13597   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13598   return resultobj;
13599 fail:
13600   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13601   return NULL;
13602 }
13603 
13604 
_wrap_plotgrid_args_decformat_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13605 SWIGINTERN PyObject *_wrap_plotgrid_args_decformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13606   PyObject *resultobj = 0;
13607   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13608   void *argp1 = 0 ;
13609   int res1 = 0 ;
13610   PyObject *swig_obj[1] ;
13611   char *result = 0 ;
13612 
13613   if (!args) SWIG_fail;
13614   swig_obj[0] = args;
13615   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13616   if (!SWIG_IsOK(res1)) {
13617     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_decformat_get" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13618   }
13619   arg1 = (struct plotgrid_args *)(argp1);
13620   result = (char *) ((arg1)->decformat);
13621   resultobj = SWIG_FromCharPtr((const char *)result);
13622   return resultobj;
13623 fail:
13624   return NULL;
13625 }
13626 
13627 
_wrap_plotgrid_args_set_formats(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13628 SWIGINTERN PyObject *_wrap_plotgrid_args_set_formats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13629   PyObject *resultobj = 0;
13630   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13631   char *arg2 = (char *) 0 ;
13632   char *arg3 = (char *) 0 ;
13633   void *argp1 = 0 ;
13634   int res1 = 0 ;
13635   int res2 ;
13636   char *buf2 = 0 ;
13637   int alloc2 = 0 ;
13638   int res3 ;
13639   char *buf3 = 0 ;
13640   int alloc3 = 0 ;
13641   PyObject *swig_obj[3] ;
13642   int result;
13643 
13644   if (!SWIG_Python_UnpackTuple(args, "plotgrid_args_set_formats", 3, 3, swig_obj)) SWIG_fail;
13645   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13646   if (!SWIG_IsOK(res1)) {
13647     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotgrid_args_set_formats" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13648   }
13649   arg1 = (struct plotgrid_args *)(argp1);
13650   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
13651   if (!SWIG_IsOK(res2)) {
13652     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotgrid_args_set_formats" "', argument " "2"" of type '" "char const *""'");
13653   }
13654   arg2 = (char *)(buf2);
13655   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13656   if (!SWIG_IsOK(res3)) {
13657     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plotgrid_args_set_formats" "', argument " "3"" of type '" "char const *""'");
13658   }
13659   arg3 = (char *)(buf3);
13660   result = (int)plotgrid_args_set_formats(arg1,(char const *)arg2,(char const *)arg3);
13661   resultobj = SWIG_From_int((int)(result));
13662   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13663   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
13664   return resultobj;
13665 fail:
13666   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13667   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
13668   return NULL;
13669 }
13670 
13671 
_wrap_new_plotgrid_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13672 SWIGINTERN PyObject *_wrap_new_plotgrid_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13673   PyObject *resultobj = 0;
13674   struct plotgrid_args *result = 0 ;
13675 
13676   if (!SWIG_Python_UnpackTuple(args, "new_plotgrid_args", 0, 0, 0)) SWIG_fail;
13677   result = (struct plotgrid_args *)calloc(1, sizeof(struct plotgrid_args));
13678   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotgrid_args, SWIG_POINTER_NEW |  0 );
13679   return resultobj;
13680 fail:
13681   return NULL;
13682 }
13683 
13684 
_wrap_delete_plotgrid_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13685 SWIGINTERN PyObject *_wrap_delete_plotgrid_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13686   PyObject *resultobj = 0;
13687   struct plotgrid_args *arg1 = (struct plotgrid_args *) 0 ;
13688   void *argp1 = 0 ;
13689   int res1 = 0 ;
13690   PyObject *swig_obj[1] ;
13691 
13692   if (!args) SWIG_fail;
13693   swig_obj[0] = args;
13694   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, SWIG_POINTER_DISOWN |  0 );
13695   if (!SWIG_IsOK(res1)) {
13696     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotgrid_args" "', argument " "1"" of type '" "struct plotgrid_args *""'");
13697   }
13698   arg1 = (struct plotgrid_args *)(argp1);
13699   free((char *) arg1);
13700   resultobj = SWIG_Py_Void();
13701   return resultobj;
13702 fail:
13703   return NULL;
13704 }
13705 
13706 
plotgrid_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13707 SWIGINTERN PyObject *plotgrid_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13708   PyObject *obj;
13709   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
13710   SWIG_TypeNewClientData(SWIGTYPE_p_plotgrid_args, SWIG_NewClientData(obj));
13711   return SWIG_Py_Void();
13712 }
13713 
plotgrid_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13714 SWIGINTERN PyObject *plotgrid_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13715   return SWIG_Python_InitShadowInstance(args);
13716 }
13717 
_wrap_plot_grid_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13718 SWIGINTERN PyObject *_wrap_plot_grid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13719   PyObject *resultobj = 0;
13720   plot_args_t *arg1 = (plot_args_t *) 0 ;
13721   void *argp1 = 0 ;
13722   int res1 = 0 ;
13723   PyObject *swig_obj[1] ;
13724   plotgrid_t *result = 0 ;
13725 
13726   if (!args) SWIG_fail;
13727   swig_obj[0] = args;
13728   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
13729   if (!SWIG_IsOK(res1)) {
13730     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_get" "', argument " "1"" of type '" "plot_args_t *""'");
13731   }
13732   arg1 = (plot_args_t *)(argp1);
13733   result = (plotgrid_t *)plot_grid_get(arg1);
13734   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotgrid_args, 0 |  0 );
13735   return resultobj;
13736 fail:
13737   return NULL;
13738 }
13739 
13740 
_wrap_plot_grid_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13741 SWIGINTERN PyObject *_wrap_plot_grid_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13742   PyObject *resultobj = 0;
13743   plot_args_t *arg1 = (plot_args_t *) 0 ;
13744   void *argp1 = 0 ;
13745   int res1 = 0 ;
13746   PyObject *swig_obj[1] ;
13747   void *result = 0 ;
13748 
13749   if (!args) SWIG_fail;
13750   swig_obj[0] = args;
13751   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
13752   if (!SWIG_IsOK(res1)) {
13753     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_init" "', argument " "1"" of type '" "plot_args_t *""'");
13754   }
13755   arg1 = (plot_args_t *)(argp1);
13756   result = (void *)plot_grid_init(arg1);
13757   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
13758   return resultobj;
13759 fail:
13760   return NULL;
13761 }
13762 
13763 
_wrap_plot_grid_set_formats(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13764 SWIGINTERN PyObject *_wrap_plot_grid_set_formats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13765   PyObject *resultobj = 0;
13766   plotgrid_t *arg1 = (plotgrid_t *) 0 ;
13767   char *arg2 = (char *) 0 ;
13768   char *arg3 = (char *) 0 ;
13769   void *argp1 = 0 ;
13770   int res1 = 0 ;
13771   int res2 ;
13772   char *buf2 = 0 ;
13773   int alloc2 = 0 ;
13774   int res3 ;
13775   char *buf3 = 0 ;
13776   int alloc3 = 0 ;
13777   PyObject *swig_obj[3] ;
13778   int result;
13779 
13780   if (!SWIG_Python_UnpackTuple(args, "plot_grid_set_formats", 3, 3, swig_obj)) SWIG_fail;
13781   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotgrid_args, 0 |  0 );
13782   if (!SWIG_IsOK(res1)) {
13783     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_set_formats" "', argument " "1"" of type '" "plotgrid_t *""'");
13784   }
13785   arg1 = (plotgrid_t *)(argp1);
13786   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
13787   if (!SWIG_IsOK(res2)) {
13788     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_grid_set_formats" "', argument " "2"" of type '" "char const *""'");
13789   }
13790   arg2 = (char *)(buf2);
13791   res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3);
13792   if (!SWIG_IsOK(res3)) {
13793     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_grid_set_formats" "', argument " "3"" of type '" "char const *""'");
13794   }
13795   arg3 = (char *)(buf3);
13796   result = (int)plot_grid_set_formats(arg1,(char const *)arg2,(char const *)arg3);
13797   resultobj = SWIG_From_int((int)(result));
13798   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13799   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
13800   return resultobj;
13801 fail:
13802   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13803   if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
13804   return NULL;
13805 }
13806 
13807 
_wrap_plot_grid_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13808 SWIGINTERN PyObject *_wrap_plot_grid_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13809   PyObject *resultobj = 0;
13810   char *arg1 = (char *) 0 ;
13811   char *arg2 = (char *) 0 ;
13812   plot_args_t *arg3 = (plot_args_t *) 0 ;
13813   void *arg4 = (void *) 0 ;
13814   int res1 ;
13815   char *buf1 = 0 ;
13816   int alloc1 = 0 ;
13817   int res2 ;
13818   char *buf2 = 0 ;
13819   int alloc2 = 0 ;
13820   void *argp3 = 0 ;
13821   int res3 = 0 ;
13822   int res4 ;
13823   PyObject *swig_obj[4] ;
13824   int result;
13825 
13826   if (!SWIG_Python_UnpackTuple(args, "plot_grid_command", 4, 4, swig_obj)) SWIG_fail;
13827   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
13828   if (!SWIG_IsOK(res1)) {
13829     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_command" "', argument " "1"" of type '" "char const *""'");
13830   }
13831   arg1 = (char *)(buf1);
13832   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
13833   if (!SWIG_IsOK(res2)) {
13834     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_grid_command" "', argument " "2"" of type '" "char const *""'");
13835   }
13836   arg2 = (char *)(buf2);
13837   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
13838   if (!SWIG_IsOK(res3)) {
13839     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_grid_command" "', argument " "3"" of type '" "plot_args_t *""'");
13840   }
13841   arg3 = (plot_args_t *)(argp3);
13842   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
13843   if (!SWIG_IsOK(res4)) {
13844     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_grid_command" "', argument " "4"" of type '" "void *""'");
13845   }
13846   result = (int)plot_grid_command((char const *)arg1,(char const *)arg2,arg3,arg4);
13847   resultobj = SWIG_From_int((int)(result));
13848   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
13849   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13850   return resultobj;
13851 fail:
13852   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
13853   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
13854   return NULL;
13855 }
13856 
13857 
_wrap_plot_grid_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13858 SWIGINTERN PyObject *_wrap_plot_grid_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13859   PyObject *resultobj = 0;
13860   char *arg1 = (char *) 0 ;
13861   cairo_t *arg2 = (cairo_t *) 0 ;
13862   plot_args_t *arg3 = (plot_args_t *) 0 ;
13863   void *arg4 = (void *) 0 ;
13864   int res1 ;
13865   char *buf1 = 0 ;
13866   int alloc1 = 0 ;
13867   void *argp2 = 0 ;
13868   int res2 = 0 ;
13869   void *argp3 = 0 ;
13870   int res3 = 0 ;
13871   int res4 ;
13872   PyObject *swig_obj[4] ;
13873   int result;
13874 
13875   if (!SWIG_Python_UnpackTuple(args, "plot_grid_plot", 4, 4, swig_obj)) SWIG_fail;
13876   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
13877   if (!SWIG_IsOK(res1)) {
13878     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_plot" "', argument " "1"" of type '" "char const *""'");
13879   }
13880   arg1 = (char *)(buf1);
13881   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
13882   if (!SWIG_IsOK(res2)) {
13883     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_grid_plot" "', argument " "2"" of type '" "cairo_t *""'");
13884   }
13885   arg2 = (cairo_t *)(argp2);
13886   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
13887   if (!SWIG_IsOK(res3)) {
13888     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_grid_plot" "', argument " "3"" of type '" "plot_args_t *""'");
13889   }
13890   arg3 = (plot_args_t *)(argp3);
13891   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
13892   if (!SWIG_IsOK(res4)) {
13893     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_grid_plot" "', argument " "4"" of type '" "void *""'");
13894   }
13895   result = (int)plot_grid_plot((char const *)arg1,arg2,arg3,arg4);
13896   resultobj = SWIG_From_int((int)(result));
13897   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
13898   return resultobj;
13899 fail:
13900   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
13901   return NULL;
13902 }
13903 
13904 
_wrap_plot_grid_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13905 SWIGINTERN PyObject *_wrap_plot_grid_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13906   PyObject *resultobj = 0;
13907   plot_args_t *arg1 = (plot_args_t *) 0 ;
13908   void *arg2 = (void *) 0 ;
13909   void *argp1 = 0 ;
13910   int res1 = 0 ;
13911   int res2 ;
13912   PyObject *swig_obj[2] ;
13913 
13914   if (!SWIG_Python_UnpackTuple(args, "plot_grid_free", 2, 2, swig_obj)) SWIG_fail;
13915   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
13916   if (!SWIG_IsOK(res1)) {
13917     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_free" "', argument " "1"" of type '" "plot_args_t *""'");
13918   }
13919   arg1 = (plot_args_t *)(argp1);
13920   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
13921   if (!SWIG_IsOK(res2)) {
13922     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_grid_free" "', argument " "2"" of type '" "void *""'");
13923   }
13924   plot_grid_free(arg1,arg2);
13925   resultobj = SWIG_Py_Void();
13926   return resultobj;
13927 fail:
13928   return NULL;
13929 }
13930 
13931 
_wrap_plot_grid_add_label(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13932 SWIGINTERN PyObject *_wrap_plot_grid_add_label(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13933   PyObject *resultobj = 0;
13934   plot_args_t *arg1 = (plot_args_t *) 0 ;
13935   double arg2 ;
13936   double arg3 ;
13937   double arg4 ;
13938   char *arg5 = (char *) 0 ;
13939   void *argp1 = 0 ;
13940   int res1 = 0 ;
13941   double val2 ;
13942   int ecode2 = 0 ;
13943   double val3 ;
13944   int ecode3 = 0 ;
13945   double val4 ;
13946   int ecode4 = 0 ;
13947   int res5 ;
13948   char *buf5 = 0 ;
13949   int alloc5 = 0 ;
13950   PyObject *swig_obj[5] ;
13951 
13952   if (!SWIG_Python_UnpackTuple(args, "plot_grid_add_label", 5, 5, swig_obj)) SWIG_fail;
13953   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
13954   if (!SWIG_IsOK(res1)) {
13955     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_add_label" "', argument " "1"" of type '" "plot_args_t *""'");
13956   }
13957   arg1 = (plot_args_t *)(argp1);
13958   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
13959   if (!SWIG_IsOK(ecode2)) {
13960     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_grid_add_label" "', argument " "2"" of type '" "double""'");
13961   }
13962   arg2 = (double)(val2);
13963   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
13964   if (!SWIG_IsOK(ecode3)) {
13965     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_grid_add_label" "', argument " "3"" of type '" "double""'");
13966   }
13967   arg3 = (double)(val3);
13968   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
13969   if (!SWIG_IsOK(ecode4)) {
13970     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot_grid_add_label" "', argument " "4"" of type '" "double""'");
13971   }
13972   arg4 = (double)(val4);
13973   res5 = SWIG_AsCharPtrAndSize(swig_obj[4], &buf5, NULL, &alloc5);
13974   if (!SWIG_IsOK(res5)) {
13975     SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "plot_grid_add_label" "', argument " "5"" of type '" "char const *""'");
13976   }
13977   arg5 = (char *)(buf5);
13978   plot_grid_add_label(arg1,arg2,arg3,arg4,(char const *)arg5);
13979   resultobj = SWIG_Py_Void();
13980   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
13981   return resultobj;
13982 fail:
13983   if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
13984   return NULL;
13985 }
13986 
13987 
_wrap_plot_grid_find_ra_label_location(PyObject * SWIGUNUSEDPARM (self),PyObject * args)13988 SWIGINTERN PyObject *_wrap_plot_grid_find_ra_label_location(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13989   PyObject *resultobj = 0;
13990   plot_args_t *arg1 = (plot_args_t *) 0 ;
13991   double arg2 ;
13992   double arg3 ;
13993   double arg4 ;
13994   double arg5 ;
13995   int arg6 ;
13996   double *arg7 = (double *) 0 ;
13997   void *argp1 = 0 ;
13998   int res1 = 0 ;
13999   double val2 ;
14000   int ecode2 = 0 ;
14001   double val3 ;
14002   int ecode3 = 0 ;
14003   double val4 ;
14004   int ecode4 = 0 ;
14005   double val5 ;
14006   int ecode5 = 0 ;
14007   int val6 ;
14008   int ecode6 = 0 ;
14009   double temp7 ;
14010   int res7 = SWIG_TMPOBJ ;
14011   PyObject *swig_obj[6] ;
14012   int result;
14013 
14014   arg7 = &temp7;
14015   if (!SWIG_Python_UnpackTuple(args, "plot_grid_find_ra_label_location", 6, 6, swig_obj)) SWIG_fail;
14016   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14017   if (!SWIG_IsOK(res1)) {
14018     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_find_ra_label_location" "', argument " "1"" of type '" "plot_args_t *""'");
14019   }
14020   arg1 = (plot_args_t *)(argp1);
14021   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14022   if (!SWIG_IsOK(ecode2)) {
14023     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_grid_find_ra_label_location" "', argument " "2"" of type '" "double""'");
14024   }
14025   arg2 = (double)(val2);
14026   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14027   if (!SWIG_IsOK(ecode3)) {
14028     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_grid_find_ra_label_location" "', argument " "3"" of type '" "double""'");
14029   }
14030   arg3 = (double)(val3);
14031   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14032   if (!SWIG_IsOK(ecode4)) {
14033     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot_grid_find_ra_label_location" "', argument " "4"" of type '" "double""'");
14034   }
14035   arg4 = (double)(val4);
14036   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
14037   if (!SWIG_IsOK(ecode5)) {
14038     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plot_grid_find_ra_label_location" "', argument " "5"" of type '" "double""'");
14039   }
14040   arg5 = (double)(val5);
14041   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
14042   if (!SWIG_IsOK(ecode6)) {
14043     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "plot_grid_find_ra_label_location" "', argument " "6"" of type '" "int""'");
14044   }
14045   arg6 = (int)(val6);
14046   result = (int)plot_grid_find_ra_label_location(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
14047   resultobj = SWIG_From_int((int)(result));
14048   if (SWIG_IsTmpObj(res7)) {
14049     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
14050   } else {
14051     int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14052     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
14053   }
14054   return resultobj;
14055 fail:
14056   return NULL;
14057 }
14058 
14059 
_wrap_plot_grid_find_dec_label_location(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14060 SWIGINTERN PyObject *_wrap_plot_grid_find_dec_label_location(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14061   PyObject *resultobj = 0;
14062   plot_args_t *arg1 = (plot_args_t *) 0 ;
14063   double arg2 ;
14064   double arg3 ;
14065   double arg4 ;
14066   double arg5 ;
14067   int arg6 ;
14068   double *arg7 = (double *) 0 ;
14069   void *argp1 = 0 ;
14070   int res1 = 0 ;
14071   double val2 ;
14072   int ecode2 = 0 ;
14073   double val3 ;
14074   int ecode3 = 0 ;
14075   double val4 ;
14076   int ecode4 = 0 ;
14077   double val5 ;
14078   int ecode5 = 0 ;
14079   int val6 ;
14080   int ecode6 = 0 ;
14081   double temp7 ;
14082   int res7 = SWIG_TMPOBJ ;
14083   PyObject *swig_obj[6] ;
14084   int result;
14085 
14086   arg7 = &temp7;
14087   if (!SWIG_Python_UnpackTuple(args, "plot_grid_find_dec_label_location", 6, 6, swig_obj)) SWIG_fail;
14088   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14089   if (!SWIG_IsOK(res1)) {
14090     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_find_dec_label_location" "', argument " "1"" of type '" "plot_args_t *""'");
14091   }
14092   arg1 = (plot_args_t *)(argp1);
14093   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
14094   if (!SWIG_IsOK(ecode2)) {
14095     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_grid_find_dec_label_location" "', argument " "2"" of type '" "double""'");
14096   }
14097   arg2 = (double)(val2);
14098   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
14099   if (!SWIG_IsOK(ecode3)) {
14100     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_grid_find_dec_label_location" "', argument " "3"" of type '" "double""'");
14101   }
14102   arg3 = (double)(val3);
14103   ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
14104   if (!SWIG_IsOK(ecode4)) {
14105     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot_grid_find_dec_label_location" "', argument " "4"" of type '" "double""'");
14106   }
14107   arg4 = (double)(val4);
14108   ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
14109   if (!SWIG_IsOK(ecode5)) {
14110     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plot_grid_find_dec_label_location" "', argument " "5"" of type '" "double""'");
14111   }
14112   arg5 = (double)(val5);
14113   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
14114   if (!SWIG_IsOK(ecode6)) {
14115     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "plot_grid_find_dec_label_location" "', argument " "6"" of type '" "int""'");
14116   }
14117   arg6 = (int)(val6);
14118   result = (int)plot_grid_find_dec_label_location(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
14119   resultobj = SWIG_From_int((int)(result));
14120   if (SWIG_IsTmpObj(res7)) {
14121     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
14122   } else {
14123     int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
14124     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
14125   }
14126   return resultobj;
14127 fail:
14128   return NULL;
14129 }
14130 
14131 
_wrap_plot_grid_count_ra_labels(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14132 SWIGINTERN PyObject *_wrap_plot_grid_count_ra_labels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14133   PyObject *resultobj = 0;
14134   plot_args_t *arg1 = (plot_args_t *) 0 ;
14135   void *argp1 = 0 ;
14136   int res1 = 0 ;
14137   PyObject *swig_obj[1] ;
14138   int result;
14139 
14140   if (!args) SWIG_fail;
14141   swig_obj[0] = args;
14142   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14143   if (!SWIG_IsOK(res1)) {
14144     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_count_ra_labels" "', argument " "1"" of type '" "plot_args_t *""'");
14145   }
14146   arg1 = (plot_args_t *)(argp1);
14147   result = (int)plot_grid_count_ra_labels(arg1);
14148   resultobj = SWIG_From_int((int)(result));
14149   return resultobj;
14150 fail:
14151   return NULL;
14152 }
14153 
14154 
_wrap_plot_grid_count_dec_labels(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14155 SWIGINTERN PyObject *_wrap_plot_grid_count_dec_labels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14156   PyObject *resultobj = 0;
14157   plot_args_t *arg1 = (plot_args_t *) 0 ;
14158   void *argp1 = 0 ;
14159   int res1 = 0 ;
14160   PyObject *swig_obj[1] ;
14161   int result;
14162 
14163   if (!args) SWIG_fail;
14164   swig_obj[0] = args;
14165   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14166   if (!SWIG_IsOK(res1)) {
14167     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_count_dec_labels" "', argument " "1"" of type '" "plot_args_t *""'");
14168   }
14169   arg1 = (plot_args_t *)(argp1);
14170   result = (int)plot_grid_count_dec_labels(arg1);
14171   resultobj = SWIG_From_int((int)(result));
14172   return resultobj;
14173 fail:
14174   return NULL;
14175 }
14176 
14177 
_wrap_plot_grid_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14178 SWIGINTERN PyObject *_wrap_plot_grid_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14179   PyObject *resultobj = 0;
14180   plotter_t *arg1 = (plotter_t *) 0 ;
14181   void *argp1 = 0 ;
14182   int res1 = 0 ;
14183   PyObject *swig_obj[1] ;
14184 
14185   if (!args) SWIG_fail;
14186   swig_obj[0] = args;
14187   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
14188   if (!SWIG_IsOK(res1)) {
14189     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_grid_describe" "', argument " "1"" of type '" "plotter_t *""'");
14190   }
14191   arg1 = (plotter_t *)(argp1);
14192   plot_grid_describe(arg1);
14193   resultobj = SWIG_Py_Void();
14194   return resultobj;
14195 fail:
14196   return NULL;
14197 }
14198 
14199 
_wrap_plotindex_args_indexes_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14200 SWIGINTERN PyObject *_wrap_plotindex_args_indexes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14201   PyObject *resultobj = 0;
14202   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14203   pl *arg2 = (pl *) 0 ;
14204   void *argp1 = 0 ;
14205   int res1 = 0 ;
14206   void *argp2 = 0 ;
14207   int res2 = 0 ;
14208   PyObject *swig_obj[2] ;
14209 
14210   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_indexes_set", 2, 2, swig_obj)) SWIG_fail;
14211   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14212   if (!SWIG_IsOK(res1)) {
14213     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_indexes_set" "', argument " "1"" of type '" "struct plotindex_args *""'");
14214   }
14215   arg1 = (struct plotindex_args *)(argp1);
14216   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_pl, SWIG_POINTER_DISOWN |  0 );
14217   if (!SWIG_IsOK(res2)) {
14218     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotindex_args_indexes_set" "', argument " "2"" of type '" "pl *""'");
14219   }
14220   arg2 = (pl *)(argp2);
14221   if (arg1) (arg1)->indexes = arg2;
14222   resultobj = SWIG_Py_Void();
14223   return resultobj;
14224 fail:
14225   return NULL;
14226 }
14227 
14228 
_wrap_plotindex_args_indexes_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14229 SWIGINTERN PyObject *_wrap_plotindex_args_indexes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14230   PyObject *resultobj = 0;
14231   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14232   void *argp1 = 0 ;
14233   int res1 = 0 ;
14234   PyObject *swig_obj[1] ;
14235   pl *result = 0 ;
14236 
14237   if (!args) SWIG_fail;
14238   swig_obj[0] = args;
14239   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14240   if (!SWIG_IsOK(res1)) {
14241     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_indexes_get" "', argument " "1"" of type '" "struct plotindex_args *""'");
14242   }
14243   arg1 = (struct plotindex_args *)(argp1);
14244   result = (pl *) ((arg1)->indexes);
14245   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pl, 0 |  0 );
14246   return resultobj;
14247 fail:
14248   return NULL;
14249 }
14250 
14251 
_wrap_plotindex_args_qidxes_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14252 SWIGINTERN PyObject *_wrap_plotindex_args_qidxes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14253   PyObject *resultobj = 0;
14254   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14255   pl *arg2 = (pl *) 0 ;
14256   void *argp1 = 0 ;
14257   int res1 = 0 ;
14258   void *argp2 = 0 ;
14259   int res2 = 0 ;
14260   PyObject *swig_obj[2] ;
14261 
14262   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_qidxes_set", 2, 2, swig_obj)) SWIG_fail;
14263   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14264   if (!SWIG_IsOK(res1)) {
14265     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_qidxes_set" "', argument " "1"" of type '" "struct plotindex_args *""'");
14266   }
14267   arg1 = (struct plotindex_args *)(argp1);
14268   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_pl, SWIG_POINTER_DISOWN |  0 );
14269   if (!SWIG_IsOK(res2)) {
14270     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotindex_args_qidxes_set" "', argument " "2"" of type '" "pl *""'");
14271   }
14272   arg2 = (pl *)(argp2);
14273   if (arg1) (arg1)->qidxes = arg2;
14274   resultobj = SWIG_Py_Void();
14275   return resultobj;
14276 fail:
14277   return NULL;
14278 }
14279 
14280 
_wrap_plotindex_args_qidxes_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14281 SWIGINTERN PyObject *_wrap_plotindex_args_qidxes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14282   PyObject *resultobj = 0;
14283   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14284   void *argp1 = 0 ;
14285   int res1 = 0 ;
14286   PyObject *swig_obj[1] ;
14287   pl *result = 0 ;
14288 
14289   if (!args) SWIG_fail;
14290   swig_obj[0] = args;
14291   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14292   if (!SWIG_IsOK(res1)) {
14293     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_qidxes_get" "', argument " "1"" of type '" "struct plotindex_args *""'");
14294   }
14295   arg1 = (struct plotindex_args *)(argp1);
14296   result = (pl *) ((arg1)->qidxes);
14297   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pl, 0 |  0 );
14298   return resultobj;
14299 fail:
14300   return NULL;
14301 }
14302 
14303 
_wrap_plotindex_args_stars_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14304 SWIGINTERN PyObject *_wrap_plotindex_args_stars_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14305   PyObject *resultobj = 0;
14306   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14307   anbool arg2 ;
14308   void *argp1 = 0 ;
14309   int res1 = 0 ;
14310   unsigned char val2 ;
14311   int ecode2 = 0 ;
14312   PyObject *swig_obj[2] ;
14313 
14314   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_stars_set", 2, 2, swig_obj)) SWIG_fail;
14315   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14316   if (!SWIG_IsOK(res1)) {
14317     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_stars_set" "', argument " "1"" of type '" "struct plotindex_args *""'");
14318   }
14319   arg1 = (struct plotindex_args *)(argp1);
14320   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
14321   if (!SWIG_IsOK(ecode2)) {
14322     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotindex_args_stars_set" "', argument " "2"" of type '" "anbool""'");
14323   }
14324   arg2 = (anbool)(val2);
14325   if (arg1) (arg1)->stars = arg2;
14326   resultobj = SWIG_Py_Void();
14327   return resultobj;
14328 fail:
14329   return NULL;
14330 }
14331 
14332 
_wrap_plotindex_args_stars_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14333 SWIGINTERN PyObject *_wrap_plotindex_args_stars_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14334   PyObject *resultobj = 0;
14335   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14336   void *argp1 = 0 ;
14337   int res1 = 0 ;
14338   PyObject *swig_obj[1] ;
14339   anbool result;
14340 
14341   if (!args) SWIG_fail;
14342   swig_obj[0] = args;
14343   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14344   if (!SWIG_IsOK(res1)) {
14345     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_stars_get" "', argument " "1"" of type '" "struct plotindex_args *""'");
14346   }
14347   arg1 = (struct plotindex_args *)(argp1);
14348   result = (anbool) ((arg1)->stars);
14349   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
14350   return resultobj;
14351 fail:
14352   return NULL;
14353 }
14354 
14355 
_wrap_plotindex_args_quads_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14356 SWIGINTERN PyObject *_wrap_plotindex_args_quads_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14357   PyObject *resultobj = 0;
14358   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14359   anbool arg2 ;
14360   void *argp1 = 0 ;
14361   int res1 = 0 ;
14362   unsigned char val2 ;
14363   int ecode2 = 0 ;
14364   PyObject *swig_obj[2] ;
14365 
14366   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_quads_set", 2, 2, swig_obj)) SWIG_fail;
14367   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14368   if (!SWIG_IsOK(res1)) {
14369     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_quads_set" "', argument " "1"" of type '" "struct plotindex_args *""'");
14370   }
14371   arg1 = (struct plotindex_args *)(argp1);
14372   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
14373   if (!SWIG_IsOK(ecode2)) {
14374     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotindex_args_quads_set" "', argument " "2"" of type '" "anbool""'");
14375   }
14376   arg2 = (anbool)(val2);
14377   if (arg1) (arg1)->quads = arg2;
14378   resultobj = SWIG_Py_Void();
14379   return resultobj;
14380 fail:
14381   return NULL;
14382 }
14383 
14384 
_wrap_plotindex_args_quads_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14385 SWIGINTERN PyObject *_wrap_plotindex_args_quads_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386   PyObject *resultobj = 0;
14387   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14388   void *argp1 = 0 ;
14389   int res1 = 0 ;
14390   PyObject *swig_obj[1] ;
14391   anbool result;
14392 
14393   if (!args) SWIG_fail;
14394   swig_obj[0] = args;
14395   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14396   if (!SWIG_IsOK(res1)) {
14397     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_quads_get" "', argument " "1"" of type '" "struct plotindex_args *""'");
14398   }
14399   arg1 = (struct plotindex_args *)(argp1);
14400   result = (anbool) ((arg1)->quads);
14401   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
14402   return resultobj;
14403 fail:
14404   return NULL;
14405 }
14406 
14407 
_wrap_plotindex_args_fill_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14408 SWIGINTERN PyObject *_wrap_plotindex_args_fill_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14409   PyObject *resultobj = 0;
14410   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14411   anbool arg2 ;
14412   void *argp1 = 0 ;
14413   int res1 = 0 ;
14414   unsigned char val2 ;
14415   int ecode2 = 0 ;
14416   PyObject *swig_obj[2] ;
14417 
14418   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_fill_set", 2, 2, swig_obj)) SWIG_fail;
14419   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14420   if (!SWIG_IsOK(res1)) {
14421     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_fill_set" "', argument " "1"" of type '" "struct plotindex_args *""'");
14422   }
14423   arg1 = (struct plotindex_args *)(argp1);
14424   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
14425   if (!SWIG_IsOK(ecode2)) {
14426     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotindex_args_fill_set" "', argument " "2"" of type '" "anbool""'");
14427   }
14428   arg2 = (anbool)(val2);
14429   if (arg1) (arg1)->fill = arg2;
14430   resultobj = SWIG_Py_Void();
14431   return resultobj;
14432 fail:
14433   return NULL;
14434 }
14435 
14436 
_wrap_plotindex_args_fill_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14437 SWIGINTERN PyObject *_wrap_plotindex_args_fill_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14438   PyObject *resultobj = 0;
14439   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14440   void *argp1 = 0 ;
14441   int res1 = 0 ;
14442   PyObject *swig_obj[1] ;
14443   anbool result;
14444 
14445   if (!args) SWIG_fail;
14446   swig_obj[0] = args;
14447   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14448   if (!SWIG_IsOK(res1)) {
14449     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_fill_get" "', argument " "1"" of type '" "struct plotindex_args *""'");
14450   }
14451   arg1 = (struct plotindex_args *)(argp1);
14452   result = (anbool) ((arg1)->fill);
14453   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
14454   return resultobj;
14455 fail:
14456   return NULL;
14457 }
14458 
14459 
_wrap_plotindex_args_add_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14460 SWIGINTERN PyObject *_wrap_plotindex_args_add_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14461   PyObject *resultobj = 0;
14462   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14463   char *arg2 = (char *) 0 ;
14464   void *argp1 = 0 ;
14465   int res1 = 0 ;
14466   int res2 ;
14467   char *buf2 = 0 ;
14468   int alloc2 = 0 ;
14469   PyObject *swig_obj[2] ;
14470   int result;
14471 
14472   if (!SWIG_Python_UnpackTuple(args, "plotindex_args_add_file", 2, 2, swig_obj)) SWIG_fail;
14473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14474   if (!SWIG_IsOK(res1)) {
14475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotindex_args_add_file" "', argument " "1"" of type '" "struct plotindex_args *""'");
14476   }
14477   arg1 = (struct plotindex_args *)(argp1);
14478   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
14479   if (!SWIG_IsOK(res2)) {
14480     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotindex_args_add_file" "', argument " "2"" of type '" "char const *""'");
14481   }
14482   arg2 = (char *)(buf2);
14483   result = (int)plotindex_args_add_file(arg1,(char const *)arg2);
14484   resultobj = SWIG_From_int((int)(result));
14485   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14486   return resultobj;
14487 fail:
14488   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14489   return NULL;
14490 }
14491 
14492 
_wrap_new_plotindex_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14493 SWIGINTERN PyObject *_wrap_new_plotindex_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14494   PyObject *resultobj = 0;
14495   struct plotindex_args *result = 0 ;
14496 
14497   if (!SWIG_Python_UnpackTuple(args, "new_plotindex_args", 0, 0, 0)) SWIG_fail;
14498   result = (struct plotindex_args *)calloc(1, sizeof(struct plotindex_args));
14499   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotindex_args, SWIG_POINTER_NEW |  0 );
14500   return resultobj;
14501 fail:
14502   return NULL;
14503 }
14504 
14505 
_wrap_delete_plotindex_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14506 SWIGINTERN PyObject *_wrap_delete_plotindex_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14507   PyObject *resultobj = 0;
14508   struct plotindex_args *arg1 = (struct plotindex_args *) 0 ;
14509   void *argp1 = 0 ;
14510   int res1 = 0 ;
14511   PyObject *swig_obj[1] ;
14512 
14513   if (!args) SWIG_fail;
14514   swig_obj[0] = args;
14515   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, SWIG_POINTER_DISOWN |  0 );
14516   if (!SWIG_IsOK(res1)) {
14517     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotindex_args" "', argument " "1"" of type '" "struct plotindex_args *""'");
14518   }
14519   arg1 = (struct plotindex_args *)(argp1);
14520   free((char *) arg1);
14521   resultobj = SWIG_Py_Void();
14522   return resultobj;
14523 fail:
14524   return NULL;
14525 }
14526 
14527 
plotindex_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14528 SWIGINTERN PyObject *plotindex_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14529   PyObject *obj;
14530   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
14531   SWIG_TypeNewClientData(SWIGTYPE_p_plotindex_args, SWIG_NewClientData(obj));
14532   return SWIG_Py_Void();
14533 }
14534 
plotindex_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14535 SWIGINTERN PyObject *plotindex_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14536   return SWIG_Python_InitShadowInstance(args);
14537 }
14538 
_wrap_plot_quad_xy(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14539 SWIGINTERN PyObject *_wrap_plot_quad_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14540   PyObject *resultobj = 0;
14541   cairo_t *arg1 = (cairo_t *) 0 ;
14542   double *arg2 = (double *) 0 ;
14543   int arg3 ;
14544   void *argp1 = 0 ;
14545   int res1 = 0 ;
14546   void *argp2 = 0 ;
14547   int res2 = 0 ;
14548   int val3 ;
14549   int ecode3 = 0 ;
14550   PyObject *swig_obj[3] ;
14551 
14552   if (!SWIG_Python_UnpackTuple(args, "plot_quad_xy", 3, 3, swig_obj)) SWIG_fail;
14553   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
14554   if (!SWIG_IsOK(res1)) {
14555     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_quad_xy" "', argument " "1"" of type '" "cairo_t *""'");
14556   }
14557   arg1 = (cairo_t *)(argp1);
14558   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_double, 0 |  0 );
14559   if (!SWIG_IsOK(res2)) {
14560     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_quad_xy" "', argument " "2"" of type '" "double *""'");
14561   }
14562   arg2 = (double *)(argp2);
14563   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
14564   if (!SWIG_IsOK(ecode3)) {
14565     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_quad_xy" "', argument " "3"" of type '" "int""'");
14566   }
14567   arg3 = (int)(val3);
14568   plot_quad_xy(arg1,arg2,arg3);
14569   resultobj = SWIG_Py_Void();
14570   return resultobj;
14571 fail:
14572   return NULL;
14573 }
14574 
14575 
_wrap_plot_index_plotquad(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14576 SWIGINTERN PyObject *_wrap_plot_index_plotquad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14577   PyObject *resultobj = 0;
14578   cairo_t *arg1 = (cairo_t *) 0 ;
14579   plot_args_t *arg2 = (plot_args_t *) 0 ;
14580   plotindex_t *arg3 = (plotindex_t *) 0 ;
14581   index_t *arg4 = (index_t *) 0 ;
14582   int arg5 ;
14583   int arg6 ;
14584   void *argp1 = 0 ;
14585   int res1 = 0 ;
14586   void *argp2 = 0 ;
14587   int res2 = 0 ;
14588   void *argp3 = 0 ;
14589   int res3 = 0 ;
14590   void *argp4 = 0 ;
14591   int res4 = 0 ;
14592   int val5 ;
14593   int ecode5 = 0 ;
14594   int val6 ;
14595   int ecode6 = 0 ;
14596   PyObject *swig_obj[6] ;
14597 
14598   if (!SWIG_Python_UnpackTuple(args, "plot_index_plotquad", 6, 6, swig_obj)) SWIG_fail;
14599   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_cairo_t, 0 |  0 );
14600   if (!SWIG_IsOK(res1)) {
14601     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_plotquad" "', argument " "1"" of type '" "cairo_t *""'");
14602   }
14603   arg1 = (cairo_t *)(argp1);
14604   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plot_args, 0 |  0 );
14605   if (!SWIG_IsOK(res2)) {
14606     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_plotquad" "', argument " "2"" of type '" "plot_args_t *""'");
14607   }
14608   arg2 = (plot_args_t *)(argp2);
14609   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plotindex_args, 0 |  0 );
14610   if (!SWIG_IsOK(res3)) {
14611     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_index_plotquad" "', argument " "3"" of type '" "plotindex_t *""'");
14612   }
14613   arg3 = (plotindex_t *)(argp3);
14614   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_index_t, 0 |  0 );
14615   if (!SWIG_IsOK(res4)) {
14616     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_index_plotquad" "', argument " "4"" of type '" "index_t *""'");
14617   }
14618   arg4 = (index_t *)(argp4);
14619   ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
14620   if (!SWIG_IsOK(ecode5)) {
14621     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plot_index_plotquad" "', argument " "5"" of type '" "int""'");
14622   }
14623   arg5 = (int)(val5);
14624   ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
14625   if (!SWIG_IsOK(ecode6)) {
14626     SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "plot_index_plotquad" "', argument " "6"" of type '" "int""'");
14627   }
14628   arg6 = (int)(val6);
14629   plot_index_plotquad(arg1,arg2,arg3,arg4,arg5,arg6);
14630   resultobj = SWIG_Py_Void();
14631   return resultobj;
14632 fail:
14633   return NULL;
14634 }
14635 
14636 
_wrap_plot_index_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14637 SWIGINTERN PyObject *_wrap_plot_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14638   PyObject *resultobj = 0;
14639   plot_args_t *arg1 = (plot_args_t *) 0 ;
14640   void *argp1 = 0 ;
14641   int res1 = 0 ;
14642   PyObject *swig_obj[1] ;
14643   plotindex_t *result = 0 ;
14644 
14645   if (!args) SWIG_fail;
14646   swig_obj[0] = args;
14647   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14648   if (!SWIG_IsOK(res1)) {
14649     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_get" "', argument " "1"" of type '" "plot_args_t *""'");
14650   }
14651   arg1 = (plot_args_t *)(argp1);
14652   result = (plotindex_t *)plot_index_get(arg1);
14653   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotindex_args, 0 |  0 );
14654   return resultobj;
14655 fail:
14656   return NULL;
14657 }
14658 
14659 
_wrap_plot_index_add_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14660 SWIGINTERN PyObject *_wrap_plot_index_add_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14661   PyObject *resultobj = 0;
14662   plotindex_t *arg1 = (plotindex_t *) 0 ;
14663   char *arg2 = (char *) 0 ;
14664   void *argp1 = 0 ;
14665   int res1 = 0 ;
14666   int res2 ;
14667   char *buf2 = 0 ;
14668   int alloc2 = 0 ;
14669   PyObject *swig_obj[2] ;
14670   int result;
14671 
14672   if (!SWIG_Python_UnpackTuple(args, "plot_index_add_file", 2, 2, swig_obj)) SWIG_fail;
14673   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14674   if (!SWIG_IsOK(res1)) {
14675     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_add_file" "', argument " "1"" of type '" "plotindex_t *""'");
14676   }
14677   arg1 = (plotindex_t *)(argp1);
14678   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
14679   if (!SWIG_IsOK(res2)) {
14680     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_add_file" "', argument " "2"" of type '" "char const *""'");
14681   }
14682   arg2 = (char *)(buf2);
14683   result = (int)plot_index_add_file(arg1,(char const *)arg2);
14684   resultobj = SWIG_From_int((int)(result));
14685   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14686   return resultobj;
14687 fail:
14688   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14689   return NULL;
14690 }
14691 
14692 
_wrap_plot_index_add_qidx_file(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14693 SWIGINTERN PyObject *_wrap_plot_index_add_qidx_file(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14694   PyObject *resultobj = 0;
14695   plotindex_t *arg1 = (plotindex_t *) 0 ;
14696   char *arg2 = (char *) 0 ;
14697   void *argp1 = 0 ;
14698   int res1 = 0 ;
14699   int res2 ;
14700   char *buf2 = 0 ;
14701   int alloc2 = 0 ;
14702   PyObject *swig_obj[2] ;
14703   int result;
14704 
14705   if (!SWIG_Python_UnpackTuple(args, "plot_index_add_qidx_file", 2, 2, swig_obj)) SWIG_fail;
14706   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotindex_args, 0 |  0 );
14707   if (!SWIG_IsOK(res1)) {
14708     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_add_qidx_file" "', argument " "1"" of type '" "plotindex_t *""'");
14709   }
14710   arg1 = (plotindex_t *)(argp1);
14711   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
14712   if (!SWIG_IsOK(res2)) {
14713     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_add_qidx_file" "', argument " "2"" of type '" "char const *""'");
14714   }
14715   arg2 = (char *)(buf2);
14716   result = (int)plot_index_add_qidx_file(arg1,(char const *)arg2);
14717   resultobj = SWIG_From_int((int)(result));
14718   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14719   return resultobj;
14720 fail:
14721   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14722   return NULL;
14723 }
14724 
14725 
_wrap_plot_index_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14726 SWIGINTERN PyObject *_wrap_plot_index_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14727   PyObject *resultobj = 0;
14728   plot_args_t *arg1 = (plot_args_t *) 0 ;
14729   void *argp1 = 0 ;
14730   int res1 = 0 ;
14731   PyObject *swig_obj[1] ;
14732   void *result = 0 ;
14733 
14734   if (!args) SWIG_fail;
14735   swig_obj[0] = args;
14736   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14737   if (!SWIG_IsOK(res1)) {
14738     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_init" "', argument " "1"" of type '" "plot_args_t *""'");
14739   }
14740   arg1 = (plot_args_t *)(argp1);
14741   result = (void *)plot_index_init(arg1);
14742   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
14743   return resultobj;
14744 fail:
14745   return NULL;
14746 }
14747 
14748 
_wrap_plot_index_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14749 SWIGINTERN PyObject *_wrap_plot_index_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14750   PyObject *resultobj = 0;
14751   char *arg1 = (char *) 0 ;
14752   char *arg2 = (char *) 0 ;
14753   plot_args_t *arg3 = (plot_args_t *) 0 ;
14754   void *arg4 = (void *) 0 ;
14755   int res1 ;
14756   char *buf1 = 0 ;
14757   int alloc1 = 0 ;
14758   int res2 ;
14759   char *buf2 = 0 ;
14760   int alloc2 = 0 ;
14761   void *argp3 = 0 ;
14762   int res3 = 0 ;
14763   int res4 ;
14764   PyObject *swig_obj[4] ;
14765   int result;
14766 
14767   if (!SWIG_Python_UnpackTuple(args, "plot_index_command", 4, 4, swig_obj)) SWIG_fail;
14768   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
14769   if (!SWIG_IsOK(res1)) {
14770     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_command" "', argument " "1"" of type '" "char const *""'");
14771   }
14772   arg1 = (char *)(buf1);
14773   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
14774   if (!SWIG_IsOK(res2)) {
14775     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_command" "', argument " "2"" of type '" "char const *""'");
14776   }
14777   arg2 = (char *)(buf2);
14778   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
14779   if (!SWIG_IsOK(res3)) {
14780     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_index_command" "', argument " "3"" of type '" "plot_args_t *""'");
14781   }
14782   arg3 = (plot_args_t *)(argp3);
14783   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
14784   if (!SWIG_IsOK(res4)) {
14785     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_index_command" "', argument " "4"" of type '" "void *""'");
14786   }
14787   result = (int)plot_index_command((char const *)arg1,(char const *)arg2,arg3,arg4);
14788   resultobj = SWIG_From_int((int)(result));
14789   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
14790   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14791   return resultobj;
14792 fail:
14793   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
14794   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14795   return NULL;
14796 }
14797 
14798 
_wrap_plot_index_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14799 SWIGINTERN PyObject *_wrap_plot_index_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14800   PyObject *resultobj = 0;
14801   char *arg1 = (char *) 0 ;
14802   cairo_t *arg2 = (cairo_t *) 0 ;
14803   plot_args_t *arg3 = (plot_args_t *) 0 ;
14804   void *arg4 = (void *) 0 ;
14805   int res1 ;
14806   char *buf1 = 0 ;
14807   int alloc1 = 0 ;
14808   void *argp2 = 0 ;
14809   int res2 = 0 ;
14810   void *argp3 = 0 ;
14811   int res3 = 0 ;
14812   int res4 ;
14813   PyObject *swig_obj[4] ;
14814   int result;
14815 
14816   if (!SWIG_Python_UnpackTuple(args, "plot_index_plot", 4, 4, swig_obj)) SWIG_fail;
14817   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
14818   if (!SWIG_IsOK(res1)) {
14819     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_plot" "', argument " "1"" of type '" "char const *""'");
14820   }
14821   arg1 = (char *)(buf1);
14822   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
14823   if (!SWIG_IsOK(res2)) {
14824     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_plot" "', argument " "2"" of type '" "cairo_t *""'");
14825   }
14826   arg2 = (cairo_t *)(argp2);
14827   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
14828   if (!SWIG_IsOK(res3)) {
14829     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_index_plot" "', argument " "3"" of type '" "plot_args_t *""'");
14830   }
14831   arg3 = (plot_args_t *)(argp3);
14832   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
14833   if (!SWIG_IsOK(res4)) {
14834     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_index_plot" "', argument " "4"" of type '" "void *""'");
14835   }
14836   result = (int)plot_index_plot((char const *)arg1,arg2,arg3,arg4);
14837   resultobj = SWIG_From_int((int)(result));
14838   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
14839   return resultobj;
14840 fail:
14841   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
14842   return NULL;
14843 }
14844 
14845 
_wrap_plot_index_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14846 SWIGINTERN PyObject *_wrap_plot_index_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14847   PyObject *resultobj = 0;
14848   plot_args_t *arg1 = (plot_args_t *) 0 ;
14849   void *arg2 = (void *) 0 ;
14850   void *argp1 = 0 ;
14851   int res1 = 0 ;
14852   int res2 ;
14853   PyObject *swig_obj[2] ;
14854 
14855   if (!SWIG_Python_UnpackTuple(args, "plot_index_free", 2, 2, swig_obj)) SWIG_fail;
14856   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
14857   if (!SWIG_IsOK(res1)) {
14858     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_free" "', argument " "1"" of type '" "plot_args_t *""'");
14859   }
14860   arg1 = (plot_args_t *)(argp1);
14861   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
14862   if (!SWIG_IsOK(res2)) {
14863     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_index_free" "', argument " "2"" of type '" "void *""'");
14864   }
14865   plot_index_free(arg1,arg2);
14866   resultobj = SWIG_Py_Void();
14867   return resultobj;
14868 fail:
14869   return NULL;
14870 }
14871 
14872 
_wrap_plot_index_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14873 SWIGINTERN PyObject *_wrap_plot_index_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14874   PyObject *resultobj = 0;
14875   plotter_t *arg1 = (plotter_t *) 0 ;
14876   void *argp1 = 0 ;
14877   int res1 = 0 ;
14878   PyObject *swig_obj[1] ;
14879 
14880   if (!args) SWIG_fail;
14881   swig_obj[0] = args;
14882   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
14883   if (!SWIG_IsOK(res1)) {
14884     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_index_describe" "', argument " "1"" of type '" "plotter_t *""'");
14885   }
14886   arg1 = (plotter_t *)(argp1);
14887   plot_index_describe(arg1);
14888   resultobj = SWIG_Py_Void();
14889   return resultobj;
14890 fail:
14891   return NULL;
14892 }
14893 
14894 
_wrap_plotxy_args_fn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14895 SWIGINTERN PyObject *_wrap_plotxy_args_fn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14896   PyObject *resultobj = 0;
14897   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
14898   char *arg2 = (char *) 0 ;
14899   void *argp1 = 0 ;
14900   int res1 = 0 ;
14901   int res2 ;
14902   char *buf2 = 0 ;
14903   int alloc2 = 0 ;
14904   PyObject *swig_obj[2] ;
14905 
14906   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_fn_set", 2, 2, swig_obj)) SWIG_fail;
14907   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
14908   if (!SWIG_IsOK(res1)) {
14909     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_fn_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
14910   }
14911   arg1 = (struct plotxy_args *)(argp1);
14912   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
14913   if (!SWIG_IsOK(res2)) {
14914     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_fn_set" "', argument " "2"" of type '" "char *""'");
14915   }
14916   arg2 = (char *)(buf2);
14917   if (arg1->fn) free((char*)arg1->fn);
14918   if (arg2) {
14919     size_t size = strlen((const char *)(arg2)) + 1;
14920     arg1->fn = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
14921   } else {
14922     arg1->fn = 0;
14923   }
14924   resultobj = SWIG_Py_Void();
14925   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14926   return resultobj;
14927 fail:
14928   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
14929   return NULL;
14930 }
14931 
14932 
_wrap_plotxy_args_fn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14933 SWIGINTERN PyObject *_wrap_plotxy_args_fn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14934   PyObject *resultobj = 0;
14935   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
14936   void *argp1 = 0 ;
14937   int res1 = 0 ;
14938   PyObject *swig_obj[1] ;
14939   char *result = 0 ;
14940 
14941   if (!args) SWIG_fail;
14942   swig_obj[0] = args;
14943   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
14944   if (!SWIG_IsOK(res1)) {
14945     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_fn_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
14946   }
14947   arg1 = (struct plotxy_args *)(argp1);
14948   result = (char *) ((arg1)->fn);
14949   resultobj = SWIG_FromCharPtr((const char *)result);
14950   return resultobj;
14951 fail:
14952   return NULL;
14953 }
14954 
14955 
_wrap_plotxy_args_ext_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14956 SWIGINTERN PyObject *_wrap_plotxy_args_ext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14957   PyObject *resultobj = 0;
14958   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
14959   int arg2 ;
14960   void *argp1 = 0 ;
14961   int res1 = 0 ;
14962   int val2 ;
14963   int ecode2 = 0 ;
14964   PyObject *swig_obj[2] ;
14965 
14966   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_ext_set", 2, 2, swig_obj)) SWIG_fail;
14967   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
14968   if (!SWIG_IsOK(res1)) {
14969     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_ext_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
14970   }
14971   arg1 = (struct plotxy_args *)(argp1);
14972   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
14973   if (!SWIG_IsOK(ecode2)) {
14974     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_ext_set" "', argument " "2"" of type '" "int""'");
14975   }
14976   arg2 = (int)(val2);
14977   if (arg1) (arg1)->ext = arg2;
14978   resultobj = SWIG_Py_Void();
14979   return resultobj;
14980 fail:
14981   return NULL;
14982 }
14983 
14984 
_wrap_plotxy_args_ext_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)14985 SWIGINTERN PyObject *_wrap_plotxy_args_ext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14986   PyObject *resultobj = 0;
14987   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
14988   void *argp1 = 0 ;
14989   int res1 = 0 ;
14990   PyObject *swig_obj[1] ;
14991   int result;
14992 
14993   if (!args) SWIG_fail;
14994   swig_obj[0] = args;
14995   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
14996   if (!SWIG_IsOK(res1)) {
14997     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_ext_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
14998   }
14999   arg1 = (struct plotxy_args *)(argp1);
15000   result = (int) ((arg1)->ext);
15001   resultobj = SWIG_From_int((int)(result));
15002   return resultobj;
15003 fail:
15004   return NULL;
15005 }
15006 
15007 
_wrap_plotxy_args_xcol_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15008 SWIGINTERN PyObject *_wrap_plotxy_args_xcol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15009   PyObject *resultobj = 0;
15010   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15011   char *arg2 = (char *) 0 ;
15012   void *argp1 = 0 ;
15013   int res1 = 0 ;
15014   int res2 ;
15015   char *buf2 = 0 ;
15016   int alloc2 = 0 ;
15017   PyObject *swig_obj[2] ;
15018 
15019   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_xcol_set", 2, 2, swig_obj)) SWIG_fail;
15020   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15021   if (!SWIG_IsOK(res1)) {
15022     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xcol_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15023   }
15024   arg1 = (struct plotxy_args *)(argp1);
15025   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15026   if (!SWIG_IsOK(res2)) {
15027     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_xcol_set" "', argument " "2"" of type '" "char *""'");
15028   }
15029   arg2 = (char *)(buf2);
15030   if (arg1->xcol) free((char*)arg1->xcol);
15031   if (arg2) {
15032     size_t size = strlen((const char *)(arg2)) + 1;
15033     arg1->xcol = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
15034   } else {
15035     arg1->xcol = 0;
15036   }
15037   resultobj = SWIG_Py_Void();
15038   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15039   return resultobj;
15040 fail:
15041   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15042   return NULL;
15043 }
15044 
15045 
_wrap_plotxy_args_xcol_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15046 SWIGINTERN PyObject *_wrap_plotxy_args_xcol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15047   PyObject *resultobj = 0;
15048   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15049   void *argp1 = 0 ;
15050   int res1 = 0 ;
15051   PyObject *swig_obj[1] ;
15052   char *result = 0 ;
15053 
15054   if (!args) SWIG_fail;
15055   swig_obj[0] = args;
15056   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15057   if (!SWIG_IsOK(res1)) {
15058     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xcol_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15059   }
15060   arg1 = (struct plotxy_args *)(argp1);
15061   result = (char *) ((arg1)->xcol);
15062   resultobj = SWIG_FromCharPtr((const char *)result);
15063   return resultobj;
15064 fail:
15065   return NULL;
15066 }
15067 
15068 
_wrap_plotxy_args_ycol_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15069 SWIGINTERN PyObject *_wrap_plotxy_args_ycol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15070   PyObject *resultobj = 0;
15071   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15072   char *arg2 = (char *) 0 ;
15073   void *argp1 = 0 ;
15074   int res1 = 0 ;
15075   int res2 ;
15076   char *buf2 = 0 ;
15077   int alloc2 = 0 ;
15078   PyObject *swig_obj[2] ;
15079 
15080   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_ycol_set", 2, 2, swig_obj)) SWIG_fail;
15081   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15082   if (!SWIG_IsOK(res1)) {
15083     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_ycol_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15084   }
15085   arg1 = (struct plotxy_args *)(argp1);
15086   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15087   if (!SWIG_IsOK(res2)) {
15088     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_ycol_set" "', argument " "2"" of type '" "char *""'");
15089   }
15090   arg2 = (char *)(buf2);
15091   if (arg1->ycol) free((char*)arg1->ycol);
15092   if (arg2) {
15093     size_t size = strlen((const char *)(arg2)) + 1;
15094     arg1->ycol = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
15095   } else {
15096     arg1->ycol = 0;
15097   }
15098   resultobj = SWIG_Py_Void();
15099   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15100   return resultobj;
15101 fail:
15102   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15103   return NULL;
15104 }
15105 
15106 
_wrap_plotxy_args_ycol_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15107 SWIGINTERN PyObject *_wrap_plotxy_args_ycol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15108   PyObject *resultobj = 0;
15109   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15110   void *argp1 = 0 ;
15111   int res1 = 0 ;
15112   PyObject *swig_obj[1] ;
15113   char *result = 0 ;
15114 
15115   if (!args) SWIG_fail;
15116   swig_obj[0] = args;
15117   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15118   if (!SWIG_IsOK(res1)) {
15119     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_ycol_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15120   }
15121   arg1 = (struct plotxy_args *)(argp1);
15122   result = (char *) ((arg1)->ycol);
15123   resultobj = SWIG_FromCharPtr((const char *)result);
15124   return resultobj;
15125 fail:
15126   return NULL;
15127 }
15128 
15129 
_wrap_plotxy_args_xoff_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15130 SWIGINTERN PyObject *_wrap_plotxy_args_xoff_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15131   PyObject *resultobj = 0;
15132   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15133   double arg2 ;
15134   void *argp1 = 0 ;
15135   int res1 = 0 ;
15136   double val2 ;
15137   int ecode2 = 0 ;
15138   PyObject *swig_obj[2] ;
15139 
15140   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_xoff_set", 2, 2, swig_obj)) SWIG_fail;
15141   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15142   if (!SWIG_IsOK(res1)) {
15143     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xoff_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15144   }
15145   arg1 = (struct plotxy_args *)(argp1);
15146   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15147   if (!SWIG_IsOK(ecode2)) {
15148     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_xoff_set" "', argument " "2"" of type '" "double""'");
15149   }
15150   arg2 = (double)(val2);
15151   if (arg1) (arg1)->xoff = arg2;
15152   resultobj = SWIG_Py_Void();
15153   return resultobj;
15154 fail:
15155   return NULL;
15156 }
15157 
15158 
_wrap_plotxy_args_xoff_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15159 SWIGINTERN PyObject *_wrap_plotxy_args_xoff_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15160   PyObject *resultobj = 0;
15161   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15162   void *argp1 = 0 ;
15163   int res1 = 0 ;
15164   PyObject *swig_obj[1] ;
15165   double result;
15166 
15167   if (!args) SWIG_fail;
15168   swig_obj[0] = args;
15169   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15170   if (!SWIG_IsOK(res1)) {
15171     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xoff_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15172   }
15173   arg1 = (struct plotxy_args *)(argp1);
15174   result = (double) ((arg1)->xoff);
15175   resultobj = SWIG_From_double((double)(result));
15176   return resultobj;
15177 fail:
15178   return NULL;
15179 }
15180 
15181 
_wrap_plotxy_args_yoff_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15182 SWIGINTERN PyObject *_wrap_plotxy_args_yoff_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15183   PyObject *resultobj = 0;
15184   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15185   double arg2 ;
15186   void *argp1 = 0 ;
15187   int res1 = 0 ;
15188   double val2 ;
15189   int ecode2 = 0 ;
15190   PyObject *swig_obj[2] ;
15191 
15192   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_yoff_set", 2, 2, swig_obj)) SWIG_fail;
15193   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15194   if (!SWIG_IsOK(res1)) {
15195     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_yoff_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15196   }
15197   arg1 = (struct plotxy_args *)(argp1);
15198   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15199   if (!SWIG_IsOK(ecode2)) {
15200     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_yoff_set" "', argument " "2"" of type '" "double""'");
15201   }
15202   arg2 = (double)(val2);
15203   if (arg1) (arg1)->yoff = arg2;
15204   resultobj = SWIG_Py_Void();
15205   return resultobj;
15206 fail:
15207   return NULL;
15208 }
15209 
15210 
_wrap_plotxy_args_yoff_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15211 SWIGINTERN PyObject *_wrap_plotxy_args_yoff_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15212   PyObject *resultobj = 0;
15213   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15214   void *argp1 = 0 ;
15215   int res1 = 0 ;
15216   PyObject *swig_obj[1] ;
15217   double result;
15218 
15219   if (!args) SWIG_fail;
15220   swig_obj[0] = args;
15221   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15222   if (!SWIG_IsOK(res1)) {
15223     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_yoff_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15224   }
15225   arg1 = (struct plotxy_args *)(argp1);
15226   result = (double) ((arg1)->yoff);
15227   resultobj = SWIG_From_double((double)(result));
15228   return resultobj;
15229 fail:
15230   return NULL;
15231 }
15232 
15233 
_wrap_plotxy_args_firstobj_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15234 SWIGINTERN PyObject *_wrap_plotxy_args_firstobj_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15235   PyObject *resultobj = 0;
15236   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15237   int arg2 ;
15238   void *argp1 = 0 ;
15239   int res1 = 0 ;
15240   int val2 ;
15241   int ecode2 = 0 ;
15242   PyObject *swig_obj[2] ;
15243 
15244   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_firstobj_set", 2, 2, swig_obj)) SWIG_fail;
15245   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15246   if (!SWIG_IsOK(res1)) {
15247     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_firstobj_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15248   }
15249   arg1 = (struct plotxy_args *)(argp1);
15250   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15251   if (!SWIG_IsOK(ecode2)) {
15252     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_firstobj_set" "', argument " "2"" of type '" "int""'");
15253   }
15254   arg2 = (int)(val2);
15255   if (arg1) (arg1)->firstobj = arg2;
15256   resultobj = SWIG_Py_Void();
15257   return resultobj;
15258 fail:
15259   return NULL;
15260 }
15261 
15262 
_wrap_plotxy_args_firstobj_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15263 SWIGINTERN PyObject *_wrap_plotxy_args_firstobj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15264   PyObject *resultobj = 0;
15265   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15266   void *argp1 = 0 ;
15267   int res1 = 0 ;
15268   PyObject *swig_obj[1] ;
15269   int result;
15270 
15271   if (!args) SWIG_fail;
15272   swig_obj[0] = args;
15273   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15274   if (!SWIG_IsOK(res1)) {
15275     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_firstobj_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15276   }
15277   arg1 = (struct plotxy_args *)(argp1);
15278   result = (int) ((arg1)->firstobj);
15279   resultobj = SWIG_From_int((int)(result));
15280   return resultobj;
15281 fail:
15282   return NULL;
15283 }
15284 
15285 
_wrap_plotxy_args_nobjs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15286 SWIGINTERN PyObject *_wrap_plotxy_args_nobjs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15287   PyObject *resultobj = 0;
15288   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15289   int arg2 ;
15290   void *argp1 = 0 ;
15291   int res1 = 0 ;
15292   int val2 ;
15293   int ecode2 = 0 ;
15294   PyObject *swig_obj[2] ;
15295 
15296   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_nobjs_set", 2, 2, swig_obj)) SWIG_fail;
15297   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15298   if (!SWIG_IsOK(res1)) {
15299     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_nobjs_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15300   }
15301   arg1 = (struct plotxy_args *)(argp1);
15302   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15303   if (!SWIG_IsOK(ecode2)) {
15304     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_nobjs_set" "', argument " "2"" of type '" "int""'");
15305   }
15306   arg2 = (int)(val2);
15307   if (arg1) (arg1)->nobjs = arg2;
15308   resultobj = SWIG_Py_Void();
15309   return resultobj;
15310 fail:
15311   return NULL;
15312 }
15313 
15314 
_wrap_plotxy_args_nobjs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15315 SWIGINTERN PyObject *_wrap_plotxy_args_nobjs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316   PyObject *resultobj = 0;
15317   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15318   void *argp1 = 0 ;
15319   int res1 = 0 ;
15320   PyObject *swig_obj[1] ;
15321   int result;
15322 
15323   if (!args) SWIG_fail;
15324   swig_obj[0] = args;
15325   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15326   if (!SWIG_IsOK(res1)) {
15327     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_nobjs_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15328   }
15329   arg1 = (struct plotxy_args *)(argp1);
15330   result = (int) ((arg1)->nobjs);
15331   resultobj = SWIG_From_int((int)(result));
15332   return resultobj;
15333 fail:
15334   return NULL;
15335 }
15336 
15337 
_wrap_plotxy_args_scale_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15338 SWIGINTERN PyObject *_wrap_plotxy_args_scale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15339   PyObject *resultobj = 0;
15340   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15341   double arg2 ;
15342   void *argp1 = 0 ;
15343   int res1 = 0 ;
15344   double val2 ;
15345   int ecode2 = 0 ;
15346   PyObject *swig_obj[2] ;
15347 
15348   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_scale_set", 2, 2, swig_obj)) SWIG_fail;
15349   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15350   if (!SWIG_IsOK(res1)) {
15351     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_scale_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15352   }
15353   arg1 = (struct plotxy_args *)(argp1);
15354   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15355   if (!SWIG_IsOK(ecode2)) {
15356     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotxy_args_scale_set" "', argument " "2"" of type '" "double""'");
15357   }
15358   arg2 = (double)(val2);
15359   if (arg1) (arg1)->scale = arg2;
15360   resultobj = SWIG_Py_Void();
15361   return resultobj;
15362 fail:
15363   return NULL;
15364 }
15365 
15366 
_wrap_plotxy_args_scale_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15367 SWIGINTERN PyObject *_wrap_plotxy_args_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15368   PyObject *resultobj = 0;
15369   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15370   void *argp1 = 0 ;
15371   int res1 = 0 ;
15372   PyObject *swig_obj[1] ;
15373   double result;
15374 
15375   if (!args) SWIG_fail;
15376   swig_obj[0] = args;
15377   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15378   if (!SWIG_IsOK(res1)) {
15379     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_scale_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15380   }
15381   arg1 = (struct plotxy_args *)(argp1);
15382   result = (double) ((arg1)->scale);
15383   resultobj = SWIG_From_double((double)(result));
15384   return resultobj;
15385 fail:
15386   return NULL;
15387 }
15388 
15389 
_wrap_plotxy_args_xyvals_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15390 SWIGINTERN PyObject *_wrap_plotxy_args_xyvals_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15391   PyObject *resultobj = 0;
15392   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15393   dl *arg2 = (dl *) 0 ;
15394   void *argp1 = 0 ;
15395   int res1 = 0 ;
15396   void *argp2 = 0 ;
15397   int res2 = 0 ;
15398   PyObject *swig_obj[2] ;
15399 
15400   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_xyvals_set", 2, 2, swig_obj)) SWIG_fail;
15401   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15402   if (!SWIG_IsOK(res1)) {
15403     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xyvals_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15404   }
15405   arg1 = (struct plotxy_args *)(argp1);
15406   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_dl, SWIG_POINTER_DISOWN |  0 );
15407   if (!SWIG_IsOK(res2)) {
15408     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_xyvals_set" "', argument " "2"" of type '" "dl *""'");
15409   }
15410   arg2 = (dl *)(argp2);
15411   if (arg1) (arg1)->xyvals = arg2;
15412   resultobj = SWIG_Py_Void();
15413   return resultobj;
15414 fail:
15415   return NULL;
15416 }
15417 
15418 
_wrap_plotxy_args_xyvals_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15419 SWIGINTERN PyObject *_wrap_plotxy_args_xyvals_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15420   PyObject *resultobj = 0;
15421   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15422   void *argp1 = 0 ;
15423   int res1 = 0 ;
15424   PyObject *swig_obj[1] ;
15425   dl *result = 0 ;
15426 
15427   if (!args) SWIG_fail;
15428   swig_obj[0] = args;
15429   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15430   if (!SWIG_IsOK(res1)) {
15431     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_xyvals_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15432   }
15433   arg1 = (struct plotxy_args *)(argp1);
15434   result = (dl *) ((arg1)->xyvals);
15435   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dl, 0 |  0 );
15436   return resultobj;
15437 fail:
15438   return NULL;
15439 }
15440 
15441 
_wrap_plotxy_args_wcs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15442 SWIGINTERN PyObject *_wrap_plotxy_args_wcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15443   PyObject *resultobj = 0;
15444   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15445   anwcs_t *arg2 = (anwcs_t *) 0 ;
15446   void *argp1 = 0 ;
15447   int res1 = 0 ;
15448   void *argp2 = 0 ;
15449   int res2 = 0 ;
15450   PyObject *swig_obj[2] ;
15451 
15452   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_wcs_set", 2, 2, swig_obj)) SWIG_fail;
15453   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15454   if (!SWIG_IsOK(res1)) {
15455     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_wcs_set" "', argument " "1"" of type '" "struct plotxy_args *""'");
15456   }
15457   arg1 = (struct plotxy_args *)(argp1);
15458   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_anwcs_t, SWIG_POINTER_DISOWN |  0 );
15459   if (!SWIG_IsOK(res2)) {
15460     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_wcs_set" "', argument " "2"" of type '" "anwcs_t *""'");
15461   }
15462   arg2 = (anwcs_t *)(argp2);
15463   if (arg1) (arg1)->wcs = arg2;
15464   resultobj = SWIG_Py_Void();
15465   return resultobj;
15466 fail:
15467   return NULL;
15468 }
15469 
15470 
_wrap_plotxy_args_wcs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15471 SWIGINTERN PyObject *_wrap_plotxy_args_wcs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15472   PyObject *resultobj = 0;
15473   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15474   void *argp1 = 0 ;
15475   int res1 = 0 ;
15476   PyObject *swig_obj[1] ;
15477   anwcs_t *result = 0 ;
15478 
15479   if (!args) SWIG_fail;
15480   swig_obj[0] = args;
15481   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15482   if (!SWIG_IsOK(res1)) {
15483     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_wcs_get" "', argument " "1"" of type '" "struct plotxy_args *""'");
15484   }
15485   arg1 = (struct plotxy_args *)(argp1);
15486   result = (anwcs_t *) ((arg1)->wcs);
15487   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_anwcs_t, 0 |  0 );
15488   return resultobj;
15489 fail:
15490   return NULL;
15491 }
15492 
15493 
_wrap_plotxy_args_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15494 SWIGINTERN PyObject *_wrap_plotxy_args_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15495   PyObject *resultobj = 0;
15496   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15497   char *arg2 = (char *) 0 ;
15498   void *argp1 = 0 ;
15499   int res1 = 0 ;
15500   int res2 ;
15501   char *buf2 = 0 ;
15502   int alloc2 = 0 ;
15503   PyObject *swig_obj[2] ;
15504 
15505   if (!SWIG_Python_UnpackTuple(args, "plotxy_args_set_filename", 2, 2, swig_obj)) SWIG_fail;
15506   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15507   if (!SWIG_IsOK(res1)) {
15508     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotxy_args_set_filename" "', argument " "1"" of type '" "struct plotxy_args *""'");
15509   }
15510   arg1 = (struct plotxy_args *)(argp1);
15511   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15512   if (!SWIG_IsOK(res2)) {
15513     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotxy_args_set_filename" "', argument " "2"" of type '" "char const *""'");
15514   }
15515   arg2 = (char *)(buf2);
15516   plotxy_args_set_filename(arg1,(char const *)arg2);
15517   resultobj = SWIG_Py_Void();
15518   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15519   return resultobj;
15520 fail:
15521   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15522   return NULL;
15523 }
15524 
15525 
_wrap_new_plotxy_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15526 SWIGINTERN PyObject *_wrap_new_plotxy_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15527   PyObject *resultobj = 0;
15528   struct plotxy_args *result = 0 ;
15529 
15530   if (!SWIG_Python_UnpackTuple(args, "new_plotxy_args", 0, 0, 0)) SWIG_fail;
15531   result = (struct plotxy_args *)calloc(1, sizeof(struct plotxy_args));
15532   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotxy_args, SWIG_POINTER_NEW |  0 );
15533   return resultobj;
15534 fail:
15535   return NULL;
15536 }
15537 
15538 
_wrap_delete_plotxy_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15539 SWIGINTERN PyObject *_wrap_delete_plotxy_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15540   PyObject *resultobj = 0;
15541   struct plotxy_args *arg1 = (struct plotxy_args *) 0 ;
15542   void *argp1 = 0 ;
15543   int res1 = 0 ;
15544   PyObject *swig_obj[1] ;
15545 
15546   if (!args) SWIG_fail;
15547   swig_obj[0] = args;
15548   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, SWIG_POINTER_DISOWN |  0 );
15549   if (!SWIG_IsOK(res1)) {
15550     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotxy_args" "', argument " "1"" of type '" "struct plotxy_args *""'");
15551   }
15552   arg1 = (struct plotxy_args *)(argp1);
15553   free((char *) arg1);
15554   resultobj = SWIG_Py_Void();
15555   return resultobj;
15556 fail:
15557   return NULL;
15558 }
15559 
15560 
plotxy_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15561 SWIGINTERN PyObject *plotxy_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15562   PyObject *obj;
15563   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
15564   SWIG_TypeNewClientData(SWIGTYPE_p_plotxy_args, SWIG_NewClientData(obj));
15565   return SWIG_Py_Void();
15566 }
15567 
plotxy_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15568 SWIGINTERN PyObject *plotxy_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569   return SWIG_Python_InitShadowInstance(args);
15570 }
15571 
_wrap_plot_xy_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15572 SWIGINTERN PyObject *_wrap_plot_xy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15573   PyObject *resultobj = 0;
15574   plot_args_t *arg1 = (plot_args_t *) 0 ;
15575   void *argp1 = 0 ;
15576   int res1 = 0 ;
15577   PyObject *swig_obj[1] ;
15578   plotxy_t *result = 0 ;
15579 
15580   if (!args) SWIG_fail;
15581   swig_obj[0] = args;
15582   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
15583   if (!SWIG_IsOK(res1)) {
15584     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_get" "', argument " "1"" of type '" "plot_args_t *""'");
15585   }
15586   arg1 = (plot_args_t *)(argp1);
15587   result = (plotxy_t *)plot_xy_get(arg1);
15588   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotxy_args, 0 |  0 );
15589   return resultobj;
15590 fail:
15591   return NULL;
15592 }
15593 
15594 
_wrap_plot_xy_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15595 SWIGINTERN PyObject *_wrap_plot_xy_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15596   PyObject *resultobj = 0;
15597   plot_args_t *arg1 = (plot_args_t *) 0 ;
15598   void *argp1 = 0 ;
15599   int res1 = 0 ;
15600   PyObject *swig_obj[1] ;
15601   void *result = 0 ;
15602 
15603   if (!args) SWIG_fail;
15604   swig_obj[0] = args;
15605   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
15606   if (!SWIG_IsOK(res1)) {
15607     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_init" "', argument " "1"" of type '" "plot_args_t *""'");
15608   }
15609   arg1 = (plot_args_t *)(argp1);
15610   result = (void *)plot_xy_init(arg1);
15611   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
15612   return resultobj;
15613 fail:
15614   return NULL;
15615 }
15616 
15617 
_wrap_plot_xy_setsize(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15618 SWIGINTERN PyObject *_wrap_plot_xy_setsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15619   PyObject *resultobj = 0;
15620   plot_args_t *arg1 = (plot_args_t *) 0 ;
15621   plotxy_t *arg2 = (plotxy_t *) 0 ;
15622   void *argp1 = 0 ;
15623   int res1 = 0 ;
15624   void *argp2 = 0 ;
15625   int res2 = 0 ;
15626   PyObject *swig_obj[2] ;
15627   int result;
15628 
15629   if (!SWIG_Python_UnpackTuple(args, "plot_xy_setsize", 2, 2, swig_obj)) SWIG_fail;
15630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
15631   if (!SWIG_IsOK(res1)) {
15632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_setsize" "', argument " "1"" of type '" "plot_args_t *""'");
15633   }
15634   arg1 = (plot_args_t *)(argp1);
15635   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotxy_args, 0 |  0 );
15636   if (!SWIG_IsOK(res2)) {
15637     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_setsize" "', argument " "2"" of type '" "plotxy_t *""'");
15638   }
15639   arg2 = (plotxy_t *)(argp2);
15640   result = (int)plot_xy_setsize(arg1,arg2);
15641   resultobj = SWIG_From_int((int)(result));
15642   return resultobj;
15643 fail:
15644   return NULL;
15645 }
15646 
15647 
_wrap_plot_xy_clear_list(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15648 SWIGINTERN PyObject *_wrap_plot_xy_clear_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15649   PyObject *resultobj = 0;
15650   plotxy_t *arg1 = (plotxy_t *) 0 ;
15651   void *argp1 = 0 ;
15652   int res1 = 0 ;
15653   PyObject *swig_obj[1] ;
15654 
15655   if (!args) SWIG_fail;
15656   swig_obj[0] = args;
15657   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15658   if (!SWIG_IsOK(res1)) {
15659     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_clear_list" "', argument " "1"" of type '" "plotxy_t *""'");
15660   }
15661   arg1 = (plotxy_t *)(argp1);
15662   plot_xy_clear_list(arg1);
15663   resultobj = SWIG_Py_Void();
15664   return resultobj;
15665 fail:
15666   return NULL;
15667 }
15668 
15669 
_wrap_plot_xy_set_xcol(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15670 SWIGINTERN PyObject *_wrap_plot_xy_set_xcol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15671   PyObject *resultobj = 0;
15672   plotxy_t *arg1 = (plotxy_t *) 0 ;
15673   char *arg2 = (char *) 0 ;
15674   void *argp1 = 0 ;
15675   int res1 = 0 ;
15676   int res2 ;
15677   char *buf2 = 0 ;
15678   int alloc2 = 0 ;
15679   PyObject *swig_obj[2] ;
15680 
15681   if (!SWIG_Python_UnpackTuple(args, "plot_xy_set_xcol", 2, 2, swig_obj)) SWIG_fail;
15682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15683   if (!SWIG_IsOK(res1)) {
15684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_set_xcol" "', argument " "1"" of type '" "plotxy_t *""'");
15685   }
15686   arg1 = (plotxy_t *)(argp1);
15687   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15688   if (!SWIG_IsOK(res2)) {
15689     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_set_xcol" "', argument " "2"" of type '" "char const *""'");
15690   }
15691   arg2 = (char *)(buf2);
15692   plot_xy_set_xcol(arg1,(char const *)arg2);
15693   resultobj = SWIG_Py_Void();
15694   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15695   return resultobj;
15696 fail:
15697   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15698   return NULL;
15699 }
15700 
15701 
_wrap_plot_xy_set_ycol(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15702 SWIGINTERN PyObject *_wrap_plot_xy_set_ycol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15703   PyObject *resultobj = 0;
15704   plotxy_t *arg1 = (plotxy_t *) 0 ;
15705   char *arg2 = (char *) 0 ;
15706   void *argp1 = 0 ;
15707   int res1 = 0 ;
15708   int res2 ;
15709   char *buf2 = 0 ;
15710   int alloc2 = 0 ;
15711   PyObject *swig_obj[2] ;
15712 
15713   if (!SWIG_Python_UnpackTuple(args, "plot_xy_set_ycol", 2, 2, swig_obj)) SWIG_fail;
15714   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15715   if (!SWIG_IsOK(res1)) {
15716     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_set_ycol" "', argument " "1"" of type '" "plotxy_t *""'");
15717   }
15718   arg1 = (plotxy_t *)(argp1);
15719   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15720   if (!SWIG_IsOK(res2)) {
15721     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_set_ycol" "', argument " "2"" of type '" "char const *""'");
15722   }
15723   arg2 = (char *)(buf2);
15724   plot_xy_set_ycol(arg1,(char const *)arg2);
15725   resultobj = SWIG_Py_Void();
15726   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15727   return resultobj;
15728 fail:
15729   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15730   return NULL;
15731 }
15732 
15733 
_wrap_plot_xy_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15734 SWIGINTERN PyObject *_wrap_plot_xy_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15735   PyObject *resultobj = 0;
15736   plotxy_t *arg1 = (plotxy_t *) 0 ;
15737   char *arg2 = (char *) 0 ;
15738   void *argp1 = 0 ;
15739   int res1 = 0 ;
15740   int res2 ;
15741   char *buf2 = 0 ;
15742   int alloc2 = 0 ;
15743   PyObject *swig_obj[2] ;
15744 
15745   if (!SWIG_Python_UnpackTuple(args, "plot_xy_set_filename", 2, 2, swig_obj)) SWIG_fail;
15746   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15747   if (!SWIG_IsOK(res1)) {
15748     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_set_filename" "', argument " "1"" of type '" "plotxy_t *""'");
15749   }
15750   arg1 = (plotxy_t *)(argp1);
15751   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15752   if (!SWIG_IsOK(res2)) {
15753     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_set_filename" "', argument " "2"" of type '" "char const *""'");
15754   }
15755   arg2 = (char *)(buf2);
15756   plot_xy_set_filename(arg1,(char const *)arg2);
15757   resultobj = SWIG_Py_Void();
15758   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15759   return resultobj;
15760 fail:
15761   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15762   return NULL;
15763 }
15764 
15765 
_wrap_plot_xy_set_wcs_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15766 SWIGINTERN PyObject *_wrap_plot_xy_set_wcs_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15767   PyObject *resultobj = 0;
15768   plotxy_t *arg1 = (plotxy_t *) 0 ;
15769   char *arg2 = (char *) 0 ;
15770   int arg3 ;
15771   void *argp1 = 0 ;
15772   int res1 = 0 ;
15773   int res2 ;
15774   char *buf2 = 0 ;
15775   int alloc2 = 0 ;
15776   int val3 ;
15777   int ecode3 = 0 ;
15778   PyObject *swig_obj[3] ;
15779   int result;
15780 
15781   if (!SWIG_Python_UnpackTuple(args, "plot_xy_set_wcs_filename", 3, 3, swig_obj)) SWIG_fail;
15782   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15783   if (!SWIG_IsOK(res1)) {
15784     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_set_wcs_filename" "', argument " "1"" of type '" "plotxy_t *""'");
15785   }
15786   arg1 = (plotxy_t *)(argp1);
15787   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15788   if (!SWIG_IsOK(res2)) {
15789     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_set_wcs_filename" "', argument " "2"" of type '" "char const *""'");
15790   }
15791   arg2 = (char *)(buf2);
15792   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
15793   if (!SWIG_IsOK(ecode3)) {
15794     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_xy_set_wcs_filename" "', argument " "3"" of type '" "int""'");
15795   }
15796   arg3 = (int)(val3);
15797   result = (int)plot_xy_set_wcs_filename(arg1,(char const *)arg2,arg3);
15798   resultobj = SWIG_From_int((int)(result));
15799   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15800   return resultobj;
15801 fail:
15802   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15803   return NULL;
15804 }
15805 
15806 
_wrap_plot_xy_set_offsets(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15807 SWIGINTERN PyObject *_wrap_plot_xy_set_offsets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15808   PyObject *resultobj = 0;
15809   plotxy_t *arg1 = (plotxy_t *) 0 ;
15810   double arg2 ;
15811   double arg3 ;
15812   void *argp1 = 0 ;
15813   int res1 = 0 ;
15814   double val2 ;
15815   int ecode2 = 0 ;
15816   double val3 ;
15817   int ecode3 = 0 ;
15818   PyObject *swig_obj[3] ;
15819   int result;
15820 
15821   if (!SWIG_Python_UnpackTuple(args, "plot_xy_set_offsets", 3, 3, swig_obj)) SWIG_fail;
15822   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15823   if (!SWIG_IsOK(res1)) {
15824     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_set_offsets" "', argument " "1"" of type '" "plotxy_t *""'");
15825   }
15826   arg1 = (plotxy_t *)(argp1);
15827   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15828   if (!SWIG_IsOK(ecode2)) {
15829     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_xy_set_offsets" "', argument " "2"" of type '" "double""'");
15830   }
15831   arg2 = (double)(val2);
15832   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15833   if (!SWIG_IsOK(ecode3)) {
15834     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_xy_set_offsets" "', argument " "3"" of type '" "double""'");
15835   }
15836   arg3 = (double)(val3);
15837   result = (int)plot_xy_set_offsets(arg1,arg2,arg3);
15838   resultobj = SWIG_From_int((int)(result));
15839   return resultobj;
15840 fail:
15841   return NULL;
15842 }
15843 
15844 
_wrap_plot_xy_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15845 SWIGINTERN PyObject *_wrap_plot_xy_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15846   PyObject *resultobj = 0;
15847   char *arg1 = (char *) 0 ;
15848   char *arg2 = (char *) 0 ;
15849   plot_args_t *arg3 = (plot_args_t *) 0 ;
15850   void *arg4 = (void *) 0 ;
15851   int res1 ;
15852   char *buf1 = 0 ;
15853   int alloc1 = 0 ;
15854   int res2 ;
15855   char *buf2 = 0 ;
15856   int alloc2 = 0 ;
15857   void *argp3 = 0 ;
15858   int res3 = 0 ;
15859   int res4 ;
15860   PyObject *swig_obj[4] ;
15861   int result;
15862 
15863   if (!SWIG_Python_UnpackTuple(args, "plot_xy_command", 4, 4, swig_obj)) SWIG_fail;
15864   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15865   if (!SWIG_IsOK(res1)) {
15866     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_command" "', argument " "1"" of type '" "char const *""'");
15867   }
15868   arg1 = (char *)(buf1);
15869   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
15870   if (!SWIG_IsOK(res2)) {
15871     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_command" "', argument " "2"" of type '" "char const *""'");
15872   }
15873   arg2 = (char *)(buf2);
15874   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
15875   if (!SWIG_IsOK(res3)) {
15876     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_xy_command" "', argument " "3"" of type '" "plot_args_t *""'");
15877   }
15878   arg3 = (plot_args_t *)(argp3);
15879   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
15880   if (!SWIG_IsOK(res4)) {
15881     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_xy_command" "', argument " "4"" of type '" "void *""'");
15882   }
15883   result = (int)plot_xy_command((char const *)arg1,(char const *)arg2,arg3,arg4);
15884   resultobj = SWIG_From_int((int)(result));
15885   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15886   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15887   return resultobj;
15888 fail:
15889   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15890   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
15891   return NULL;
15892 }
15893 
15894 
_wrap_plot_xy_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15895 SWIGINTERN PyObject *_wrap_plot_xy_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15896   PyObject *resultobj = 0;
15897   char *arg1 = (char *) 0 ;
15898   cairo_t *arg2 = (cairo_t *) 0 ;
15899   plot_args_t *arg3 = (plot_args_t *) 0 ;
15900   void *arg4 = (void *) 0 ;
15901   int res1 ;
15902   char *buf1 = 0 ;
15903   int alloc1 = 0 ;
15904   void *argp2 = 0 ;
15905   int res2 = 0 ;
15906   void *argp3 = 0 ;
15907   int res3 = 0 ;
15908   int res4 ;
15909   PyObject *swig_obj[4] ;
15910   int result;
15911 
15912   if (!SWIG_Python_UnpackTuple(args, "plot_xy_plot", 4, 4, swig_obj)) SWIG_fail;
15913   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
15914   if (!SWIG_IsOK(res1)) {
15915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_plot" "', argument " "1"" of type '" "char const *""'");
15916   }
15917   arg1 = (char *)(buf1);
15918   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
15919   if (!SWIG_IsOK(res2)) {
15920     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_plot" "', argument " "2"" of type '" "cairo_t *""'");
15921   }
15922   arg2 = (cairo_t *)(argp2);
15923   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
15924   if (!SWIG_IsOK(res3)) {
15925     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_xy_plot" "', argument " "3"" of type '" "plot_args_t *""'");
15926   }
15927   arg3 = (plot_args_t *)(argp3);
15928   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
15929   if (!SWIG_IsOK(res4)) {
15930     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_xy_plot" "', argument " "4"" of type '" "void *""'");
15931   }
15932   result = (int)plot_xy_plot((char const *)arg1,arg2,arg3,arg4);
15933   resultobj = SWIG_From_int((int)(result));
15934   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15935   return resultobj;
15936 fail:
15937   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
15938   return NULL;
15939 }
15940 
15941 
_wrap_plot_xy_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15942 SWIGINTERN PyObject *_wrap_plot_xy_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15943   PyObject *resultobj = 0;
15944   plot_args_t *arg1 = (plot_args_t *) 0 ;
15945   void *arg2 = (void *) 0 ;
15946   void *argp1 = 0 ;
15947   int res1 = 0 ;
15948   int res2 ;
15949   PyObject *swig_obj[2] ;
15950 
15951   if (!SWIG_Python_UnpackTuple(args, "plot_xy_free", 2, 2, swig_obj)) SWIG_fail;
15952   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
15953   if (!SWIG_IsOK(res1)) {
15954     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_free" "', argument " "1"" of type '" "plot_args_t *""'");
15955   }
15956   arg1 = (plot_args_t *)(argp1);
15957   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
15958   if (!SWIG_IsOK(res2)) {
15959     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_xy_free" "', argument " "2"" of type '" "void *""'");
15960   }
15961   plot_xy_free(arg1,arg2);
15962   resultobj = SWIG_Py_Void();
15963   return resultobj;
15964 fail:
15965   return NULL;
15966 }
15967 
15968 
_wrap_plot_xy_vals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)15969 SWIGINTERN PyObject *_wrap_plot_xy_vals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15970   PyObject *resultobj = 0;
15971   plotxy_t *arg1 = (plotxy_t *) 0 ;
15972   double arg2 ;
15973   double arg3 ;
15974   void *argp1 = 0 ;
15975   int res1 = 0 ;
15976   double val2 ;
15977   int ecode2 = 0 ;
15978   double val3 ;
15979   int ecode3 = 0 ;
15980   PyObject *swig_obj[3] ;
15981 
15982   if (!SWIG_Python_UnpackTuple(args, "plot_xy_vals", 3, 3, swig_obj)) SWIG_fail;
15983   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotxy_args, 0 |  0 );
15984   if (!SWIG_IsOK(res1)) {
15985     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_vals" "', argument " "1"" of type '" "plotxy_t *""'");
15986   }
15987   arg1 = (plotxy_t *)(argp1);
15988   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
15989   if (!SWIG_IsOK(ecode2)) {
15990     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_xy_vals" "', argument " "2"" of type '" "double""'");
15991   }
15992   arg2 = (double)(val2);
15993   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
15994   if (!SWIG_IsOK(ecode3)) {
15995     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_xy_vals" "', argument " "3"" of type '" "double""'");
15996   }
15997   arg3 = (double)(val3);
15998   plot_xy_vals(arg1,arg2,arg3);
15999   resultobj = SWIG_Py_Void();
16000   return resultobj;
16001 fail:
16002   return NULL;
16003 }
16004 
16005 
_wrap_plot_xy_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16006 SWIGINTERN PyObject *_wrap_plot_xy_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16007   PyObject *resultobj = 0;
16008   plotter_t *arg1 = (plotter_t *) 0 ;
16009   void *argp1 = 0 ;
16010   int res1 = 0 ;
16011   PyObject *swig_obj[1] ;
16012 
16013   if (!args) SWIG_fail;
16014   swig_obj[0] = args;
16015   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
16016   if (!SWIG_IsOK(res1)) {
16017     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_xy_describe" "', argument " "1"" of type '" "plotter_t *""'");
16018   }
16019   arg1 = (plotter_t *)(argp1);
16020   plot_xy_describe(arg1);
16021   resultobj = SWIG_Py_Void();
16022   return resultobj;
16023 fail:
16024   return NULL;
16025 }
16026 
16027 
_wrap_plotradec_args_fn_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16028 SWIGINTERN PyObject *_wrap_plotradec_args_fn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16029   PyObject *resultobj = 0;
16030   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16031   char *arg2 = (char *) 0 ;
16032   void *argp1 = 0 ;
16033   int res1 = 0 ;
16034   int res2 ;
16035   char *buf2 = 0 ;
16036   int alloc2 = 0 ;
16037   PyObject *swig_obj[2] ;
16038 
16039   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_fn_set", 2, 2, swig_obj)) SWIG_fail;
16040   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16041   if (!SWIG_IsOK(res1)) {
16042     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_fn_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16043   }
16044   arg1 = (struct plotradec_args *)(argp1);
16045   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16046   if (!SWIG_IsOK(res2)) {
16047     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotradec_args_fn_set" "', argument " "2"" of type '" "char *""'");
16048   }
16049   arg2 = (char *)(buf2);
16050   if (arg1->fn) free((char*)arg1->fn);
16051   if (arg2) {
16052     size_t size = strlen((const char *)(arg2)) + 1;
16053     arg1->fn = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
16054   } else {
16055     arg1->fn = 0;
16056   }
16057   resultobj = SWIG_Py_Void();
16058   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16059   return resultobj;
16060 fail:
16061   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16062   return NULL;
16063 }
16064 
16065 
_wrap_plotradec_args_fn_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16066 SWIGINTERN PyObject *_wrap_plotradec_args_fn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16067   PyObject *resultobj = 0;
16068   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16069   void *argp1 = 0 ;
16070   int res1 = 0 ;
16071   PyObject *swig_obj[1] ;
16072   char *result = 0 ;
16073 
16074   if (!args) SWIG_fail;
16075   swig_obj[0] = args;
16076   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16077   if (!SWIG_IsOK(res1)) {
16078     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_fn_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16079   }
16080   arg1 = (struct plotradec_args *)(argp1);
16081   result = (char *) ((arg1)->fn);
16082   resultobj = SWIG_FromCharPtr((const char *)result);
16083   return resultobj;
16084 fail:
16085   return NULL;
16086 }
16087 
16088 
_wrap_plotradec_args_ext_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16089 SWIGINTERN PyObject *_wrap_plotradec_args_ext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16090   PyObject *resultobj = 0;
16091   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16092   int arg2 ;
16093   void *argp1 = 0 ;
16094   int res1 = 0 ;
16095   int val2 ;
16096   int ecode2 = 0 ;
16097   PyObject *swig_obj[2] ;
16098 
16099   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_ext_set", 2, 2, swig_obj)) SWIG_fail;
16100   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16101   if (!SWIG_IsOK(res1)) {
16102     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_ext_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16103   }
16104   arg1 = (struct plotradec_args *)(argp1);
16105   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16106   if (!SWIG_IsOK(ecode2)) {
16107     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotradec_args_ext_set" "', argument " "2"" of type '" "int""'");
16108   }
16109   arg2 = (int)(val2);
16110   if (arg1) (arg1)->ext = arg2;
16111   resultobj = SWIG_Py_Void();
16112   return resultobj;
16113 fail:
16114   return NULL;
16115 }
16116 
16117 
_wrap_plotradec_args_ext_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16118 SWIGINTERN PyObject *_wrap_plotradec_args_ext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119   PyObject *resultobj = 0;
16120   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16121   void *argp1 = 0 ;
16122   int res1 = 0 ;
16123   PyObject *swig_obj[1] ;
16124   int result;
16125 
16126   if (!args) SWIG_fail;
16127   swig_obj[0] = args;
16128   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16129   if (!SWIG_IsOK(res1)) {
16130     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_ext_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16131   }
16132   arg1 = (struct plotradec_args *)(argp1);
16133   result = (int) ((arg1)->ext);
16134   resultobj = SWIG_From_int((int)(result));
16135   return resultobj;
16136 fail:
16137   return NULL;
16138 }
16139 
16140 
_wrap_plotradec_args_racol_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16141 SWIGINTERN PyObject *_wrap_plotradec_args_racol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142   PyObject *resultobj = 0;
16143   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16144   char *arg2 = (char *) 0 ;
16145   void *argp1 = 0 ;
16146   int res1 = 0 ;
16147   int res2 ;
16148   char *buf2 = 0 ;
16149   int alloc2 = 0 ;
16150   PyObject *swig_obj[2] ;
16151 
16152   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_racol_set", 2, 2, swig_obj)) SWIG_fail;
16153   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16154   if (!SWIG_IsOK(res1)) {
16155     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_racol_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16156   }
16157   arg1 = (struct plotradec_args *)(argp1);
16158   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16159   if (!SWIG_IsOK(res2)) {
16160     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotradec_args_racol_set" "', argument " "2"" of type '" "char *""'");
16161   }
16162   arg2 = (char *)(buf2);
16163   if (arg1->racol) free((char*)arg1->racol);
16164   if (arg2) {
16165     size_t size = strlen((const char *)(arg2)) + 1;
16166     arg1->racol = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
16167   } else {
16168     arg1->racol = 0;
16169   }
16170   resultobj = SWIG_Py_Void();
16171   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16172   return resultobj;
16173 fail:
16174   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16175   return NULL;
16176 }
16177 
16178 
_wrap_plotradec_args_racol_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16179 SWIGINTERN PyObject *_wrap_plotradec_args_racol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16180   PyObject *resultobj = 0;
16181   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16182   void *argp1 = 0 ;
16183   int res1 = 0 ;
16184   PyObject *swig_obj[1] ;
16185   char *result = 0 ;
16186 
16187   if (!args) SWIG_fail;
16188   swig_obj[0] = args;
16189   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16190   if (!SWIG_IsOK(res1)) {
16191     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_racol_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16192   }
16193   arg1 = (struct plotradec_args *)(argp1);
16194   result = (char *) ((arg1)->racol);
16195   resultobj = SWIG_FromCharPtr((const char *)result);
16196   return resultobj;
16197 fail:
16198   return NULL;
16199 }
16200 
16201 
_wrap_plotradec_args_deccol_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16202 SWIGINTERN PyObject *_wrap_plotradec_args_deccol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16203   PyObject *resultobj = 0;
16204   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16205   char *arg2 = (char *) 0 ;
16206   void *argp1 = 0 ;
16207   int res1 = 0 ;
16208   int res2 ;
16209   char *buf2 = 0 ;
16210   int alloc2 = 0 ;
16211   PyObject *swig_obj[2] ;
16212 
16213   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_deccol_set", 2, 2, swig_obj)) SWIG_fail;
16214   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16215   if (!SWIG_IsOK(res1)) {
16216     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_deccol_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16217   }
16218   arg1 = (struct plotradec_args *)(argp1);
16219   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16220   if (!SWIG_IsOK(res2)) {
16221     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotradec_args_deccol_set" "', argument " "2"" of type '" "char *""'");
16222   }
16223   arg2 = (char *)(buf2);
16224   if (arg1->deccol) free((char*)arg1->deccol);
16225   if (arg2) {
16226     size_t size = strlen((const char *)(arg2)) + 1;
16227     arg1->deccol = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
16228   } else {
16229     arg1->deccol = 0;
16230   }
16231   resultobj = SWIG_Py_Void();
16232   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16233   return resultobj;
16234 fail:
16235   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16236   return NULL;
16237 }
16238 
16239 
_wrap_plotradec_args_deccol_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16240 SWIGINTERN PyObject *_wrap_plotradec_args_deccol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16241   PyObject *resultobj = 0;
16242   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16243   void *argp1 = 0 ;
16244   int res1 = 0 ;
16245   PyObject *swig_obj[1] ;
16246   char *result = 0 ;
16247 
16248   if (!args) SWIG_fail;
16249   swig_obj[0] = args;
16250   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16251   if (!SWIG_IsOK(res1)) {
16252     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_deccol_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16253   }
16254   arg1 = (struct plotradec_args *)(argp1);
16255   result = (char *) ((arg1)->deccol);
16256   resultobj = SWIG_FromCharPtr((const char *)result);
16257   return resultobj;
16258 fail:
16259   return NULL;
16260 }
16261 
16262 
_wrap_plotradec_args_firstobj_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16263 SWIGINTERN PyObject *_wrap_plotradec_args_firstobj_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16264   PyObject *resultobj = 0;
16265   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16266   int arg2 ;
16267   void *argp1 = 0 ;
16268   int res1 = 0 ;
16269   int val2 ;
16270   int ecode2 = 0 ;
16271   PyObject *swig_obj[2] ;
16272 
16273   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_firstobj_set", 2, 2, swig_obj)) SWIG_fail;
16274   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16275   if (!SWIG_IsOK(res1)) {
16276     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_firstobj_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16277   }
16278   arg1 = (struct plotradec_args *)(argp1);
16279   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16280   if (!SWIG_IsOK(ecode2)) {
16281     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotradec_args_firstobj_set" "', argument " "2"" of type '" "int""'");
16282   }
16283   arg2 = (int)(val2);
16284   if (arg1) (arg1)->firstobj = arg2;
16285   resultobj = SWIG_Py_Void();
16286   return resultobj;
16287 fail:
16288   return NULL;
16289 }
16290 
16291 
_wrap_plotradec_args_firstobj_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16292 SWIGINTERN PyObject *_wrap_plotradec_args_firstobj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16293   PyObject *resultobj = 0;
16294   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16295   void *argp1 = 0 ;
16296   int res1 = 0 ;
16297   PyObject *swig_obj[1] ;
16298   int result;
16299 
16300   if (!args) SWIG_fail;
16301   swig_obj[0] = args;
16302   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16303   if (!SWIG_IsOK(res1)) {
16304     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_firstobj_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16305   }
16306   arg1 = (struct plotradec_args *)(argp1);
16307   result = (int) ((arg1)->firstobj);
16308   resultobj = SWIG_From_int((int)(result));
16309   return resultobj;
16310 fail:
16311   return NULL;
16312 }
16313 
16314 
_wrap_plotradec_args_nobjs_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16315 SWIGINTERN PyObject *_wrap_plotradec_args_nobjs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16316   PyObject *resultobj = 0;
16317   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16318   int arg2 ;
16319   void *argp1 = 0 ;
16320   int res1 = 0 ;
16321   int val2 ;
16322   int ecode2 = 0 ;
16323   PyObject *swig_obj[2] ;
16324 
16325   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_nobjs_set", 2, 2, swig_obj)) SWIG_fail;
16326   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16327   if (!SWIG_IsOK(res1)) {
16328     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_nobjs_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16329   }
16330   arg1 = (struct plotradec_args *)(argp1);
16331   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16332   if (!SWIG_IsOK(ecode2)) {
16333     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plotradec_args_nobjs_set" "', argument " "2"" of type '" "int""'");
16334   }
16335   arg2 = (int)(val2);
16336   if (arg1) (arg1)->nobjs = arg2;
16337   resultobj = SWIG_Py_Void();
16338   return resultobj;
16339 fail:
16340   return NULL;
16341 }
16342 
16343 
_wrap_plotradec_args_nobjs_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16344 SWIGINTERN PyObject *_wrap_plotradec_args_nobjs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16345   PyObject *resultobj = 0;
16346   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16347   void *argp1 = 0 ;
16348   int res1 = 0 ;
16349   PyObject *swig_obj[1] ;
16350   int result;
16351 
16352   if (!args) SWIG_fail;
16353   swig_obj[0] = args;
16354   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16355   if (!SWIG_IsOK(res1)) {
16356     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_nobjs_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16357   }
16358   arg1 = (struct plotradec_args *)(argp1);
16359   result = (int) ((arg1)->nobjs);
16360   resultobj = SWIG_From_int((int)(result));
16361   return resultobj;
16362 fail:
16363   return NULL;
16364 }
16365 
16366 
_wrap_plotradec_args_radecvals_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16367 SWIGINTERN PyObject *_wrap_plotradec_args_radecvals_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16368   PyObject *resultobj = 0;
16369   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16370   dl *arg2 = (dl *) 0 ;
16371   void *argp1 = 0 ;
16372   int res1 = 0 ;
16373   void *argp2 = 0 ;
16374   int res2 = 0 ;
16375   PyObject *swig_obj[2] ;
16376 
16377   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_radecvals_set", 2, 2, swig_obj)) SWIG_fail;
16378   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16379   if (!SWIG_IsOK(res1)) {
16380     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_radecvals_set" "', argument " "1"" of type '" "struct plotradec_args *""'");
16381   }
16382   arg1 = (struct plotradec_args *)(argp1);
16383   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_dl, SWIG_POINTER_DISOWN |  0 );
16384   if (!SWIG_IsOK(res2)) {
16385     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotradec_args_radecvals_set" "', argument " "2"" of type '" "dl *""'");
16386   }
16387   arg2 = (dl *)(argp2);
16388   if (arg1) (arg1)->radecvals = arg2;
16389   resultobj = SWIG_Py_Void();
16390   return resultobj;
16391 fail:
16392   return NULL;
16393 }
16394 
16395 
_wrap_plotradec_args_radecvals_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16396 SWIGINTERN PyObject *_wrap_plotradec_args_radecvals_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16397   PyObject *resultobj = 0;
16398   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16399   void *argp1 = 0 ;
16400   int res1 = 0 ;
16401   PyObject *swig_obj[1] ;
16402   dl *result = 0 ;
16403 
16404   if (!args) SWIG_fail;
16405   swig_obj[0] = args;
16406   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16407   if (!SWIG_IsOK(res1)) {
16408     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_radecvals_get" "', argument " "1"" of type '" "struct plotradec_args *""'");
16409   }
16410   arg1 = (struct plotradec_args *)(argp1);
16411   result = (dl *) ((arg1)->radecvals);
16412   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_dl, 0 |  0 );
16413   return resultobj;
16414 fail:
16415   return NULL;
16416 }
16417 
16418 
_wrap_plotradec_args_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16419 SWIGINTERN PyObject *_wrap_plotradec_args_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16420   PyObject *resultobj = 0;
16421   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16422   char *arg2 = (char *) 0 ;
16423   void *argp1 = 0 ;
16424   int res1 = 0 ;
16425   int res2 ;
16426   char *buf2 = 0 ;
16427   int alloc2 = 0 ;
16428   PyObject *swig_obj[2] ;
16429 
16430   if (!SWIG_Python_UnpackTuple(args, "plotradec_args_set_filename", 2, 2, swig_obj)) SWIG_fail;
16431   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16432   if (!SWIG_IsOK(res1)) {
16433     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotradec_args_set_filename" "', argument " "1"" of type '" "struct plotradec_args *""'");
16434   }
16435   arg1 = (struct plotradec_args *)(argp1);
16436   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16437   if (!SWIG_IsOK(res2)) {
16438     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotradec_args_set_filename" "', argument " "2"" of type '" "char const *""'");
16439   }
16440   arg2 = (char *)(buf2);
16441   plotradec_args_set_filename(arg1,(char const *)arg2);
16442   resultobj = SWIG_Py_Void();
16443   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16444   return resultobj;
16445 fail:
16446   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16447   return NULL;
16448 }
16449 
16450 
_wrap_new_plotradec_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16451 SWIGINTERN PyObject *_wrap_new_plotradec_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16452   PyObject *resultobj = 0;
16453   struct plotradec_args *result = 0 ;
16454 
16455   if (!SWIG_Python_UnpackTuple(args, "new_plotradec_args", 0, 0, 0)) SWIG_fail;
16456   result = (struct plotradec_args *)calloc(1, sizeof(struct plotradec_args));
16457   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotradec_args, SWIG_POINTER_NEW |  0 );
16458   return resultobj;
16459 fail:
16460   return NULL;
16461 }
16462 
16463 
_wrap_delete_plotradec_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16464 SWIGINTERN PyObject *_wrap_delete_plotradec_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16465   PyObject *resultobj = 0;
16466   struct plotradec_args *arg1 = (struct plotradec_args *) 0 ;
16467   void *argp1 = 0 ;
16468   int res1 = 0 ;
16469   PyObject *swig_obj[1] ;
16470 
16471   if (!args) SWIG_fail;
16472   swig_obj[0] = args;
16473   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, SWIG_POINTER_DISOWN |  0 );
16474   if (!SWIG_IsOK(res1)) {
16475     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotradec_args" "', argument " "1"" of type '" "struct plotradec_args *""'");
16476   }
16477   arg1 = (struct plotradec_args *)(argp1);
16478   free((char *) arg1);
16479   resultobj = SWIG_Py_Void();
16480   return resultobj;
16481 fail:
16482   return NULL;
16483 }
16484 
16485 
plotradec_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16486 SWIGINTERN PyObject *plotradec_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16487   PyObject *obj;
16488   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
16489   SWIG_TypeNewClientData(SWIGTYPE_p_plotradec_args, SWIG_NewClientData(obj));
16490   return SWIG_Py_Void();
16491 }
16492 
plotradec_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16493 SWIGINTERN PyObject *plotradec_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16494   return SWIG_Python_InitShadowInstance(args);
16495 }
16496 
_wrap_plot_radec_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16497 SWIGINTERN PyObject *_wrap_plot_radec_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16498   PyObject *resultobj = 0;
16499   plot_args_t *arg1 = (plot_args_t *) 0 ;
16500   void *argp1 = 0 ;
16501   int res1 = 0 ;
16502   PyObject *swig_obj[1] ;
16503   plotradec_t *result = 0 ;
16504 
16505   if (!args) SWIG_fail;
16506   swig_obj[0] = args;
16507   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
16508   if (!SWIG_IsOK(res1)) {
16509     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_get" "', argument " "1"" of type '" "plot_args_t *""'");
16510   }
16511   arg1 = (plot_args_t *)(argp1);
16512   result = (plotradec_t *)plot_radec_get(arg1);
16513   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotradec_args, 0 |  0 );
16514   return resultobj;
16515 fail:
16516   return NULL;
16517 }
16518 
16519 
_wrap_plot_radec_reset(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16520 SWIGINTERN PyObject *_wrap_plot_radec_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16521   PyObject *resultobj = 0;
16522   plotradec_t *arg1 = (plotradec_t *) 0 ;
16523   void *argp1 = 0 ;
16524   int res1 = 0 ;
16525   PyObject *swig_obj[1] ;
16526 
16527   if (!args) SWIG_fail;
16528   swig_obj[0] = args;
16529   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16530   if (!SWIG_IsOK(res1)) {
16531     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_reset" "', argument " "1"" of type '" "plotradec_t *""'");
16532   }
16533   arg1 = (plotradec_t *)(argp1);
16534   plot_radec_reset(arg1);
16535   resultobj = SWIG_Py_Void();
16536   return resultobj;
16537 fail:
16538   return NULL;
16539 }
16540 
16541 
_wrap_plot_radec_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16542 SWIGINTERN PyObject *_wrap_plot_radec_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16543   PyObject *resultobj = 0;
16544   plot_args_t *arg1 = (plot_args_t *) 0 ;
16545   void *argp1 = 0 ;
16546   int res1 = 0 ;
16547   PyObject *swig_obj[1] ;
16548   void *result = 0 ;
16549 
16550   if (!args) SWIG_fail;
16551   swig_obj[0] = args;
16552   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
16553   if (!SWIG_IsOK(res1)) {
16554     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_init" "', argument " "1"" of type '" "plot_args_t *""'");
16555   }
16556   arg1 = (plot_args_t *)(argp1);
16557   result = (void *)plot_radec_init(arg1);
16558   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
16559   return resultobj;
16560 fail:
16561   return NULL;
16562 }
16563 
16564 
_wrap_plot_radec_set_racol(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16565 SWIGINTERN PyObject *_wrap_plot_radec_set_racol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16566   PyObject *resultobj = 0;
16567   plotradec_t *arg1 = (plotradec_t *) 0 ;
16568   char *arg2 = (char *) 0 ;
16569   void *argp1 = 0 ;
16570   int res1 = 0 ;
16571   int res2 ;
16572   char *buf2 = 0 ;
16573   int alloc2 = 0 ;
16574   PyObject *swig_obj[2] ;
16575 
16576   if (!SWIG_Python_UnpackTuple(args, "plot_radec_set_racol", 2, 2, swig_obj)) SWIG_fail;
16577   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16578   if (!SWIG_IsOK(res1)) {
16579     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_set_racol" "', argument " "1"" of type '" "plotradec_t *""'");
16580   }
16581   arg1 = (plotradec_t *)(argp1);
16582   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16583   if (!SWIG_IsOK(res2)) {
16584     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_set_racol" "', argument " "2"" of type '" "char const *""'");
16585   }
16586   arg2 = (char *)(buf2);
16587   plot_radec_set_racol(arg1,(char const *)arg2);
16588   resultobj = SWIG_Py_Void();
16589   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16590   return resultobj;
16591 fail:
16592   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16593   return NULL;
16594 }
16595 
16596 
_wrap_plot_radec_set_deccol(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16597 SWIGINTERN PyObject *_wrap_plot_radec_set_deccol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16598   PyObject *resultobj = 0;
16599   plotradec_t *arg1 = (plotradec_t *) 0 ;
16600   char *arg2 = (char *) 0 ;
16601   void *argp1 = 0 ;
16602   int res1 = 0 ;
16603   int res2 ;
16604   char *buf2 = 0 ;
16605   int alloc2 = 0 ;
16606   PyObject *swig_obj[2] ;
16607 
16608   if (!SWIG_Python_UnpackTuple(args, "plot_radec_set_deccol", 2, 2, swig_obj)) SWIG_fail;
16609   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16610   if (!SWIG_IsOK(res1)) {
16611     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_set_deccol" "', argument " "1"" of type '" "plotradec_t *""'");
16612   }
16613   arg1 = (plotradec_t *)(argp1);
16614   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16615   if (!SWIG_IsOK(res2)) {
16616     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_set_deccol" "', argument " "2"" of type '" "char const *""'");
16617   }
16618   arg2 = (char *)(buf2);
16619   plot_radec_set_deccol(arg1,(char const *)arg2);
16620   resultobj = SWIG_Py_Void();
16621   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16622   return resultobj;
16623 fail:
16624   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16625   return NULL;
16626 }
16627 
16628 
_wrap_plot_radec_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16629 SWIGINTERN PyObject *_wrap_plot_radec_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16630   PyObject *resultobj = 0;
16631   plotradec_t *arg1 = (plotradec_t *) 0 ;
16632   char *arg2 = (char *) 0 ;
16633   void *argp1 = 0 ;
16634   int res1 = 0 ;
16635   int res2 ;
16636   char *buf2 = 0 ;
16637   int alloc2 = 0 ;
16638   PyObject *swig_obj[2] ;
16639 
16640   if (!SWIG_Python_UnpackTuple(args, "plot_radec_set_filename", 2, 2, swig_obj)) SWIG_fail;
16641   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16642   if (!SWIG_IsOK(res1)) {
16643     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_set_filename" "', argument " "1"" of type '" "plotradec_t *""'");
16644   }
16645   arg1 = (plotradec_t *)(argp1);
16646   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16647   if (!SWIG_IsOK(res2)) {
16648     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_set_filename" "', argument " "2"" of type '" "char const *""'");
16649   }
16650   arg2 = (char *)(buf2);
16651   plot_radec_set_filename(arg1,(char const *)arg2);
16652   resultobj = SWIG_Py_Void();
16653   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16654   return resultobj;
16655 fail:
16656   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16657   return NULL;
16658 }
16659 
16660 
_wrap_plot_radec_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16661 SWIGINTERN PyObject *_wrap_plot_radec_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16662   PyObject *resultobj = 0;
16663   char *arg1 = (char *) 0 ;
16664   char *arg2 = (char *) 0 ;
16665   plot_args_t *arg3 = (plot_args_t *) 0 ;
16666   void *arg4 = (void *) 0 ;
16667   int res1 ;
16668   char *buf1 = 0 ;
16669   int alloc1 = 0 ;
16670   int res2 ;
16671   char *buf2 = 0 ;
16672   int alloc2 = 0 ;
16673   void *argp3 = 0 ;
16674   int res3 = 0 ;
16675   int res4 ;
16676   PyObject *swig_obj[4] ;
16677   int result;
16678 
16679   if (!SWIG_Python_UnpackTuple(args, "plot_radec_command", 4, 4, swig_obj)) SWIG_fail;
16680   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
16681   if (!SWIG_IsOK(res1)) {
16682     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_command" "', argument " "1"" of type '" "char const *""'");
16683   }
16684   arg1 = (char *)(buf1);
16685   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
16686   if (!SWIG_IsOK(res2)) {
16687     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_command" "', argument " "2"" of type '" "char const *""'");
16688   }
16689   arg2 = (char *)(buf2);
16690   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
16691   if (!SWIG_IsOK(res3)) {
16692     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_radec_command" "', argument " "3"" of type '" "plot_args_t *""'");
16693   }
16694   arg3 = (plot_args_t *)(argp3);
16695   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
16696   if (!SWIG_IsOK(res4)) {
16697     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_radec_command" "', argument " "4"" of type '" "void *""'");
16698   }
16699   result = (int)plot_radec_command((char const *)arg1,(char const *)arg2,arg3,arg4);
16700   resultobj = SWIG_From_int((int)(result));
16701   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16702   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16703   return resultobj;
16704 fail:
16705   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16706   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
16707   return NULL;
16708 }
16709 
16710 
_wrap_plot_radec_count_inbounds(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16711 SWIGINTERN PyObject *_wrap_plot_radec_count_inbounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16712   PyObject *resultobj = 0;
16713   plot_args_t *arg1 = (plot_args_t *) 0 ;
16714   plotradec_t *arg2 = (plotradec_t *) 0 ;
16715   void *argp1 = 0 ;
16716   int res1 = 0 ;
16717   void *argp2 = 0 ;
16718   int res2 = 0 ;
16719   PyObject *swig_obj[2] ;
16720   int result;
16721 
16722   if (!SWIG_Python_UnpackTuple(args, "plot_radec_count_inbounds", 2, 2, swig_obj)) SWIG_fail;
16723   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
16724   if (!SWIG_IsOK(res1)) {
16725     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_count_inbounds" "', argument " "1"" of type '" "plot_args_t *""'");
16726   }
16727   arg1 = (plot_args_t *)(argp1);
16728   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_plotradec_args, 0 |  0 );
16729   if (!SWIG_IsOK(res2)) {
16730     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_count_inbounds" "', argument " "2"" of type '" "plotradec_t *""'");
16731   }
16732   arg2 = (plotradec_t *)(argp2);
16733   result = (int)plot_radec_count_inbounds(arg1,arg2);
16734   resultobj = SWIG_From_int((int)(result));
16735   return resultobj;
16736 fail:
16737   return NULL;
16738 }
16739 
16740 
_wrap_plot_radec_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16741 SWIGINTERN PyObject *_wrap_plot_radec_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16742   PyObject *resultobj = 0;
16743   char *arg1 = (char *) 0 ;
16744   cairo_t *arg2 = (cairo_t *) 0 ;
16745   plot_args_t *arg3 = (plot_args_t *) 0 ;
16746   void *arg4 = (void *) 0 ;
16747   int res1 ;
16748   char *buf1 = 0 ;
16749   int alloc1 = 0 ;
16750   void *argp2 = 0 ;
16751   int res2 = 0 ;
16752   void *argp3 = 0 ;
16753   int res3 = 0 ;
16754   int res4 ;
16755   PyObject *swig_obj[4] ;
16756   int result;
16757 
16758   if (!SWIG_Python_UnpackTuple(args, "plot_radec_plot", 4, 4, swig_obj)) SWIG_fail;
16759   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
16760   if (!SWIG_IsOK(res1)) {
16761     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_plot" "', argument " "1"" of type '" "char const *""'");
16762   }
16763   arg1 = (char *)(buf1);
16764   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
16765   if (!SWIG_IsOK(res2)) {
16766     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_plot" "', argument " "2"" of type '" "cairo_t *""'");
16767   }
16768   arg2 = (cairo_t *)(argp2);
16769   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
16770   if (!SWIG_IsOK(res3)) {
16771     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_radec_plot" "', argument " "3"" of type '" "plot_args_t *""'");
16772   }
16773   arg3 = (plot_args_t *)(argp3);
16774   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
16775   if (!SWIG_IsOK(res4)) {
16776     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_radec_plot" "', argument " "4"" of type '" "void *""'");
16777   }
16778   result = (int)plot_radec_plot((char const *)arg1,arg2,arg3,arg4);
16779   resultobj = SWIG_From_int((int)(result));
16780   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16781   return resultobj;
16782 fail:
16783   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
16784   return NULL;
16785 }
16786 
16787 
_wrap_plot_radec_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16788 SWIGINTERN PyObject *_wrap_plot_radec_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16789   PyObject *resultobj = 0;
16790   plot_args_t *arg1 = (plot_args_t *) 0 ;
16791   void *arg2 = (void *) 0 ;
16792   void *argp1 = 0 ;
16793   int res1 = 0 ;
16794   int res2 ;
16795   PyObject *swig_obj[2] ;
16796 
16797   if (!SWIG_Python_UnpackTuple(args, "plot_radec_free", 2, 2, swig_obj)) SWIG_fail;
16798   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
16799   if (!SWIG_IsOK(res1)) {
16800     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_free" "', argument " "1"" of type '" "plot_args_t *""'");
16801   }
16802   arg1 = (plot_args_t *)(argp1);
16803   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
16804   if (!SWIG_IsOK(res2)) {
16805     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_radec_free" "', argument " "2"" of type '" "void *""'");
16806   }
16807   plot_radec_free(arg1,arg2);
16808   resultobj = SWIG_Py_Void();
16809   return resultobj;
16810 fail:
16811   return NULL;
16812 }
16813 
16814 
_wrap_plot_radec_vals(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16815 SWIGINTERN PyObject *_wrap_plot_radec_vals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16816   PyObject *resultobj = 0;
16817   plotradec_t *arg1 = (plotradec_t *) 0 ;
16818   double arg2 ;
16819   double arg3 ;
16820   void *argp1 = 0 ;
16821   int res1 = 0 ;
16822   double val2 ;
16823   int ecode2 = 0 ;
16824   double val3 ;
16825   int ecode3 = 0 ;
16826   PyObject *swig_obj[3] ;
16827 
16828   if (!SWIG_Python_UnpackTuple(args, "plot_radec_vals", 3, 3, swig_obj)) SWIG_fail;
16829   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotradec_args, 0 |  0 );
16830   if (!SWIG_IsOK(res1)) {
16831     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_vals" "', argument " "1"" of type '" "plotradec_t *""'");
16832   }
16833   arg1 = (plotradec_t *)(argp1);
16834   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
16835   if (!SWIG_IsOK(ecode2)) {
16836     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_radec_vals" "', argument " "2"" of type '" "double""'");
16837   }
16838   arg2 = (double)(val2);
16839   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
16840   if (!SWIG_IsOK(ecode3)) {
16841     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_radec_vals" "', argument " "3"" of type '" "double""'");
16842   }
16843   arg3 = (double)(val3);
16844   plot_radec_vals(arg1,arg2,arg3);
16845   resultobj = SWIG_Py_Void();
16846   return resultobj;
16847 fail:
16848   return NULL;
16849 }
16850 
16851 
_wrap_plot_radec_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16852 SWIGINTERN PyObject *_wrap_plot_radec_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16853   PyObject *resultobj = 0;
16854   plotter_t *arg1 = (plotter_t *) 0 ;
16855   void *argp1 = 0 ;
16856   int res1 = 0 ;
16857   PyObject *swig_obj[1] ;
16858 
16859   if (!args) SWIG_fail;
16860   swig_obj[0] = args;
16861   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
16862   if (!SWIG_IsOK(res1)) {
16863     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_radec_describe" "', argument " "1"" of type '" "plotter_t *""'");
16864   }
16865   arg1 = (plotter_t *)(argp1);
16866   plot_radec_describe(arg1);
16867   resultobj = SWIG_Py_Void();
16868   return resultobj;
16869 fail:
16870   return NULL;
16871 }
16872 
16873 
_wrap_plotmatch_args_matches_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16874 SWIGINTERN PyObject *_wrap_plotmatch_args_matches_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16875   PyObject *resultobj = 0;
16876   struct plotmatch_args *arg1 = (struct plotmatch_args *) 0 ;
16877   bl *arg2 = (bl *) 0 ;
16878   void *argp1 = 0 ;
16879   int res1 = 0 ;
16880   void *argp2 = 0 ;
16881   int res2 = 0 ;
16882   PyObject *swig_obj[2] ;
16883 
16884   if (!SWIG_Python_UnpackTuple(args, "plotmatch_args_matches_set", 2, 2, swig_obj)) SWIG_fail;
16885   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotmatch_args, 0 |  0 );
16886   if (!SWIG_IsOK(res1)) {
16887     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotmatch_args_matches_set" "', argument " "1"" of type '" "struct plotmatch_args *""'");
16888   }
16889   arg1 = (struct plotmatch_args *)(argp1);
16890   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_bl, SWIG_POINTER_DISOWN |  0 );
16891   if (!SWIG_IsOK(res2)) {
16892     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plotmatch_args_matches_set" "', argument " "2"" of type '" "bl *""'");
16893   }
16894   arg2 = (bl *)(argp2);
16895   if (arg1) (arg1)->matches = arg2;
16896   resultobj = SWIG_Py_Void();
16897   return resultobj;
16898 fail:
16899   return NULL;
16900 }
16901 
16902 
_wrap_plotmatch_args_matches_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16903 SWIGINTERN PyObject *_wrap_plotmatch_args_matches_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16904   PyObject *resultobj = 0;
16905   struct plotmatch_args *arg1 = (struct plotmatch_args *) 0 ;
16906   void *argp1 = 0 ;
16907   int res1 = 0 ;
16908   PyObject *swig_obj[1] ;
16909   bl *result = 0 ;
16910 
16911   if (!args) SWIG_fail;
16912   swig_obj[0] = args;
16913   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotmatch_args, 0 |  0 );
16914   if (!SWIG_IsOK(res1)) {
16915     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plotmatch_args_matches_get" "', argument " "1"" of type '" "struct plotmatch_args *""'");
16916   }
16917   arg1 = (struct plotmatch_args *)(argp1);
16918   result = (bl *) ((arg1)->matches);
16919   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bl, 0 |  0 );
16920   return resultobj;
16921 fail:
16922   return NULL;
16923 }
16924 
16925 
_wrap_new_plotmatch_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16926 SWIGINTERN PyObject *_wrap_new_plotmatch_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16927   PyObject *resultobj = 0;
16928   struct plotmatch_args *result = 0 ;
16929 
16930   if (!SWIG_Python_UnpackTuple(args, "new_plotmatch_args", 0, 0, 0)) SWIG_fail;
16931   result = (struct plotmatch_args *)calloc(1, sizeof(struct plotmatch_args));
16932   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotmatch_args, SWIG_POINTER_NEW |  0 );
16933   return resultobj;
16934 fail:
16935   return NULL;
16936 }
16937 
16938 
_wrap_delete_plotmatch_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16939 SWIGINTERN PyObject *_wrap_delete_plotmatch_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16940   PyObject *resultobj = 0;
16941   struct plotmatch_args *arg1 = (struct plotmatch_args *) 0 ;
16942   void *argp1 = 0 ;
16943   int res1 = 0 ;
16944   PyObject *swig_obj[1] ;
16945 
16946   if (!args) SWIG_fail;
16947   swig_obj[0] = args;
16948   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotmatch_args, SWIG_POINTER_DISOWN |  0 );
16949   if (!SWIG_IsOK(res1)) {
16950     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plotmatch_args" "', argument " "1"" of type '" "struct plotmatch_args *""'");
16951   }
16952   arg1 = (struct plotmatch_args *)(argp1);
16953   free((char *) arg1);
16954   resultobj = SWIG_Py_Void();
16955   return resultobj;
16956 fail:
16957   return NULL;
16958 }
16959 
16960 
plotmatch_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16961 SWIGINTERN PyObject *plotmatch_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16962   PyObject *obj;
16963   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
16964   SWIG_TypeNewClientData(SWIGTYPE_p_plotmatch_args, SWIG_NewClientData(obj));
16965   return SWIG_Py_Void();
16966 }
16967 
plotmatch_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16968 SWIGINTERN PyObject *plotmatch_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16969   return SWIG_Python_InitShadowInstance(args);
16970 }
16971 
_wrap_plot_match_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16972 SWIGINTERN PyObject *_wrap_plot_match_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16973   PyObject *resultobj = 0;
16974   plot_args_t *arg1 = (plot_args_t *) 0 ;
16975   void *argp1 = 0 ;
16976   int res1 = 0 ;
16977   PyObject *swig_obj[1] ;
16978   plotmatch_t *result = 0 ;
16979 
16980   if (!args) SWIG_fail;
16981   swig_obj[0] = args;
16982   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
16983   if (!SWIG_IsOK(res1)) {
16984     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_get" "', argument " "1"" of type '" "plot_args_t *""'");
16985   }
16986   arg1 = (plot_args_t *)(argp1);
16987   result = (plotmatch_t *)plot_match_get(arg1);
16988   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plotmatch_args, 0 |  0 );
16989   return resultobj;
16990 fail:
16991   return NULL;
16992 }
16993 
16994 
_wrap_plot_match_add_match(PyObject * SWIGUNUSEDPARM (self),PyObject * args)16995 SWIGINTERN PyObject *_wrap_plot_match_add_match(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16996   PyObject *resultobj = 0;
16997   plotmatch_t *arg1 = (plotmatch_t *) 0 ;
16998   MatchObj *arg2 = (MatchObj *) 0 ;
16999   void *argp1 = 0 ;
17000   int res1 = 0 ;
17001   void *argp2 = 0 ;
17002   int res2 = 0 ;
17003   PyObject *swig_obj[2] ;
17004   int result;
17005 
17006   if (!SWIG_Python_UnpackTuple(args, "plot_match_add_match", 2, 2, swig_obj)) SWIG_fail;
17007   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotmatch_args, 0 |  0 );
17008   if (!SWIG_IsOK(res1)) {
17009     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_add_match" "', argument " "1"" of type '" "plotmatch_t *""'");
17010   }
17011   arg1 = (plotmatch_t *)(argp1);
17012   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_MatchObj, 0 |  0 );
17013   if (!SWIG_IsOK(res2)) {
17014     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_match_add_match" "', argument " "2"" of type '" "MatchObj const *""'");
17015   }
17016   arg2 = (MatchObj *)(argp2);
17017   result = (int)plot_match_add_match(arg1,(MatchObj const *)arg2);
17018   resultobj = SWIG_From_int((int)(result));
17019   return resultobj;
17020 fail:
17021   return NULL;
17022 }
17023 
17024 
_wrap_plot_match_set_filename(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17025 SWIGINTERN PyObject *_wrap_plot_match_set_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17026   PyObject *resultobj = 0;
17027   plotmatch_t *arg1 = (plotmatch_t *) 0 ;
17028   char *arg2 = (char *) 0 ;
17029   void *argp1 = 0 ;
17030   int res1 = 0 ;
17031   int res2 ;
17032   char *buf2 = 0 ;
17033   int alloc2 = 0 ;
17034   PyObject *swig_obj[2] ;
17035   int result;
17036 
17037   if (!SWIG_Python_UnpackTuple(args, "plot_match_set_filename", 2, 2, swig_obj)) SWIG_fail;
17038   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotmatch_args, 0 |  0 );
17039   if (!SWIG_IsOK(res1)) {
17040     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_set_filename" "', argument " "1"" of type '" "plotmatch_t *""'");
17041   }
17042   arg1 = (plotmatch_t *)(argp1);
17043   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
17044   if (!SWIG_IsOK(res2)) {
17045     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_match_set_filename" "', argument " "2"" of type '" "char const *""'");
17046   }
17047   arg2 = (char *)(buf2);
17048   result = (int)plot_match_set_filename(arg1,(char const *)arg2);
17049   resultobj = SWIG_From_int((int)(result));
17050   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
17051   return resultobj;
17052 fail:
17053   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
17054   return NULL;
17055 }
17056 
17057 
_wrap_plot_match_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17058 SWIGINTERN PyObject *_wrap_plot_match_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17059   PyObject *resultobj = 0;
17060   plot_args_t *arg1 = (plot_args_t *) 0 ;
17061   void *argp1 = 0 ;
17062   int res1 = 0 ;
17063   PyObject *swig_obj[1] ;
17064   void *result = 0 ;
17065 
17066   if (!args) SWIG_fail;
17067   swig_obj[0] = args;
17068   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
17069   if (!SWIG_IsOK(res1)) {
17070     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_init" "', argument " "1"" of type '" "plot_args_t *""'");
17071   }
17072   arg1 = (plot_args_t *)(argp1);
17073   result = (void *)plot_match_init(arg1);
17074   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
17075   return resultobj;
17076 fail:
17077   return NULL;
17078 }
17079 
17080 
_wrap_plot_match_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17081 SWIGINTERN PyObject *_wrap_plot_match_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17082   PyObject *resultobj = 0;
17083   char *arg1 = (char *) 0 ;
17084   char *arg2 = (char *) 0 ;
17085   plot_args_t *arg3 = (plot_args_t *) 0 ;
17086   void *arg4 = (void *) 0 ;
17087   int res1 ;
17088   char *buf1 = 0 ;
17089   int alloc1 = 0 ;
17090   int res2 ;
17091   char *buf2 = 0 ;
17092   int alloc2 = 0 ;
17093   void *argp3 = 0 ;
17094   int res3 = 0 ;
17095   int res4 ;
17096   PyObject *swig_obj[4] ;
17097   int result;
17098 
17099   if (!SWIG_Python_UnpackTuple(args, "plot_match_command", 4, 4, swig_obj)) SWIG_fail;
17100   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
17101   if (!SWIG_IsOK(res1)) {
17102     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_command" "', argument " "1"" of type '" "char const *""'");
17103   }
17104   arg1 = (char *)(buf1);
17105   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
17106   if (!SWIG_IsOK(res2)) {
17107     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_match_command" "', argument " "2"" of type '" "char const *""'");
17108   }
17109   arg2 = (char *)(buf2);
17110   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
17111   if (!SWIG_IsOK(res3)) {
17112     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_match_command" "', argument " "3"" of type '" "plot_args_t *""'");
17113   }
17114   arg3 = (plot_args_t *)(argp3);
17115   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
17116   if (!SWIG_IsOK(res4)) {
17117     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_match_command" "', argument " "4"" of type '" "void *""'");
17118   }
17119   result = (int)plot_match_command((char const *)arg1,(char const *)arg2,arg3,arg4);
17120   resultobj = SWIG_From_int((int)(result));
17121   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
17122   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
17123   return resultobj;
17124 fail:
17125   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
17126   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
17127   return NULL;
17128 }
17129 
17130 
_wrap_plot_match_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17131 SWIGINTERN PyObject *_wrap_plot_match_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17132   PyObject *resultobj = 0;
17133   char *arg1 = (char *) 0 ;
17134   cairo_t *arg2 = (cairo_t *) 0 ;
17135   plot_args_t *arg3 = (plot_args_t *) 0 ;
17136   void *arg4 = (void *) 0 ;
17137   int res1 ;
17138   char *buf1 = 0 ;
17139   int alloc1 = 0 ;
17140   void *argp2 = 0 ;
17141   int res2 = 0 ;
17142   void *argp3 = 0 ;
17143   int res3 = 0 ;
17144   int res4 ;
17145   PyObject *swig_obj[4] ;
17146   int result;
17147 
17148   if (!SWIG_Python_UnpackTuple(args, "plot_match_plot", 4, 4, swig_obj)) SWIG_fail;
17149   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
17150   if (!SWIG_IsOK(res1)) {
17151     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_plot" "', argument " "1"" of type '" "char const *""'");
17152   }
17153   arg1 = (char *)(buf1);
17154   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
17155   if (!SWIG_IsOK(res2)) {
17156     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_match_plot" "', argument " "2"" of type '" "cairo_t *""'");
17157   }
17158   arg2 = (cairo_t *)(argp2);
17159   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
17160   if (!SWIG_IsOK(res3)) {
17161     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_match_plot" "', argument " "3"" of type '" "plot_args_t *""'");
17162   }
17163   arg3 = (plot_args_t *)(argp3);
17164   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
17165   if (!SWIG_IsOK(res4)) {
17166     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_match_plot" "', argument " "4"" of type '" "void *""'");
17167   }
17168   result = (int)plot_match_plot((char const *)arg1,arg2,arg3,arg4);
17169   resultobj = SWIG_From_int((int)(result));
17170   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
17171   return resultobj;
17172 fail:
17173   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
17174   return NULL;
17175 }
17176 
17177 
_wrap_plot_match_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17178 SWIGINTERN PyObject *_wrap_plot_match_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17179   PyObject *resultobj = 0;
17180   plot_args_t *arg1 = (plot_args_t *) 0 ;
17181   void *arg2 = (void *) 0 ;
17182   void *argp1 = 0 ;
17183   int res1 = 0 ;
17184   int res2 ;
17185   PyObject *swig_obj[2] ;
17186 
17187   if (!SWIG_Python_UnpackTuple(args, "plot_match_free", 2, 2, swig_obj)) SWIG_fail;
17188   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
17189   if (!SWIG_IsOK(res1)) {
17190     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_free" "', argument " "1"" of type '" "plot_args_t *""'");
17191   }
17192   arg1 = (plot_args_t *)(argp1);
17193   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
17194   if (!SWIG_IsOK(res2)) {
17195     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_match_free" "', argument " "2"" of type '" "void *""'");
17196   }
17197   plot_match_free(arg1,arg2);
17198   resultobj = SWIG_Py_Void();
17199   return resultobj;
17200 fail:
17201   return NULL;
17202 }
17203 
17204 
_wrap_plot_match_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17205 SWIGINTERN PyObject *_wrap_plot_match_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17206   PyObject *resultobj = 0;
17207   plotter_t *arg1 = (plotter_t *) 0 ;
17208   void *argp1 = 0 ;
17209   int res1 = 0 ;
17210   PyObject *swig_obj[1] ;
17211 
17212   if (!args) SWIG_fail;
17213   swig_obj[0] = args;
17214   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
17215   if (!SWIG_IsOK(res1)) {
17216     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_match_describe" "', argument " "1"" of type '" "plotter_t *""'");
17217   }
17218   arg1 = (plotter_t *)(argp1);
17219   plot_match_describe(arg1);
17220   resultobj = SWIG_Py_Void();
17221   return resultobj;
17222 fail:
17223   return NULL;
17224 }
17225 
17226 
_wrap_annotation_args_NGC_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17227 SWIGINTERN PyObject *_wrap_annotation_args_NGC_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17228   PyObject *resultobj = 0;
17229   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17230   anbool arg2 ;
17231   void *argp1 = 0 ;
17232   int res1 = 0 ;
17233   unsigned char val2 ;
17234   int ecode2 = 0 ;
17235   PyObject *swig_obj[2] ;
17236 
17237   if (!SWIG_Python_UnpackTuple(args, "annotation_args_NGC_set", 2, 2, swig_obj)) SWIG_fail;
17238   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17239   if (!SWIG_IsOK(res1)) {
17240     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_NGC_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17241   }
17242   arg1 = (struct annotation_args *)(argp1);
17243   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17244   if (!SWIG_IsOK(ecode2)) {
17245     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_NGC_set" "', argument " "2"" of type '" "anbool""'");
17246   }
17247   arg2 = (anbool)(val2);
17248   if (arg1) (arg1)->NGC = arg2;
17249   resultobj = SWIG_Py_Void();
17250   return resultobj;
17251 fail:
17252   return NULL;
17253 }
17254 
17255 
_wrap_annotation_args_NGC_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17256 SWIGINTERN PyObject *_wrap_annotation_args_NGC_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17257   PyObject *resultobj = 0;
17258   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17259   void *argp1 = 0 ;
17260   int res1 = 0 ;
17261   PyObject *swig_obj[1] ;
17262   anbool result;
17263 
17264   if (!args) SWIG_fail;
17265   swig_obj[0] = args;
17266   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17267   if (!SWIG_IsOK(res1)) {
17268     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_NGC_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17269   }
17270   arg1 = (struct annotation_args *)(argp1);
17271   result = (anbool) ((arg1)->NGC);
17272   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17273   return resultobj;
17274 fail:
17275   return NULL;
17276 }
17277 
17278 
_wrap_annotation_args_constellations_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17279 SWIGINTERN PyObject *_wrap_annotation_args_constellations_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17280   PyObject *resultobj = 0;
17281   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17282   anbool arg2 ;
17283   void *argp1 = 0 ;
17284   int res1 = 0 ;
17285   unsigned char val2 ;
17286   int ecode2 = 0 ;
17287   PyObject *swig_obj[2] ;
17288 
17289   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellations_set", 2, 2, swig_obj)) SWIG_fail;
17290   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17291   if (!SWIG_IsOK(res1)) {
17292     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellations_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17293   }
17294   arg1 = (struct annotation_args *)(argp1);
17295   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17296   if (!SWIG_IsOK(ecode2)) {
17297     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellations_set" "', argument " "2"" of type '" "anbool""'");
17298   }
17299   arg2 = (anbool)(val2);
17300   if (arg1) (arg1)->constellations = arg2;
17301   resultobj = SWIG_Py_Void();
17302   return resultobj;
17303 fail:
17304   return NULL;
17305 }
17306 
17307 
_wrap_annotation_args_constellations_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17308 SWIGINTERN PyObject *_wrap_annotation_args_constellations_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17309   PyObject *resultobj = 0;
17310   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17311   void *argp1 = 0 ;
17312   int res1 = 0 ;
17313   PyObject *swig_obj[1] ;
17314   anbool result;
17315 
17316   if (!args) SWIG_fail;
17317   swig_obj[0] = args;
17318   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17319   if (!SWIG_IsOK(res1)) {
17320     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellations_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17321   }
17322   arg1 = (struct annotation_args *)(argp1);
17323   result = (anbool) ((arg1)->constellations);
17324   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17325   return resultobj;
17326 fail:
17327   return NULL;
17328 }
17329 
17330 
_wrap_annotation_args_constellation_lines_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17331 SWIGINTERN PyObject *_wrap_annotation_args_constellation_lines_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17332   PyObject *resultobj = 0;
17333   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17334   anbool arg2 ;
17335   void *argp1 = 0 ;
17336   int res1 = 0 ;
17337   unsigned char val2 ;
17338   int ecode2 = 0 ;
17339   PyObject *swig_obj[2] ;
17340 
17341   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_lines_set", 2, 2, swig_obj)) SWIG_fail;
17342   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17343   if (!SWIG_IsOK(res1)) {
17344     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_lines_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17345   }
17346   arg1 = (struct annotation_args *)(argp1);
17347   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17348   if (!SWIG_IsOK(ecode2)) {
17349     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_lines_set" "', argument " "2"" of type '" "anbool""'");
17350   }
17351   arg2 = (anbool)(val2);
17352   if (arg1) (arg1)->constellation_lines = arg2;
17353   resultobj = SWIG_Py_Void();
17354   return resultobj;
17355 fail:
17356   return NULL;
17357 }
17358 
17359 
_wrap_annotation_args_constellation_lines_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17360 SWIGINTERN PyObject *_wrap_annotation_args_constellation_lines_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17361   PyObject *resultobj = 0;
17362   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17363   void *argp1 = 0 ;
17364   int res1 = 0 ;
17365   PyObject *swig_obj[1] ;
17366   anbool result;
17367 
17368   if (!args) SWIG_fail;
17369   swig_obj[0] = args;
17370   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17371   if (!SWIG_IsOK(res1)) {
17372     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_lines_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17373   }
17374   arg1 = (struct annotation_args *)(argp1);
17375   result = (anbool) ((arg1)->constellation_lines);
17376   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17377   return resultobj;
17378 fail:
17379   return NULL;
17380 }
17381 
17382 
_wrap_annotation_args_constellation_markers_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17383 SWIGINTERN PyObject *_wrap_annotation_args_constellation_markers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17384   PyObject *resultobj = 0;
17385   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17386   anbool arg2 ;
17387   void *argp1 = 0 ;
17388   int res1 = 0 ;
17389   unsigned char val2 ;
17390   int ecode2 = 0 ;
17391   PyObject *swig_obj[2] ;
17392 
17393   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_markers_set", 2, 2, swig_obj)) SWIG_fail;
17394   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17395   if (!SWIG_IsOK(res1)) {
17396     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_markers_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17397   }
17398   arg1 = (struct annotation_args *)(argp1);
17399   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17400   if (!SWIG_IsOK(ecode2)) {
17401     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_markers_set" "', argument " "2"" of type '" "anbool""'");
17402   }
17403   arg2 = (anbool)(val2);
17404   if (arg1) (arg1)->constellation_markers = arg2;
17405   resultobj = SWIG_Py_Void();
17406   return resultobj;
17407 fail:
17408   return NULL;
17409 }
17410 
17411 
_wrap_annotation_args_constellation_markers_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17412 SWIGINTERN PyObject *_wrap_annotation_args_constellation_markers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17413   PyObject *resultobj = 0;
17414   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17415   void *argp1 = 0 ;
17416   int res1 = 0 ;
17417   PyObject *swig_obj[1] ;
17418   anbool result;
17419 
17420   if (!args) SWIG_fail;
17421   swig_obj[0] = args;
17422   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17423   if (!SWIG_IsOK(res1)) {
17424     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_markers_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17425   }
17426   arg1 = (struct annotation_args *)(argp1);
17427   result = (anbool) ((arg1)->constellation_markers);
17428   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17429   return resultobj;
17430 fail:
17431   return NULL;
17432 }
17433 
17434 
_wrap_annotation_args_constellation_labels_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17435 SWIGINTERN PyObject *_wrap_annotation_args_constellation_labels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17436   PyObject *resultobj = 0;
17437   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17438   anbool arg2 ;
17439   void *argp1 = 0 ;
17440   int res1 = 0 ;
17441   unsigned char val2 ;
17442   int ecode2 = 0 ;
17443   PyObject *swig_obj[2] ;
17444 
17445   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_labels_set", 2, 2, swig_obj)) SWIG_fail;
17446   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17447   if (!SWIG_IsOK(res1)) {
17448     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_labels_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17449   }
17450   arg1 = (struct annotation_args *)(argp1);
17451   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17452   if (!SWIG_IsOK(ecode2)) {
17453     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_labels_set" "', argument " "2"" of type '" "anbool""'");
17454   }
17455   arg2 = (anbool)(val2);
17456   if (arg1) (arg1)->constellation_labels = arg2;
17457   resultobj = SWIG_Py_Void();
17458   return resultobj;
17459 fail:
17460   return NULL;
17461 }
17462 
17463 
_wrap_annotation_args_constellation_labels_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17464 SWIGINTERN PyObject *_wrap_annotation_args_constellation_labels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17465   PyObject *resultobj = 0;
17466   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17467   void *argp1 = 0 ;
17468   int res1 = 0 ;
17469   PyObject *swig_obj[1] ;
17470   anbool result;
17471 
17472   if (!args) SWIG_fail;
17473   swig_obj[0] = args;
17474   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17475   if (!SWIG_IsOK(res1)) {
17476     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_labels_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17477   }
17478   arg1 = (struct annotation_args *)(argp1);
17479   result = (anbool) ((arg1)->constellation_labels);
17480   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17481   return resultobj;
17482 fail:
17483   return NULL;
17484 }
17485 
17486 
_wrap_annotation_args_constellation_labels_long_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17487 SWIGINTERN PyObject *_wrap_annotation_args_constellation_labels_long_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17488   PyObject *resultobj = 0;
17489   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17490   anbool arg2 ;
17491   void *argp1 = 0 ;
17492   int res1 = 0 ;
17493   unsigned char val2 ;
17494   int ecode2 = 0 ;
17495   PyObject *swig_obj[2] ;
17496 
17497   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_labels_long_set", 2, 2, swig_obj)) SWIG_fail;
17498   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17499   if (!SWIG_IsOK(res1)) {
17500     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_labels_long_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17501   }
17502   arg1 = (struct annotation_args *)(argp1);
17503   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17504   if (!SWIG_IsOK(ecode2)) {
17505     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_labels_long_set" "', argument " "2"" of type '" "anbool""'");
17506   }
17507   arg2 = (anbool)(val2);
17508   if (arg1) (arg1)->constellation_labels_long = arg2;
17509   resultobj = SWIG_Py_Void();
17510   return resultobj;
17511 fail:
17512   return NULL;
17513 }
17514 
17515 
_wrap_annotation_args_constellation_labels_long_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17516 SWIGINTERN PyObject *_wrap_annotation_args_constellation_labels_long_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17517   PyObject *resultobj = 0;
17518   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17519   void *argp1 = 0 ;
17520   int res1 = 0 ;
17521   PyObject *swig_obj[1] ;
17522   anbool result;
17523 
17524   if (!args) SWIG_fail;
17525   swig_obj[0] = args;
17526   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17527   if (!SWIG_IsOK(res1)) {
17528     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_labels_long_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17529   }
17530   arg1 = (struct annotation_args *)(argp1);
17531   result = (anbool) ((arg1)->constellation_labels_long);
17532   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17533   return resultobj;
17534 fail:
17535   return NULL;
17536 }
17537 
17538 
_wrap_annotation_args_constellation_lines_offset_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17539 SWIGINTERN PyObject *_wrap_annotation_args_constellation_lines_offset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17540   PyObject *resultobj = 0;
17541   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17542   float arg2 ;
17543   void *argp1 = 0 ;
17544   int res1 = 0 ;
17545   float val2 ;
17546   int ecode2 = 0 ;
17547   PyObject *swig_obj[2] ;
17548 
17549   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_lines_offset_set", 2, 2, swig_obj)) SWIG_fail;
17550   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17551   if (!SWIG_IsOK(res1)) {
17552     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_lines_offset_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17553   }
17554   arg1 = (struct annotation_args *)(argp1);
17555   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
17556   if (!SWIG_IsOK(ecode2)) {
17557     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_lines_offset_set" "', argument " "2"" of type '" "float""'");
17558   }
17559   arg2 = (float)(val2);
17560   if (arg1) (arg1)->constellation_lines_offset = arg2;
17561   resultobj = SWIG_Py_Void();
17562   return resultobj;
17563 fail:
17564   return NULL;
17565 }
17566 
17567 
_wrap_annotation_args_constellation_lines_offset_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17568 SWIGINTERN PyObject *_wrap_annotation_args_constellation_lines_offset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17569   PyObject *resultobj = 0;
17570   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17571   void *argp1 = 0 ;
17572   int res1 = 0 ;
17573   PyObject *swig_obj[1] ;
17574   float result;
17575 
17576   if (!args) SWIG_fail;
17577   swig_obj[0] = args;
17578   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17579   if (!SWIG_IsOK(res1)) {
17580     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_lines_offset_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17581   }
17582   arg1 = (struct annotation_args *)(argp1);
17583   result = (float) ((arg1)->constellation_lines_offset);
17584   resultobj = SWIG_From_float((float)(result));
17585   return resultobj;
17586 fail:
17587   return NULL;
17588 }
17589 
17590 
_wrap_annotation_args_constellation_pastel_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17591 SWIGINTERN PyObject *_wrap_annotation_args_constellation_pastel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17592   PyObject *resultobj = 0;
17593   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17594   anbool arg2 ;
17595   void *argp1 = 0 ;
17596   int res1 = 0 ;
17597   unsigned char val2 ;
17598   int ecode2 = 0 ;
17599   PyObject *swig_obj[2] ;
17600 
17601   if (!SWIG_Python_UnpackTuple(args, "annotation_args_constellation_pastel_set", 2, 2, swig_obj)) SWIG_fail;
17602   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17603   if (!SWIG_IsOK(res1)) {
17604     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_pastel_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17605   }
17606   arg1 = (struct annotation_args *)(argp1);
17607   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17608   if (!SWIG_IsOK(ecode2)) {
17609     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_constellation_pastel_set" "', argument " "2"" of type '" "anbool""'");
17610   }
17611   arg2 = (anbool)(val2);
17612   if (arg1) (arg1)->constellation_pastel = arg2;
17613   resultobj = SWIG_Py_Void();
17614   return resultobj;
17615 fail:
17616   return NULL;
17617 }
17618 
17619 
_wrap_annotation_args_constellation_pastel_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17620 SWIGINTERN PyObject *_wrap_annotation_args_constellation_pastel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17621   PyObject *resultobj = 0;
17622   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17623   void *argp1 = 0 ;
17624   int res1 = 0 ;
17625   PyObject *swig_obj[1] ;
17626   anbool result;
17627 
17628   if (!args) SWIG_fail;
17629   swig_obj[0] = args;
17630   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17631   if (!SWIG_IsOK(res1)) {
17632     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_constellation_pastel_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17633   }
17634   arg1 = (struct annotation_args *)(argp1);
17635   result = (anbool) ((arg1)->constellation_pastel);
17636   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17637   return resultobj;
17638 fail:
17639   return NULL;
17640 }
17641 
17642 
_wrap_annotation_args_bright_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17643 SWIGINTERN PyObject *_wrap_annotation_args_bright_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17644   PyObject *resultobj = 0;
17645   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17646   anbool arg2 ;
17647   void *argp1 = 0 ;
17648   int res1 = 0 ;
17649   unsigned char val2 ;
17650   int ecode2 = 0 ;
17651   PyObject *swig_obj[2] ;
17652 
17653   if (!SWIG_Python_UnpackTuple(args, "annotation_args_bright_set", 2, 2, swig_obj)) SWIG_fail;
17654   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17655   if (!SWIG_IsOK(res1)) {
17656     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17657   }
17658   arg1 = (struct annotation_args *)(argp1);
17659   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17660   if (!SWIG_IsOK(ecode2)) {
17661     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_bright_set" "', argument " "2"" of type '" "anbool""'");
17662   }
17663   arg2 = (anbool)(val2);
17664   if (arg1) (arg1)->bright = arg2;
17665   resultobj = SWIG_Py_Void();
17666   return resultobj;
17667 fail:
17668   return NULL;
17669 }
17670 
17671 
_wrap_annotation_args_bright_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17672 SWIGINTERN PyObject *_wrap_annotation_args_bright_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17673   PyObject *resultobj = 0;
17674   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17675   void *argp1 = 0 ;
17676   int res1 = 0 ;
17677   PyObject *swig_obj[1] ;
17678   anbool result;
17679 
17680   if (!args) SWIG_fail;
17681   swig_obj[0] = args;
17682   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17683   if (!SWIG_IsOK(res1)) {
17684     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17685   }
17686   arg1 = (struct annotation_args *)(argp1);
17687   result = (anbool) ((arg1)->bright);
17688   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17689   return resultobj;
17690 fail:
17691   return NULL;
17692 }
17693 
17694 
_wrap_annotation_args_bright_labels_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17695 SWIGINTERN PyObject *_wrap_annotation_args_bright_labels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17696   PyObject *resultobj = 0;
17697   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17698   anbool arg2 ;
17699   void *argp1 = 0 ;
17700   int res1 = 0 ;
17701   unsigned char val2 ;
17702   int ecode2 = 0 ;
17703   PyObject *swig_obj[2] ;
17704 
17705   if (!SWIG_Python_UnpackTuple(args, "annotation_args_bright_labels_set", 2, 2, swig_obj)) SWIG_fail;
17706   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17707   if (!SWIG_IsOK(res1)) {
17708     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_labels_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17709   }
17710   arg1 = (struct annotation_args *)(argp1);
17711   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17712   if (!SWIG_IsOK(ecode2)) {
17713     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_bright_labels_set" "', argument " "2"" of type '" "anbool""'");
17714   }
17715   arg2 = (anbool)(val2);
17716   if (arg1) (arg1)->bright_labels = arg2;
17717   resultobj = SWIG_Py_Void();
17718   return resultobj;
17719 fail:
17720   return NULL;
17721 }
17722 
17723 
_wrap_annotation_args_bright_labels_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17724 SWIGINTERN PyObject *_wrap_annotation_args_bright_labels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17725   PyObject *resultobj = 0;
17726   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17727   void *argp1 = 0 ;
17728   int res1 = 0 ;
17729   PyObject *swig_obj[1] ;
17730   anbool result;
17731 
17732   if (!args) SWIG_fail;
17733   swig_obj[0] = args;
17734   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17735   if (!SWIG_IsOK(res1)) {
17736     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_labels_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17737   }
17738   arg1 = (struct annotation_args *)(argp1);
17739   result = (anbool) ((arg1)->bright_labels);
17740   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17741   return resultobj;
17742 fail:
17743   return NULL;
17744 }
17745 
17746 
_wrap_annotation_args_bright_pastel_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17747 SWIGINTERN PyObject *_wrap_annotation_args_bright_pastel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17748   PyObject *resultobj = 0;
17749   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17750   anbool arg2 ;
17751   void *argp1 = 0 ;
17752   int res1 = 0 ;
17753   unsigned char val2 ;
17754   int ecode2 = 0 ;
17755   PyObject *swig_obj[2] ;
17756 
17757   if (!SWIG_Python_UnpackTuple(args, "annotation_args_bright_pastel_set", 2, 2, swig_obj)) SWIG_fail;
17758   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17759   if (!SWIG_IsOK(res1)) {
17760     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_pastel_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17761   }
17762   arg1 = (struct annotation_args *)(argp1);
17763   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17764   if (!SWIG_IsOK(ecode2)) {
17765     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_bright_pastel_set" "', argument " "2"" of type '" "anbool""'");
17766   }
17767   arg2 = (anbool)(val2);
17768   if (arg1) (arg1)->bright_pastel = arg2;
17769   resultobj = SWIG_Py_Void();
17770   return resultobj;
17771 fail:
17772   return NULL;
17773 }
17774 
17775 
_wrap_annotation_args_bright_pastel_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17776 SWIGINTERN PyObject *_wrap_annotation_args_bright_pastel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777   PyObject *resultobj = 0;
17778   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17779   void *argp1 = 0 ;
17780   int res1 = 0 ;
17781   PyObject *swig_obj[1] ;
17782   anbool result;
17783 
17784   if (!args) SWIG_fail;
17785   swig_obj[0] = args;
17786   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17787   if (!SWIG_IsOK(res1)) {
17788     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_bright_pastel_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17789   }
17790   arg1 = (struct annotation_args *)(argp1);
17791   result = (anbool) ((arg1)->bright_pastel);
17792   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17793   return resultobj;
17794 fail:
17795   return NULL;
17796 }
17797 
17798 
_wrap_annotation_args_HD_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17799 SWIGINTERN PyObject *_wrap_annotation_args_HD_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17800   PyObject *resultobj = 0;
17801   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17802   anbool arg2 ;
17803   void *argp1 = 0 ;
17804   int res1 = 0 ;
17805   unsigned char val2 ;
17806   int ecode2 = 0 ;
17807   PyObject *swig_obj[2] ;
17808 
17809   if (!SWIG_Python_UnpackTuple(args, "annotation_args_HD_set", 2, 2, swig_obj)) SWIG_fail;
17810   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17811   if (!SWIG_IsOK(res1)) {
17812     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_HD_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17813   }
17814   arg1 = (struct annotation_args *)(argp1);
17815   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17816   if (!SWIG_IsOK(ecode2)) {
17817     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_HD_set" "', argument " "2"" of type '" "anbool""'");
17818   }
17819   arg2 = (anbool)(val2);
17820   if (arg1) (arg1)->HD = arg2;
17821   resultobj = SWIG_Py_Void();
17822   return resultobj;
17823 fail:
17824   return NULL;
17825 }
17826 
17827 
_wrap_annotation_args_HD_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17828 SWIGINTERN PyObject *_wrap_annotation_args_HD_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17829   PyObject *resultobj = 0;
17830   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17831   void *argp1 = 0 ;
17832   int res1 = 0 ;
17833   PyObject *swig_obj[1] ;
17834   anbool result;
17835 
17836   if (!args) SWIG_fail;
17837   swig_obj[0] = args;
17838   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17839   if (!SWIG_IsOK(res1)) {
17840     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_HD_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17841   }
17842   arg1 = (struct annotation_args *)(argp1);
17843   result = (anbool) ((arg1)->HD);
17844   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17845   return resultobj;
17846 fail:
17847   return NULL;
17848 }
17849 
17850 
_wrap_annotation_args_HD_labels_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17851 SWIGINTERN PyObject *_wrap_annotation_args_HD_labels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17852   PyObject *resultobj = 0;
17853   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17854   anbool arg2 ;
17855   void *argp1 = 0 ;
17856   int res1 = 0 ;
17857   unsigned char val2 ;
17858   int ecode2 = 0 ;
17859   PyObject *swig_obj[2] ;
17860 
17861   if (!SWIG_Python_UnpackTuple(args, "annotation_args_HD_labels_set", 2, 2, swig_obj)) SWIG_fail;
17862   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17863   if (!SWIG_IsOK(res1)) {
17864     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_HD_labels_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17865   }
17866   arg1 = (struct annotation_args *)(argp1);
17867   ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
17868   if (!SWIG_IsOK(ecode2)) {
17869     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_HD_labels_set" "', argument " "2"" of type '" "anbool""'");
17870   }
17871   arg2 = (anbool)(val2);
17872   if (arg1) (arg1)->HD_labels = arg2;
17873   resultobj = SWIG_Py_Void();
17874   return resultobj;
17875 fail:
17876   return NULL;
17877 }
17878 
17879 
_wrap_annotation_args_HD_labels_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17880 SWIGINTERN PyObject *_wrap_annotation_args_HD_labels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17881   PyObject *resultobj = 0;
17882   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17883   void *argp1 = 0 ;
17884   int res1 = 0 ;
17885   PyObject *swig_obj[1] ;
17886   anbool result;
17887 
17888   if (!args) SWIG_fail;
17889   swig_obj[0] = args;
17890   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17891   if (!SWIG_IsOK(res1)) {
17892     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_HD_labels_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17893   }
17894   arg1 = (struct annotation_args *)(argp1);
17895   result = (anbool) ((arg1)->HD_labels);
17896   resultobj = SWIG_From_unsigned_SS_char((unsigned char)(result));
17897   return resultobj;
17898 fail:
17899   return NULL;
17900 }
17901 
17902 
_wrap_annotation_args_ngc_fraction_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17903 SWIGINTERN PyObject *_wrap_annotation_args_ngc_fraction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17904   PyObject *resultobj = 0;
17905   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17906   float arg2 ;
17907   void *argp1 = 0 ;
17908   int res1 = 0 ;
17909   float val2 ;
17910   int ecode2 = 0 ;
17911   PyObject *swig_obj[2] ;
17912 
17913   if (!SWIG_Python_UnpackTuple(args, "annotation_args_ngc_fraction_set", 2, 2, swig_obj)) SWIG_fail;
17914   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17915   if (!SWIG_IsOK(res1)) {
17916     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_ngc_fraction_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17917   }
17918   arg1 = (struct annotation_args *)(argp1);
17919   ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
17920   if (!SWIG_IsOK(ecode2)) {
17921     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_ngc_fraction_set" "', argument " "2"" of type '" "float""'");
17922   }
17923   arg2 = (float)(val2);
17924   if (arg1) (arg1)->ngc_fraction = arg2;
17925   resultobj = SWIG_Py_Void();
17926   return resultobj;
17927 fail:
17928   return NULL;
17929 }
17930 
17931 
_wrap_annotation_args_ngc_fraction_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17932 SWIGINTERN PyObject *_wrap_annotation_args_ngc_fraction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17933   PyObject *resultobj = 0;
17934   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17935   void *argp1 = 0 ;
17936   int res1 = 0 ;
17937   PyObject *swig_obj[1] ;
17938   float result;
17939 
17940   if (!args) SWIG_fail;
17941   swig_obj[0] = args;
17942   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17943   if (!SWIG_IsOK(res1)) {
17944     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_ngc_fraction_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17945   }
17946   arg1 = (struct annotation_args *)(argp1);
17947   result = (float) ((arg1)->ngc_fraction);
17948   resultobj = SWIG_From_float((float)(result));
17949   return resultobj;
17950 fail:
17951   return NULL;
17952 }
17953 
17954 
_wrap_annotation_args_targets_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17955 SWIGINTERN PyObject *_wrap_annotation_args_targets_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17956   PyObject *resultobj = 0;
17957   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17958   bl *arg2 = (bl *) 0 ;
17959   void *argp1 = 0 ;
17960   int res1 = 0 ;
17961   void *argp2 = 0 ;
17962   int res2 = 0 ;
17963   PyObject *swig_obj[2] ;
17964 
17965   if (!SWIG_Python_UnpackTuple(args, "annotation_args_targets_set", 2, 2, swig_obj)) SWIG_fail;
17966   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17967   if (!SWIG_IsOK(res1)) {
17968     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_targets_set" "', argument " "1"" of type '" "struct annotation_args *""'");
17969   }
17970   arg1 = (struct annotation_args *)(argp1);
17971   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_bl, SWIG_POINTER_DISOWN |  0 );
17972   if (!SWIG_IsOK(res2)) {
17973     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "annotation_args_targets_set" "', argument " "2"" of type '" "bl *""'");
17974   }
17975   arg2 = (bl *)(argp2);
17976   if (arg1) (arg1)->targets = arg2;
17977   resultobj = SWIG_Py_Void();
17978   return resultobj;
17979 fail:
17980   return NULL;
17981 }
17982 
17983 
_wrap_annotation_args_targets_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)17984 SWIGINTERN PyObject *_wrap_annotation_args_targets_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17985   PyObject *resultobj = 0;
17986   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
17987   void *argp1 = 0 ;
17988   int res1 = 0 ;
17989   PyObject *swig_obj[1] ;
17990   bl *result = 0 ;
17991 
17992   if (!args) SWIG_fail;
17993   swig_obj[0] = args;
17994   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
17995   if (!SWIG_IsOK(res1)) {
17996     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_targets_get" "', argument " "1"" of type '" "struct annotation_args *""'");
17997   }
17998   arg1 = (struct annotation_args *)(argp1);
17999   result = (bl *) ((arg1)->targets);
18000   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bl, 0 |  0 );
18001   return resultobj;
18002 fail:
18003   return NULL;
18004 }
18005 
18006 
_wrap_annotation_args_hd_catalog_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18007 SWIGINTERN PyObject *_wrap_annotation_args_hd_catalog_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18008   PyObject *resultobj = 0;
18009   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18010   char *arg2 = (char *) 0 ;
18011   void *argp1 = 0 ;
18012   int res1 = 0 ;
18013   int res2 ;
18014   char *buf2 = 0 ;
18015   int alloc2 = 0 ;
18016   PyObject *swig_obj[2] ;
18017 
18018   if (!SWIG_Python_UnpackTuple(args, "annotation_args_hd_catalog_set", 2, 2, swig_obj)) SWIG_fail;
18019   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18020   if (!SWIG_IsOK(res1)) {
18021     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_hd_catalog_set" "', argument " "1"" of type '" "struct annotation_args *""'");
18022   }
18023   arg1 = (struct annotation_args *)(argp1);
18024   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18025   if (!SWIG_IsOK(res2)) {
18026     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "annotation_args_hd_catalog_set" "', argument " "2"" of type '" "char *""'");
18027   }
18028   arg2 = (char *)(buf2);
18029   if (arg1->hd_catalog) free((char*)arg1->hd_catalog);
18030   if (arg2) {
18031     size_t size = strlen((const char *)(arg2)) + 1;
18032     arg1->hd_catalog = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
18033   } else {
18034     arg1->hd_catalog = 0;
18035   }
18036   resultobj = SWIG_Py_Void();
18037   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18038   return resultobj;
18039 fail:
18040   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18041   return NULL;
18042 }
18043 
18044 
_wrap_annotation_args_hd_catalog_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18045 SWIGINTERN PyObject *_wrap_annotation_args_hd_catalog_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18046   PyObject *resultobj = 0;
18047   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18048   void *argp1 = 0 ;
18049   int res1 = 0 ;
18050   PyObject *swig_obj[1] ;
18051   char *result = 0 ;
18052 
18053   if (!args) SWIG_fail;
18054   swig_obj[0] = args;
18055   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18056   if (!SWIG_IsOK(res1)) {
18057     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_hd_catalog_get" "', argument " "1"" of type '" "struct annotation_args *""'");
18058   }
18059   arg1 = (struct annotation_args *)(argp1);
18060   result = (char *) ((arg1)->hd_catalog);
18061   resultobj = SWIG_FromCharPtr((const char *)result);
18062   return resultobj;
18063 fail:
18064   return NULL;
18065 }
18066 
18067 
_wrap_annotation_args_add_target(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18068 SWIGINTERN PyObject *_wrap_annotation_args_add_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18069   PyObject *resultobj = 0;
18070   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18071   double arg2 ;
18072   double arg3 ;
18073   char *arg4 = (char *) 0 ;
18074   void *argp1 = 0 ;
18075   int res1 = 0 ;
18076   double val2 ;
18077   int ecode2 = 0 ;
18078   double val3 ;
18079   int ecode3 = 0 ;
18080   int res4 ;
18081   char *buf4 = 0 ;
18082   int alloc4 = 0 ;
18083   PyObject *swig_obj[4] ;
18084 
18085   if (!SWIG_Python_UnpackTuple(args, "annotation_args_add_target", 4, 4, swig_obj)) SWIG_fail;
18086   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18087   if (!SWIG_IsOK(res1)) {
18088     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_add_target" "', argument " "1"" of type '" "struct annotation_args *""'");
18089   }
18090   arg1 = (struct annotation_args *)(argp1);
18091   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18092   if (!SWIG_IsOK(ecode2)) {
18093     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "annotation_args_add_target" "', argument " "2"" of type '" "double""'");
18094   }
18095   arg2 = (double)(val2);
18096   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18097   if (!SWIG_IsOK(ecode3)) {
18098     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "annotation_args_add_target" "', argument " "3"" of type '" "double""'");
18099   }
18100   arg3 = (double)(val3);
18101   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
18102   if (!SWIG_IsOK(res4)) {
18103     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "annotation_args_add_target" "', argument " "4"" of type '" "char const *""'");
18104   }
18105   arg4 = (char *)(buf4);
18106   annotation_args_add_target(arg1,arg2,arg3,(char const *)arg4);
18107   resultobj = SWIG_Py_Void();
18108   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
18109   return resultobj;
18110 fail:
18111   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
18112   return NULL;
18113 }
18114 
18115 
_wrap_annotation_args_add_named_target(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18116 SWIGINTERN PyObject *_wrap_annotation_args_add_named_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18117   PyObject *resultobj = 0;
18118   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18119   char *arg2 = (char *) 0 ;
18120   void *argp1 = 0 ;
18121   int res1 = 0 ;
18122   int res2 ;
18123   char *buf2 = 0 ;
18124   int alloc2 = 0 ;
18125   PyObject *swig_obj[2] ;
18126 
18127   if (!SWIG_Python_UnpackTuple(args, "annotation_args_add_named_target", 2, 2, swig_obj)) SWIG_fail;
18128   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18129   if (!SWIG_IsOK(res1)) {
18130     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_add_named_target" "', argument " "1"" of type '" "struct annotation_args *""'");
18131   }
18132   arg1 = (struct annotation_args *)(argp1);
18133   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18134   if (!SWIG_IsOK(res2)) {
18135     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "annotation_args_add_named_target" "', argument " "2"" of type '" "char const *""'");
18136   }
18137   arg2 = (char *)(buf2);
18138   annotation_args_add_named_target(arg1,(char const *)arg2);
18139   resultobj = SWIG_Py_Void();
18140   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18141   return resultobj;
18142 fail:
18143   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18144   return NULL;
18145 }
18146 
18147 
_wrap_annotation_args_clear_targets(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18148 SWIGINTERN PyObject *_wrap_annotation_args_clear_targets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18149   PyObject *resultobj = 0;
18150   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18151   void *argp1 = 0 ;
18152   int res1 = 0 ;
18153   PyObject *swig_obj[1] ;
18154 
18155   if (!args) SWIG_fail;
18156   swig_obj[0] = args;
18157   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18158   if (!SWIG_IsOK(res1)) {
18159     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "annotation_args_clear_targets" "', argument " "1"" of type '" "struct annotation_args *""'");
18160   }
18161   arg1 = (struct annotation_args *)(argp1);
18162   annotation_args_clear_targets(arg1);
18163   resultobj = SWIG_Py_Void();
18164   return resultobj;
18165 fail:
18166   return NULL;
18167 }
18168 
18169 
_wrap_new_annotation_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18170 SWIGINTERN PyObject *_wrap_new_annotation_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18171   PyObject *resultobj = 0;
18172   struct annotation_args *result = 0 ;
18173 
18174   if (!SWIG_Python_UnpackTuple(args, "new_annotation_args", 0, 0, 0)) SWIG_fail;
18175   result = (struct annotation_args *)calloc(1, sizeof(struct annotation_args));
18176   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_annotation_args, SWIG_POINTER_NEW |  0 );
18177   return resultobj;
18178 fail:
18179   return NULL;
18180 }
18181 
18182 
_wrap_delete_annotation_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18183 SWIGINTERN PyObject *_wrap_delete_annotation_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18184   PyObject *resultobj = 0;
18185   struct annotation_args *arg1 = (struct annotation_args *) 0 ;
18186   void *argp1 = 0 ;
18187   int res1 = 0 ;
18188   PyObject *swig_obj[1] ;
18189 
18190   if (!args) SWIG_fail;
18191   swig_obj[0] = args;
18192   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, SWIG_POINTER_DISOWN |  0 );
18193   if (!SWIG_IsOK(res1)) {
18194     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_annotation_args" "', argument " "1"" of type '" "struct annotation_args *""'");
18195   }
18196   arg1 = (struct annotation_args *)(argp1);
18197   free((char *) arg1);
18198   resultobj = SWIG_Py_Void();
18199   return resultobj;
18200 fail:
18201   return NULL;
18202 }
18203 
18204 
annotation_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18205 SWIGINTERN PyObject *annotation_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18206   PyObject *obj;
18207   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
18208   SWIG_TypeNewClientData(SWIGTYPE_p_annotation_args, SWIG_NewClientData(obj));
18209   return SWIG_Py_Void();
18210 }
18211 
annotation_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18212 SWIGINTERN PyObject *annotation_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18213   return SWIG_Python_InitShadowInstance(args);
18214 }
18215 
_wrap_plot_annotations_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18216 SWIGINTERN PyObject *_wrap_plot_annotations_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18217   PyObject *resultobj = 0;
18218   plot_args_t *arg1 = (plot_args_t *) 0 ;
18219   void *argp1 = 0 ;
18220   int res1 = 0 ;
18221   PyObject *swig_obj[1] ;
18222   void *result = 0 ;
18223 
18224   if (!args) SWIG_fail;
18225   swig_obj[0] = args;
18226   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18227   if (!SWIG_IsOK(res1)) {
18228     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_init" "', argument " "1"" of type '" "plot_args_t *""'");
18229   }
18230   arg1 = (plot_args_t *)(argp1);
18231   result = (void *)plot_annotations_init(arg1);
18232   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
18233   return resultobj;
18234 fail:
18235   return NULL;
18236 }
18237 
18238 
_wrap_plot_annotations_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18239 SWIGINTERN PyObject *_wrap_plot_annotations_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18240   PyObject *resultobj = 0;
18241   plot_args_t *arg1 = (plot_args_t *) 0 ;
18242   void *argp1 = 0 ;
18243   int res1 = 0 ;
18244   PyObject *swig_obj[1] ;
18245   plotann_t *result = 0 ;
18246 
18247   if (!args) SWIG_fail;
18248   swig_obj[0] = args;
18249   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18250   if (!SWIG_IsOK(res1)) {
18251     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_get" "', argument " "1"" of type '" "plot_args_t *""'");
18252   }
18253   arg1 = (plot_args_t *)(argp1);
18254   result = (plotann_t *)plot_annotations_get(arg1);
18255   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_annotation_args, 0 |  0 );
18256   return resultobj;
18257 fail:
18258   return NULL;
18259 }
18260 
18261 
_wrap_plot_annotations_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18262 SWIGINTERN PyObject *_wrap_plot_annotations_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18263   PyObject *resultobj = 0;
18264   char *arg1 = (char *) 0 ;
18265   char *arg2 = (char *) 0 ;
18266   plot_args_t *arg3 = (plot_args_t *) 0 ;
18267   void *arg4 = (void *) 0 ;
18268   int res1 ;
18269   char *buf1 = 0 ;
18270   int alloc1 = 0 ;
18271   int res2 ;
18272   char *buf2 = 0 ;
18273   int alloc2 = 0 ;
18274   void *argp3 = 0 ;
18275   int res3 = 0 ;
18276   int res4 ;
18277   PyObject *swig_obj[4] ;
18278   int result;
18279 
18280   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_command", 4, 4, swig_obj)) SWIG_fail;
18281   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18282   if (!SWIG_IsOK(res1)) {
18283     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_command" "', argument " "1"" of type '" "char const *""'");
18284   }
18285   arg1 = (char *)(buf1);
18286   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18287   if (!SWIG_IsOK(res2)) {
18288     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_annotations_command" "', argument " "2"" of type '" "char const *""'");
18289   }
18290   arg2 = (char *)(buf2);
18291   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
18292   if (!SWIG_IsOK(res3)) {
18293     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_annotations_command" "', argument " "3"" of type '" "plot_args_t *""'");
18294   }
18295   arg3 = (plot_args_t *)(argp3);
18296   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
18297   if (!SWIG_IsOK(res4)) {
18298     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_annotations_command" "', argument " "4"" of type '" "void *""'");
18299   }
18300   result = (int)plot_annotations_command((char const *)arg1,(char const *)arg2,arg3,arg4);
18301   resultobj = SWIG_From_int((int)(result));
18302   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18303   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18304   return resultobj;
18305 fail:
18306   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18307   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18308   return NULL;
18309 }
18310 
18311 
_wrap_plot_annotations_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18312 SWIGINTERN PyObject *_wrap_plot_annotations_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18313   PyObject *resultobj = 0;
18314   char *arg1 = (char *) 0 ;
18315   cairo_t *arg2 = (cairo_t *) 0 ;
18316   plot_args_t *arg3 = (plot_args_t *) 0 ;
18317   void *arg4 = (void *) 0 ;
18318   int res1 ;
18319   char *buf1 = 0 ;
18320   int alloc1 = 0 ;
18321   void *argp2 = 0 ;
18322   int res2 = 0 ;
18323   void *argp3 = 0 ;
18324   int res3 = 0 ;
18325   int res4 ;
18326   PyObject *swig_obj[4] ;
18327   int result;
18328 
18329   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_plot", 4, 4, swig_obj)) SWIG_fail;
18330   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18331   if (!SWIG_IsOK(res1)) {
18332     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_plot" "', argument " "1"" of type '" "char const *""'");
18333   }
18334   arg1 = (char *)(buf1);
18335   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
18336   if (!SWIG_IsOK(res2)) {
18337     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_annotations_plot" "', argument " "2"" of type '" "cairo_t *""'");
18338   }
18339   arg2 = (cairo_t *)(argp2);
18340   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
18341   if (!SWIG_IsOK(res3)) {
18342     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_annotations_plot" "', argument " "3"" of type '" "plot_args_t *""'");
18343   }
18344   arg3 = (plot_args_t *)(argp3);
18345   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
18346   if (!SWIG_IsOK(res4)) {
18347     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_annotations_plot" "', argument " "4"" of type '" "void *""'");
18348   }
18349   result = (int)plot_annotations_plot((char const *)arg1,arg2,arg3,arg4);
18350   resultobj = SWIG_From_int((int)(result));
18351   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18352   return resultobj;
18353 fail:
18354   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18355   return NULL;
18356 }
18357 
18358 
_wrap_plot_annotations_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18359 SWIGINTERN PyObject *_wrap_plot_annotations_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18360   PyObject *resultobj = 0;
18361   plot_args_t *arg1 = (plot_args_t *) 0 ;
18362   void *arg2 = (void *) 0 ;
18363   void *argp1 = 0 ;
18364   int res1 = 0 ;
18365   int res2 ;
18366   PyObject *swig_obj[2] ;
18367 
18368   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_free", 2, 2, swig_obj)) SWIG_fail;
18369   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18370   if (!SWIG_IsOK(res1)) {
18371     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_free" "', argument " "1"" of type '" "plot_args_t *""'");
18372   }
18373   arg1 = (plot_args_t *)(argp1);
18374   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
18375   if (!SWIG_IsOK(res2)) {
18376     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_annotations_free" "', argument " "2"" of type '" "void *""'");
18377   }
18378   plot_annotations_free(arg1,arg2);
18379   resultobj = SWIG_Py_Void();
18380   return resultobj;
18381 fail:
18382   return NULL;
18383 }
18384 
18385 
_wrap_plot_annotations_set_hd_catalog(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18386 SWIGINTERN PyObject *_wrap_plot_annotations_set_hd_catalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18387   PyObject *resultobj = 0;
18388   plotann_t *arg1 = (plotann_t *) 0 ;
18389   char *arg2 = (char *) 0 ;
18390   void *argp1 = 0 ;
18391   int res1 = 0 ;
18392   int res2 ;
18393   char *buf2 = 0 ;
18394   int alloc2 = 0 ;
18395   PyObject *swig_obj[2] ;
18396   int result;
18397 
18398   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_set_hd_catalog", 2, 2, swig_obj)) SWIG_fail;
18399   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18400   if (!SWIG_IsOK(res1)) {
18401     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_set_hd_catalog" "', argument " "1"" of type '" "plotann_t *""'");
18402   }
18403   arg1 = (plotann_t *)(argp1);
18404   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18405   if (!SWIG_IsOK(res2)) {
18406     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_annotations_set_hd_catalog" "', argument " "2"" of type '" "char const *""'");
18407   }
18408   arg2 = (char *)(buf2);
18409   result = (int)plot_annotations_set_hd_catalog(arg1,(char const *)arg2);
18410   resultobj = SWIG_From_int((int)(result));
18411   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18412   return resultobj;
18413 fail:
18414   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18415   return NULL;
18416 }
18417 
18418 
_wrap_plot_annotations_add_named_target(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18419 SWIGINTERN PyObject *_wrap_plot_annotations_add_named_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18420   PyObject *resultobj = 0;
18421   plotann_t *arg1 = (plotann_t *) 0 ;
18422   char *arg2 = (char *) 0 ;
18423   void *argp1 = 0 ;
18424   int res1 = 0 ;
18425   int res2 ;
18426   char *buf2 = 0 ;
18427   int alloc2 = 0 ;
18428   PyObject *swig_obj[2] ;
18429   int result;
18430 
18431   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_add_named_target", 2, 2, swig_obj)) SWIG_fail;
18432   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18433   if (!SWIG_IsOK(res1)) {
18434     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_add_named_target" "', argument " "1"" of type '" "plotann_t *""'");
18435   }
18436   arg1 = (plotann_t *)(argp1);
18437   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18438   if (!SWIG_IsOK(res2)) {
18439     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_annotations_add_named_target" "', argument " "2"" of type '" "char const *""'");
18440   }
18441   arg2 = (char *)(buf2);
18442   result = (int)plot_annotations_add_named_target(arg1,(char const *)arg2);
18443   resultobj = SWIG_From_int((int)(result));
18444   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18445   return resultobj;
18446 fail:
18447   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18448   return NULL;
18449 }
18450 
18451 
_wrap_plot_annotations_add_target(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18452 SWIGINTERN PyObject *_wrap_plot_annotations_add_target(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18453   PyObject *resultobj = 0;
18454   plotann_t *arg1 = (plotann_t *) 0 ;
18455   double arg2 ;
18456   double arg3 ;
18457   char *arg4 = (char *) 0 ;
18458   void *argp1 = 0 ;
18459   int res1 = 0 ;
18460   double val2 ;
18461   int ecode2 = 0 ;
18462   double val3 ;
18463   int ecode3 = 0 ;
18464   int res4 ;
18465   char *buf4 = 0 ;
18466   int alloc4 = 0 ;
18467   PyObject *swig_obj[4] ;
18468 
18469   if (!SWIG_Python_UnpackTuple(args, "plot_annotations_add_target", 4, 4, swig_obj)) SWIG_fail;
18470   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18471   if (!SWIG_IsOK(res1)) {
18472     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_add_target" "', argument " "1"" of type '" "plotann_t *""'");
18473   }
18474   arg1 = (plotann_t *)(argp1);
18475   ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
18476   if (!SWIG_IsOK(ecode2)) {
18477     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot_annotations_add_target" "', argument " "2"" of type '" "double""'");
18478   }
18479   arg2 = (double)(val2);
18480   ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
18481   if (!SWIG_IsOK(ecode3)) {
18482     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot_annotations_add_target" "', argument " "3"" of type '" "double""'");
18483   }
18484   arg3 = (double)(val3);
18485   res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4);
18486   if (!SWIG_IsOK(res4)) {
18487     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_annotations_add_target" "', argument " "4"" of type '" "char const *""'");
18488   }
18489   arg4 = (char *)(buf4);
18490   plot_annotations_add_target(arg1,arg2,arg3,(char const *)arg4);
18491   resultobj = SWIG_Py_Void();
18492   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
18493   return resultobj;
18494 fail:
18495   if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
18496   return NULL;
18497 }
18498 
18499 
_wrap_plot_annotations_clear_targets(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18500 SWIGINTERN PyObject *_wrap_plot_annotations_clear_targets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18501   PyObject *resultobj = 0;
18502   plotann_t *arg1 = (plotann_t *) 0 ;
18503   void *argp1 = 0 ;
18504   int res1 = 0 ;
18505   PyObject *swig_obj[1] ;
18506 
18507   if (!args) SWIG_fail;
18508   swig_obj[0] = args;
18509   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_annotation_args, 0 |  0 );
18510   if (!SWIG_IsOK(res1)) {
18511     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_clear_targets" "', argument " "1"" of type '" "plotann_t *""'");
18512   }
18513   arg1 = (plotann_t *)(argp1);
18514   plot_annotations_clear_targets(arg1);
18515   resultobj = SWIG_Py_Void();
18516   return resultobj;
18517 fail:
18518   return NULL;
18519 }
18520 
18521 
_wrap_plot_annotations_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18522 SWIGINTERN PyObject *_wrap_plot_annotations_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18523   PyObject *resultobj = 0;
18524   plotter_t *arg1 = (plotter_t *) 0 ;
18525   void *argp1 = 0 ;
18526   int res1 = 0 ;
18527   PyObject *swig_obj[1] ;
18528 
18529   if (!args) SWIG_fail;
18530   swig_obj[0] = args;
18531   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
18532   if (!SWIG_IsOK(res1)) {
18533     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_annotations_describe" "', argument " "1"" of type '" "plotter_t *""'");
18534   }
18535   arg1 = (plotter_t *)(argp1);
18536   plot_annotations_describe(arg1);
18537   resultobj = SWIG_Py_Void();
18538   return resultobj;
18539 fail:
18540   return NULL;
18541 }
18542 
18543 
_wrap_plothealpix_args_nside_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18544 SWIGINTERN PyObject *_wrap_plothealpix_args_nside_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18545   PyObject *resultobj = 0;
18546   struct plothealpix_args *arg1 = (struct plothealpix_args *) 0 ;
18547   int arg2 ;
18548   void *argp1 = 0 ;
18549   int res1 = 0 ;
18550   int val2 ;
18551   int ecode2 = 0 ;
18552   PyObject *swig_obj[2] ;
18553 
18554   if (!SWIG_Python_UnpackTuple(args, "plothealpix_args_nside_set", 2, 2, swig_obj)) SWIG_fail;
18555   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plothealpix_args, 0 |  0 );
18556   if (!SWIG_IsOK(res1)) {
18557     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plothealpix_args_nside_set" "', argument " "1"" of type '" "struct plothealpix_args *""'");
18558   }
18559   arg1 = (struct plothealpix_args *)(argp1);
18560   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
18561   if (!SWIG_IsOK(ecode2)) {
18562     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plothealpix_args_nside_set" "', argument " "2"" of type '" "int""'");
18563   }
18564   arg2 = (int)(val2);
18565   if (arg1) (arg1)->nside = arg2;
18566   resultobj = SWIG_Py_Void();
18567   return resultobj;
18568 fail:
18569   return NULL;
18570 }
18571 
18572 
_wrap_plothealpix_args_nside_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18573 SWIGINTERN PyObject *_wrap_plothealpix_args_nside_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18574   PyObject *resultobj = 0;
18575   struct plothealpix_args *arg1 = (struct plothealpix_args *) 0 ;
18576   void *argp1 = 0 ;
18577   int res1 = 0 ;
18578   PyObject *swig_obj[1] ;
18579   int result;
18580 
18581   if (!args) SWIG_fail;
18582   swig_obj[0] = args;
18583   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plothealpix_args, 0 |  0 );
18584   if (!SWIG_IsOK(res1)) {
18585     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plothealpix_args_nside_get" "', argument " "1"" of type '" "struct plothealpix_args *""'");
18586   }
18587   arg1 = (struct plothealpix_args *)(argp1);
18588   result = (int) ((arg1)->nside);
18589   resultobj = SWIG_From_int((int)(result));
18590   return resultobj;
18591 fail:
18592   return NULL;
18593 }
18594 
18595 
_wrap_plothealpix_args_stepsize_set(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18596 SWIGINTERN PyObject *_wrap_plothealpix_args_stepsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18597   PyObject *resultobj = 0;
18598   struct plothealpix_args *arg1 = (struct plothealpix_args *) 0 ;
18599   int arg2 ;
18600   void *argp1 = 0 ;
18601   int res1 = 0 ;
18602   int val2 ;
18603   int ecode2 = 0 ;
18604   PyObject *swig_obj[2] ;
18605 
18606   if (!SWIG_Python_UnpackTuple(args, "plothealpix_args_stepsize_set", 2, 2, swig_obj)) SWIG_fail;
18607   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plothealpix_args, 0 |  0 );
18608   if (!SWIG_IsOK(res1)) {
18609     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plothealpix_args_stepsize_set" "', argument " "1"" of type '" "struct plothealpix_args *""'");
18610   }
18611   arg1 = (struct plothealpix_args *)(argp1);
18612   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
18613   if (!SWIG_IsOK(ecode2)) {
18614     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plothealpix_args_stepsize_set" "', argument " "2"" of type '" "int""'");
18615   }
18616   arg2 = (int)(val2);
18617   if (arg1) (arg1)->stepsize = arg2;
18618   resultobj = SWIG_Py_Void();
18619   return resultobj;
18620 fail:
18621   return NULL;
18622 }
18623 
18624 
_wrap_plothealpix_args_stepsize_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18625 SWIGINTERN PyObject *_wrap_plothealpix_args_stepsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18626   PyObject *resultobj = 0;
18627   struct plothealpix_args *arg1 = (struct plothealpix_args *) 0 ;
18628   void *argp1 = 0 ;
18629   int res1 = 0 ;
18630   PyObject *swig_obj[1] ;
18631   int result;
18632 
18633   if (!args) SWIG_fail;
18634   swig_obj[0] = args;
18635   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plothealpix_args, 0 |  0 );
18636   if (!SWIG_IsOK(res1)) {
18637     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plothealpix_args_stepsize_get" "', argument " "1"" of type '" "struct plothealpix_args *""'");
18638   }
18639   arg1 = (struct plothealpix_args *)(argp1);
18640   result = (int) ((arg1)->stepsize);
18641   resultobj = SWIG_From_int((int)(result));
18642   return resultobj;
18643 fail:
18644   return NULL;
18645 }
18646 
18647 
_wrap_new_plothealpix_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18648 SWIGINTERN PyObject *_wrap_new_plothealpix_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18649   PyObject *resultobj = 0;
18650   struct plothealpix_args *result = 0 ;
18651 
18652   if (!SWIG_Python_UnpackTuple(args, "new_plothealpix_args", 0, 0, 0)) SWIG_fail;
18653   result = (struct plothealpix_args *)calloc(1, sizeof(struct plothealpix_args));
18654   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plothealpix_args, SWIG_POINTER_NEW |  0 );
18655   return resultobj;
18656 fail:
18657   return NULL;
18658 }
18659 
18660 
_wrap_delete_plothealpix_args(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18661 SWIGINTERN PyObject *_wrap_delete_plothealpix_args(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18662   PyObject *resultobj = 0;
18663   struct plothealpix_args *arg1 = (struct plothealpix_args *) 0 ;
18664   void *argp1 = 0 ;
18665   int res1 = 0 ;
18666   PyObject *swig_obj[1] ;
18667 
18668   if (!args) SWIG_fail;
18669   swig_obj[0] = args;
18670   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plothealpix_args, SWIG_POINTER_DISOWN |  0 );
18671   if (!SWIG_IsOK(res1)) {
18672     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_plothealpix_args" "', argument " "1"" of type '" "struct plothealpix_args *""'");
18673   }
18674   arg1 = (struct plothealpix_args *)(argp1);
18675   free((char *) arg1);
18676   resultobj = SWIG_Py_Void();
18677   return resultobj;
18678 fail:
18679   return NULL;
18680 }
18681 
18682 
plothealpix_args_swigregister(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18683 SWIGINTERN PyObject *plothealpix_args_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18684   PyObject *obj;
18685   if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
18686   SWIG_TypeNewClientData(SWIGTYPE_p_plothealpix_args, SWIG_NewClientData(obj));
18687   return SWIG_Py_Void();
18688 }
18689 
plothealpix_args_swiginit(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18690 SWIGINTERN PyObject *plothealpix_args_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18691   return SWIG_Python_InitShadowInstance(args);
18692 }
18693 
_wrap_plot_healpix_get(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18694 SWIGINTERN PyObject *_wrap_plot_healpix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18695   PyObject *resultobj = 0;
18696   plot_args_t *arg1 = (plot_args_t *) 0 ;
18697   void *argp1 = 0 ;
18698   int res1 = 0 ;
18699   PyObject *swig_obj[1] ;
18700   plothealpix_t *result = 0 ;
18701 
18702   if (!args) SWIG_fail;
18703   swig_obj[0] = args;
18704   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18705   if (!SWIG_IsOK(res1)) {
18706     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_get" "', argument " "1"" of type '" "plot_args_t *""'");
18707   }
18708   arg1 = (plot_args_t *)(argp1);
18709   result = (plothealpix_t *)plot_healpix_get(arg1);
18710   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_plothealpix_args, 0 |  0 );
18711   return resultobj;
18712 fail:
18713   return NULL;
18714 }
18715 
18716 
_wrap_plot_healpix_init(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18717 SWIGINTERN PyObject *_wrap_plot_healpix_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18718   PyObject *resultobj = 0;
18719   plot_args_t *arg1 = (plot_args_t *) 0 ;
18720   void *argp1 = 0 ;
18721   int res1 = 0 ;
18722   PyObject *swig_obj[1] ;
18723   void *result = 0 ;
18724 
18725   if (!args) SWIG_fail;
18726   swig_obj[0] = args;
18727   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18728   if (!SWIG_IsOK(res1)) {
18729     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_init" "', argument " "1"" of type '" "plot_args_t *""'");
18730   }
18731   arg1 = (plot_args_t *)(argp1);
18732   result = (void *)plot_healpix_init(arg1);
18733   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
18734   return resultobj;
18735 fail:
18736   return NULL;
18737 }
18738 
18739 
_wrap_plot_healpix_command(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18740 SWIGINTERN PyObject *_wrap_plot_healpix_command(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18741   PyObject *resultobj = 0;
18742   char *arg1 = (char *) 0 ;
18743   char *arg2 = (char *) 0 ;
18744   plot_args_t *arg3 = (plot_args_t *) 0 ;
18745   void *arg4 = (void *) 0 ;
18746   int res1 ;
18747   char *buf1 = 0 ;
18748   int alloc1 = 0 ;
18749   int res2 ;
18750   char *buf2 = 0 ;
18751   int alloc2 = 0 ;
18752   void *argp3 = 0 ;
18753   int res3 = 0 ;
18754   int res4 ;
18755   PyObject *swig_obj[4] ;
18756   int result;
18757 
18758   if (!SWIG_Python_UnpackTuple(args, "plot_healpix_command", 4, 4, swig_obj)) SWIG_fail;
18759   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18760   if (!SWIG_IsOK(res1)) {
18761     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_command" "', argument " "1"" of type '" "char const *""'");
18762   }
18763   arg1 = (char *)(buf1);
18764   res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
18765   if (!SWIG_IsOK(res2)) {
18766     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_healpix_command" "', argument " "2"" of type '" "char const *""'");
18767   }
18768   arg2 = (char *)(buf2);
18769   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
18770   if (!SWIG_IsOK(res3)) {
18771     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_healpix_command" "', argument " "3"" of type '" "plot_args_t *""'");
18772   }
18773   arg3 = (plot_args_t *)(argp3);
18774   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
18775   if (!SWIG_IsOK(res4)) {
18776     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_healpix_command" "', argument " "4"" of type '" "void *""'");
18777   }
18778   result = (int)plot_healpix_command((char const *)arg1,(char const *)arg2,arg3,arg4);
18779   resultobj = SWIG_From_int((int)(result));
18780   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18781   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18782   return resultobj;
18783 fail:
18784   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18785   if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
18786   return NULL;
18787 }
18788 
18789 
_wrap_plot_healpix_plot(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18790 SWIGINTERN PyObject *_wrap_plot_healpix_plot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18791   PyObject *resultobj = 0;
18792   char *arg1 = (char *) 0 ;
18793   cairo_t *arg2 = (cairo_t *) 0 ;
18794   plot_args_t *arg3 = (plot_args_t *) 0 ;
18795   void *arg4 = (void *) 0 ;
18796   int res1 ;
18797   char *buf1 = 0 ;
18798   int alloc1 = 0 ;
18799   void *argp2 = 0 ;
18800   int res2 = 0 ;
18801   void *argp3 = 0 ;
18802   int res3 = 0 ;
18803   int res4 ;
18804   PyObject *swig_obj[4] ;
18805   int result;
18806 
18807   if (!SWIG_Python_UnpackTuple(args, "plot_healpix_plot", 4, 4, swig_obj)) SWIG_fail;
18808   res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1);
18809   if (!SWIG_IsOK(res1)) {
18810     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_plot" "', argument " "1"" of type '" "char const *""'");
18811   }
18812   arg1 = (char *)(buf1);
18813   res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cairo_t, 0 |  0 );
18814   if (!SWIG_IsOK(res2)) {
18815     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_healpix_plot" "', argument " "2"" of type '" "cairo_t *""'");
18816   }
18817   arg2 = (cairo_t *)(argp2);
18818   res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_plot_args, 0 |  0 );
18819   if (!SWIG_IsOK(res3)) {
18820     SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "plot_healpix_plot" "', argument " "3"" of type '" "plot_args_t *""'");
18821   }
18822   arg3 = (plot_args_t *)(argp3);
18823   res4 = SWIG_ConvertPtr(swig_obj[3],SWIG_as_voidptrptr(&arg4), 0, 0);
18824   if (!SWIG_IsOK(res4)) {
18825     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "plot_healpix_plot" "', argument " "4"" of type '" "void *""'");
18826   }
18827   result = (int)plot_healpix_plot((char const *)arg1,arg2,arg3,arg4);
18828   resultobj = SWIG_From_int((int)(result));
18829   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18830   return resultobj;
18831 fail:
18832   if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
18833   return NULL;
18834 }
18835 
18836 
_wrap_plot_healpix_free(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18837 SWIGINTERN PyObject *_wrap_plot_healpix_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18838   PyObject *resultobj = 0;
18839   plot_args_t *arg1 = (plot_args_t *) 0 ;
18840   void *arg2 = (void *) 0 ;
18841   void *argp1 = 0 ;
18842   int res1 = 0 ;
18843   int res2 ;
18844   PyObject *swig_obj[2] ;
18845 
18846   if (!SWIG_Python_UnpackTuple(args, "plot_healpix_free", 2, 2, swig_obj)) SWIG_fail;
18847   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plot_args, 0 |  0 );
18848   if (!SWIG_IsOK(res1)) {
18849     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_free" "', argument " "1"" of type '" "plot_args_t *""'");
18850   }
18851   arg1 = (plot_args_t *)(argp1);
18852   res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
18853   if (!SWIG_IsOK(res2)) {
18854     SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "plot_healpix_free" "', argument " "2"" of type '" "void *""'");
18855   }
18856   plot_healpix_free(arg1,arg2);
18857   resultobj = SWIG_Py_Void();
18858   return resultobj;
18859 fail:
18860   return NULL;
18861 }
18862 
18863 
_wrap_plot_healpix_describe(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18864 SWIGINTERN PyObject *_wrap_plot_healpix_describe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18865   PyObject *resultobj = 0;
18866   plotter_t *arg1 = (plotter_t *) 0 ;
18867   void *argp1 = 0 ;
18868   int res1 = 0 ;
18869   PyObject *swig_obj[1] ;
18870 
18871   if (!args) SWIG_fail;
18872   swig_obj[0] = args;
18873   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_plotter, 0 |  0 );
18874   if (!SWIG_IsOK(res1)) {
18875     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot_healpix_describe" "', argument " "1"" of type '" "plotter_t *""'");
18876   }
18877   arg1 = (plotter_t *)(argp1);
18878   plot_healpix_describe(arg1);
18879   resultobj = SWIG_Py_Void();
18880   return resultobj;
18881 fail:
18882   return NULL;
18883 }
18884 
18885 
_wrap_image_debug(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18886 SWIGINTERN PyObject *_wrap_image_debug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18887   PyObject *resultobj = 0;
18888   float *arg1 = (float *) 0 ;
18889   int arg2 ;
18890   int arg3 ;
18891   void *argp1 = 0 ;
18892   int res1 = 0 ;
18893   int val2 ;
18894   int ecode2 = 0 ;
18895   int val3 ;
18896   int ecode3 = 0 ;
18897   PyObject *swig_obj[3] ;
18898 
18899   if (!SWIG_Python_UnpackTuple(args, "image_debug", 3, 3, swig_obj)) SWIG_fail;
18900   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
18901   if (!SWIG_IsOK(res1)) {
18902     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "image_debug" "', argument " "1"" of type '" "float *""'");
18903   }
18904   arg1 = (float *)(argp1);
18905   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
18906   if (!SWIG_IsOK(ecode2)) {
18907     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "image_debug" "', argument " "2"" of type '" "int""'");
18908   }
18909   arg2 = (int)(val2);
18910   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
18911   if (!SWIG_IsOK(ecode3)) {
18912     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "image_debug" "', argument " "3"" of type '" "int""'");
18913   }
18914   arg3 = (int)(val3);
18915   image_debug(arg1,arg2,arg3);
18916   resultobj = SWIG_Py_Void();
18917   return resultobj;
18918 fail:
18919   return NULL;
18920 }
18921 
18922 
_wrap_image_add(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18923 SWIGINTERN PyObject *_wrap_image_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18924   PyObject *resultobj = 0;
18925   float *arg1 = (float *) 0 ;
18926   int arg2 ;
18927   int arg3 ;
18928   float arg4 ;
18929   void *argp1 = 0 ;
18930   int res1 = 0 ;
18931   int val2 ;
18932   int ecode2 = 0 ;
18933   int val3 ;
18934   int ecode3 = 0 ;
18935   float val4 ;
18936   int ecode4 = 0 ;
18937   PyObject *swig_obj[4] ;
18938 
18939   if (!SWIG_Python_UnpackTuple(args, "image_add", 4, 4, swig_obj)) SWIG_fail;
18940   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
18941   if (!SWIG_IsOK(res1)) {
18942     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "image_add" "', argument " "1"" of type '" "float *""'");
18943   }
18944   arg1 = (float *)(argp1);
18945   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
18946   if (!SWIG_IsOK(ecode2)) {
18947     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "image_add" "', argument " "2"" of type '" "int""'");
18948   }
18949   arg2 = (int)(val2);
18950   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
18951   if (!SWIG_IsOK(ecode3)) {
18952     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "image_add" "', argument " "3"" of type '" "int""'");
18953   }
18954   arg3 = (int)(val3);
18955   ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
18956   if (!SWIG_IsOK(ecode4)) {
18957     SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "image_add" "', argument " "4"" of type '" "float""'");
18958   }
18959   arg4 = (float)(val4);
18960   image_add(arg1,arg2,arg3,arg4);
18961   resultobj = SWIG_Py_Void();
18962   return resultobj;
18963 fail:
18964   return NULL;
18965 }
18966 
18967 
_wrap_image_weighted_smooth(PyObject * SWIGUNUSEDPARM (self),PyObject * args)18968 SWIGINTERN PyObject *_wrap_image_weighted_smooth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18969   PyObject *resultobj = 0;
18970   float *arg1 = (float *) 0 ;
18971   int arg2 ;
18972   int arg3 ;
18973   float *arg4 = (float *) 0 ;
18974   float arg5 ;
18975   void *argp1 = 0 ;
18976   int res1 = 0 ;
18977   int val2 ;
18978   int ecode2 = 0 ;
18979   int val3 ;
18980   int ecode3 = 0 ;
18981   void *argp4 = 0 ;
18982   int res4 = 0 ;
18983   float val5 ;
18984   int ecode5 = 0 ;
18985   PyObject *swig_obj[5] ;
18986 
18987   if (!SWIG_Python_UnpackTuple(args, "image_weighted_smooth", 5, 5, swig_obj)) SWIG_fail;
18988   res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_float, 0 |  0 );
18989   if (!SWIG_IsOK(res1)) {
18990     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "image_weighted_smooth" "', argument " "1"" of type '" "float *""'");
18991   }
18992   arg1 = (float *)(argp1);
18993   ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
18994   if (!SWIG_IsOK(ecode2)) {
18995     SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "image_weighted_smooth" "', argument " "2"" of type '" "int""'");
18996   }
18997   arg2 = (int)(val2);
18998   ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
18999   if (!SWIG_IsOK(ecode3)) {
19000     SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "image_weighted_smooth" "', argument " "3"" of type '" "int""'");
19001   }
19002   arg3 = (int)(val3);
19003   res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_float, 0 |  0 );
19004   if (!SWIG_IsOK(res4)) {
19005     SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "image_weighted_smooth" "', argument " "4"" of type '" "float const *""'");
19006   }
19007   arg4 = (float *)(argp4);
19008   ecode5 = SWIG_AsVal_float(swig_obj[4], &val5);
19009   if (!SWIG_IsOK(ecode5)) {
19010     SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "image_weighted_smooth" "', argument " "5"" of type '" "float""'");
19011   }
19012   arg5 = (float)(val5);
19013   image_weighted_smooth(arg1,arg2,arg3,(float const *)arg4,arg5);
19014   resultobj = SWIG_Py_Void();
19015   return resultobj;
19016 fail:
19017   return NULL;
19018 }
19019 
19020 
19021 static PyMethodDef SwigMethods[] = {
19022 	 { "SWIG_PyInstanceMethod_New", SWIG_PyInstanceMethod_New, METH_O, NULL},
19023 	 { "plot_args_plotters_set", _wrap_plot_args_plotters_set, METH_VARARGS, NULL},
19024 	 { "plot_args_plotters_get", _wrap_plot_args_plotters_get, METH_O, NULL},
19025 	 { "plot_args_NP_set", _wrap_plot_args_NP_set, METH_VARARGS, NULL},
19026 	 { "plot_args_NP_get", _wrap_plot_args_NP_get, METH_O, NULL},
19027 	 { "plot_args_outfn_set", _wrap_plot_args_outfn_set, METH_VARARGS, NULL},
19028 	 { "plot_args_outfn_get", _wrap_plot_args_outfn_get, METH_O, NULL},
19029 	 { "plot_args_fout_set", _wrap_plot_args_fout_set, METH_VARARGS, NULL},
19030 	 { "plot_args_fout_get", _wrap_plot_args_fout_get, METH_O, NULL},
19031 	 { "plot_args_outformat_set", _wrap_plot_args_outformat_set, METH_VARARGS, NULL},
19032 	 { "plot_args_outformat_get", _wrap_plot_args_outformat_get, METH_O, NULL},
19033 	 { "plot_args_outimage_set", _wrap_plot_args_outimage_set, METH_VARARGS, NULL},
19034 	 { "plot_args_outimage_get", _wrap_plot_args_outimage_get, METH_O, NULL},
19035 	 { "plot_args_cairo_set", _wrap_plot_args_cairo_set, METH_VARARGS, NULL},
19036 	 { "plot_args_cairo_get", _wrap_plot_args_cairo_get, METH_O, NULL},
19037 	 { "plot_args_target_set", _wrap_plot_args_target_set, METH_VARARGS, NULL},
19038 	 { "plot_args_target_get", _wrap_plot_args_target_get, METH_O, NULL},
19039 	 { "plot_args_op_set", _wrap_plot_args_op_set, METH_VARARGS, NULL},
19040 	 { "plot_args_op_get", _wrap_plot_args_op_get, METH_O, NULL},
19041 	 { "plot_args_move_to_set", _wrap_plot_args_move_to_set, METH_VARARGS, NULL},
19042 	 { "plot_args_move_to_get", _wrap_plot_args_move_to_get, METH_O, NULL},
19043 	 { "plot_args_move_to_baton_set", _wrap_plot_args_move_to_baton_set, METH_VARARGS, NULL},
19044 	 { "plot_args_move_to_baton_get", _wrap_plot_args_move_to_baton_get, METH_O, NULL},
19045 	 { "plot_args_line_to_set", _wrap_plot_args_line_to_set, METH_VARARGS, NULL},
19046 	 { "plot_args_line_to_get", _wrap_plot_args_line_to_get, METH_O, NULL},
19047 	 { "plot_args_line_to_baton_set", _wrap_plot_args_line_to_baton_set, METH_VARARGS, NULL},
19048 	 { "plot_args_line_to_baton_get", _wrap_plot_args_line_to_baton_get, METH_O, NULL},
19049 	 { "plot_args_wcs_set", _wrap_plot_args_wcs_set, METH_VARARGS, NULL},
19050 	 { "plot_args_wcs_get", _wrap_plot_args_wcs_get, METH_O, NULL},
19051 	 { "plot_args_W_set", _wrap_plot_args_W_set, METH_VARARGS, NULL},
19052 	 { "plot_args_W_get", _wrap_plot_args_W_get, METH_O, NULL},
19053 	 { "plot_args_H_set", _wrap_plot_args_H_set, METH_VARARGS, NULL},
19054 	 { "plot_args_H_get", _wrap_plot_args_H_get, METH_O, NULL},
19055 	 { "plot_args_rgba_set", _wrap_plot_args_rgba_set, METH_VARARGS, NULL},
19056 	 { "plot_args_rgba_get", _wrap_plot_args_rgba_get, METH_O, NULL},
19057 	 { "plot_args_lw_set", _wrap_plot_args_lw_set, METH_VARARGS, NULL},
19058 	 { "plot_args_lw_get", _wrap_plot_args_lw_get, METH_O, NULL},
19059 	 { "plot_args_marker_set", _wrap_plot_args_marker_set, METH_VARARGS, NULL},
19060 	 { "plot_args_marker_get", _wrap_plot_args_marker_get, METH_O, NULL},
19061 	 { "plot_args_markersize_set", _wrap_plot_args_markersize_set, METH_VARARGS, NULL},
19062 	 { "plot_args_markersize_get", _wrap_plot_args_markersize_get, METH_O, NULL},
19063 	 { "plot_args_bg_rgba_set", _wrap_plot_args_bg_rgba_set, METH_VARARGS, NULL},
19064 	 { "plot_args_bg_rgba_get", _wrap_plot_args_bg_rgba_get, METH_O, NULL},
19065 	 { "plot_args_bg_lw_set", _wrap_plot_args_bg_lw_set, METH_VARARGS, NULL},
19066 	 { "plot_args_bg_lw_get", _wrap_plot_args_bg_lw_get, METH_O, NULL},
19067 	 { "plot_args_bg_box_set", _wrap_plot_args_bg_box_set, METH_VARARGS, NULL},
19068 	 { "plot_args_bg_box_get", _wrap_plot_args_bg_box_get, METH_O, NULL},
19069 	 { "plot_args_fontsize_set", _wrap_plot_args_fontsize_set, METH_VARARGS, NULL},
19070 	 { "plot_args_fontsize_get", _wrap_plot_args_fontsize_get, METH_O, NULL},
19071 	 { "plot_args_halign_set", _wrap_plot_args_halign_set, METH_VARARGS, NULL},
19072 	 { "plot_args_halign_get", _wrap_plot_args_halign_get, METH_O, NULL},
19073 	 { "plot_args_valign_set", _wrap_plot_args_valign_set, METH_VARARGS, NULL},
19074 	 { "plot_args_valign_get", _wrap_plot_args_valign_get, METH_O, NULL},
19075 	 { "plot_args_label_offset_x_set", _wrap_plot_args_label_offset_x_set, METH_VARARGS, NULL},
19076 	 { "plot_args_label_offset_x_get", _wrap_plot_args_label_offset_x_get, METH_O, NULL},
19077 	 { "plot_args_label_offset_y_set", _wrap_plot_args_label_offset_y_set, METH_VARARGS, NULL},
19078 	 { "plot_args_label_offset_y_get", _wrap_plot_args_label_offset_y_get, METH_O, NULL},
19079 	 { "plot_args_text_bg_layer_set", _wrap_plot_args_text_bg_layer_set, METH_VARARGS, NULL},
19080 	 { "plot_args_text_bg_layer_get", _wrap_plot_args_text_bg_layer_get, METH_O, NULL},
19081 	 { "plot_args_text_fg_layer_set", _wrap_plot_args_text_fg_layer_set, METH_VARARGS, NULL},
19082 	 { "plot_args_text_fg_layer_get", _wrap_plot_args_text_fg_layer_get, METH_O, NULL},
19083 	 { "plot_args_marker_fg_layer_set", _wrap_plot_args_marker_fg_layer_set, METH_VARARGS, NULL},
19084 	 { "plot_args_marker_fg_layer_get", _wrap_plot_args_marker_fg_layer_get, METH_O, NULL},
19085 	 { "plot_args_cairocmds_set", _wrap_plot_args_cairocmds_set, METH_VARARGS, NULL},
19086 	 { "plot_args_cairocmds_get", _wrap_plot_args_cairocmds_get, METH_O, NULL},
19087 	 { "plot_args_linestep_set", _wrap_plot_args_linestep_set, METH_VARARGS, NULL},
19088 	 { "plot_args_linestep_get", _wrap_plot_args_linestep_get, METH_O, NULL},
19089 	 { "plot_args_view_image_as_numpy", _wrap_plot_args_view_image_as_numpy, METH_O, NULL},
19090 	 { "plot_args_get_image_as_numpy", _wrap_plot_args_get_image_as_numpy, METH_VARARGS, NULL},
19091 	 { "plot_args_get_image_as_numpy_view", _wrap_plot_args_get_image_as_numpy_view, METH_O, NULL},
19092 	 { "plot_args_set_image_from_numpy", _wrap_plot_args_set_image_from_numpy, METH_VARARGS, NULL},
19093 	 { "plot_args_set_wcs_file", _wrap_plot_args_set_wcs_file, METH_VARARGS, NULL},
19094 	 { "plot_args_set_size_from_wcs", _wrap_plot_args_set_size_from_wcs, METH_O, NULL},
19095 	 { "plot_args_count_ra_labels", _wrap_plot_args_count_ra_labels, METH_O, NULL},
19096 	 { "plot_args_count_dec_labels", _wrap_plot_args_count_dec_labels, METH_O, NULL},
19097 	 { "plot_args_loginit", _wrap_plot_args_loginit, METH_VARARGS, NULL},
19098 	 { "new_plot_args", _wrap_new_plot_args, METH_NOARGS, NULL},
19099 	 { "delete_plot_args", _wrap_delete_plot_args, METH_O, NULL},
19100 	 { "plot_args_swigregister", plot_args_swigregister, METH_O, NULL},
19101 	 { "plot_args_swiginit", plot_args_swiginit, METH_VARARGS, NULL},
19102 	 { "plotter_name_set", _wrap_plotter_name_set, METH_VARARGS, NULL},
19103 	 { "plotter_name_get", _wrap_plotter_name_get, METH_O, NULL},
19104 	 { "plotter_init_set", _wrap_plotter_init_set, METH_VARARGS, NULL},
19105 	 { "plotter_init_get", _wrap_plotter_init_get, METH_O, NULL},
19106 	 { "plotter_init2_set", _wrap_plotter_init2_set, METH_VARARGS, NULL},
19107 	 { "plotter_init2_get", _wrap_plotter_init2_get, METH_O, NULL},
19108 	 { "plotter_command_set", _wrap_plotter_command_set, METH_VARARGS, NULL},
19109 	 { "plotter_command_get", _wrap_plotter_command_get, METH_O, NULL},
19110 	 { "plotter_doplot_set", _wrap_plotter_doplot_set, METH_VARARGS, NULL},
19111 	 { "plotter_doplot_get", _wrap_plotter_doplot_get, METH_O, NULL},
19112 	 { "plotter_free_set", _wrap_plotter_free_set, METH_VARARGS, NULL},
19113 	 { "plotter_free_get", _wrap_plotter_free_get, METH_O, NULL},
19114 	 { "plotter_baton_set", _wrap_plotter_baton_set, METH_VARARGS, NULL},
19115 	 { "plotter_baton_get", _wrap_plotter_baton_get, METH_O, NULL},
19116 	 { "new_plotter", _wrap_new_plotter, METH_NOARGS, NULL},
19117 	 { "delete_plotter", _wrap_delete_plotter, METH_O, NULL},
19118 	 { "plotter_swigregister", plotter_swigregister, METH_O, NULL},
19119 	 { "plotter_swiginit", plotter_swiginit, METH_VARARGS, NULL},
19120 	 { "parse_image_format", _wrap_parse_image_format, METH_O, NULL},
19121 	 { "guess_image_format_from_filename", _wrap_guess_image_format_from_filename, METH_O, NULL},
19122 	 { "image_format_name_from_code", _wrap_image_format_name_from_code, METH_O, NULL},
19123 	 { "parse_color", _wrap_parse_color, METH_VARARGS, NULL},
19124 	 { "parse_color_rgba", _wrap_parse_color_rgba, METH_VARARGS, NULL},
19125 	 { "cairo_set_color", _wrap_cairo_set_color, METH_VARARGS, NULL},
19126 	 { "cairo_set_rgba", _wrap_cairo_set_rgba, METH_VARARGS, NULL},
19127 	 { "plotstuff_new", _wrap_plotstuff_new, METH_NOARGS, NULL},
19128 	 { "plotstuff_init", _wrap_plotstuff_init, METH_O, NULL},
19129 	 { "plotstuff_read_and_run_command", _wrap_plotstuff_read_and_run_command, METH_VARARGS, NULL},
19130 	 { "plotstuff_run_command", _wrap_plotstuff_run_command, METH_VARARGS, NULL},
19131 	 { "plotstuff_set_text_bg_alpha", _wrap_plotstuff_set_text_bg_alpha, METH_VARARGS, NULL},
19132 	 { "plotstuff_plot_layer", _wrap_plotstuff_plot_layer, METH_VARARGS, NULL},
19133 	 { "plotstuff_get_config", _wrap_plotstuff_get_config, METH_VARARGS, NULL},
19134 	 { "plotstuff_set_color", _wrap_plotstuff_set_color, METH_VARARGS, NULL},
19135 	 { "plotstuff_set_bgcolor", _wrap_plotstuff_set_bgcolor, METH_VARARGS, NULL},
19136 	 { "plotstuff_get_alpha", _wrap_plotstuff_get_alpha, METH_O, NULL},
19137 	 { "plotstuff_set_alpha", _wrap_plotstuff_set_alpha, METH_VARARGS, NULL},
19138 	 { "plotstuff_set_rgba", _wrap_plotstuff_set_rgba, METH_VARARGS, NULL},
19139 	 { "plotstuff_set_rgba2", _wrap_plotstuff_set_rgba2, METH_VARARGS, NULL},
19140 	 { "plotstuff_set_bgrgba2", _wrap_plotstuff_set_bgrgba2, METH_VARARGS, NULL},
19141 	 { "plotstuff_set_marker", _wrap_plotstuff_set_marker, METH_VARARGS, NULL},
19142 	 { "plotstuff_set_markersize", _wrap_plotstuff_set_markersize, METH_VARARGS, NULL},
19143 	 { "plotstuff_set_size", _wrap_plotstuff_set_size, METH_VARARGS, NULL},
19144 	 { "plotstuff_set_size_wcs", _wrap_plotstuff_set_size_wcs, METH_O, NULL},
19145 	 { "plotstuff_scale_wcs", _wrap_plotstuff_scale_wcs, METH_VARARGS, NULL},
19146 	 { "plotstuff_rotate_wcs", _wrap_plotstuff_rotate_wcs, METH_VARARGS, NULL},
19147 	 { "plotstuff_set_wcs_box", _wrap_plotstuff_set_wcs_box, METH_VARARGS, NULL},
19148 	 { "plotstuff_set_wcs_file", _wrap_plotstuff_set_wcs_file, METH_VARARGS, NULL},
19149 	 { "plotstuff_set_wcs", _wrap_plotstuff_set_wcs, METH_VARARGS, NULL},
19150 	 { "plotstuff_set_wcs_tan", _wrap_plotstuff_set_wcs_tan, METH_VARARGS, NULL},
19151 	 { "plotstuff_set_wcs_sip", _wrap_plotstuff_set_wcs_sip, METH_VARARGS, NULL},
19152 	 { "plotstuff_builtin_apply", _wrap_plotstuff_builtin_apply, METH_VARARGS, NULL},
19153 	 { "plotstuff_marker_in_bounds", _wrap_plotstuff_marker_in_bounds, METH_VARARGS, NULL},
19154 	 { "plotstuff_run_commandf", _wrap_plotstuff_run_commandf, METH_VARARGS, NULL},
19155 	 { "plotstuff_output", _wrap_plotstuff_output, METH_O, NULL},
19156 	 { "plotstuff_free", _wrap_plotstuff_free, METH_O, NULL},
19157 	 { "plotstuff_clear", _wrap_plotstuff_clear, METH_O, NULL},
19158 	 { "plotstuff_stack_marker", _wrap_plotstuff_stack_marker, METH_VARARGS, NULL},
19159 	 { "plotstuff_stack_arrow", _wrap_plotstuff_stack_arrow, METH_VARARGS, NULL},
19160 	 { "plotstuff_stack_text", _wrap_plotstuff_stack_text, METH_VARARGS, NULL},
19161 	 { "plotstuff_plot_stack", _wrap_plotstuff_plot_stack, METH_VARARGS, NULL},
19162 	 { "plotstuff_get_maximum_rgba", _wrap_plotstuff_get_maximum_rgba, METH_O, NULL},
19163 	 { "plotstuff_pixel_scale", _wrap_plotstuff_pixel_scale, METH_O, NULL},
19164 	 { "plotstuff_radec2xy", _wrap_plotstuff_radec2xy, METH_VARARGS, NULL},
19165 	 { "plotstuff_xy2radec", _wrap_plotstuff_xy2radec, METH_VARARGS, NULL},
19166 	 { "plotstuff_get_radec_center_and_radius", _wrap_plotstuff_get_radec_center_and_radius, METH_O, NULL},
19167 	 { "plotstuff_get_radec_bounds", _wrap_plotstuff_get_radec_bounds, METH_VARARGS, NULL},
19168 	 { "plotstuff_radec_is_inside_image", _wrap_plotstuff_radec_is_inside_image, METH_VARARGS, NULL},
19169 	 { "plotstuff_line_constant_ra", _wrap_plotstuff_line_constant_ra, METH_VARARGS, NULL},
19170 	 { "plotstuff_line_constant_dec", _wrap_plotstuff_line_constant_dec, METH_VARARGS, NULL},
19171 	 { "plotstuff_line_constant_dec2", _wrap_plotstuff_line_constant_dec2, METH_VARARGS, NULL},
19172 	 { "plotstuff_text_xy", _wrap_plotstuff_text_xy, METH_VARARGS, NULL},
19173 	 { "plotstuff_text_radec", _wrap_plotstuff_text_radec, METH_VARARGS, NULL},
19174 	 { "plotstuff_move_to_radec", _wrap_plotstuff_move_to_radec, METH_VARARGS, NULL},
19175 	 { "plotstuff_line_to_radec", _wrap_plotstuff_line_to_radec, METH_VARARGS, NULL},
19176 	 { "plotstuff_close_path", _wrap_plotstuff_close_path, METH_O, NULL},
19177 	 { "plotstuff_stroke", _wrap_plotstuff_stroke, METH_O, NULL},
19178 	 { "plotstuff_fill", _wrap_plotstuff_fill, METH_O, NULL},
19179 	 { "plotstuff_stroke_preserve", _wrap_plotstuff_stroke_preserve, METH_O, NULL},
19180 	 { "plotstuff_fill_preserve", _wrap_plotstuff_fill_preserve, METH_O, NULL},
19181 	 { "plotstuff_move_to", _wrap_plotstuff_move_to, METH_VARARGS, NULL},
19182 	 { "plotstuff_line_to", _wrap_plotstuff_line_to, METH_VARARGS, NULL},
19183 	 { "plotstuff_marker", _wrap_plotstuff_marker, METH_VARARGS, NULL},
19184 	 { "plotstuff_marker_radec", _wrap_plotstuff_marker_radec, METH_VARARGS, NULL},
19185 	 { "plotstuff_append_doubles", _wrap_plotstuff_append_doubles, METH_VARARGS, NULL},
19186 	 { "plotstuff_set_dashed", _wrap_plotstuff_set_dashed, METH_VARARGS, NULL},
19187 	 { "plotstuff_set_solid", _wrap_plotstuff_set_solid, METH_O, NULL},
19188 	 { "qfitsdumper_filename_set", _wrap_qfitsdumper_filename_set, METH_VARARGS, NULL},
19189 	 { "qfitsdumper_filename_get", _wrap_qfitsdumper_filename_get, METH_O, NULL},
19190 	 { "qfitsdumper_npix_set", _wrap_qfitsdumper_npix_set, METH_VARARGS, NULL},
19191 	 { "qfitsdumper_npix_get", _wrap_qfitsdumper_npix_get, METH_O, NULL},
19192 	 { "qfitsdumper_ptype_set", _wrap_qfitsdumper_ptype_set, METH_VARARGS, NULL},
19193 	 { "qfitsdumper_ptype_get", _wrap_qfitsdumper_ptype_get, METH_O, NULL},
19194 	 { "qfitsdumper_ibuf_set", _wrap_qfitsdumper_ibuf_set, METH_VARARGS, NULL},
19195 	 { "qfitsdumper_ibuf_get", _wrap_qfitsdumper_ibuf_get, METH_O, NULL},
19196 	 { "qfitsdumper_fbuf_set", _wrap_qfitsdumper_fbuf_set, METH_VARARGS, NULL},
19197 	 { "qfitsdumper_fbuf_get", _wrap_qfitsdumper_fbuf_get, METH_O, NULL},
19198 	 { "qfitsdumper_dbuf_set", _wrap_qfitsdumper_dbuf_set, METH_VARARGS, NULL},
19199 	 { "qfitsdumper_dbuf_get", _wrap_qfitsdumper_dbuf_get, METH_O, NULL},
19200 	 { "qfitsdumper_vbuf_set", _wrap_qfitsdumper_vbuf_set, METH_VARARGS, NULL},
19201 	 { "qfitsdumper_vbuf_get", _wrap_qfitsdumper_vbuf_get, METH_O, NULL},
19202 	 { "qfitsdumper_out_ptype_set", _wrap_qfitsdumper_out_ptype_set, METH_VARARGS, NULL},
19203 	 { "qfitsdumper_out_ptype_get", _wrap_qfitsdumper_out_ptype_get, METH_O, NULL},
19204 	 { "new_qfitsdumper", _wrap_new_qfitsdumper, METH_NOARGS, NULL},
19205 	 { "delete_qfitsdumper", _wrap_delete_qfitsdumper, METH_O, NULL},
19206 	 { "qfitsdumper_swigregister", qfitsdumper_swigregister, METH_O, NULL},
19207 	 { "qfitsdumper_swiginit", qfitsdumper_swiginit, METH_VARARGS, NULL},
19208 	 { "qfits_pixdump", _wrap_qfits_pixdump, METH_O, NULL},
19209 	 { "convolve_get_gaussian_kernel_f", _wrap_convolve_get_gaussian_kernel_f, METH_VARARGS, NULL},
19210 	 { "convolve_separable_f", _wrap_convolve_separable_f, METH_VARARGS, NULL},
19211 	 { "convolve_separable_weighted_f", _wrap_convolve_separable_weighted_f, METH_VARARGS, NULL},
19212 	 { "c_image_numpy_view", _wrap_c_image_numpy_view, METH_VARARGS, NULL},
19213 	 { "free", _wrap_free, METH_O, NULL},
19214 	 { "point_in_polygon", _wrap_point_in_polygon, METH_VARARGS, NULL},
19215 	 { "tan_vectors", _wrap_tan_vectors, METH_VARARGS, NULL},
19216 	 { "invert_2by2", _wrap_invert_2by2, METH_VARARGS, NULL},
19217 	 { "invert_2by2_arr", _wrap_invert_2by2_arr, METH_VARARGS, NULL},
19218 	 { "is_power_of_two", _wrap_is_power_of_two, METH_O, NULL},
19219 	 { "matrix_matrix_3", _wrap_matrix_matrix_3, METH_VARARGS, NULL},
19220 	 { "matrix_vector_3", _wrap_matrix_vector_3, METH_VARARGS, NULL},
19221 	 { "dot_product_3", _wrap_dot_product_3, METH_VARARGS, NULL},
19222 	 { "vector_length_3", _wrap_vector_length_3, METH_O, NULL},
19223 	 { "vector_length_squared_3", _wrap_vector_length_squared_3, METH_O, NULL},
19224 	 { "inverse_3by3", _wrap_inverse_3by3, METH_O, NULL},
19225 	 { "image_to_xyz", _wrap_image_to_xyz, METH_VARARGS, NULL},
19226 	 { "fit_transform", _wrap_fit_transform, METH_VARARGS, NULL},
19227 	 { "uniform_sample", _wrap_uniform_sample, METH_VARARGS, NULL},
19228 	 { "gaussian_sample", _wrap_gaussian_sample, METH_VARARGS, NULL},
19229 	 { "get_output_image_size", _wrap_get_output_image_size, METH_VARARGS, NULL},
19230 	 { "average_image_f", _wrap_average_image_f, METH_VARARGS, NULL},
19231 	 { "average_weighted_image_f", _wrap_average_weighted_image_f, METH_VARARGS, NULL},
19232 	 { "imax", _wrap_imax, METH_VARARGS, NULL},
19233 	 { "imin", _wrap_imin, METH_VARARGS, NULL},
19234 	 { "distsq_exceeds", _wrap_distsq_exceeds, METH_VARARGS, NULL},
19235 	 { "square", _wrap_square, METH_O, NULL},
19236 	 { "inrange", _wrap_inrange, METH_VARARGS, NULL},
19237 	 { "distsq", _wrap_distsq, METH_VARARGS, NULL},
19238 	 { "cross_product", _wrap_cross_product, METH_VARARGS, NULL},
19239 	 { "normalize", _wrap_normalize, METH_VARARGS, NULL},
19240 	 { "normalize_3", _wrap_normalize_3, METH_O, NULL},
19241 	 { "plotimage_args_fn_set", _wrap_plotimage_args_fn_set, METH_VARARGS, NULL},
19242 	 { "plotimage_args_fn_get", _wrap_plotimage_args_fn_get, METH_O, NULL},
19243 	 { "plotimage_args_format_set", _wrap_plotimage_args_format_set, METH_VARARGS, NULL},
19244 	 { "plotimage_args_format_get", _wrap_plotimage_args_format_get, METH_O, NULL},
19245 	 { "plotimage_args_resample_set", _wrap_plotimage_args_resample_set, METH_VARARGS, NULL},
19246 	 { "plotimage_args_resample_get", _wrap_plotimage_args_resample_get, METH_O, NULL},
19247 	 { "plotimage_args_downsample_set", _wrap_plotimage_args_downsample_set, METH_VARARGS, NULL},
19248 	 { "plotimage_args_downsample_get", _wrap_plotimage_args_downsample_get, METH_O, NULL},
19249 	 { "plotimage_args_arcsinh_set", _wrap_plotimage_args_arcsinh_set, METH_VARARGS, NULL},
19250 	 { "plotimage_args_arcsinh_get", _wrap_plotimage_args_arcsinh_get, METH_O, NULL},
19251 	 { "plotimage_args_rgbscale_set", _wrap_plotimage_args_rgbscale_set, METH_VARARGS, NULL},
19252 	 { "plotimage_args_rgbscale_get", _wrap_plotimage_args_rgbscale_get, METH_O, NULL},
19253 	 { "plotimage_args_alpha_set", _wrap_plotimage_args_alpha_set, METH_VARARGS, NULL},
19254 	 { "plotimage_args_alpha_get", _wrap_plotimage_args_alpha_get, METH_O, NULL},
19255 	 { "plotimage_args_wcs_set", _wrap_plotimage_args_wcs_set, METH_VARARGS, NULL},
19256 	 { "plotimage_args_wcs_get", _wrap_plotimage_args_wcs_get, METH_O, NULL},
19257 	 { "plotimage_args_gridsize_set", _wrap_plotimage_args_gridsize_set, METH_VARARGS, NULL},
19258 	 { "plotimage_args_gridsize_get", _wrap_plotimage_args_gridsize_get, METH_O, NULL},
19259 	 { "plotimage_args_image_low_set", _wrap_plotimage_args_image_low_set, METH_VARARGS, NULL},
19260 	 { "plotimage_args_image_low_get", _wrap_plotimage_args_image_low_get, METH_O, NULL},
19261 	 { "plotimage_args_image_high_set", _wrap_plotimage_args_image_high_set, METH_VARARGS, NULL},
19262 	 { "plotimage_args_image_high_get", _wrap_plotimage_args_image_high_get, METH_O, NULL},
19263 	 { "plotimage_args_image_null_set", _wrap_plotimage_args_image_null_set, METH_VARARGS, NULL},
19264 	 { "plotimage_args_image_null_get", _wrap_plotimage_args_image_null_get, METH_O, NULL},
19265 	 { "plotimage_args_image_valid_low_set", _wrap_plotimage_args_image_valid_low_set, METH_VARARGS, NULL},
19266 	 { "plotimage_args_image_valid_low_get", _wrap_plotimage_args_image_valid_low_get, METH_O, NULL},
19267 	 { "plotimage_args_image_valid_high_set", _wrap_plotimage_args_image_valid_high_set, METH_VARARGS, NULL},
19268 	 { "plotimage_args_image_valid_high_get", _wrap_plotimage_args_image_valid_high_get, METH_O, NULL},
19269 	 { "plotimage_args_n_invalid_low_set", _wrap_plotimage_args_n_invalid_low_set, METH_VARARGS, NULL},
19270 	 { "plotimage_args_n_invalid_low_get", _wrap_plotimage_args_n_invalid_low_get, METH_O, NULL},
19271 	 { "plotimage_args_n_invalid_high_set", _wrap_plotimage_args_n_invalid_high_set, METH_VARARGS, NULL},
19272 	 { "plotimage_args_n_invalid_high_get", _wrap_plotimage_args_n_invalid_high_get, METH_O, NULL},
19273 	 { "plotimage_args_n_invalid_null_set", _wrap_plotimage_args_n_invalid_null_set, METH_VARARGS, NULL},
19274 	 { "plotimage_args_n_invalid_null_get", _wrap_plotimage_args_n_invalid_null_get, METH_O, NULL},
19275 	 { "plotimage_args_fitsext_set", _wrap_plotimage_args_fitsext_set, METH_VARARGS, NULL},
19276 	 { "plotimage_args_fitsext_get", _wrap_plotimage_args_fitsext_get, METH_O, NULL},
19277 	 { "plotimage_args_fitsplane_set", _wrap_plotimage_args_fitsplane_set, METH_VARARGS, NULL},
19278 	 { "plotimage_args_fitsplane_get", _wrap_plotimage_args_fitsplane_get, METH_O, NULL},
19279 	 { "plotimage_args_auto_scale_set", _wrap_plotimage_args_auto_scale_set, METH_VARARGS, NULL},
19280 	 { "plotimage_args_auto_scale_get", _wrap_plotimage_args_auto_scale_get, METH_O, NULL},
19281 	 { "plotimage_args_img_set", _wrap_plotimage_args_img_set, METH_VARARGS, NULL},
19282 	 { "plotimage_args_img_get", _wrap_plotimage_args_img_get, METH_O, NULL},
19283 	 { "plotimage_args_W_set", _wrap_plotimage_args_W_set, METH_VARARGS, NULL},
19284 	 { "plotimage_args_W_get", _wrap_plotimage_args_W_get, METH_O, NULL},
19285 	 { "plotimage_args_H_set", _wrap_plotimage_args_H_set, METH_VARARGS, NULL},
19286 	 { "plotimage_args_H_get", _wrap_plotimage_args_H_get, METH_O, NULL},
19287 	 { "plotimage_args__set_image_from_numpy", _wrap_plotimage_args__set_image_from_numpy, METH_VARARGS, NULL},
19288 	 { "plotimage_args_set_wcs_file", _wrap_plotimage_args_set_wcs_file, METH_VARARGS, NULL},
19289 	 { "plotimage_args_set_file", _wrap_plotimage_args_set_file, METH_VARARGS, NULL},
19290 	 { "plotimage_args_set_rgbscale", _wrap_plotimage_args_set_rgbscale, METH_VARARGS, NULL},
19291 	 { "plotimage_args_get_image_width", _wrap_plotimage_args_get_image_width, METH_O, NULL},
19292 	 { "plotimage_args_get_image_height", _wrap_plotimage_args_get_image_height, METH_O, NULL},
19293 	 { "new_plotimage_args", _wrap_new_plotimage_args, METH_NOARGS, NULL},
19294 	 { "delete_plotimage_args", _wrap_delete_plotimage_args, METH_O, NULL},
19295 	 { "plotimage_args_swigregister", plotimage_args_swigregister, METH_O, NULL},
19296 	 { "plotimage_args_swiginit", plotimage_args_swiginit, METH_VARARGS, NULL},
19297 	 { "plot_image_get", _wrap_plot_image_get, METH_O, NULL},
19298 	 { "plot_image_set_wcs", _wrap_plot_image_set_wcs, METH_VARARGS, NULL},
19299 	 { "plot_image_init", _wrap_plot_image_init, METH_O, NULL},
19300 	 { "plot_image_command", _wrap_plot_image_command, METH_VARARGS, NULL},
19301 	 { "plot_image_plot", _wrap_plot_image_plot, METH_VARARGS, NULL},
19302 	 { "plot_image_free", _wrap_plot_image_free, METH_VARARGS, NULL},
19303 	 { "plot_image_getsize", _wrap_plot_image_getsize, METH_VARARGS, NULL},
19304 	 { "plot_image_set_filename", _wrap_plot_image_set_filename, METH_VARARGS, NULL},
19305 	 { "plot_image_setsize", _wrap_plot_image_setsize, METH_VARARGS, NULL},
19306 	 { "plot_image_get_percentile", _wrap_plot_image_get_percentile, METH_VARARGS, NULL},
19307 	 { "plot_image_add_to_pixels", _wrap_plot_image_add_to_pixels, METH_VARARGS, NULL},
19308 	 { "plot_image_scale_float", _wrap_plot_image_scale_float, METH_VARARGS, NULL},
19309 	 { "plot_image_rgba_data", _wrap_plot_image_rgba_data, METH_VARARGS, NULL},
19310 	 { "plot_image_read", _wrap_plot_image_read, METH_VARARGS, NULL},
19311 	 { "plot_image_make_color_transparent", _wrap_plot_image_make_color_transparent, METH_VARARGS, NULL},
19312 	 { "plot_image_describe", _wrap_plot_image_describe, METH_O, NULL},
19313 	 { "plotoutline_args_wcs_set", _wrap_plotoutline_args_wcs_set, METH_VARARGS, NULL},
19314 	 { "plotoutline_args_wcs_get", _wrap_plotoutline_args_wcs_get, METH_O, NULL},
19315 	 { "plotoutline_args_stepsize_set", _wrap_plotoutline_args_stepsize_set, METH_VARARGS, NULL},
19316 	 { "plotoutline_args_stepsize_get", _wrap_plotoutline_args_stepsize_get, METH_O, NULL},
19317 	 { "plotoutline_args_fill_set", _wrap_plotoutline_args_fill_set, METH_VARARGS, NULL},
19318 	 { "plotoutline_args_fill_get", _wrap_plotoutline_args_fill_get, METH_O, NULL},
19319 	 { "plotoutline_args_set_wcs_file", _wrap_plotoutline_args_set_wcs_file, METH_VARARGS, NULL},
19320 	 { "plotoutline_args_set_wcs_size", _wrap_plotoutline_args_set_wcs_size, METH_VARARGS, NULL},
19321 	 { "plotoutline_args_set_wcs", _wrap_plotoutline_args_set_wcs, METH_VARARGS, NULL},
19322 	 { "new_plotoutline_args", _wrap_new_plotoutline_args, METH_NOARGS, NULL},
19323 	 { "delete_plotoutline_args", _wrap_delete_plotoutline_args, METH_O, NULL},
19324 	 { "plotoutline_args_swigregister", plotoutline_args_swigregister, METH_O, NULL},
19325 	 { "plotoutline_args_swiginit", plotoutline_args_swiginit, METH_VARARGS, NULL},
19326 	 { "plot_outline_get", _wrap_plot_outline_get, METH_O, NULL},
19327 	 { "plot_outline_init", _wrap_plot_outline_init, METH_O, NULL},
19328 	 { "plot_outline_command", _wrap_plot_outline_command, METH_VARARGS, NULL},
19329 	 { "plot_outline_plot", _wrap_plot_outline_plot, METH_VARARGS, NULL},
19330 	 { "plot_outline_free", _wrap_plot_outline_free, METH_VARARGS, NULL},
19331 	 { "plot_outline_set_wcs_file", _wrap_plot_outline_set_wcs_file, METH_VARARGS, NULL},
19332 	 { "plot_outline_set_wcs_size", _wrap_plot_outline_set_wcs_size, METH_VARARGS, NULL},
19333 	 { "plot_outline_set_wcs", _wrap_plot_outline_set_wcs, METH_VARARGS, NULL},
19334 	 { "plot_outline_set_tan_wcs", _wrap_plot_outline_set_tan_wcs, METH_VARARGS, NULL},
19335 	 { "plot_outline_set_fill", _wrap_plot_outline_set_fill, METH_VARARGS, NULL},
19336 	 { "plot_outline_describe", _wrap_plot_outline_describe, METH_O, NULL},
19337 	 { "plotgrid_args_dolabel_set", _wrap_plotgrid_args_dolabel_set, METH_VARARGS, NULL},
19338 	 { "plotgrid_args_dolabel_get", _wrap_plotgrid_args_dolabel_get, METH_O, NULL},
19339 	 { "plotgrid_args_rastep_set", _wrap_plotgrid_args_rastep_set, METH_VARARGS, NULL},
19340 	 { "plotgrid_args_rastep_get", _wrap_plotgrid_args_rastep_get, METH_O, NULL},
19341 	 { "plotgrid_args_decstep_set", _wrap_plotgrid_args_decstep_set, METH_VARARGS, NULL},
19342 	 { "plotgrid_args_decstep_get", _wrap_plotgrid_args_decstep_get, METH_O, NULL},
19343 	 { "plotgrid_args_ralabelstep_set", _wrap_plotgrid_args_ralabelstep_set, METH_VARARGS, NULL},
19344 	 { "plotgrid_args_ralabelstep_get", _wrap_plotgrid_args_ralabelstep_get, METH_O, NULL},
19345 	 { "plotgrid_args_declabelstep_set", _wrap_plotgrid_args_declabelstep_set, METH_VARARGS, NULL},
19346 	 { "plotgrid_args_declabelstep_get", _wrap_plotgrid_args_declabelstep_get, METH_O, NULL},
19347 	 { "plotgrid_args_ralabeldir_set", _wrap_plotgrid_args_ralabeldir_set, METH_VARARGS, NULL},
19348 	 { "plotgrid_args_ralabeldir_get", _wrap_plotgrid_args_ralabeldir_get, METH_O, NULL},
19349 	 { "plotgrid_args_declabeldir_set", _wrap_plotgrid_args_declabeldir_set, METH_VARARGS, NULL},
19350 	 { "plotgrid_args_declabeldir_get", _wrap_plotgrid_args_declabeldir_get, METH_O, NULL},
19351 	 { "plotgrid_args_ralo_set", _wrap_plotgrid_args_ralo_set, METH_VARARGS, NULL},
19352 	 { "plotgrid_args_ralo_get", _wrap_plotgrid_args_ralo_get, METH_O, NULL},
19353 	 { "plotgrid_args_rahi_set", _wrap_plotgrid_args_rahi_set, METH_VARARGS, NULL},
19354 	 { "plotgrid_args_rahi_get", _wrap_plotgrid_args_rahi_get, METH_O, NULL},
19355 	 { "plotgrid_args_declo_set", _wrap_plotgrid_args_declo_set, METH_VARARGS, NULL},
19356 	 { "plotgrid_args_declo_get", _wrap_plotgrid_args_declo_get, METH_O, NULL},
19357 	 { "plotgrid_args_dechi_set", _wrap_plotgrid_args_dechi_set, METH_VARARGS, NULL},
19358 	 { "plotgrid_args_dechi_get", _wrap_plotgrid_args_dechi_get, METH_O, NULL},
19359 	 { "plotgrid_args_raformat_set", _wrap_plotgrid_args_raformat_set, METH_VARARGS, NULL},
19360 	 { "plotgrid_args_raformat_get", _wrap_plotgrid_args_raformat_get, METH_O, NULL},
19361 	 { "plotgrid_args_decformat_set", _wrap_plotgrid_args_decformat_set, METH_VARARGS, NULL},
19362 	 { "plotgrid_args_decformat_get", _wrap_plotgrid_args_decformat_get, METH_O, NULL},
19363 	 { "plotgrid_args_set_formats", _wrap_plotgrid_args_set_formats, METH_VARARGS, NULL},
19364 	 { "new_plotgrid_args", _wrap_new_plotgrid_args, METH_NOARGS, NULL},
19365 	 { "delete_plotgrid_args", _wrap_delete_plotgrid_args, METH_O, NULL},
19366 	 { "plotgrid_args_swigregister", plotgrid_args_swigregister, METH_O, NULL},
19367 	 { "plotgrid_args_swiginit", plotgrid_args_swiginit, METH_VARARGS, NULL},
19368 	 { "plot_grid_get", _wrap_plot_grid_get, METH_O, NULL},
19369 	 { "plot_grid_init", _wrap_plot_grid_init, METH_O, NULL},
19370 	 { "plot_grid_set_formats", _wrap_plot_grid_set_formats, METH_VARARGS, NULL},
19371 	 { "plot_grid_command", _wrap_plot_grid_command, METH_VARARGS, NULL},
19372 	 { "plot_grid_plot", _wrap_plot_grid_plot, METH_VARARGS, NULL},
19373 	 { "plot_grid_free", _wrap_plot_grid_free, METH_VARARGS, NULL},
19374 	 { "plot_grid_add_label", _wrap_plot_grid_add_label, METH_VARARGS, NULL},
19375 	 { "plot_grid_find_ra_label_location", _wrap_plot_grid_find_ra_label_location, METH_VARARGS, NULL},
19376 	 { "plot_grid_find_dec_label_location", _wrap_plot_grid_find_dec_label_location, METH_VARARGS, NULL},
19377 	 { "plot_grid_count_ra_labels", _wrap_plot_grid_count_ra_labels, METH_O, NULL},
19378 	 { "plot_grid_count_dec_labels", _wrap_plot_grid_count_dec_labels, METH_O, NULL},
19379 	 { "plot_grid_describe", _wrap_plot_grid_describe, METH_O, NULL},
19380 	 { "plotindex_args_indexes_set", _wrap_plotindex_args_indexes_set, METH_VARARGS, NULL},
19381 	 { "plotindex_args_indexes_get", _wrap_plotindex_args_indexes_get, METH_O, NULL},
19382 	 { "plotindex_args_qidxes_set", _wrap_plotindex_args_qidxes_set, METH_VARARGS, NULL},
19383 	 { "plotindex_args_qidxes_get", _wrap_plotindex_args_qidxes_get, METH_O, NULL},
19384 	 { "plotindex_args_stars_set", _wrap_plotindex_args_stars_set, METH_VARARGS, NULL},
19385 	 { "plotindex_args_stars_get", _wrap_plotindex_args_stars_get, METH_O, NULL},
19386 	 { "plotindex_args_quads_set", _wrap_plotindex_args_quads_set, METH_VARARGS, NULL},
19387 	 { "plotindex_args_quads_get", _wrap_plotindex_args_quads_get, METH_O, NULL},
19388 	 { "plotindex_args_fill_set", _wrap_plotindex_args_fill_set, METH_VARARGS, NULL},
19389 	 { "plotindex_args_fill_get", _wrap_plotindex_args_fill_get, METH_O, NULL},
19390 	 { "plotindex_args_add_file", _wrap_plotindex_args_add_file, METH_VARARGS, NULL},
19391 	 { "new_plotindex_args", _wrap_new_plotindex_args, METH_NOARGS, NULL},
19392 	 { "delete_plotindex_args", _wrap_delete_plotindex_args, METH_O, NULL},
19393 	 { "plotindex_args_swigregister", plotindex_args_swigregister, METH_O, NULL},
19394 	 { "plotindex_args_swiginit", plotindex_args_swiginit, METH_VARARGS, NULL},
19395 	 { "plot_quad_xy", _wrap_plot_quad_xy, METH_VARARGS, NULL},
19396 	 { "plot_index_plotquad", _wrap_plot_index_plotquad, METH_VARARGS, NULL},
19397 	 { "plot_index_get", _wrap_plot_index_get, METH_O, NULL},
19398 	 { "plot_index_add_file", _wrap_plot_index_add_file, METH_VARARGS, NULL},
19399 	 { "plot_index_add_qidx_file", _wrap_plot_index_add_qidx_file, METH_VARARGS, NULL},
19400 	 { "plot_index_init", _wrap_plot_index_init, METH_O, NULL},
19401 	 { "plot_index_command", _wrap_plot_index_command, METH_VARARGS, NULL},
19402 	 { "plot_index_plot", _wrap_plot_index_plot, METH_VARARGS, NULL},
19403 	 { "plot_index_free", _wrap_plot_index_free, METH_VARARGS, NULL},
19404 	 { "plot_index_describe", _wrap_plot_index_describe, METH_O, NULL},
19405 	 { "plotxy_args_fn_set", _wrap_plotxy_args_fn_set, METH_VARARGS, NULL},
19406 	 { "plotxy_args_fn_get", _wrap_plotxy_args_fn_get, METH_O, NULL},
19407 	 { "plotxy_args_ext_set", _wrap_plotxy_args_ext_set, METH_VARARGS, NULL},
19408 	 { "plotxy_args_ext_get", _wrap_plotxy_args_ext_get, METH_O, NULL},
19409 	 { "plotxy_args_xcol_set", _wrap_plotxy_args_xcol_set, METH_VARARGS, NULL},
19410 	 { "plotxy_args_xcol_get", _wrap_plotxy_args_xcol_get, METH_O, NULL},
19411 	 { "plotxy_args_ycol_set", _wrap_plotxy_args_ycol_set, METH_VARARGS, NULL},
19412 	 { "plotxy_args_ycol_get", _wrap_plotxy_args_ycol_get, METH_O, NULL},
19413 	 { "plotxy_args_xoff_set", _wrap_plotxy_args_xoff_set, METH_VARARGS, NULL},
19414 	 { "plotxy_args_xoff_get", _wrap_plotxy_args_xoff_get, METH_O, NULL},
19415 	 { "plotxy_args_yoff_set", _wrap_plotxy_args_yoff_set, METH_VARARGS, NULL},
19416 	 { "plotxy_args_yoff_get", _wrap_plotxy_args_yoff_get, METH_O, NULL},
19417 	 { "plotxy_args_firstobj_set", _wrap_plotxy_args_firstobj_set, METH_VARARGS, NULL},
19418 	 { "plotxy_args_firstobj_get", _wrap_plotxy_args_firstobj_get, METH_O, NULL},
19419 	 { "plotxy_args_nobjs_set", _wrap_plotxy_args_nobjs_set, METH_VARARGS, NULL},
19420 	 { "plotxy_args_nobjs_get", _wrap_plotxy_args_nobjs_get, METH_O, NULL},
19421 	 { "plotxy_args_scale_set", _wrap_plotxy_args_scale_set, METH_VARARGS, NULL},
19422 	 { "plotxy_args_scale_get", _wrap_plotxy_args_scale_get, METH_O, NULL},
19423 	 { "plotxy_args_xyvals_set", _wrap_plotxy_args_xyvals_set, METH_VARARGS, NULL},
19424 	 { "plotxy_args_xyvals_get", _wrap_plotxy_args_xyvals_get, METH_O, NULL},
19425 	 { "plotxy_args_wcs_set", _wrap_plotxy_args_wcs_set, METH_VARARGS, NULL},
19426 	 { "plotxy_args_wcs_get", _wrap_plotxy_args_wcs_get, METH_O, NULL},
19427 	 { "plotxy_args_set_filename", _wrap_plotxy_args_set_filename, METH_VARARGS, NULL},
19428 	 { "new_plotxy_args", _wrap_new_plotxy_args, METH_NOARGS, NULL},
19429 	 { "delete_plotxy_args", _wrap_delete_plotxy_args, METH_O, NULL},
19430 	 { "plotxy_args_swigregister", plotxy_args_swigregister, METH_O, NULL},
19431 	 { "plotxy_args_swiginit", plotxy_args_swiginit, METH_VARARGS, NULL},
19432 	 { "plot_xy_get", _wrap_plot_xy_get, METH_O, NULL},
19433 	 { "plot_xy_init", _wrap_plot_xy_init, METH_O, NULL},
19434 	 { "plot_xy_setsize", _wrap_plot_xy_setsize, METH_VARARGS, NULL},
19435 	 { "plot_xy_clear_list", _wrap_plot_xy_clear_list, METH_O, NULL},
19436 	 { "plot_xy_set_xcol", _wrap_plot_xy_set_xcol, METH_VARARGS, NULL},
19437 	 { "plot_xy_set_ycol", _wrap_plot_xy_set_ycol, METH_VARARGS, NULL},
19438 	 { "plot_xy_set_filename", _wrap_plot_xy_set_filename, METH_VARARGS, NULL},
19439 	 { "plot_xy_set_wcs_filename", _wrap_plot_xy_set_wcs_filename, METH_VARARGS, NULL},
19440 	 { "plot_xy_set_offsets", _wrap_plot_xy_set_offsets, METH_VARARGS, NULL},
19441 	 { "plot_xy_command", _wrap_plot_xy_command, METH_VARARGS, NULL},
19442 	 { "plot_xy_plot", _wrap_plot_xy_plot, METH_VARARGS, NULL},
19443 	 { "plot_xy_free", _wrap_plot_xy_free, METH_VARARGS, NULL},
19444 	 { "plot_xy_vals", _wrap_plot_xy_vals, METH_VARARGS, NULL},
19445 	 { "plot_xy_describe", _wrap_plot_xy_describe, METH_O, NULL},
19446 	 { "plotradec_args_fn_set", _wrap_plotradec_args_fn_set, METH_VARARGS, NULL},
19447 	 { "plotradec_args_fn_get", _wrap_plotradec_args_fn_get, METH_O, NULL},
19448 	 { "plotradec_args_ext_set", _wrap_plotradec_args_ext_set, METH_VARARGS, NULL},
19449 	 { "plotradec_args_ext_get", _wrap_plotradec_args_ext_get, METH_O, NULL},
19450 	 { "plotradec_args_racol_set", _wrap_plotradec_args_racol_set, METH_VARARGS, NULL},
19451 	 { "plotradec_args_racol_get", _wrap_plotradec_args_racol_get, METH_O, NULL},
19452 	 { "plotradec_args_deccol_set", _wrap_plotradec_args_deccol_set, METH_VARARGS, NULL},
19453 	 { "plotradec_args_deccol_get", _wrap_plotradec_args_deccol_get, METH_O, NULL},
19454 	 { "plotradec_args_firstobj_set", _wrap_plotradec_args_firstobj_set, METH_VARARGS, NULL},
19455 	 { "plotradec_args_firstobj_get", _wrap_plotradec_args_firstobj_get, METH_O, NULL},
19456 	 { "plotradec_args_nobjs_set", _wrap_plotradec_args_nobjs_set, METH_VARARGS, NULL},
19457 	 { "plotradec_args_nobjs_get", _wrap_plotradec_args_nobjs_get, METH_O, NULL},
19458 	 { "plotradec_args_radecvals_set", _wrap_plotradec_args_radecvals_set, METH_VARARGS, NULL},
19459 	 { "plotradec_args_radecvals_get", _wrap_plotradec_args_radecvals_get, METH_O, NULL},
19460 	 { "plotradec_args_set_filename", _wrap_plotradec_args_set_filename, METH_VARARGS, NULL},
19461 	 { "new_plotradec_args", _wrap_new_plotradec_args, METH_NOARGS, NULL},
19462 	 { "delete_plotradec_args", _wrap_delete_plotradec_args, METH_O, NULL},
19463 	 { "plotradec_args_swigregister", plotradec_args_swigregister, METH_O, NULL},
19464 	 { "plotradec_args_swiginit", plotradec_args_swiginit, METH_VARARGS, NULL},
19465 	 { "plot_radec_get", _wrap_plot_radec_get, METH_O, NULL},
19466 	 { "plot_radec_reset", _wrap_plot_radec_reset, METH_O, NULL},
19467 	 { "plot_radec_init", _wrap_plot_radec_init, METH_O, NULL},
19468 	 { "plot_radec_set_racol", _wrap_plot_radec_set_racol, METH_VARARGS, NULL},
19469 	 { "plot_radec_set_deccol", _wrap_plot_radec_set_deccol, METH_VARARGS, NULL},
19470 	 { "plot_radec_set_filename", _wrap_plot_radec_set_filename, METH_VARARGS, NULL},
19471 	 { "plot_radec_command", _wrap_plot_radec_command, METH_VARARGS, NULL},
19472 	 { "plot_radec_count_inbounds", _wrap_plot_radec_count_inbounds, METH_VARARGS, NULL},
19473 	 { "plot_radec_plot", _wrap_plot_radec_plot, METH_VARARGS, NULL},
19474 	 { "plot_radec_free", _wrap_plot_radec_free, METH_VARARGS, NULL},
19475 	 { "plot_radec_vals", _wrap_plot_radec_vals, METH_VARARGS, NULL},
19476 	 { "plot_radec_describe", _wrap_plot_radec_describe, METH_O, NULL},
19477 	 { "plotmatch_args_matches_set", _wrap_plotmatch_args_matches_set, METH_VARARGS, NULL},
19478 	 { "plotmatch_args_matches_get", _wrap_plotmatch_args_matches_get, METH_O, NULL},
19479 	 { "new_plotmatch_args", _wrap_new_plotmatch_args, METH_NOARGS, NULL},
19480 	 { "delete_plotmatch_args", _wrap_delete_plotmatch_args, METH_O, NULL},
19481 	 { "plotmatch_args_swigregister", plotmatch_args_swigregister, METH_O, NULL},
19482 	 { "plotmatch_args_swiginit", plotmatch_args_swiginit, METH_VARARGS, NULL},
19483 	 { "plot_match_get", _wrap_plot_match_get, METH_O, NULL},
19484 	 { "plot_match_add_match", _wrap_plot_match_add_match, METH_VARARGS, NULL},
19485 	 { "plot_match_set_filename", _wrap_plot_match_set_filename, METH_VARARGS, NULL},
19486 	 { "plot_match_init", _wrap_plot_match_init, METH_O, NULL},
19487 	 { "plot_match_command", _wrap_plot_match_command, METH_VARARGS, NULL},
19488 	 { "plot_match_plot", _wrap_plot_match_plot, METH_VARARGS, NULL},
19489 	 { "plot_match_free", _wrap_plot_match_free, METH_VARARGS, NULL},
19490 	 { "plot_match_describe", _wrap_plot_match_describe, METH_O, NULL},
19491 	 { "annotation_args_NGC_set", _wrap_annotation_args_NGC_set, METH_VARARGS, NULL},
19492 	 { "annotation_args_NGC_get", _wrap_annotation_args_NGC_get, METH_O, NULL},
19493 	 { "annotation_args_constellations_set", _wrap_annotation_args_constellations_set, METH_VARARGS, NULL},
19494 	 { "annotation_args_constellations_get", _wrap_annotation_args_constellations_get, METH_O, NULL},
19495 	 { "annotation_args_constellation_lines_set", _wrap_annotation_args_constellation_lines_set, METH_VARARGS, NULL},
19496 	 { "annotation_args_constellation_lines_get", _wrap_annotation_args_constellation_lines_get, METH_O, NULL},
19497 	 { "annotation_args_constellation_markers_set", _wrap_annotation_args_constellation_markers_set, METH_VARARGS, NULL},
19498 	 { "annotation_args_constellation_markers_get", _wrap_annotation_args_constellation_markers_get, METH_O, NULL},
19499 	 { "annotation_args_constellation_labels_set", _wrap_annotation_args_constellation_labels_set, METH_VARARGS, NULL},
19500 	 { "annotation_args_constellation_labels_get", _wrap_annotation_args_constellation_labels_get, METH_O, NULL},
19501 	 { "annotation_args_constellation_labels_long_set", _wrap_annotation_args_constellation_labels_long_set, METH_VARARGS, NULL},
19502 	 { "annotation_args_constellation_labels_long_get", _wrap_annotation_args_constellation_labels_long_get, METH_O, NULL},
19503 	 { "annotation_args_constellation_lines_offset_set", _wrap_annotation_args_constellation_lines_offset_set, METH_VARARGS, NULL},
19504 	 { "annotation_args_constellation_lines_offset_get", _wrap_annotation_args_constellation_lines_offset_get, METH_O, NULL},
19505 	 { "annotation_args_constellation_pastel_set", _wrap_annotation_args_constellation_pastel_set, METH_VARARGS, NULL},
19506 	 { "annotation_args_constellation_pastel_get", _wrap_annotation_args_constellation_pastel_get, METH_O, NULL},
19507 	 { "annotation_args_bright_set", _wrap_annotation_args_bright_set, METH_VARARGS, NULL},
19508 	 { "annotation_args_bright_get", _wrap_annotation_args_bright_get, METH_O, NULL},
19509 	 { "annotation_args_bright_labels_set", _wrap_annotation_args_bright_labels_set, METH_VARARGS, NULL},
19510 	 { "annotation_args_bright_labels_get", _wrap_annotation_args_bright_labels_get, METH_O, NULL},
19511 	 { "annotation_args_bright_pastel_set", _wrap_annotation_args_bright_pastel_set, METH_VARARGS, NULL},
19512 	 { "annotation_args_bright_pastel_get", _wrap_annotation_args_bright_pastel_get, METH_O, NULL},
19513 	 { "annotation_args_HD_set", _wrap_annotation_args_HD_set, METH_VARARGS, NULL},
19514 	 { "annotation_args_HD_get", _wrap_annotation_args_HD_get, METH_O, NULL},
19515 	 { "annotation_args_HD_labels_set", _wrap_annotation_args_HD_labels_set, METH_VARARGS, NULL},
19516 	 { "annotation_args_HD_labels_get", _wrap_annotation_args_HD_labels_get, METH_O, NULL},
19517 	 { "annotation_args_ngc_fraction_set", _wrap_annotation_args_ngc_fraction_set, METH_VARARGS, NULL},
19518 	 { "annotation_args_ngc_fraction_get", _wrap_annotation_args_ngc_fraction_get, METH_O, NULL},
19519 	 { "annotation_args_targets_set", _wrap_annotation_args_targets_set, METH_VARARGS, NULL},
19520 	 { "annotation_args_targets_get", _wrap_annotation_args_targets_get, METH_O, NULL},
19521 	 { "annotation_args_hd_catalog_set", _wrap_annotation_args_hd_catalog_set, METH_VARARGS, NULL},
19522 	 { "annotation_args_hd_catalog_get", _wrap_annotation_args_hd_catalog_get, METH_O, NULL},
19523 	 { "annotation_args_add_target", _wrap_annotation_args_add_target, METH_VARARGS, NULL},
19524 	 { "annotation_args_add_named_target", _wrap_annotation_args_add_named_target, METH_VARARGS, NULL},
19525 	 { "annotation_args_clear_targets", _wrap_annotation_args_clear_targets, METH_O, NULL},
19526 	 { "new_annotation_args", _wrap_new_annotation_args, METH_NOARGS, NULL},
19527 	 { "delete_annotation_args", _wrap_delete_annotation_args, METH_O, NULL},
19528 	 { "annotation_args_swigregister", annotation_args_swigregister, METH_O, NULL},
19529 	 { "annotation_args_swiginit", annotation_args_swiginit, METH_VARARGS, NULL},
19530 	 { "plot_annotations_init", _wrap_plot_annotations_init, METH_O, NULL},
19531 	 { "plot_annotations_get", _wrap_plot_annotations_get, METH_O, NULL},
19532 	 { "plot_annotations_command", _wrap_plot_annotations_command, METH_VARARGS, NULL},
19533 	 { "plot_annotations_plot", _wrap_plot_annotations_plot, METH_VARARGS, NULL},
19534 	 { "plot_annotations_free", _wrap_plot_annotations_free, METH_VARARGS, NULL},
19535 	 { "plot_annotations_set_hd_catalog", _wrap_plot_annotations_set_hd_catalog, METH_VARARGS, NULL},
19536 	 { "plot_annotations_add_named_target", _wrap_plot_annotations_add_named_target, METH_VARARGS, NULL},
19537 	 { "plot_annotations_add_target", _wrap_plot_annotations_add_target, METH_VARARGS, NULL},
19538 	 { "plot_annotations_clear_targets", _wrap_plot_annotations_clear_targets, METH_O, NULL},
19539 	 { "plot_annotations_describe", _wrap_plot_annotations_describe, METH_O, NULL},
19540 	 { "plothealpix_args_nside_set", _wrap_plothealpix_args_nside_set, METH_VARARGS, NULL},
19541 	 { "plothealpix_args_nside_get", _wrap_plothealpix_args_nside_get, METH_O, NULL},
19542 	 { "plothealpix_args_stepsize_set", _wrap_plothealpix_args_stepsize_set, METH_VARARGS, NULL},
19543 	 { "plothealpix_args_stepsize_get", _wrap_plothealpix_args_stepsize_get, METH_O, NULL},
19544 	 { "new_plothealpix_args", _wrap_new_plothealpix_args, METH_NOARGS, NULL},
19545 	 { "delete_plothealpix_args", _wrap_delete_plothealpix_args, METH_O, NULL},
19546 	 { "plothealpix_args_swigregister", plothealpix_args_swigregister, METH_O, NULL},
19547 	 { "plothealpix_args_swiginit", plothealpix_args_swiginit, METH_VARARGS, NULL},
19548 	 { "plot_healpix_get", _wrap_plot_healpix_get, METH_O, NULL},
19549 	 { "plot_healpix_init", _wrap_plot_healpix_init, METH_O, NULL},
19550 	 { "plot_healpix_command", _wrap_plot_healpix_command, METH_VARARGS, NULL},
19551 	 { "plot_healpix_plot", _wrap_plot_healpix_plot, METH_VARARGS, NULL},
19552 	 { "plot_healpix_free", _wrap_plot_healpix_free, METH_VARARGS, NULL},
19553 	 { "plot_healpix_describe", _wrap_plot_healpix_describe, METH_O, NULL},
19554 	 { "image_debug", _wrap_image_debug, METH_VARARGS, NULL},
19555 	 { "image_add", _wrap_image_add, METH_VARARGS, NULL},
19556 	 { "image_weighted_smooth", _wrap_image_weighted_smooth, METH_VARARGS, NULL},
19557 	 { NULL, NULL, 0, NULL }
19558 };
19559 
19560 static PyMethodDef SwigMethods_proxydocs[] = {
19561 	 { NULL, NULL, 0, NULL }
19562 };
19563 
19564 
19565 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19566 
19567 static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
19568 static swig_type_info _swigt__p_MatchObj = {"_p_MatchObj", "MatchObj *", 0, 0, (void*)0, 0};
19569 static swig_type_info _swigt__p_a_2__double = {"_p_a_2__double", "double (*)[2]", 0, 0, (void*)0, 0};
19570 static swig_type_info _swigt__p_annotation_args = {"_p_annotation_args", "struct annotation_args *|annotation_args *|plotann_t *", 0, 0, (void*)0, 0};
19571 static swig_type_info _swigt__p_anwcs_t = {"_p_anwcs_t", "struct anwcs_t *|anwcs_t *", 0, 0, (void*)0, 0};
19572 static swig_type_info _swigt__p_bl = {"_p_bl", "bl *", 0, 0, (void*)0, 0};
19573 static swig_type_info _swigt__p_cairo_op = {"_p_cairo_op", "cairo_operator_t *|enum cairo_op *", 0, 0, (void*)0, 0};
19574 static swig_type_info _swigt__p_cairo_surface_t = {"_p_cairo_surface_t", "cairo_surface_t *", 0, 0, (void*)0, 0};
19575 static swig_type_info _swigt__p_cairo_t = {"_p_cairo_t", "cairo_t *", 0, 0, (void*)0, 0};
19576 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
19577 static swig_type_info _swigt__p_coadd_t = {"_p_coadd_t", "coadd_t *", 0, 0, (void*)0, 0};
19578 static swig_type_info _swigt__p_codetree_t = {"_p_codetree_t", "codetree_t *", 0, 0, (void*)0, 0};
19579 static swig_type_info _swigt__p_dl = {"_p_dl", "dl *", 0, 0, (void*)0, 0};
19580 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
19581 static swig_type_info _swigt__p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int = {"_p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int", "plot_func_plot_t|int (*)(char const *,cairo_t *,struct plot_args *,void *)", 0, 0, (void*)0, 0};
19582 static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int = {"_p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int", "plot_func_command_t|int (*)(char const *,char const *,struct plot_args *,void *)", 0, 0, (void*)0, 0};
19583 static swig_type_info _swigt__p_f_p_struct_plot_args__p_void = {"_p_f_p_struct_plot_args__p_void", "void *(*)(struct plot_args *)|plot_func_init_t", 0, 0, (void*)0, 0};
19584 static swig_type_info _swigt__p_f_p_struct_plot_args_double_double_p_void__void = {"_p_f_p_struct_plot_args_double_double_p_void__void", "void (*)(struct plot_args *,double,double,void *)", 0, 0, (void*)0, 0};
19585 static swig_type_info _swigt__p_f_p_struct_plot_args_p_void__int = {"_p_f_p_struct_plot_args_p_void__int", "int (*)(struct plot_args *,void *)|plot_func_init2_t", 0, 0, (void*)0, 0};
19586 static swig_type_info _swigt__p_f_p_struct_plot_args_p_void__void = {"_p_f_p_struct_plot_args_p_void__void", "plot_func_free_t|void (*)(struct plot_args *,void *)", 0, 0, (void*)0, 0};
19587 static swig_type_info _swigt__p_float = {"_p_float", "number *|float *", 0, 0, (void*)0, 0};
19588 static swig_type_info _swigt__p_index_t = {"_p_index_t", "index_t *", 0, 0, (void*)0, 0};
19589 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
19590 static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *|dimage_label_t *", 0, 0, (void*)0, 0};
19591 static swig_type_info _swigt__p_lanczos_args_t = {"_p_lanczos_args_t", "lanczos_args_t *", 0, 0, (void*)0, 0};
19592 static swig_type_info _swigt__p_pl = {"_p_pl", "pl *", 0, 0, (void*)0, 0};
19593 static swig_type_info _swigt__p_plot_args = {"_p_plot_args", "struct plot_args *|plot_args *|plot_args_t *", 0, 0, (void*)0, 0};
19594 static swig_type_info _swigt__p_plotgrid_args = {"_p_plotgrid_args", "struct plotgrid_args *|plotgrid_args *|plotgrid_t *", 0, 0, (void*)0, 0};
19595 static swig_type_info _swigt__p_plothealpix_args = {"_p_plothealpix_args", "struct plothealpix_args *|plothealpix_t *|plothealpix_args *", 0, 0, (void*)0, 0};
19596 static swig_type_info _swigt__p_plotimage_args = {"_p_plotimage_args", "struct plotimage_args *|plotimage_args *|plotimage_t *", 0, 0, (void*)0, 0};
19597 static swig_type_info _swigt__p_plotindex_args = {"_p_plotindex_args", "plotindex_t *|struct plotindex_args *|plotindex_args *", 0, 0, (void*)0, 0};
19598 static swig_type_info _swigt__p_plotmatch_args = {"_p_plotmatch_args", "struct plotmatch_args *|plotmatch_args *|plotmatch_t *", 0, 0, (void*)0, 0};
19599 static swig_type_info _swigt__p_plotoutline_args = {"_p_plotoutline_args", "struct plotoutline_args *|plotoutline_args *|plotoutline_t *", 0, 0, (void*)0, 0};
19600 static swig_type_info _swigt__p_plotradec_args = {"_p_plotradec_args", "plotradec_t *|struct plotradec_args *|plotradec_args *", 0, 0, (void*)0, 0};
19601 static swig_type_info _swigt__p_plotter = {"_p_plotter", "struct plotter *|plotter *|plotter_t *", 0, 0, (void*)0, 0};
19602 static swig_type_info _swigt__p_plotxy_args = {"_p_plotxy_args", "plotxy_t *|struct plotxy_args *|plotxy_args *", 0, 0, (void*)0, 0};
19603 static swig_type_info _swigt__p_qfits_header = {"_p_qfits_header", "qfits_header *", 0, 0, (void*)0, 0};
19604 static swig_type_info _swigt__p_qfitsdumper = {"_p_qfitsdumper", "struct qfitsdumper *|qfitsdumper *", 0, 0, (void*)0, 0};
19605 static swig_type_info _swigt__p_quadfile_t = {"_p_quadfile_t", "quadfile_t *", 0, 0, (void*)0, 0};
19606 static swig_type_info _swigt__p_sip_t = {"_p_sip_t", "sip_t *", 0, 0, (void*)0, 0};
19607 static swig_type_info _swigt__p_startree_t = {"_p_startree_t", "startree_t *", 0, 0, (void*)0, 0};
19608 static swig_type_info _swigt__p_tan_t = {"_p_tan_t", "tan_t *", 0, 0, (void*)0, 0};
19609 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uchar *|unsigned char *|anbool *|byte *", 0, 0, (void*)0, 0};
19610 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
19611 
19612 static swig_type_info *swig_type_initial[] = {
19613   &_swigt__p_FILE,
19614   &_swigt__p_MatchObj,
19615   &_swigt__p_a_2__double,
19616   &_swigt__p_annotation_args,
19617   &_swigt__p_anwcs_t,
19618   &_swigt__p_bl,
19619   &_swigt__p_cairo_op,
19620   &_swigt__p_cairo_surface_t,
19621   &_swigt__p_cairo_t,
19622   &_swigt__p_char,
19623   &_swigt__p_coadd_t,
19624   &_swigt__p_codetree_t,
19625   &_swigt__p_dl,
19626   &_swigt__p_double,
19627   &_swigt__p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int,
19628   &_swigt__p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int,
19629   &_swigt__p_f_p_struct_plot_args__p_void,
19630   &_swigt__p_f_p_struct_plot_args_double_double_p_void__void,
19631   &_swigt__p_f_p_struct_plot_args_p_void__int,
19632   &_swigt__p_f_p_struct_plot_args_p_void__void,
19633   &_swigt__p_float,
19634   &_swigt__p_index_t,
19635   &_swigt__p_int,
19636   &_swigt__p_int32_t,
19637   &_swigt__p_lanczos_args_t,
19638   &_swigt__p_pl,
19639   &_swigt__p_plot_args,
19640   &_swigt__p_plotgrid_args,
19641   &_swigt__p_plothealpix_args,
19642   &_swigt__p_plotimage_args,
19643   &_swigt__p_plotindex_args,
19644   &_swigt__p_plotmatch_args,
19645   &_swigt__p_plotoutline_args,
19646   &_swigt__p_plotradec_args,
19647   &_swigt__p_plotter,
19648   &_swigt__p_plotxy_args,
19649   &_swigt__p_qfits_header,
19650   &_swigt__p_qfitsdumper,
19651   &_swigt__p_quadfile_t,
19652   &_swigt__p_sip_t,
19653   &_swigt__p_startree_t,
19654   &_swigt__p_tan_t,
19655   &_swigt__p_unsigned_char,
19656   &_swigt__p_void,
19657 };
19658 
19659 static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
19660 static swig_cast_info _swigc__p_MatchObj[] = {  {&_swigt__p_MatchObj, 0, 0, 0},{0, 0, 0, 0}};
19661 static swig_cast_info _swigc__p_a_2__double[] = {  {&_swigt__p_a_2__double, 0, 0, 0},{0, 0, 0, 0}};
19662 static swig_cast_info _swigc__p_annotation_args[] = {  {&_swigt__p_annotation_args, 0, 0, 0},{0, 0, 0, 0}};
19663 static swig_cast_info _swigc__p_anwcs_t[] = {  {&_swigt__p_anwcs_t, 0, 0, 0},{0, 0, 0, 0}};
19664 static swig_cast_info _swigc__p_bl[] = {  {&_swigt__p_bl, 0, 0, 0},{0, 0, 0, 0}};
19665 static swig_cast_info _swigc__p_cairo_op[] = {  {&_swigt__p_cairo_op, 0, 0, 0},{0, 0, 0, 0}};
19666 static swig_cast_info _swigc__p_cairo_surface_t[] = {  {&_swigt__p_cairo_surface_t, 0, 0, 0},{0, 0, 0, 0}};
19667 static swig_cast_info _swigc__p_cairo_t[] = {  {&_swigt__p_cairo_t, 0, 0, 0},{0, 0, 0, 0}};
19668 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
19669 static swig_cast_info _swigc__p_coadd_t[] = {  {&_swigt__p_coadd_t, 0, 0, 0},{0, 0, 0, 0}};
19670 static swig_cast_info _swigc__p_codetree_t[] = {  {&_swigt__p_codetree_t, 0, 0, 0},{0, 0, 0, 0}};
19671 static swig_cast_info _swigc__p_dl[] = {  {&_swigt__p_dl, 0, 0, 0},{0, 0, 0, 0}};
19672 static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
19673 static swig_cast_info _swigc__p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int[] = {  {&_swigt__p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
19674 static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int[] = {  {&_swigt__p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
19675 static swig_cast_info _swigc__p_f_p_struct_plot_args__p_void[] = {  {&_swigt__p_f_p_struct_plot_args__p_void, 0, 0, 0},{0, 0, 0, 0}};
19676 static swig_cast_info _swigc__p_f_p_struct_plot_args_double_double_p_void__void[] = {  {&_swigt__p_f_p_struct_plot_args_double_double_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
19677 static swig_cast_info _swigc__p_f_p_struct_plot_args_p_void__int[] = {  {&_swigt__p_f_p_struct_plot_args_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
19678 static swig_cast_info _swigc__p_f_p_struct_plot_args_p_void__void[] = {  {&_swigt__p_f_p_struct_plot_args_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
19679 static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
19680 static swig_cast_info _swigc__p_index_t[] = {  {&_swigt__p_index_t, 0, 0, 0},{0, 0, 0, 0}};
19681 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
19682 static swig_cast_info _swigc__p_int32_t[] = {  {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}};
19683 static swig_cast_info _swigc__p_lanczos_args_t[] = {  {&_swigt__p_lanczos_args_t, 0, 0, 0},{0, 0, 0, 0}};
19684 static swig_cast_info _swigc__p_pl[] = {  {&_swigt__p_pl, 0, 0, 0},{0, 0, 0, 0}};
19685 static swig_cast_info _swigc__p_plot_args[] = {  {&_swigt__p_plot_args, 0, 0, 0},{0, 0, 0, 0}};
19686 static swig_cast_info _swigc__p_plotgrid_args[] = {  {&_swigt__p_plotgrid_args, 0, 0, 0},{0, 0, 0, 0}};
19687 static swig_cast_info _swigc__p_plothealpix_args[] = {  {&_swigt__p_plothealpix_args, 0, 0, 0},{0, 0, 0, 0}};
19688 static swig_cast_info _swigc__p_plotimage_args[] = {  {&_swigt__p_plotimage_args, 0, 0, 0},{0, 0, 0, 0}};
19689 static swig_cast_info _swigc__p_plotindex_args[] = {  {&_swigt__p_plotindex_args, 0, 0, 0},{0, 0, 0, 0}};
19690 static swig_cast_info _swigc__p_plotmatch_args[] = {  {&_swigt__p_plotmatch_args, 0, 0, 0},{0, 0, 0, 0}};
19691 static swig_cast_info _swigc__p_plotoutline_args[] = {  {&_swigt__p_plotoutline_args, 0, 0, 0},{0, 0, 0, 0}};
19692 static swig_cast_info _swigc__p_plotradec_args[] = {  {&_swigt__p_plotradec_args, 0, 0, 0},{0, 0, 0, 0}};
19693 static swig_cast_info _swigc__p_plotter[] = {  {&_swigt__p_plotter, 0, 0, 0},{0, 0, 0, 0}};
19694 static swig_cast_info _swigc__p_plotxy_args[] = {  {&_swigt__p_plotxy_args, 0, 0, 0},{0, 0, 0, 0}};
19695 static swig_cast_info _swigc__p_qfits_header[] = {  {&_swigt__p_qfits_header, 0, 0, 0},{0, 0, 0, 0}};
19696 static swig_cast_info _swigc__p_qfitsdumper[] = {  {&_swigt__p_qfitsdumper, 0, 0, 0},{0, 0, 0, 0}};
19697 static swig_cast_info _swigc__p_quadfile_t[] = {  {&_swigt__p_quadfile_t, 0, 0, 0},{0, 0, 0, 0}};
19698 static swig_cast_info _swigc__p_sip_t[] = {  {&_swigt__p_sip_t, 0, 0, 0},{0, 0, 0, 0}};
19699 static swig_cast_info _swigc__p_startree_t[] = {  {&_swigt__p_startree_t, 0, 0, 0},{0, 0, 0, 0}};
19700 static swig_cast_info _swigc__p_tan_t[] = {  {&_swigt__p_tan_t, 0, 0, 0},{0, 0, 0, 0}};
19701 static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
19702 static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
19703 
19704 static swig_cast_info *swig_cast_initial[] = {
19705   _swigc__p_FILE,
19706   _swigc__p_MatchObj,
19707   _swigc__p_a_2__double,
19708   _swigc__p_annotation_args,
19709   _swigc__p_anwcs_t,
19710   _swigc__p_bl,
19711   _swigc__p_cairo_op,
19712   _swigc__p_cairo_surface_t,
19713   _swigc__p_cairo_t,
19714   _swigc__p_char,
19715   _swigc__p_coadd_t,
19716   _swigc__p_codetree_t,
19717   _swigc__p_dl,
19718   _swigc__p_double,
19719   _swigc__p_f_p_q_const__char_p_cairo_t_p_struct_plot_args_p_void__int,
19720   _swigc__p_f_p_q_const__char_p_q_const__char_p_struct_plot_args_p_void__int,
19721   _swigc__p_f_p_struct_plot_args__p_void,
19722   _swigc__p_f_p_struct_plot_args_double_double_p_void__void,
19723   _swigc__p_f_p_struct_plot_args_p_void__int,
19724   _swigc__p_f_p_struct_plot_args_p_void__void,
19725   _swigc__p_float,
19726   _swigc__p_index_t,
19727   _swigc__p_int,
19728   _swigc__p_int32_t,
19729   _swigc__p_lanczos_args_t,
19730   _swigc__p_pl,
19731   _swigc__p_plot_args,
19732   _swigc__p_plotgrid_args,
19733   _swigc__p_plothealpix_args,
19734   _swigc__p_plotimage_args,
19735   _swigc__p_plotindex_args,
19736   _swigc__p_plotmatch_args,
19737   _swigc__p_plotoutline_args,
19738   _swigc__p_plotradec_args,
19739   _swigc__p_plotter,
19740   _swigc__p_plotxy_args,
19741   _swigc__p_qfits_header,
19742   _swigc__p_qfitsdumper,
19743   _swigc__p_quadfile_t,
19744   _swigc__p_sip_t,
19745   _swigc__p_startree_t,
19746   _swigc__p_tan_t,
19747   _swigc__p_unsigned_char,
19748   _swigc__p_void,
19749 };
19750 
19751 
19752 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19753 
19754 static swig_const_info swig_const_table[] = {
19755 {0, 0, 0, 0.0, 0, 0}};
19756 
19757 #ifdef __cplusplus
19758 }
19759 #endif
19760 /* -----------------------------------------------------------------------------
19761  * Type initialization:
19762  * This problem is tough by the requirement that no dynamic
19763  * memory is used. Also, since swig_type_info structures store pointers to
19764  * swig_cast_info structures and swig_cast_info structures store pointers back
19765  * to swig_type_info structures, we need some lookup code at initialization.
19766  * The idea is that swig generates all the structures that are needed.
19767  * The runtime then collects these partially filled structures.
19768  * The SWIG_InitializeModule function takes these initial arrays out of
19769  * swig_module, and does all the lookup, filling in the swig_module.types
19770  * array with the correct data and linking the correct swig_cast_info
19771  * structures together.
19772  *
19773  * The generated swig_type_info structures are assigned statically to an initial
19774  * array. We just loop through that array, and handle each type individually.
19775  * First we lookup if this type has been already loaded, and if so, use the
19776  * loaded structure instead of the generated one. Then we have to fill in the
19777  * cast linked list. The cast data is initially stored in something like a
19778  * two-dimensional array. Each row corresponds to a type (there are the same
19779  * number of rows as there are in the swig_type_initial array). Each entry in
19780  * a column is one of the swig_cast_info structures for that type.
19781  * The cast_initial array is actually an array of arrays, because each row has
19782  * a variable number of columns. So to actually build the cast linked list,
19783  * we find the array of casts associated with the type, and loop through it
19784  * adding the casts to the list. The one last trick we need to do is making
19785  * sure the type pointer in the swig_cast_info struct is correct.
19786  *
19787  * First off, we lookup the cast->type name to see if it is already loaded.
19788  * There are three cases to handle:
19789  *  1) If the cast->type has already been loaded AND the type we are adding
19790  *     casting info to has not been loaded (it is in this module), THEN we
19791  *     replace the cast->type pointer with the type pointer that has already
19792  *     been loaded.
19793  *  2) If BOTH types (the one we are adding casting info to, and the
19794  *     cast->type) are loaded, THEN the cast info has already been loaded by
19795  *     the previous module so we just ignore it.
19796  *  3) Finally, if cast->type has not already been loaded, then we add that
19797  *     swig_cast_info to the linked list (because the cast->type) pointer will
19798  *     be correct.
19799  * ----------------------------------------------------------------------------- */
19800 
19801 #ifdef __cplusplus
19802 extern "C" {
19803 #if 0
19804 } /* c-mode */
19805 #endif
19806 #endif
19807 
19808 #if 0
19809 #define SWIGRUNTIME_DEBUG
19810 #endif
19811 
19812 
19813 SWIGRUNTIME void
SWIG_InitializeModule(void * clientdata)19814 SWIG_InitializeModule(void *clientdata) {
19815   size_t i;
19816   swig_module_info *module_head, *iter;
19817   int init;
19818 
19819   /* check to see if the circular list has been setup, if not, set it up */
19820   if (swig_module.next==0) {
19821     /* Initialize the swig_module */
19822     swig_module.type_initial = swig_type_initial;
19823     swig_module.cast_initial = swig_cast_initial;
19824     swig_module.next = &swig_module;
19825     init = 1;
19826   } else {
19827     init = 0;
19828   }
19829 
19830   /* Try and load any already created modules */
19831   module_head = SWIG_GetModule(clientdata);
19832   if (!module_head) {
19833     /* This is the first module loaded for this interpreter */
19834     /* so set the swig module into the interpreter */
19835     SWIG_SetModule(clientdata, &swig_module);
19836   } else {
19837     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
19838     iter=module_head;
19839     do {
19840       if (iter==&swig_module) {
19841         /* Our module is already in the list, so there's nothing more to do. */
19842         return;
19843       }
19844       iter=iter->next;
19845     } while (iter!= module_head);
19846 
19847     /* otherwise we must add our module into the list */
19848     swig_module.next = module_head->next;
19849     module_head->next = &swig_module;
19850   }
19851 
19852   /* When multiple interpreters are used, a module could have already been initialized in
19853        a different interpreter, but not yet have a pointer in this interpreter.
19854        In this case, we do not want to continue adding types... everything should be
19855        set up already */
19856   if (init == 0) return;
19857 
19858   /* Now work on filling in swig_module.types */
19859 #ifdef SWIGRUNTIME_DEBUG
19860   printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
19861 #endif
19862   for (i = 0; i < swig_module.size; ++i) {
19863     swig_type_info *type = 0;
19864     swig_type_info *ret;
19865     swig_cast_info *cast;
19866 
19867 #ifdef SWIGRUNTIME_DEBUG
19868     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
19869 #endif
19870 
19871     /* if there is another module already loaded */
19872     if (swig_module.next != &swig_module) {
19873       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
19874     }
19875     if (type) {
19876       /* Overwrite clientdata field */
19877 #ifdef SWIGRUNTIME_DEBUG
19878       printf("SWIG_InitializeModule: found type %s\n", type->name);
19879 #endif
19880       if (swig_module.type_initial[i]->clientdata) {
19881         type->clientdata = swig_module.type_initial[i]->clientdata;
19882 #ifdef SWIGRUNTIME_DEBUG
19883         printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
19884 #endif
19885       }
19886     } else {
19887       type = swig_module.type_initial[i];
19888     }
19889 
19890     /* Insert casting types */
19891     cast = swig_module.cast_initial[i];
19892     while (cast->type) {
19893       /* Don't need to add information already in the list */
19894       ret = 0;
19895 #ifdef SWIGRUNTIME_DEBUG
19896       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
19897 #endif
19898       if (swig_module.next != &swig_module) {
19899         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
19900 #ifdef SWIGRUNTIME_DEBUG
19901         if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
19902 #endif
19903       }
19904       if (ret) {
19905         if (type == swig_module.type_initial[i]) {
19906 #ifdef SWIGRUNTIME_DEBUG
19907           printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
19908 #endif
19909           cast->type = ret;
19910           ret = 0;
19911         } else {
19912           /* Check for casting already in the list */
19913           swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
19914 #ifdef SWIGRUNTIME_DEBUG
19915           if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
19916 #endif
19917           if (!ocast) ret = 0;
19918         }
19919       }
19920 
19921       if (!ret) {
19922 #ifdef SWIGRUNTIME_DEBUG
19923         printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
19924 #endif
19925         if (type->cast) {
19926           type->cast->prev = cast;
19927           cast->next = type->cast;
19928         }
19929         type->cast = cast;
19930       }
19931       cast++;
19932     }
19933     /* Set entry in modules->types array equal to the type */
19934     swig_module.types[i] = type;
19935   }
19936   swig_module.types[i] = 0;
19937 
19938 #ifdef SWIGRUNTIME_DEBUG
19939   printf("**** SWIG_InitializeModule: Cast List ******\n");
19940   for (i = 0; i < swig_module.size; ++i) {
19941     int j = 0;
19942     swig_cast_info *cast = swig_module.cast_initial[i];
19943     printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
19944     while (cast->type) {
19945       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
19946       cast++;
19947       ++j;
19948     }
19949     printf("---- Total casts: %d\n",j);
19950   }
19951   printf("**** SWIG_InitializeModule: Cast List ******\n");
19952 #endif
19953 }
19954 
19955 /* This function will propagate the clientdata field of type to
19956 * any new swig_type_info structures that have been added into the list
19957 * of equivalent types.  It is like calling
19958 * SWIG_TypeClientData(type, clientdata) a second time.
19959 */
19960 SWIGRUNTIME void
SWIG_PropagateClientData(void)19961 SWIG_PropagateClientData(void) {
19962   size_t i;
19963   swig_cast_info *equiv;
19964   static int init_run = 0;
19965 
19966   if (init_run) return;
19967   init_run = 1;
19968 
19969   for (i = 0; i < swig_module.size; i++) {
19970     if (swig_module.types[i]->clientdata) {
19971       equiv = swig_module.types[i]->cast;
19972       while (equiv) {
19973         if (!equiv->converter) {
19974           if (equiv->type && !equiv->type->clientdata)
19975           SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
19976         }
19977         equiv = equiv->next;
19978       }
19979     }
19980   }
19981 }
19982 
19983 #ifdef __cplusplus
19984 #if 0
19985 {
19986   /* c-mode */
19987 #endif
19988 }
19989 #endif
19990 
19991 
19992 
19993 #ifdef __cplusplus
19994 extern "C" {
19995 #endif
19996 
19997   /* Python-specific SWIG API */
19998 #define SWIG_newvarlink()                             SWIG_Python_newvarlink()
19999 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
20000 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
20001 
20002   /* -----------------------------------------------------------------------------
20003    * global variable support code.
20004    * ----------------------------------------------------------------------------- */
20005 
20006   typedef struct swig_globalvar {
20007     char       *name;                  /* Name of global variable */
20008     PyObject *(*get_attr)(void);       /* Return the current value */
20009     int       (*set_attr)(PyObject *); /* Set the value */
20010     struct swig_globalvar *next;
20011   } swig_globalvar;
20012 
20013   typedef struct swig_varlinkobject {
20014     PyObject_HEAD
20015     swig_globalvar *vars;
20016   } swig_varlinkobject;
20017 
20018   SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject * SWIGUNUSEDPARM (v))20019   swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
20020 #if PY_VERSION_HEX >= 0x03000000
20021     return PyUnicode_InternFromString("<Swig global variables>");
20022 #else
20023     return PyString_FromString("<Swig global variables>");
20024 #endif
20025   }
20026 
20027   SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject * v)20028   swig_varlink_str(swig_varlinkobject *v) {
20029 #if PY_VERSION_HEX >= 0x03000000
20030     PyObject *str = PyUnicode_InternFromString("(");
20031     PyObject *tail;
20032     PyObject *joined;
20033     swig_globalvar *var;
20034     for (var = v->vars; var; var=var->next) {
20035       tail = PyUnicode_FromString(var->name);
20036       joined = PyUnicode_Concat(str, tail);
20037       Py_DecRef(str);
20038       Py_DecRef(tail);
20039       str = joined;
20040       if (var->next) {
20041         tail = PyUnicode_InternFromString(", ");
20042         joined = PyUnicode_Concat(str, tail);
20043         Py_DecRef(str);
20044         Py_DecRef(tail);
20045         str = joined;
20046       }
20047     }
20048     tail = PyUnicode_InternFromString(")");
20049     joined = PyUnicode_Concat(str, tail);
20050     Py_DecRef(str);
20051     Py_DecRef(tail);
20052     str = joined;
20053 #else
20054     PyObject *str = PyString_FromString("(");
20055     swig_globalvar *var;
20056     for (var = v->vars; var; var=var->next) {
20057       PyString_ConcatAndDel(&str,PyString_FromString(var->name));
20058       if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
20059     }
20060     PyString_ConcatAndDel(&str,PyString_FromString(")"));
20061 #endif
20062     return str;
20063   }
20064 
20065   SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject * v)20066   swig_varlink_dealloc(swig_varlinkobject *v) {
20067     swig_globalvar *var = v->vars;
20068     while (var) {
20069       swig_globalvar *n = var->next;
20070       free(var->name);
20071       free(var);
20072       var = n;
20073     }
20074   }
20075 
20076   SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject * v,char * n)20077   swig_varlink_getattr(swig_varlinkobject *v, char *n) {
20078     PyObject *res = NULL;
20079     swig_globalvar *var = v->vars;
20080     while (var) {
20081       if (strcmp(var->name,n) == 0) {
20082         res = (*var->get_attr)();
20083         break;
20084       }
20085       var = var->next;
20086     }
20087     if (res == NULL && !PyErr_Occurred()) {
20088       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
20089     }
20090     return res;
20091   }
20092 
20093   SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject * v,char * n,PyObject * p)20094   swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
20095     int res = 1;
20096     swig_globalvar *var = v->vars;
20097     while (var) {
20098       if (strcmp(var->name,n) == 0) {
20099         res = (*var->set_attr)(p);
20100         break;
20101       }
20102       var = var->next;
20103     }
20104     if (res == 1 && !PyErr_Occurred()) {
20105       PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
20106     }
20107     return res;
20108   }
20109 
20110   SWIGINTERN PyTypeObject*
swig_varlink_type(void)20111   swig_varlink_type(void) {
20112     static char varlink__doc__[] = "Swig var link object";
20113     static PyTypeObject varlink_type;
20114     static int type_init = 0;
20115     if (!type_init) {
20116       const PyTypeObject tmp = {
20117 #if PY_VERSION_HEX >= 0x03000000
20118         PyVarObject_HEAD_INIT(NULL, 0)
20119 #else
20120         PyObject_HEAD_INIT(NULL)
20121         0,                                  /* ob_size */
20122 #endif
20123         "swigvarlink",                      /* tp_name */
20124         sizeof(swig_varlinkobject),         /* tp_basicsize */
20125         0,                                  /* tp_itemsize */
20126         (destructor) swig_varlink_dealloc,  /* tp_dealloc */
20127         0,                                  /* tp_print */
20128         (getattrfunc) swig_varlink_getattr, /* tp_getattr */
20129         (setattrfunc) swig_varlink_setattr, /* tp_setattr */
20130         0,                                  /* tp_compare */
20131         (reprfunc) swig_varlink_repr,       /* tp_repr */
20132         0,                                  /* tp_as_number */
20133         0,                                  /* tp_as_sequence */
20134         0,                                  /* tp_as_mapping */
20135         0,                                  /* tp_hash */
20136         0,                                  /* tp_call */
20137         (reprfunc) swig_varlink_str,        /* tp_str */
20138         0,                                  /* tp_getattro */
20139         0,                                  /* tp_setattro */
20140         0,                                  /* tp_as_buffer */
20141         0,                                  /* tp_flags */
20142         varlink__doc__,                     /* tp_doc */
20143         0,                                  /* tp_traverse */
20144         0,                                  /* tp_clear */
20145         0,                                  /* tp_richcompare */
20146         0,                                  /* tp_weaklistoffset */
20147         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
20148         0,                                  /* tp_del */
20149         0,                                  /* tp_version_tag */
20150 #if PY_VERSION_HEX >= 0x03040000
20151         0,                                  /* tp_finalize */
20152 #endif
20153 #if PY_VERSION_HEX >= 0x03080000
20154         0,                                  /* tp_vectorcall */
20155 #endif
20156 #if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
20157         0,                                  /* tp_print */
20158 #endif
20159 #ifdef COUNT_ALLOCS
20160         0,                                  /* tp_allocs */
20161         0,                                  /* tp_frees */
20162         0,                                  /* tp_maxalloc */
20163         0,                                  /* tp_prev */
20164         0                                   /* tp_next */
20165 #endif
20166       };
20167       varlink_type = tmp;
20168       type_init = 1;
20169       if (PyType_Ready(&varlink_type) < 0)
20170       return NULL;
20171     }
20172     return &varlink_type;
20173   }
20174 
20175   /* Create a variable linking object for use later */
20176   SWIGINTERN PyObject *
SWIG_Python_newvarlink(void)20177   SWIG_Python_newvarlink(void) {
20178     swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
20179     if (result) {
20180       result->vars = 0;
20181     }
20182     return ((PyObject*) result);
20183   }
20184 
20185   SWIGINTERN void
SWIG_Python_addvarlink(PyObject * p,const char * name,PyObject * (* get_attr)(void),int (* set_attr)(PyObject * p))20186   SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
20187     swig_varlinkobject *v = (swig_varlinkobject *) p;
20188     swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
20189     if (gv) {
20190       size_t size = strlen(name)+1;
20191       gv->name = (char *)malloc(size);
20192       if (gv->name) {
20193         memcpy(gv->name, name, size);
20194         gv->get_attr = get_attr;
20195         gv->set_attr = set_attr;
20196         gv->next = v->vars;
20197       }
20198     }
20199     v->vars = gv;
20200   }
20201 
20202   SWIGINTERN PyObject *
SWIG_globals(void)20203   SWIG_globals(void) {
20204     static PyObject *globals = 0;
20205     if (!globals) {
20206       globals = SWIG_newvarlink();
20207     }
20208     return globals;
20209   }
20210 
20211   /* -----------------------------------------------------------------------------
20212    * constants/methods manipulation
20213    * ----------------------------------------------------------------------------- */
20214 
20215   /* Install Constants */
20216   SWIGINTERN void
SWIG_Python_InstallConstants(PyObject * d,swig_const_info constants[])20217   SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
20218     PyObject *obj = 0;
20219     size_t i;
20220     for (i = 0; constants[i].type; ++i) {
20221       switch(constants[i].type) {
20222       case SWIG_PY_POINTER:
20223         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
20224         break;
20225       case SWIG_PY_BINARY:
20226         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
20227         break;
20228       default:
20229         obj = 0;
20230         break;
20231       }
20232       if (obj) {
20233         PyDict_SetItemString(d, constants[i].name, obj);
20234         Py_DECREF(obj);
20235       }
20236     }
20237   }
20238 
20239   /* -----------------------------------------------------------------------------*/
20240   /* Fix SwigMethods to carry the callback ptrs when needed */
20241   /* -----------------------------------------------------------------------------*/
20242 
20243   SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef * methods,swig_const_info * const_table,swig_type_info ** types,swig_type_info ** types_initial)20244   SWIG_Python_FixMethods(PyMethodDef *methods,
20245     swig_const_info *const_table,
20246     swig_type_info **types,
20247     swig_type_info **types_initial) {
20248     size_t i;
20249     for (i = 0; methods[i].ml_name; ++i) {
20250       const char *c = methods[i].ml_doc;
20251       if (!c) continue;
20252       c = strstr(c, "swig_ptr: ");
20253       if (c) {
20254         int j;
20255         swig_const_info *ci = 0;
20256         const char *name = c + 10;
20257         for (j = 0; const_table[j].type; ++j) {
20258           if (strncmp(const_table[j].name, name,
20259               strlen(const_table[j].name)) == 0) {
20260             ci = &(const_table[j]);
20261             break;
20262           }
20263         }
20264         if (ci) {
20265           void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
20266           if (ptr) {
20267             size_t shift = (ci->ptype) - types;
20268             swig_type_info *ty = types_initial[shift];
20269             size_t ldoc = (c - methods[i].ml_doc);
20270             size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
20271             char *ndoc = (char*)malloc(ldoc + lptr + 10);
20272             if (ndoc) {
20273               char *buff = ndoc;
20274               memcpy(buff, methods[i].ml_doc, ldoc);
20275               buff += ldoc;
20276               memcpy(buff, "swig_ptr: ", 10);
20277               buff += 10;
20278               SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
20279               methods[i].ml_doc = ndoc;
20280             }
20281           }
20282         }
20283       }
20284     }
20285   }
20286 
20287   /* -----------------------------------------------------------------------------
20288    * Method creation and docstring support functions
20289    * ----------------------------------------------------------------------------- */
20290 
20291   /* -----------------------------------------------------------------------------
20292    * Function to find the method definition with the correct docstring for the
20293    * proxy module as opposed to the low-level API
20294    * ----------------------------------------------------------------------------- */
20295 
SWIG_PythonGetProxyDoc(const char * name)20296   SWIGINTERN PyMethodDef *SWIG_PythonGetProxyDoc(const char *name) {
20297     /* Find the function in the modified method table */
20298     size_t offset = 0;
20299     int found = 0;
20300     while (SwigMethods_proxydocs[offset].ml_meth != NULL) {
20301       if (strcmp(SwigMethods_proxydocs[offset].ml_name, name) == 0) {
20302         found = 1;
20303         break;
20304       }
20305       offset++;
20306     }
20307     /* Use the copy with the modified docstring if available */
20308     return found ? &SwigMethods_proxydocs[offset] : NULL;
20309   }
20310 
20311   /* -----------------------------------------------------------------------------
20312    * Wrapper of PyInstanceMethod_New() used in Python 3
20313    * It is exported to the generated module, used for -fastproxy
20314    * ----------------------------------------------------------------------------- */
20315 
SWIG_PyInstanceMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)20316   SWIGINTERN PyObject *SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
20317     if (PyCFunction_Check(func)) {
20318       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
20319       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
20320       if (ml)
20321       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
20322     }
20323 #if PY_VERSION_HEX >= 0x03000000
20324     return PyInstanceMethod_New(func);
20325 #else
20326     return PyMethod_New(func, NULL, NULL);
20327 #endif
20328   }
20329 
20330   /* -----------------------------------------------------------------------------
20331    * Wrapper of PyStaticMethod_New()
20332    * It is exported to the generated module, used for -fastproxy
20333    * ----------------------------------------------------------------------------- */
20334 
SWIG_PyStaticMethod_New(PyObject * SWIGUNUSEDPARM (self),PyObject * func)20335   SWIGINTERN PyObject *SWIG_PyStaticMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) {
20336     if (PyCFunction_Check(func)) {
20337       PyCFunctionObject *funcobj = (PyCFunctionObject *)func;
20338       PyMethodDef *ml = SWIG_PythonGetProxyDoc(funcobj->m_ml->ml_name);
20339       if (ml)
20340       func = PyCFunction_NewEx(ml, funcobj->m_self, funcobj->m_module);
20341     }
20342     return PyStaticMethod_New(func);
20343   }
20344 
20345 #ifdef __cplusplus
20346 }
20347 #endif
20348 
20349 /* -----------------------------------------------------------------------------*
20350  *  Partial Init method
20351  * -----------------------------------------------------------------------------*/
20352 
20353 #ifdef __cplusplus
20354 extern "C"
20355 #endif
20356 
20357 SWIGEXPORT
20358 #if PY_VERSION_HEX >= 0x03000000
20359 PyObject*
20360 #else
20361 void
20362 #endif
SWIG_init(void)20363 SWIG_init(void) {
20364   PyObject *m, *d, *md, *globals;
20365 
20366 #if PY_VERSION_HEX >= 0x03000000
20367   static struct PyModuleDef SWIG_module = {
20368     PyModuleDef_HEAD_INIT,
20369     SWIG_name,
20370     NULL,
20371     -1,
20372     SwigMethods,
20373     NULL,
20374     NULL,
20375     NULL,
20376     NULL
20377   };
20378 #endif
20379 
20380 #if defined(SWIGPYTHON_BUILTIN)
20381   static SwigPyClientData SwigPyObject_clientdata = {
20382     0, 0, 0, 0, 0, 0, 0
20383   };
20384   static PyGetSetDef this_getset_def = {
20385     (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
20386   };
20387   static SwigPyGetSet thisown_getset_closure = {
20388     SwigPyObject_own,
20389     SwigPyObject_own
20390   };
20391   static PyGetSetDef thisown_getset_def = {
20392     (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
20393   };
20394   PyTypeObject *builtin_pytype;
20395   int builtin_base_count;
20396   swig_type_info *builtin_basetype;
20397   PyObject *tuple;
20398   PyGetSetDescrObject *static_getset;
20399   PyTypeObject *metatype;
20400   PyTypeObject *swigpyobject;
20401   SwigPyClientData *cd;
20402   PyObject *public_interface, *public_symbol;
20403   PyObject *this_descr;
20404   PyObject *thisown_descr;
20405   PyObject *self = 0;
20406   int i;
20407 
20408   (void)builtin_pytype;
20409   (void)builtin_base_count;
20410   (void)builtin_basetype;
20411   (void)tuple;
20412   (void)static_getset;
20413   (void)self;
20414 
20415   /* Metaclass is used to implement static member variables */
20416   metatype = SwigPyObjectType();
20417   assert(metatype);
20418 #endif
20419 
20420   (void)globals;
20421 
20422   /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
20423   SWIG_This();
20424   SWIG_Python_TypeCache();
20425   SwigPyPacked_type();
20426 #ifndef SWIGPYTHON_BUILTIN
20427   SwigPyObject_type();
20428 #endif
20429 
20430   /* Fix SwigMethods to carry the callback ptrs when needed */
20431   SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
20432 
20433 #if PY_VERSION_HEX >= 0x03000000
20434   m = PyModule_Create(&SWIG_module);
20435 #else
20436   m = Py_InitModule(SWIG_name, SwigMethods);
20437 #endif
20438 
20439   md = d = PyModule_GetDict(m);
20440   (void)md;
20441 
20442   SWIG_InitializeModule(0);
20443 
20444 #ifdef SWIGPYTHON_BUILTIN
20445   swigpyobject = SwigPyObject_TypeOnce();
20446 
20447   SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
20448   assert(SwigPyObject_stype);
20449   cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
20450   if (!cd) {
20451     SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
20452     SwigPyObject_clientdata.pytype = swigpyobject;
20453   } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
20454     PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
20455 # if PY_VERSION_HEX >= 0x03000000
20456     return NULL;
20457 # else
20458     return;
20459 # endif
20460   }
20461 
20462   /* All objects have a 'this' attribute */
20463   this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
20464   (void)this_descr;
20465 
20466   /* All objects have a 'thisown' attribute */
20467   thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
20468   (void)thisown_descr;
20469 
20470   public_interface = PyList_New(0);
20471   public_symbol = 0;
20472   (void)public_symbol;
20473 
20474   PyDict_SetItemString(md, "__all__", public_interface);
20475   Py_DECREF(public_interface);
20476   for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
20477   SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
20478   for (i = 0; swig_const_table[i].name != 0; ++i)
20479   SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
20480 #endif
20481 
20482   SWIG_InstallConstants(d,swig_const_table);
20483 
20484   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_JPG",SWIG_From_int((int)(1)));
20485   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_PNG",SWIG_From_int((int)(2)));
20486   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_PPM",SWIG_From_int((int)(3)));
20487   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_PDF",SWIG_From_int((int)(4)));
20488   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_MEMIMG",SWIG_From_int((int)(5)));
20489   SWIG_Python_SetConstant(d, "PLOTSTUFF_FORMAT_FITS",SWIG_From_int((int)(6)));
20490   SWIG_Python_SetConstant(d, "PTYPE_FLOAT",SWIG_From_int((int)(0)));
20491   SWIG_Python_SetConstant(d, "PTYPE_INT",SWIG_From_int((int)(1)));
20492   SWIG_Python_SetConstant(d, "PTYPE_DOUBLE",SWIG_From_int((int)(2)));
20493   SWIG_Python_SetConstant(d, "PTYPE_UINT8",SWIG_From_int((int)(3)));
20494   SWIG_Python_SetConstant(d, "PTYPE_INT16",SWIG_From_int((int)(4)));
20495   SWIG_Python_SetConstant(d, "BPP_8_UNSIGNED",SWIG_From_int((int)((8))));
20496   SWIG_Python_SetConstant(d, "BPP_16_SIGNED",SWIG_From_int((int)((16))));
20497   SWIG_Python_SetConstant(d, "BPP_32_SIGNED",SWIG_From_int((int)((32))));
20498   SWIG_Python_SetConstant(d, "BPP_IEEE_FLOAT",SWIG_From_int((int)((-32))));
20499   SWIG_Python_SetConstant(d, "BPP_IEEE_DOUBLE",SWIG_From_int((int)((-64))));
20500   SWIG_Python_SetConstant(d, "BPP_DEFAULT",SWIG_From_int((int)((-32))));
20501   SWIG_Python_SetConstant(d, "EDGE_TRUNCATE",SWIG_From_int((int)(0)));
20502   SWIG_Python_SetConstant(d, "EDGE_AVERAGE",SWIG_From_int((int)(1)));
20503   SWIG_Python_SetConstant(d, "DIRECTION_DEFAULT",SWIG_From_int((int)(0)));
20504   SWIG_Python_SetConstant(d, "DIRECTION_POS",SWIG_From_int((int)(1)));
20505   SWIG_Python_SetConstant(d, "DIRECTION_NEG",SWIG_From_int((int)(2)));
20506   SWIG_Python_SetConstant(d, "DIRECTION_POSNEG",SWIG_From_int((int)(3)));
20507   SWIG_Python_SetConstant(d, "DIRECTION_NEGPOS",SWIG_From_int((int)(4)));
20508 
20509   import_array();
20510 
20511   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_CLEAR",SWIG_From_int((int)(CAIRO_OPERATOR_CLEAR)));
20512   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_SOURCE",SWIG_From_int((int)(CAIRO_OPERATOR_SOURCE)));
20513   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_OVER",SWIG_From_int((int)(CAIRO_OPERATOR_OVER)));
20514   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_IN",SWIG_From_int((int)(CAIRO_OPERATOR_IN)));
20515   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_OUT",SWIG_From_int((int)(CAIRO_OPERATOR_OUT)));
20516   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_ATOP",SWIG_From_int((int)(CAIRO_OPERATOR_ATOP)));
20517   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DEST",SWIG_From_int((int)(CAIRO_OPERATOR_DEST)));
20518   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DEST_OVER",SWIG_From_int((int)(CAIRO_OPERATOR_DEST_OVER)));
20519   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DEST_IN",SWIG_From_int((int)(CAIRO_OPERATOR_DEST_IN)));
20520   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DEST_OUT",SWIG_From_int((int)(CAIRO_OPERATOR_DEST_OUT)));
20521   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DEST_ATOP",SWIG_From_int((int)(CAIRO_OPERATOR_DEST_ATOP)));
20522   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_XOR",SWIG_From_int((int)(CAIRO_OPERATOR_XOR)));
20523   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_ADD",SWIG_From_int((int)(CAIRO_OPERATOR_ADD)));
20524   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_SATURATE",SWIG_From_int((int)(CAIRO_OPERATOR_SATURATE)));
20525   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_MULTIPLY",SWIG_From_int((int)(CAIRO_OPERATOR_MULTIPLY)));
20526   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_SCREEN",SWIG_From_int((int)(CAIRO_OPERATOR_SCREEN)));
20527   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_OVERLAY",SWIG_From_int((int)(CAIRO_OPERATOR_OVERLAY)));
20528   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DARKEN",SWIG_From_int((int)(CAIRO_OPERATOR_DARKEN)));
20529   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_LIGHTEN",SWIG_From_int((int)(CAIRO_OPERATOR_LIGHTEN)));
20530   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_COLOR_DODGE",SWIG_From_int((int)(CAIRO_OPERATOR_COLOR_DODGE)));
20531   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_COLOR_BURN",SWIG_From_int((int)(CAIRO_OPERATOR_COLOR_BURN)));
20532   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_HARD_LIGHT",SWIG_From_int((int)(CAIRO_OPERATOR_HARD_LIGHT)));
20533   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_SOFT_LIGHT",SWIG_From_int((int)(CAIRO_OPERATOR_SOFT_LIGHT)));
20534   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_DIFFERENCE",SWIG_From_int((int)(CAIRO_OPERATOR_DIFFERENCE)));
20535   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_EXCLUSION",SWIG_From_int((int)(CAIRO_OPERATOR_EXCLUSION)));
20536   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_HSL_HUE",SWIG_From_int((int)(CAIRO_OPERATOR_HSL_HUE)));
20537   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_HSL_SATURATION",SWIG_From_int((int)(CAIRO_OPERATOR_HSL_SATURATION)));
20538   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_HSL_COLOR",SWIG_From_int((int)(CAIRO_OPERATOR_HSL_COLOR)));
20539   SWIG_Python_SetConstant(d, "CAIRO_OPERATOR_HSL_LUMINOSITY",SWIG_From_int((int)(CAIRO_OPERATOR_HSL_LUMINOSITY)));
20540 #if PY_VERSION_HEX >= 0x03000000
20541   return m;
20542 #else
20543   return;
20544 #endif
20545 }
20546 
20547