Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_canvasTCL8_wrap.cxx
Go to the documentation of this file.
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 SWIGTCL
13 #define SWIGTCL
14 #endif
15 
16 
17 #ifdef __cplusplus
18 /* SwigValueWrapper is described in swig.swg */
19 template<typename T> class SwigValueWrapper {
20  struct SwigMovePointer {
21  T *ptr;
22  SwigMovePointer(T *p) : ptr(p) { }
23  ~SwigMovePointer() { delete ptr; }
24  SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
25  } pointer;
26  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
28 public:
29  SwigValueWrapper() : pointer(0) { }
30  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
31  operator T&() const { return *pointer.ptr; }
32  T *operator&() { return pointer.ptr; }
33 };
34 
35 template <typename T> T SwigValueInit() {
36  return T();
37 }
38 #endif
39 
40 /* -----------------------------------------------------------------------------
41  * This section contains generic SWIG labels for method/variable
42  * declarations/attributes, and other compiler dependent labels.
43  * ----------------------------------------------------------------------------- */
44 
45 /* template workaround for compilers that cannot correctly implement the C++ standard */
46 #ifndef SWIGTEMPLATEDISAMBIGUATOR
47 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
48 # define SWIGTEMPLATEDISAMBIGUATOR template
49 # elif defined(__HP_aCC)
50 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
51 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
52 # define SWIGTEMPLATEDISAMBIGUATOR template
53 # else
54 # define SWIGTEMPLATEDISAMBIGUATOR
55 # endif
56 #endif
57 
58 /* inline attribute */
59 #ifndef SWIGINLINE
60 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
61 # define SWIGINLINE inline
62 # else
63 # define SWIGINLINE
64 # endif
65 #endif
66 
67 /* attribute recognised by some compilers to avoid 'unused' warnings */
68 #ifndef SWIGUNUSED
69 # if defined(__GNUC__)
70 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
71 # define SWIGUNUSED __attribute__ ((__unused__))
72 # else
73 # define SWIGUNUSED
74 # endif
75 # elif defined(__ICC)
76 # define SWIGUNUSED __attribute__ ((__unused__))
77 # else
78 # define SWIGUNUSED
79 # endif
80 #endif
81 
82 #ifndef SWIG_MSC_UNSUPPRESS_4505
83 # if defined(_MSC_VER)
84 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
85 # endif
86 #endif
87 
88 #ifndef SWIGUNUSEDPARM
89 # ifdef __cplusplus
90 # define SWIGUNUSEDPARM(p)
91 # else
92 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
93 # endif
94 #endif
95 
96 /* internal SWIG method */
97 #ifndef SWIGINTERN
98 # define SWIGINTERN static SWIGUNUSED
99 #endif
100 
101 /* internal inline SWIG method */
102 #ifndef SWIGINTERNINLINE
103 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
104 #endif
105 
106 /* exporting methods */
107 #if defined(__GNUC__)
108 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
109 # ifndef GCC_HASCLASSVISIBILITY
110 # define GCC_HASCLASSVISIBILITY
111 # endif
112 # endif
113 #endif
114 
115 #ifndef SWIGEXPORT
116 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
117 # if defined(STATIC_LINKED)
118 # define SWIGEXPORT
119 # else
120 # define SWIGEXPORT __declspec(dllexport)
121 # endif
122 # else
123 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
124 # define SWIGEXPORT __attribute__ ((visibility("default")))
125 # else
126 # define SWIGEXPORT
127 # endif
128 # endif
129 #endif
130 
131 /* calling conventions for Windows */
132 #ifndef SWIGSTDCALL
133 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
134 # define SWIGSTDCALL __stdcall
135 # else
136 # define SWIGSTDCALL
137 # endif
138 #endif
139 
140 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
141 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
142 # define _CRT_SECURE_NO_DEPRECATE
143 #endif
144 
145 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
146 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
147 # define _SCL_SECURE_NO_DEPRECATE
148 #endif
149 
150 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
151 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
152 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
153 #endif
154 
155 /* Intel's compiler complains if a variable which was never initialised is
156  * cast to void, which is a common idiom which we use to indicate that we
157  * are aware a variable isn't used. So we just silence that warning.
158  * See: https://github.com/swig/swig/issues/192 for more discussion.
159  */
160 #ifdef __INTEL_COMPILER
161 # pragma warning disable 592
162 #endif
163 
164 
165 #include <stdio.h>
166 #include <tcl.h>
167 #include <errno.h>
168 #include <stdlib.h>
169 #include <stdarg.h>
170 #include <ctype.h>
171 
172 /* -----------------------------------------------------------------------------
173  * swigrun.swg
174  *
175  * This file contains generic C API SWIG runtime support for pointer
176  * type checking.
177  * ----------------------------------------------------------------------------- */
178 
179 /* This should only be incremented when either the layout of swig_type_info changes,
180  or for whatever reason, the runtime changes incompatibly */
181 #define SWIG_RUNTIME_VERSION "4"
182 
183 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
184 #ifdef SWIG_TYPE_TABLE
185 # define SWIG_QUOTE_STRING(x) #x
186 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
187 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
188 #else
189 # define SWIG_TYPE_TABLE_NAME
190 #endif
191 
192 /*
193  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
194  creating a static or dynamic library from the SWIG runtime code.
195  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
196 
197  But only do this if strictly necessary, ie, if you have problems
198  with your compiler or suchlike.
199 */
200 
201 #ifndef SWIGRUNTIME
202 # define SWIGRUNTIME SWIGINTERN
203 #endif
204 
205 #ifndef SWIGRUNTIMEINLINE
206 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
207 #endif
208 
209 /* Generic buffer size */
210 #ifndef SWIG_BUFFER_SIZE
211 # define SWIG_BUFFER_SIZE 1024
212 #endif
213 
214 /* Flags for pointer conversions */
215 #define SWIG_POINTER_DISOWN 0x1
216 #define SWIG_CAST_NEW_MEMORY 0x2
217 #define SWIG_POINTER_NO_NULL 0x4
218 
219 /* Flags for new pointer objects */
220 #define SWIG_POINTER_OWN 0x1
221 
222 
223 /*
224  Flags/methods for returning states.
225 
226  The SWIG conversion methods, as ConvertPtr, return an integer
227  that tells if the conversion was successful or not. And if not,
228  an error code can be returned (see swigerrors.swg for the codes).
229 
230  Use the following macros/flags to set or process the returning
231  states.
232 
233  In old versions of SWIG, code such as the following was usually written:
234 
235  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
236  // success code
237  } else {
238  //fail code
239  }
240 
241  Now you can be more explicit:
242 
243  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
244  if (SWIG_IsOK(res)) {
245  // success code
246  } else {
247  // fail code
248  }
249 
250  which is the same really, but now you can also do
251 
252  Type *ptr;
253  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
254  if (SWIG_IsOK(res)) {
255  // success code
256  if (SWIG_IsNewObj(res) {
257  ...
258  delete *ptr;
259  } else {
260  ...
261  }
262  } else {
263  // fail code
264  }
265 
266  I.e., now SWIG_ConvertPtr can return new objects and you can
267  identify the case and take care of the deallocation. Of course that
268  also requires SWIG_ConvertPtr to return new result values, such as
269 
270  int SWIG_ConvertPtr(obj, ptr,...) {
271  if (<obj is ok>) {
272  if (<need new object>) {
273  *ptr = <ptr to new allocated object>;
274  return SWIG_NEWOBJ;
275  } else {
276  *ptr = <ptr to old object>;
277  return SWIG_OLDOBJ;
278  }
279  } else {
280  return SWIG_BADOBJ;
281  }
282  }
283 
284  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
285  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
286  SWIG errors code.
287 
288  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
289  allows to return the 'cast rank', for example, if you have this
290 
291  int food(double)
292  int fooi(int);
293 
294  and you call
295 
296  food(1) // cast rank '1' (1 -> 1.0)
297  fooi(1) // cast rank '0'
298 
299  just use the SWIG_AddCast()/SWIG_CheckState()
300 */
301 
302 #define SWIG_OK (0)
303 #define SWIG_ERROR (-1)
304 #define SWIG_IsOK(r) (r >= 0)
305 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
306 
307 /* The CastRankLimit says how many bits are used for the cast rank */
308 #define SWIG_CASTRANKLIMIT (1 << 8)
309 /* The NewMask denotes the object was created (using new/malloc) */
310 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
311 /* The TmpMask is for in/out typemaps that use temporal objects */
312 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
313 /* Simple returning values */
314 #define SWIG_BADOBJ (SWIG_ERROR)
315 #define SWIG_OLDOBJ (SWIG_OK)
316 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
317 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
318 /* Check, add and del mask methods */
319 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
320 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
321 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
322 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
323 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
324 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
325 
326 /* Cast-Rank Mode */
327 #if defined(SWIG_CASTRANK_MODE)
328 # ifndef SWIG_TypeRank
329 # define SWIG_TypeRank unsigned long
330 # endif
331 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
332 # define SWIG_MAXCASTRANK (2)
333 # endif
334 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
335 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
336 SWIGINTERNINLINE int SWIG_AddCast(int r) {
337  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
338 }
340  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
341 }
342 #else /* no cast-rank mode */
343 # define SWIG_AddCast(r) (r)
344 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
345 #endif
346 
347 
348 #include <string.h>
349 
350 #ifdef __cplusplus
351 extern "C" {
352 #endif
353 
354 typedef void *(*swig_converter_func)(void *, int *);
355 typedef struct swig_type_info *(*swig_dycast_func)(void **);
356 
357 /* Structure to store information on one type */
358 typedef struct swig_type_info {
359  const char *name; /* mangled name of this type */
360  const char *str; /* human readable name of this type */
361  swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
362  struct swig_cast_info *cast; /* linked list of types that can cast into this type */
363  void *clientdata; /* language specific type data */
364  int owndata; /* flag if the structure owns the clientdata */
366 
367 /* Structure to store a type and conversion function used for casting */
368 typedef struct swig_cast_info {
369  swig_type_info *type; /* pointer to type that is equivalent to this type */
370  swig_converter_func converter; /* function to cast the void pointers */
371  struct swig_cast_info *next; /* pointer to next cast in linked list */
372  struct swig_cast_info *prev; /* pointer to the previous cast */
374 
375 /* Structure used to store module information
376  * Each module generates one structure like this, and the runtime collects
377  * all of these structures and stores them in a circularly linked list.*/
378 typedef struct swig_module_info {
379  swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
380  size_t size; /* Number of types in this module */
381  struct swig_module_info *next; /* Pointer to next element in circularly linked list */
382  swig_type_info **type_initial; /* Array of initially generated type structures */
383  swig_cast_info **cast_initial; /* Array of initially generated casting structures */
384  void *clientdata; /* Language specific module data */
386 
387 /*
388  Compare two type names skipping the space characters, therefore
389  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
390 
391  Return 0 when the two name types are equivalent, as in
392  strncmp, but skipping ' '.
393 */
394 SWIGRUNTIME int
395 SWIG_TypeNameComp(const char *f1, const char *l1,
396  const char *f2, const char *l2) {
397  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
398  while ((*f1 == ' ') && (f1 != l1)) ++f1;
399  while ((*f2 == ' ') && (f2 != l2)) ++f2;
400  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
401  }
402  return (int)((l1 - f1) - (l2 - f2));
403 }
404 
405 /*
406  Check type equivalence in a name list like <name1>|<name2>|...
407  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
408 */
409 SWIGRUNTIME int
410 SWIG_TypeCmp(const char *nb, const char *tb) {
411  int equiv = 1;
412  const char* te = tb + strlen(tb);
413  const char* ne = nb;
414  while (equiv != 0 && *ne) {
415  for (nb = ne; *ne; ++ne) {
416  if (*ne == '|') break;
417  }
418  equiv = SWIG_TypeNameComp(nb, ne, tb, te);
419  if (*ne) ++ne;
420  }
421  return equiv;
422 }
423 
424 /*
425  Check type equivalence in a name list like <name1>|<name2>|...
426  Return 0 if not equal, 1 if equal
427 */
428 SWIGRUNTIME int
429 SWIG_TypeEquiv(const char *nb, const char *tb) {
430  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
431 }
432 
433 /*
434  Check the typename
435 */
437 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
438  if (ty) {
439  swig_cast_info *iter = ty->cast;
440  while (iter) {
441  if (strcmp(iter->type->name, c) == 0) {
442  if (iter == ty->cast)
443  return iter;
444  /* Move iter to the top of the linked list */
445  iter->prev->next = iter->next;
446  if (iter->next)
447  iter->next->prev = iter->prev;
448  iter->next = ty->cast;
449  iter->prev = 0;
450  if (ty->cast) ty->cast->prev = iter;
451  ty->cast = iter;
452  return iter;
453  }
454  iter = iter->next;
455  }
456  }
457  return 0;
458 }
459 
460 /*
461  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
462 */
465  if (ty) {
466  swig_cast_info *iter = ty->cast;
467  while (iter) {
468  if (iter->type == from) {
469  if (iter == ty->cast)
470  return iter;
471  /* Move iter to the top of the linked list */
472  iter->prev->next = iter->next;
473  if (iter->next)
474  iter->next->prev = iter->prev;
475  iter->next = ty->cast;
476  iter->prev = 0;
477  if (ty->cast) ty->cast->prev = iter;
478  ty->cast = iter;
479  return iter;
480  }
481  iter = iter->next;
482  }
483  }
484  return 0;
485 }
486 
487 /*
488  Cast a pointer up an inheritance hierarchy
489 */
490 SWIGRUNTIMEINLINE void *
491 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
492  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
493 }
494 
495 /*
496  Dynamic pointer casting. Down an inheritance hierarchy
497 */
500  swig_type_info *lastty = ty;
501  if (!ty || !ty->dcast) return ty;
502  while (ty && (ty->dcast)) {
503  ty = (*ty->dcast)(ptr);
504  if (ty) lastty = ty;
505  }
506  return lastty;
507 }
508 
509 /*
510  Return the name associated with this type
511 */
512 SWIGRUNTIMEINLINE const char *
514  return ty->name;
515 }
516 
517 /*
518  Return the pretty name associated with this type,
519  that is an unmangled type name in a form presentable to the user.
520 */
521 SWIGRUNTIME const char *
523  /* The "str" field contains the equivalent pretty names of the
524  type, separated by vertical-bar characters. We choose
525  to print the last name, as it is often (?) the most
526  specific. */
527  if (!type) return NULL;
528  if (type->str != NULL) {
529  const char *last_name = type->str;
530  const char *s;
531  for (s = type->str; *s; s++)
532  if (*s == '|') last_name = s+1;
533  return last_name;
534  }
535  else
536  return type->name;
537 }
538 
539 /*
540  Set the clientdata field for a type
541 */
542 SWIGRUNTIME void
544  swig_cast_info *cast = ti->cast;
545  /* if (ti->clientdata == clientdata) return; */
546  ti->clientdata = clientdata;
547 
548  while (cast) {
549  if (!cast->converter) {
550  swig_type_info *tc = cast->type;
551  if (!tc->clientdata) {
553  }
554  }
555  cast = cast->next;
556  }
557 }
558 SWIGRUNTIME void
561  ti->owndata = 1;
562 }
563 
564 /*
565  Search for a swig_type_info structure only by mangled name
566  Search is a O(log #types)
567 
568  We start searching at module start, and finish searching when start == end.
569  Note: if start == end at the beginning of the function, we go all the way around
570  the circular list.
571 */
574  swig_module_info *end,
575  const char *name) {
576  swig_module_info *iter = start;
577  do {
578  if (iter->size) {
579  size_t l = 0;
580  size_t r = iter->size - 1;
581  do {
582  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
583  size_t i = (l + r) >> 1;
584  const char *iname = iter->types[i]->name;
585  if (iname) {
586  int compare = strcmp(name, iname);
587  if (compare == 0) {
588  return iter->types[i];
589  } else if (compare < 0) {
590  if (i) {
591  r = i - 1;
592  } else {
593  break;
594  }
595  } else if (compare > 0) {
596  l = i + 1;
597  }
598  } else {
599  break; /* should never happen */
600  }
601  } while (l <= r);
602  }
603  iter = iter->next;
604  } while (iter != end);
605  return 0;
606 }
607 
608 /*
609  Search for a swig_type_info structure for either a mangled name or a human readable name.
610  It first searches the mangled names of the types, which is a O(log #types)
611  If a type is not found it then searches the human readable names, which is O(#types).
612 
613  We start searching at module start, and finish searching when start == end.
614  Note: if start == end at the beginning of the function, we go all the way around
615  the circular list.
616 */
619  swig_module_info *end,
620  const char *name) {
621  /* STEP 1: Search the name field using binary search */
622  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
623  if (ret) {
624  return ret;
625  } else {
626  /* STEP 2: If the type hasn't been found, do a complete search
627  of the str field (the human readable name) */
628  swig_module_info *iter = start;
629  do {
630  size_t i = 0;
631  for (; i < iter->size; ++i) {
632  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
633  return iter->types[i];
634  }
635  iter = iter->next;
636  } while (iter != end);
637  }
638 
639  /* neither found a match */
640  return 0;
641 }
642 
643 /*
644  Pack binary data into a string
645 */
646 SWIGRUNTIME char *
647 SWIG_PackData(char *c, void *ptr, size_t sz) {
648  static const char hex[17] = "0123456789abcdef";
649  const unsigned char *u = (unsigned char *) ptr;
650  const unsigned char *eu = u + sz;
651  for (; u != eu; ++u) {
652  unsigned char uu = *u;
653  *(c++) = hex[(uu & 0xf0) >> 4];
654  *(c++) = hex[uu & 0xf];
655  }
656  return c;
657 }
658 
659 /*
660  Unpack binary data from a string
661 */
662 SWIGRUNTIME const char *
663 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
664  unsigned char *u = (unsigned char *) ptr;
665  const unsigned char *eu = u + sz;
666  for (; u != eu; ++u) {
667  char d = *(c++);
668  unsigned char uu;
669  if ((d >= '0') && (d <= '9'))
670  uu = (unsigned char)((d - '0') << 4);
671  else if ((d >= 'a') && (d <= 'f'))
672  uu = (unsigned char)((d - ('a'-10)) << 4);
673  else
674  return (char *) 0;
675  d = *(c++);
676  if ((d >= '0') && (d <= '9'))
677  uu |= (unsigned char)(d - '0');
678  else if ((d >= 'a') && (d <= 'f'))
679  uu |= (unsigned char)(d - ('a'-10));
680  else
681  return (char *) 0;
682  *u = uu;
683  }
684  return c;
685 }
686 
687 /*
688  Pack 'void *' into a string buffer.
689 */
690 SWIGRUNTIME char *
691 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
692  char *r = buff;
693  if ((2*sizeof(void *) + 2) > bsz) return 0;
694  *(r++) = '_';
695  r = SWIG_PackData(r,&ptr,sizeof(void *));
696  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
697  strcpy(r,name);
698  return buff;
699 }
700 
701 SWIGRUNTIME const char *
702 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
703  if (*c != '_') {
704  if (strcmp(c,"NULL") == 0) {
705  *ptr = (void *) 0;
706  return name;
707  } else {
708  return 0;
709  }
710  }
711  return SWIG_UnpackData(++c,ptr,sizeof(void *));
712 }
713 
714 SWIGRUNTIME char *
715 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
716  char *r = buff;
717  size_t lname = (name ? strlen(name) : 0);
718  if ((2*sz + 2 + lname) > bsz) return 0;
719  *(r++) = '_';
720  r = SWIG_PackData(r,ptr,sz);
721  if (lname) {
722  strncpy(r,name,lname+1);
723  } else {
724  *r = 0;
725  }
726  return buff;
727 }
728 
729 SWIGRUNTIME const char *
730 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
731  if (*c != '_') {
732  if (strcmp(c,"NULL") == 0) {
733  memset(ptr,0,sz);
734  return name;
735  } else {
736  return 0;
737  }
738  }
739  return SWIG_UnpackData(++c,ptr,sz);
740 }
741 
742 #ifdef __cplusplus
743 }
744 #endif
745 
746 /* Errors in SWIG */
747 #define SWIG_UnknownError -1
748 #define SWIG_IOError -2
749 #define SWIG_RuntimeError -3
750 #define SWIG_IndexError -4
751 #define SWIG_TypeError -5
752 #define SWIG_DivisionByZero -6
753 #define SWIG_OverflowError -7
754 #define SWIG_SyntaxError -8
755 #define SWIG_ValueError -9
756 #define SWIG_SystemError -10
757 #define SWIG_AttributeError -11
758 #define SWIG_MemoryError -12
759 #define SWIG_NullReferenceError -13
760 
761 
762 
763 /* -----------------------------------------------------------------------------
764  * error manipulation
765  * ----------------------------------------------------------------------------- */
766 
767 SWIGINTERN const char*
769  const char* type = 0;
770  switch(code) {
771  case SWIG_MemoryError:
772  type = "MemoryError";
773  break;
774  case SWIG_IOError:
775  type = "IOError";
776  break;
777  case SWIG_RuntimeError:
778  type = "RuntimeError";
779  break;
780  case SWIG_IndexError:
781  type = "IndexError";
782  break;
783  case SWIG_TypeError:
784  type = "TypeError";
785  break;
786  case SWIG_DivisionByZero:
787  type = "ZeroDivisionError";
788  break;
789  case SWIG_OverflowError:
790  type = "OverflowError";
791  break;
792  case SWIG_SyntaxError:
793  type = "SyntaxError";
794  break;
795  case SWIG_ValueError:
796  type = "ValueError";
797  break;
798  case SWIG_SystemError:
799  type = "SystemError";
800  break;
801  case SWIG_AttributeError:
802  type = "AttributeError";
803  break;
804  default:
805  type = "RuntimeError";
806  }
807  return type;
808 }
809 
810 
811 SWIGINTERN void
812 SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
813 {
814  Tcl_ResetResult(interp);
815  Tcl_SetObjResult(interp, obj);
816  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
817 }
818 
819 SWIGINTERN void
820 SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
821 {
822  Tcl_ResetResult(interp);
823  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
824  Tcl_AppendResult(interp, ctype, " ", mesg, NULL);
825  /*
826  Tcl_AddErrorInfo(interp, ctype);
827  Tcl_AddErrorInfo(interp, " ");
828  Tcl_AddErrorInfo(interp, mesg);
829  */
830 }
831 
832 SWIGINTERNINLINE void
833 SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char* mesg)
834 {
835  Tcl_AddErrorInfo(interp, mesg);
836 }
837 
838 
839 
840 /* -----------------------------------------------------------------------------
841  * SWIG API. Portion that goes into the runtime
842  * ----------------------------------------------------------------------------- */
843 #ifdef __cplusplus
844 extern "C" {
845 #endif
846 
847 /* -----------------------------------------------------------------------------
848  * Constant declarations
849  * ----------------------------------------------------------------------------- */
850 
851 /* Constant Types */
852 #define SWIG_TCL_POINTER 4
853 #define SWIG_TCL_BINARY 5
854 
855 /* Constant information structure */
856 typedef struct swig_const_info {
857  int type;
858  const char *name;
859  long lvalue;
860  double dvalue;
861  void *pvalue;
864 
865 typedef int (*swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
866 typedef int (*swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
867 typedef char *(*swig_variable_func)(ClientData, Tcl_Interp *, char *, char *, int);
868 typedef void (*swig_delete_func)(ClientData);
869 
870 typedef struct swig_method {
871  const char *name;
874 
875 typedef struct swig_attribute {
876  const char *name;
880 
881 typedef struct swig_class {
882  const char *name;
885  void (*destructor)(void *);
888  struct swig_class **bases;
889  const char **base_names;
891  Tcl_HashTable hashtable;
893 
894 typedef struct swig_instance {
895  Tcl_Obj *thisptr;
896  void *thisvalue;
898  int destroy;
899  Tcl_Command cmdtok;
901 
902 /* Structure for command table */
903 typedef struct {
904  const char *name;
905  int (*wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
906  ClientData clientdata;
908 
909 /* Structure for variable linking table */
910 typedef struct {
911  const char *name;
912  void *addr;
913  char * (*get)(ClientData, Tcl_Interp *, char *, char *, int);
914  char * (*set)(ClientData, Tcl_Interp *, char *, char *, int);
915 } swig_var_info;
916 
917 
918 /* -----------------------------------------------------------------------------*
919  * Install a constant object
920  * -----------------------------------------------------------------------------*/
921 
922 static Tcl_HashTable swigconstTable;
923 static int swigconstTableinit = 0;
924 
925 SWIGINTERN void
926 SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char* name, Tcl_Obj *obj) {
927  int newobj;
928  Tcl_ObjSetVar2(interp,Tcl_NewStringObj(name,-1), NULL, obj, TCL_GLOBAL_ONLY);
929  Tcl_SetHashValue(Tcl_CreateHashEntry(&swigconstTable, name, &newobj), (ClientData) obj);
930 }
931 
932 SWIGINTERN Tcl_Obj *
933 SWIG_Tcl_GetConstantObj(const char *key) {
934  Tcl_HashEntry *entryPtr;
935  if (!swigconstTableinit) return 0;
936  entryPtr = Tcl_FindHashEntry(&swigconstTable, key);
937  if (entryPtr) {
938  return (Tcl_Obj *) Tcl_GetHashValue(entryPtr);
939  }
940  return 0;
941 }
942 
943 #ifdef __cplusplus
944 }
945 #endif
946 
947 
948 
949 /* -----------------------------------------------------------------------------
950  * tclrun.swg
951  *
952  * This file contains the runtime support for Tcl modules and includes
953  * code for managing global variables and pointer type checking.
954  * ----------------------------------------------------------------------------- */
955 
956 /* Common SWIG API */
957 
958 /* for raw pointers */
959 #define SWIG_ConvertPtr(oc, ptr, ty, flags) SWIG_Tcl_ConvertPtr(interp, oc, ptr, ty, flags)
960 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Tcl_NewPointerObj(ptr, type, flags)
961 
962 /* for raw packed data */
963 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp, obj, ptr, sz, ty)
964 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
965 
966 /* for class or struct pointers */
967 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, flags)
968 #define SWIG_NewInstanceObj(thisvalue, type, flags) SWIG_Tcl_NewInstanceObj(interp, thisvalue, type, flags)
969 
970 /* for C or C++ function pointers */
971 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, 0)
972 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Tcl_NewPointerObj(ptr, type, 0)
973 
974 /* for C++ member pointers, ie, member methods */
975 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp,obj, ptr, sz, ty)
976 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
977 
978 
979 /* Runtime API */
980 
981 #define SWIG_GetModule(clientdata) SWIG_Tcl_GetModule((Tcl_Interp *) (clientdata))
982 #define SWIG_SetModule(clientdata, pointer) SWIG_Tcl_SetModule((Tcl_Interp *) (clientdata), pointer)
983 
984 
985 /* Error manipulation */
986 
987 #define SWIG_ErrorType(code) SWIG_Tcl_ErrorType(code)
988 #define SWIG_Error(code, msg) SWIG_Tcl_SetErrorMsg(interp, SWIG_Tcl_ErrorType(code), msg)
989 #define SWIG_fail goto fail
990 
991 
992 /* Tcl-specific SWIG API */
993 
994 #define SWIG_Acquire(ptr) SWIG_Tcl_Acquire(ptr)
995 #define SWIG_MethodCommand SWIG_Tcl_MethodCommand
996 #define SWIG_Disown(ptr) SWIG_Tcl_Disown(ptr)
997 #define SWIG_ConvertPtrFromString(c, ptr, ty, flags) SWIG_Tcl_ConvertPtrFromString(interp, c, ptr, ty, flags)
998 #define SWIG_MakePtr(c, ptr, ty, flags) SWIG_Tcl_MakePtr(c, ptr, ty, flags)
999 #define SWIG_PointerTypeFromString(c) SWIG_Tcl_PointerTypeFromString(c)
1000 #define SWIG_GetArgs SWIG_Tcl_GetArgs
1001 #define SWIG_GetConstantObj(key) SWIG_Tcl_GetConstantObj(key)
1002 #define SWIG_ObjectConstructor SWIG_Tcl_ObjectConstructor
1003 #define SWIG_Thisown(ptr) SWIG_Tcl_Thisown(ptr)
1004 #define SWIG_ObjectDelete SWIG_Tcl_ObjectDelete
1005 
1006 
1007 #define SWIG_TCL_DECL_ARGS_2(arg1, arg2) (Tcl_Interp *interp SWIGUNUSED, arg1, arg2)
1008 #define SWIG_TCL_CALL_ARGS_2(arg1, arg2) (interp, arg1, arg2)
1009 /* -----------------------------------------------------------------------------
1010  * pointers/data manipulation
1011  * ----------------------------------------------------------------------------- */
1012 
1013 /* For backward compatibility only */
1014 #define SWIG_POINTER_EXCEPTION 0
1015 #define SWIG_GetConstant SWIG_GetConstantObj
1016 #define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj
1017 
1018 #if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5
1019 #define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
1020 #else
1021 #define SWIG_TCL_HASHTABLE_INIT {0}
1022 #endif
1023 
1024 #include "assert.h"
1025 
1026 #ifdef __cplusplus
1027 extern "C" {
1028 #endif
1029 
1030 /* Object support */
1031 
1032 SWIGRUNTIME Tcl_HashTable*
1034  static Tcl_HashTable swigobjectTable;
1035  static int swigobjectTableinit = 0;
1036  if (!swigobjectTableinit) {
1037  Tcl_InitHashTable(&swigobjectTable, TCL_ONE_WORD_KEYS);
1038  swigobjectTableinit = 1;
1039  }
1040  return &swigobjectTable;
1041 }
1042 
1043 /* Acquire ownership of a pointer */
1044 SWIGRUNTIME void
1045 SWIG_Tcl_Acquire(void *ptr) {
1046  int newobj;
1047  Tcl_CreateHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr, &newobj);
1048 }
1049 
1050 SWIGRUNTIME int
1051 SWIG_Tcl_Thisown(void *ptr) {
1052  if (Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr)) {
1053  return 1;
1054  }
1055  return 0;
1056 }
1057 
1058 /* Disown a pointer. Returns 1 if we owned it to begin with */
1059 SWIGRUNTIME int
1060 SWIG_Tcl_Disown(void *ptr) {
1061  Tcl_HashEntry *entryPtr = Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr);
1062  if (entryPtr) {
1063  Tcl_DeleteHashEntry(entryPtr);
1064  return 1;
1065  }
1066  return 0;
1067 }
1068 
1069 /* Convert a pointer value */
1070 SWIGRUNTIME int
1071 SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags) {
1072  swig_cast_info *tc;
1073  /* Pointer values must start with leading underscore */
1074  while (*c != '_') {
1075  *ptr = (void *) 0;
1076  if (strcmp(c,"NULL") == 0)
1078 
1079  /* Empty string: not a pointer */
1080  if (*c == 0) return SWIG_ERROR;
1081 
1082  /* Hmmm. It could be an object name. */
1083 
1084  /* Check if this is a command at all. Prevents <c> cget -this */
1085  /* from being called when c is not a command, firing the unknown proc */
1086  if (Tcl_VarEval(interp,"info commands ", c, (char *) NULL) == TCL_OK) {
1087  Tcl_Obj *result = Tcl_GetObjResult(interp);
1088  if (*(Tcl_GetStringFromObj(result, NULL)) == 0) {
1089  /* It's not a command, so it can't be a pointer */
1090  Tcl_ResetResult(interp);
1091  return SWIG_ERROR;
1092  }
1093  } else {
1094  /* This will only fail if the argument is multiple words. */
1095  /* Multiple words are also not commands. */
1096  Tcl_ResetResult(interp);
1097  return SWIG_ERROR;
1098  }
1099 
1100  /* Check if this is really a SWIG pointer */
1101  if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) != TCL_OK) {
1102  Tcl_ResetResult(interp);
1103  return SWIG_ERROR;
1104  }
1105 
1106  c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL);
1107  }
1108 
1109  c++;
1110  c = SWIG_UnpackData(c,ptr,sizeof(void *));
1111  if (ty) {
1112  tc = c ? SWIG_TypeCheck(c,ty) : 0;
1113  if (!tc) {
1114  return SWIG_ERROR;
1115  }
1116  if (flags & SWIG_POINTER_DISOWN) {
1117  SWIG_Disown((void *) *ptr);
1118  }
1119  {
1120  int newmemory = 0;
1121  *ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory);
1122  assert(!newmemory); /* newmemory handling not yet implemented */
1123  }
1124  }
1125  return SWIG_OK;
1126 }
1127 
1128 /* Convert a pointer value */
1130 SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags) {
1131  return SWIG_Tcl_ConvertPtrFromString(interp, Tcl_GetStringFromObj(oc,NULL), ptr, ty, flags);
1132 }
1133 
1134 /* Convert a pointer value */
1135 SWIGRUNTIME char *
1137  char d;
1138  /* Pointer values must start with leading underscore. NULL has no type */
1139  if (*c != '_') {
1140  return 0;
1141  }
1142  c++;
1143  /* Extract hex value from pointer */
1144  while ((d = *c)) {
1145  if (!(((d >= '0') && (d <= '9')) || ((d >= 'a') && (d <= 'f')))) break;
1146  c++;
1147  }
1148  return c;
1149 }
1150 
1151 /* Convert a packed pointer value */
1152 SWIGRUNTIME int
1153 SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp) , Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty) {
1154  swig_cast_info *tc;
1155  const char *c;
1156 
1157  if (!obj) goto type_error;
1158  c = Tcl_GetStringFromObj(obj,NULL);
1159  /* Pointer values must start with leading underscore */
1160  if (*c != '_') goto type_error;
1161  c++;
1162  c = SWIG_UnpackData(c,ptr,sz);
1163  if (ty) {
1164  tc = SWIG_TypeCheck(c,ty);
1165  if (!tc) goto type_error;
1166  }
1167  return SWIG_OK;
1168 
1169  type_error:
1170 
1171  return SWIG_ERROR;
1172 }
1173 
1174 
1175 /* Take a pointer and convert it to a string */
1176 SWIGRUNTIME void
1177 SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags)) {
1178  if (ptr) {
1179  *(c++) = '_';
1180  c = SWIG_PackData(c,&ptr,sizeof(void *));
1181  strcpy(c,ty->name);
1182  } else {
1183  strcpy(c,"NULL");
1184  }
1185 }
1186 
1187 /* Create a new pointer object */
1188 SWIGRUNTIMEINLINE Tcl_Obj *
1189 SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
1190  Tcl_Obj *robj;
1191  char result[SWIG_BUFFER_SIZE];
1192  SWIG_MakePtr(result,ptr,type,flags);
1193  robj = Tcl_NewStringObj(result,-1);
1194  return robj;
1195 }
1196 
1197 SWIGRUNTIME Tcl_Obj *
1198 SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1199  char result[1024];
1200  char *r = result;
1201  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1202  *(r++) = '_';
1203  r = SWIG_PackData(r,ptr,sz);
1204  strcpy(r,type->name);
1205  return Tcl_NewStringObj(result,-1);
1206 }
1207 
1208 /* -----------------------------------------------------------------------------*
1209  * Get type list
1210  * -----------------------------------------------------------------------------*/
1211 
1213 SWIG_Tcl_GetModule(Tcl_Interp *interp) {
1214  const char *data;
1215  swig_module_info *ret = 0;
1216 
1217  /* first check if pointer already created */
1218  data = Tcl_GetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TCL_GLOBAL_ONLY);
1219  if (data) {
1220  SWIG_UnpackData(data, &ret, sizeof(swig_type_info **));
1221  }
1222 
1223  return ret;
1224 }
1225 
1226 SWIGRUNTIME void
1227 SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module) {
1228  char buf[SWIG_BUFFER_SIZE];
1229  char *data;
1230 
1231  /* create a new pointer */
1232  data = SWIG_PackData(buf, &module, sizeof(swig_type_info **));
1233  *data = 0;
1234  Tcl_SetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, buf, TCL_GLOBAL_ONLY);
1235 }
1236 
1237 /* -----------------------------------------------------------------------------*
1238  * Object auxiliaries
1239  * -----------------------------------------------------------------------------*/
1240 
1241 
1242 SWIGRUNTIME void
1243 SWIG_Tcl_ObjectDelete(ClientData clientData) {
1244  swig_instance *si = (swig_instance *) clientData;
1245  if (!si) return;
1246  if (si->destroy && SWIG_Disown(si->thisvalue)) {
1247  if (si->classptr->destructor) {
1248  (si->classptr->destructor)(si->thisvalue);
1249  }
1250  }
1251  Tcl_DecrRefCount(si->thisptr);
1252  free(si);
1253 }
1254 
1255 /* Function to invoke object methods given an instance */
1256 SWIGRUNTIME int
1257 SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[]) {
1258  char *method, *attrname;
1259  swig_instance *inst = (swig_instance *) clientData;
1260  swig_method *meth;
1261  swig_attribute *attr;
1262  Tcl_Obj *oldarg;
1263  Tcl_Obj **objv;
1264  int rcode;
1265  swig_class *cls;
1266  swig_class *cls_stack[64];
1267  int cls_stack_bi[64];
1268  int cls_stack_top = 0;
1269  int numconf = 2;
1270  int bi;
1271 
1272  objv = (Tcl_Obj **) _objv;
1273  if (objc < 2) {
1274  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1275  return TCL_ERROR;
1276  }
1277  method = Tcl_GetStringFromObj(objv[1],NULL);
1278  if (strcmp(method,"-acquire") == 0) {
1279  inst->destroy = 1;
1280  SWIG_Acquire(inst->thisvalue);
1281  return TCL_OK;
1282  }
1283  if (strcmp(method,"-disown") == 0) {
1284  if (inst->destroy) {
1285  SWIG_Disown(inst->thisvalue);
1286  }
1287  inst->destroy = 0;
1288  return TCL_OK;
1289  }
1290  if (strcmp(method,"-delete") == 0) {
1291  Tcl_DeleteCommandFromToken(interp,inst->cmdtok);
1292  return TCL_OK;
1293  }
1294  cls_stack[cls_stack_top] = inst->classptr;
1295  cls_stack_bi[cls_stack_top] = -1;
1296  while (1) {
1297  Tcl_HashEntry* hashentry;
1298  bi = cls_stack_bi[cls_stack_top];
1299  cls = cls_stack[cls_stack_top];
1300  if (bi != -1) {
1301  if (!cls->bases[bi] && cls->base_names[bi]) {
1302  /* lookup and cache the base class */
1303  swig_type_info *info = SWIG_TypeQueryModule(cls->module, cls->module, cls->base_names[bi]);
1304  if (info) cls->bases[bi] = (swig_class *) info->clientdata;
1305  }
1306  cls = cls->bases[bi];
1307  if (cls) {
1308  cls_stack_bi[cls_stack_top]++;
1309  cls_stack_top++;
1310  cls_stack[cls_stack_top] = cls;
1311  cls_stack_bi[cls_stack_top] = -1;
1312  continue;
1313  }
1314  }
1315  if (!cls) {
1316  cls_stack_top--;
1317  if (cls_stack_top < 0) break;
1318  else continue;
1319  }
1320  cls_stack_bi[cls_stack_top]++;
1321 
1322  hashentry = Tcl_FindHashEntry(&(cls->hashtable), method);
1323  if (hashentry) {
1324  ClientData cd = Tcl_GetHashValue(hashentry);
1325  swig_wrapper method_wrapper = (swig_wrapper)cd;
1326  oldarg = objv[1];
1327  objv[1] = inst->thisptr;
1328  Tcl_IncrRefCount(inst->thisptr);
1329  rcode = (method_wrapper)(clientData,interp,objc,objv);
1330  objv[1] = oldarg;
1331  Tcl_DecrRefCount(inst->thisptr);
1332  return rcode;
1333  }
1334  /* Check class methods for a match */
1335  if (strcmp(method,"cget") == 0) {
1336  if (objc < 3) {
1337  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1338  return TCL_ERROR;
1339  }
1340  attrname = Tcl_GetStringFromObj(objv[2],NULL);
1341  attr = cls->attributes;
1342  while (attr && attr->name) {
1343  if ((strcmp(attr->name, attrname) == 0) && (attr->getmethod)) {
1344  oldarg = objv[1];
1345  objv[1] = inst->thisptr;
1346  Tcl_IncrRefCount(inst->thisptr);
1347  rcode = (*attr->getmethod)(clientData,interp,2, objv);
1348  objv[1] = oldarg;
1349  Tcl_DecrRefCount(inst->thisptr);
1350  return rcode;
1351  }
1352  attr++;
1353  }
1354  if (strcmp(attrname, "-this") == 0) {
1355  Tcl_SetObjResult(interp, Tcl_DuplicateObj(inst->thisptr));
1356  return TCL_OK;
1357  }
1358  if (strcmp(attrname, "-thisown") == 0) {
1359  if (SWIG_Thisown(inst->thisvalue)) {
1360  Tcl_SetResult(interp,(char*)"1",TCL_STATIC);
1361  } else {
1362  Tcl_SetResult(interp,(char*)"0",TCL_STATIC);
1363  }
1364  return TCL_OK;
1365  }
1366  } else if (strcmp(method, "configure") == 0) {
1367  int i;
1368  if (objc < 4) {
1369  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1370  return TCL_ERROR;
1371  }
1372  i = 2;
1373  while (i < objc) {
1374  attrname = Tcl_GetStringFromObj(objv[i],NULL);
1375  attr = cls->attributes;
1376  while (attr && attr->name) {
1377  if ((strcmp(attr->name, attrname) == 0) && (attr->setmethod)) {
1378  oldarg = objv[i];
1379  objv[i] = inst->thisptr;
1380  Tcl_IncrRefCount(inst->thisptr);
1381  rcode = (*attr->setmethod)(clientData,interp,3, &objv[i-1]);
1382  objv[i] = oldarg;
1383  Tcl_DecrRefCount(inst->thisptr);
1384  if (rcode != TCL_OK) return rcode;
1385  numconf += 2;
1386  }
1387  attr++;
1388  }
1389  i+=2;
1390  }
1391  }
1392  }
1393  if (strcmp(method,"configure") == 0) {
1394  if (numconf >= objc) {
1395  return TCL_OK;
1396  } else {
1397  Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1398  return TCL_ERROR;
1399  }
1400  }
1401  if (strcmp(method,"cget") == 0) {
1402  Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1403  return TCL_ERROR;
1404  }
1405  Tcl_SetResult(interp, (char *) "Invalid method. Must be one of: configure cget -acquire -disown -delete", TCL_STATIC);
1406  cls = inst->classptr;
1407  bi = 0;
1408  while (cls) {
1409  meth = cls->methods;
1410  while (meth && meth->name) {
1411  char *cr = (char *) Tcl_GetStringResult(interp);
1412  size_t meth_len = strlen(meth->name);
1413  char* where = strchr(cr,':');
1414  while(where) {
1415  where = strstr(where, meth->name);
1416  if(where) {
1417  if(where[-1] == ' ' && (where[meth_len] == ' ' || where[meth_len]==0)) {
1418  break;
1419  } else {
1420  where++;
1421  }
1422  }
1423  }
1424 
1425  if (!where)
1426  Tcl_AppendElement(interp, (char *) meth->name);
1427  meth++;
1428  }
1429  cls = inst->classptr->bases[bi++];
1430  }
1431  return TCL_ERROR;
1432 }
1433 
1434 /* This function takes the current result and turns it into an object command */
1435 SWIGRUNTIME Tcl_Obj *
1436 SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags) {
1437  Tcl_Obj *robj = SWIG_NewPointerObj(thisvalue, type,0);
1438  /* Check to see if this pointer belongs to a class or not */
1439  if (thisvalue && (type->clientdata) && (interp)) {
1440  Tcl_CmdInfo ci;
1441  char *name;
1442  name = Tcl_GetStringFromObj(robj,NULL);
1443  if (!Tcl_GetCommandInfo(interp,name, &ci) || (flags)) {
1444  swig_instance *newinst = (swig_instance *) malloc(sizeof(swig_instance));
1445  newinst->thisptr = Tcl_DuplicateObj(robj);
1446  Tcl_IncrRefCount(newinst->thisptr);
1447  newinst->thisvalue = thisvalue;
1448  newinst->classptr = (swig_class *) type->clientdata;
1449  newinst->destroy = flags;
1450  newinst->cmdtok = Tcl_CreateObjCommand(interp, Tcl_GetStringFromObj(robj,NULL), (swig_wrapper_func) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1451  if (flags) {
1452  SWIG_Acquire(thisvalue);
1453  }
1454  }
1455  }
1456  return robj;
1457 }
1458 
1459 /* Function to create objects */
1460 SWIGRUNTIME int
1461 SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1462  Tcl_Obj *newObj = 0;
1463  void *thisvalue = 0;
1464  swig_instance *newinst = 0;
1465  swig_class *classptr = (swig_class *) clientData;
1466  swig_wrapper cons = 0;
1467  char *name = 0;
1468  int firstarg = 0;
1469  int thisarg = 0;
1470  int destroy = 1;
1471 
1472  if (!classptr) {
1473  Tcl_SetResult(interp, (char *) "swig: internal runtime error. No class object defined.", TCL_STATIC);
1474  return TCL_ERROR;
1475  }
1476  cons = classptr->constructor;
1477  if (objc > 1) {
1478  char *s = Tcl_GetStringFromObj(objv[1],NULL);
1479  if (strcmp(s,"-this") == 0) {
1480  thisarg = 2;
1481  cons = 0;
1482  } else if (strcmp(s,"-args") == 0) {
1483  firstarg = 1;
1484  } else if (objc == 2) {
1485  firstarg = 1;
1486  name = s;
1487  } else if (objc >= 3) {
1488  char *s1;
1489  name = s;
1490  s1 = Tcl_GetStringFromObj(objv[2],NULL);
1491  if (strcmp(s1,"-this") == 0) {
1492  thisarg = 3;
1493  cons = 0;
1494  } else {
1495  firstarg = 1;
1496  }
1497  }
1498  }
1499  if (cons) {
1500  int result;
1501  result = (*cons)(0, interp, objc-firstarg, &objv[firstarg]);
1502  if (result != TCL_OK) {
1503  return result;
1504  }
1505  newObj = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
1506  if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1507  } else if (thisarg > 0) {
1508  if (thisarg < objc) {
1509  destroy = 0;
1510  newObj = Tcl_DuplicateObj(objv[thisarg]);
1511  if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1512  } else {
1513  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1514  return TCL_ERROR;
1515  }
1516  } else {
1517  Tcl_SetResult(interp, (char *) "No constructor available.", TCL_STATIC);
1518  return TCL_ERROR;
1519  }
1520  if (SWIG_Tcl_ConvertPtr(interp,newObj, (void **) &thisvalue, *(classptr->type), 0) != SWIG_OK) {
1521  Tcl_DecrRefCount(newObj);
1522  return TCL_ERROR;
1523  }
1524  newinst = (swig_instance *) malloc(sizeof(swig_instance));
1525  newinst->thisptr = newObj;
1526  Tcl_IncrRefCount(newObj);
1527  newinst->thisvalue = thisvalue;
1528  newinst->classptr = classptr;
1529  newinst->destroy = destroy;
1530  if (destroy) {
1531  SWIG_Acquire(thisvalue);
1532  }
1533  newinst->cmdtok = Tcl_CreateObjCommand(interp,name, (swig_wrapper) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1534  return TCL_OK;
1535 }
1536 
1537 /* -----------------------------------------------------------------------------*
1538  * Get arguments
1539  * -----------------------------------------------------------------------------*/
1540 SWIGRUNTIME int
1541 SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt, ...) {
1542  int argno = 0, opt = 0;
1543  long tempi;
1544  double tempd;
1545  const char *c;
1546  va_list ap;
1547  void *vptr;
1548  Tcl_Obj *obj = 0;
1549  swig_type_info *ty;
1550 
1551  va_start(ap,fmt);
1552  for (c = fmt; (*c && (*c != ':') && (*c != ';')); c++,argno++) {
1553  if (*c == '|') {
1554  opt = 1;
1555  c++;
1556  }
1557  if (argno >= (objc-1)) {
1558  if (!opt) {
1559  Tcl_SetResult(interp, (char *) "Wrong number of arguments ", TCL_STATIC);
1560  goto argerror;
1561  } else {
1562  va_end(ap);
1563  return TCL_OK;
1564  }
1565  }
1566 
1567  vptr = va_arg(ap,void *);
1568  if (vptr) {
1569  if (isupper(*c)) {
1570  obj = SWIG_Tcl_GetConstantObj(Tcl_GetStringFromObj(objv[argno+1],0));
1571  if (!obj) obj = objv[argno+1];
1572  } else {
1573  obj = objv[argno+1];
1574  }
1575  switch(*c) {
1576  case 'i': case 'I':
1577  case 'l': case 'L':
1578  case 'h': case 'H':
1579  case 'b': case 'B':
1580  if (Tcl_GetLongFromObj(interp,obj,&tempi) != TCL_OK) goto argerror;
1581  if ((*c == 'i') || (*c == 'I')) *((int *)vptr) = (int)tempi;
1582  else if ((*c == 'l') || (*c == 'L')) *((long *)vptr) = (long)tempi;
1583  else if ((*c == 'h') || (*c == 'H')) *((short*)vptr) = (short)tempi;
1584  else if ((*c == 'b') || (*c == 'B')) *((unsigned char *)vptr) = (unsigned char)tempi;
1585  break;
1586  case 'f': case 'F':
1587  case 'd': case 'D':
1588  if (Tcl_GetDoubleFromObj(interp,obj,&tempd) != TCL_OK) goto argerror;
1589  if ((*c == 'f') || (*c == 'F')) *((float *) vptr) = (float)tempd;
1590  else if ((*c == 'd') || (*c == 'D')) *((double*) vptr) = tempd;
1591  break;
1592  case 's': case 'S':
1593  if (*(c+1) == '#') {
1594  int *vlptr = (int *) va_arg(ap, void *);
1595  *((char **) vptr) = Tcl_GetStringFromObj(obj, vlptr);
1596  c++;
1597  } else {
1598  *((char **)vptr) = Tcl_GetStringFromObj(obj,NULL);
1599  }
1600  break;
1601  case 'c': case 'C':
1602  *((char *)vptr) = *(Tcl_GetStringFromObj(obj,NULL));
1603  break;
1604  case 'p': case 'P':
1605  ty = (swig_type_info *) va_arg(ap, void *);
1606  if (SWIG_Tcl_ConvertPtr(interp, obj, (void **) vptr, ty, 0) != SWIG_OK) goto argerror;
1607  break;
1608  case 'o': case 'O':
1609  *((Tcl_Obj **)vptr) = objv[argno+1];
1610  break;
1611  default:
1612  break;
1613  }
1614  }
1615  }
1616 
1617  if ((*c != ';') && ((objc-1) > argno)) {
1618  Tcl_SetResult(interp, (char *) "Wrong # args.", TCL_STATIC);
1619  goto argerror;
1620  }
1621  va_end(ap);
1622  return TCL_OK;
1623 
1624  argerror:
1625  {
1626  char temp[32];
1627  sprintf(temp,"%d", argno+1);
1628  c = strchr(fmt,':');
1629  if (!c) c = strchr(fmt,';');
1630  if (!c) c = (char *)"";
1631  Tcl_AppendResult(interp,c," argument ", temp, NULL);
1632  va_end(ap);
1633  return TCL_ERROR;
1634  }
1635 }
1636 
1637 #ifdef __cplusplus
1638 }
1639 #endif
1640 
1641 
1642 
1643 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1644 
1645 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1646 
1647 
1648 
1649 /* -------- TYPES TABLE (BEGIN) -------- */
1650 
1651 #define SWIGTYPE_p_a_axes swig_types[0]
1652 #define SWIGTYPE_p_a_canvas swig_types[1]
1653 #define SWIGTYPE_p_a_element swig_types[2]
1654 #define SWIGTYPE_p_a_image swig_types[3]
1655 #define SWIGTYPE_p_a_image__file_error swig_types[4]
1656 #define SWIGTYPE_p_a_linecloud swig_types[5]
1657 #define SWIGTYPE_p_a_point swig_types[6]
1658 #define SWIGTYPE_p_a_pointcloud swig_types[7]
1659 #define SWIGTYPE_p_a_text swig_types[8]
1660 #define SWIGTYPE_p_a_trianglecloud swig_types[9]
1661 #define SWIGTYPE_p_char swig_types[10]
1662 #define SWIGTYPE_p_std__ostream swig_types[11]
1663 #define SWIGTYPE_p_std__vectorT_a_point_t swig_types[12]
1665 static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
1666 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1667 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1668 
1669 /* -------- TYPES TABLE (END) -------- */
1670 
1671 #define SWIG_init A_canvas_Init
1672 #define SWIG_name "a_canvas"
1673 #define SWIG_prefix ""
1674 #define SWIG_version "0.0"
1675 
1676 #define SWIGVERSION 0x040002
1677 #define SWIG_VERSION SWIGVERSION
1678 
1679 
1680 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1681 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1682 
1683 
1684 #include <stdexcept>
1685 
1686 
1687 
1688 #ifdef __cplusplus
1689 extern "C" {
1690 #endif
1691 #ifdef MAC_TCL
1692 #pragma export on
1693 #endif
1694 SWIGEXPORT int SWIG_init(Tcl_Interp *);
1695 #ifdef MAC_TCL
1696 #pragma export off
1697 #endif
1698 #ifdef __cplusplus
1699 }
1700 #endif
1701 
1702 /* Compatibility version for TCL stubs */
1703 #ifndef SWIG_TCL_STUBS_VERSION
1704 #define SWIG_TCL_STUBS_VERSION "8.1"
1705 #endif
1706 
1707 
1708 
1709 #include <string>
1710 
1711 
1712 #include "a_element.h"
1713 #include <sstream>
1714 
1715 
1716 SWIGINTERN int
1717 SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char** cptr, size_t* psize, int *alloc)
1718 {
1719  int len = 0;
1720  char *cstr = Tcl_GetStringFromObj(obj, &len);
1721  if (cstr) {
1722  if (cptr) *cptr = cstr;
1723  if (psize) *psize = len + 1;
1724  if (alloc) *alloc = SWIG_OLDOBJ;
1725  return SWIG_OK;
1726  }
1727  return SWIG_TypeError;
1728 }
1729 
1730 
1731 SWIGINTERN int
1732 SWIG_AsPtr_std_string SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, std::string **val)
1733 {
1734  char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
1735  if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
1736  if (buf) {
1737  if (val) *val = new std::string(buf, size - 1);
1738  if (alloc == SWIG_NEWOBJ) delete[] buf;
1739  return SWIG_NEWOBJ;
1740  } else {
1741  if (val) *val = 0;
1742  return SWIG_OLDOBJ;
1743  }
1744  } else {
1745  static int init = 0;
1746  static swig_type_info* descriptor = 0;
1747  if (!init) {
1748  descriptor = SWIG_TypeQuery("std::string" " *");
1749  init = 1;
1750  }
1751  if (descriptor) {
1752  std::string *vptr;
1753  int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
1754  if (SWIG_IsOK(res) && val) *val = vptr;
1755  return res;
1756  }
1757  }
1758  return SWIG_ERROR;
1759 }
1760 
1761 
1762 #include <limits.h>
1763 #if !defined(SWIG_NO_LLONG_MAX)
1764 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1765 # define LLONG_MAX __LONG_LONG_MAX__
1766 # define LLONG_MIN (-LLONG_MAX - 1LL)
1767 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1768 # endif
1769 #endif
1770 
1771 
1772 SWIGINTERNINLINE Tcl_Obj *
1773 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1774 {
1775  return (size < INT_MAX) ? Tcl_NewStringObj(carray, static_cast< int >(size)) : NULL;
1776 }
1777 
1778 
1779 SWIGINTERNINLINE Tcl_Obj *
1780 SWIG_From_std_string (const std::string& s)
1781 {
1782  return SWIG_FromCharPtrAndSize(s.data(), s.size());
1783 }
1784 
1785 
1786  #define SWIG_From_bool Tcl_NewBooleanObj
1787 
1788 
1789 SWIGINTERN int
1790 SWIG_AsVal_bool SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, bool *val)
1791 {
1792  int v;
1793  if (Tcl_GetBooleanFromObj(0, obj, &v) == TCL_OK) {
1794  if (val) *val = v ? true : false;
1795  return SWIG_OK;
1796  }
1797  return SWIG_TypeError;
1798 }
1799 
1800 
1801 SWIGINTERN int
1802 SWIG_AsVal_double SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, double *val)
1803 {
1804  double v;
1805  if (Tcl_GetDoubleFromObj(0, obj, &v) == TCL_OK) {
1806  if (val) *val = v;
1807  return SWIG_OK;
1808  }
1809  return SWIG_TypeError;
1810 }
1811 
1812 
1813  #define SWIG_From_double Tcl_NewDoubleObj
1814 
1815 
1816 SWIGINTERN int
1817 SWIG_AsVal_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, long* val)
1818 {
1819  long v;
1820  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
1821  if (val) *val = (long) v;
1822  return SWIG_OK;
1823  }
1824  return SWIG_TypeError;
1825 }
1826 
1827 
1828 SWIGINTERN int
1829 SWIG_AsVal_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, int *val)
1830 {
1831  long v;
1832  int res = SWIG_AsVal_long SWIG_TCL_CALL_ARGS_2(obj, &v);
1833  if (SWIG_IsOK(res)) {
1834  if ((v < INT_MIN || v > INT_MAX)) {
1835  return SWIG_OverflowError;
1836  } else {
1837  if (val) *val = static_cast< int >(v);
1838  }
1839  }
1840  return res;
1841 }
1842 
1843 
1844 SWIGINTERNINLINE Tcl_Obj*
1845 SWIG_From_long (long value)
1846 {
1847  if (((long) INT_MIN <= value) && (value <= (long) INT_MAX)) {
1848  return Tcl_NewIntObj(static_cast< int >(value));
1849  } else {
1850  return Tcl_NewLongObj(value);
1851  }
1852 }
1853 
1854 
1855 SWIGINTERNINLINE Tcl_Obj *
1856 SWIG_From_int (int value)
1857 {
1858  return SWIG_From_long (value);
1859 }
1860 
1862  std::ostringstream out;
1863  out << self->origin();
1864  return out.str();
1865  }
1867  std::ostringstream out;
1868  out << self->place();
1869  return out.str();
1870  }
1872  std::ostringstream out;
1873  out << self->orient();
1874  return out.str();
1875  }
1877  std::ostringstream out;
1878  out << self->scale();
1879  return out.str();
1880  }
1881 SWIGINTERN std::string a_element_center(a_element const *self){
1882  std::ostringstream out;
1883  out << self->center();
1884  return out.str();
1885  }
1886 SWIGINTERN std::string a_element_bounds(a_element const *self){
1887  std::ostringstream out;
1888  out << self->minx() << " ";
1889  out << self->maxx() << " ";
1890  out << self->miny() << " ";
1891  out << self->maxy() << " ";
1892  out << self->minz() << " ";
1893  out << self->maxz();
1894  return out.str();
1895  }
1896 SWIGINTERN void a_element_relief(a_element *self,double const x1,double const y1,double const z1,double const x2,double const y2,double const z2){
1897  self->relief(a_point(x1,y1,z1),a_point(x2,y2,z2));
1898  }
1899 
1900 #include "a_axes.h"
1901 
1902 
1903 #include "a_pointcloud.h"
1904 
1905 SWIGINTERN void a_pointcloud_point__SWIG_0(a_pointcloud *self,double x,double y,double z){self->point(x,y,z); self->render();}
1906 SWIGINTERN void a_pointcloud_point__SWIG_1(a_pointcloud *self,a_point const &p){self->point(p); self->render();}
1907 
1908 #include "a_linecloud.h"
1909 
1910 SWIGINTERN void a_linecloud_line__SWIG_0(a_linecloud *self,a_point const &p1,a_point const &p2){self->addline(p1,p2); self->render();}
1911 SWIGINTERN void a_linecloud_line__SWIG_1(a_linecloud *self,double x1,double y1,double z1,double x2,double y2,double z2){
1912  self->addline(a_point(x1,y1,z1),a_point(x2,y2,z2));
1913  self->render();
1914  }
1915 
1916 #include "a_trianglecloud.h"
1917 
1918 SWIGINTERN void a_trianglecloud_triangle__SWIG_0(a_trianglecloud *self,a_point const &p1,a_point const &p2,a_point const &p3){self->addtriangle(p1,p2,p3); self->render();}
1919 SWIGINTERN void a_trianglecloud_triangle__SWIG_1(a_trianglecloud *self,double x1,double y1,double z1,double x2,double y2,double z2,double x3,double y3,double z3){
1920  self->addtriangle(a_point(x1,y1,z1),a_point(x2,y2,z2),a_point(x3,y3,z3));
1921  self->render();
1922  }
1923 
1924 #include "a_image.h"
1925 
1926 
1927 #include "a_canvas.h"
1928 #include "a_element.h"
1929 
1930 
1931 SWIGINTERN int
1932 SWIG_AsVal_unsigned_SS_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, unsigned long *val) {
1933  long v;
1934  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
1935  if (v >= 0) {
1936  if (val) *val = (unsigned long) v;
1937  return SWIG_OK;
1938  }
1939  /* If v is negative, then this could be a negative number, or an
1940  unsigned value which doesn't fit in a signed long, so try to
1941  get it as a string so we can distinguish these cases. */
1942  }
1943  {
1944  int len = 0;
1945  const char *nptr = Tcl_GetStringFromObj(obj, &len);
1946  if (nptr && len > 0) {
1947  char *endptr;
1948  unsigned long v;
1949  if (*nptr == '-') return SWIG_OverflowError;
1950  errno = 0;
1951  v = strtoul(nptr, &endptr,0);
1952  if (nptr[0] == '\0' || *endptr != '\0')
1953  return SWIG_TypeError;
1954  if (v == ULONG_MAX && errno == ERANGE) {
1955  errno = 0;
1956  return SWIG_OverflowError;
1957  } else {
1958  if (*endptr == '\0') {
1959  if (val) *val = v;
1960  return SWIG_OK;
1961  }
1962  }
1963  }
1964  }
1965 
1966  return SWIG_TypeError;
1967 }
1968 
1969 
1970 SWIGINTERN int
1971 SWIG_AsVal_unsigned_SS_short SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, unsigned short *val)
1972 {
1973  unsigned long v;
1974  int res = SWIG_AsVal_unsigned_SS_long SWIG_TCL_CALL_ARGS_2(obj, &v);
1975  if (SWIG_IsOK(res)) {
1976  if ((v > USHRT_MAX)) {
1977  return SWIG_OverflowError;
1978  } else {
1979  if (val) *val = static_cast< unsigned short >(v);
1980  }
1981  }
1982  return res;
1983 }
1984 
1985 SWIGINTERN void a_canvas_redraw(a_canvas *self){self->render();}
1986 SWIGINTERN void a_canvas_fit(a_canvas *self){self->reset();}
1987 SWIGINTERN void a_canvas_logfile__SWIG_1(a_canvas *self,a_text &text){self->logfile(text);}
1988 SWIGINTERN std::string const a_canvas_object__SWIG_0(a_canvas *self,std::string const &code){
1989  if (code=="name") return self->getelementname();
1990  else if (code=="ls") return self->listelements();
1991  else if (code=="list") return self->listelements();
1992  else return "Wrong arg. window_name object (add list get set unlink) [name]";
1993  }
1994 SWIGINTERN void a_canvas_object__SWIG_1(a_canvas *self,std::string const &code,a_element &l){
1995  if (code=="add") self->addelement(l);
1996  else self->printout("Wrong arg. window_name object (add list get set unlink) [name]");
1997  }
1998 SWIGINTERN void a_canvas_object__SWIG_2(a_canvas *self,std::string const &code,std::string const &name){
1999  if (code=="unlink") self->unlinkelement(name);
2000  else if (code=="exist") self->printout(self->existelement(name));
2001  else if (code=="set") self->setelement(name);
2002  else self->printout("Wrong arg. window_name object (add list get set unlink) [name]");
2003  }
2004 SWIGINTERN void a_canvas_object__SWIG_3(a_canvas *self,std::string const &code,std::string const &mesh,std::string const &points){
2005  if (code=="fit") self->fitelements(mesh,points);
2006  else self->printout("Wrong arg. window_name object (add list get set unlink) [name]");
2007  }
2008 SWIGINTERN void a_canvas_interact__SWIG_1(a_canvas *self,std::string const &code){
2009  if (code=="normal") self->interact();
2010  else if (code=="fit") self->fit_interact();
2011  else if (code=="deform") self->fit_deform_interact();
2012  else if (code=="cut") self->cut_interact();
2013  else self->printout("Wrong arg. window_name interact (normal fit deform cut)");
2014  }
2016  std::ostringstream out;
2017  out << self->width() << " " << self->height();
2018  return out.str();
2019  }
2020 SWIGINTERN void a_canvas_fullscreen(a_canvas *self,std::string const &code){
2021  if (code=="on") self->fullscreenon();
2022  else if (code=="off") self->fullscreenoff();
2023  else self->printout("Wrong arg. window_name fullscreen code (on off)");
2024  }
2025 SWIGINTERN void a_canvas_perspective(a_canvas *self,std::string const &code){
2026  if (code=="on") self->perspectia_view();
2027  else if (code=="off") self->parallel_view();
2028  else self->printout("Wrong arg. window_name perspective code (on off)");
2029  }
2030 SWIGINTERN void a_canvas_cursor(a_canvas *self,std::string const &code){
2031  if (code=="on") self->cursor_show();
2032  else if (code=="off") self->cursor_hide();
2033  else self->printout("Wrong arg. window_name cursor code (on off)");
2034  }
2035 SWIGINTERN void a_canvas_light(a_canvas *self,std::string const &code){
2036  if (code=="spot") self->spotlight();
2037  else if (code=="sun") self->sunlight();
2038  else self->printout("Wrong arg. window_name light code (spot sun)");
2039  }
2040 SWIGINTERN void a_canvas_save(a_canvas *self,std::string const &code,std::string const &file){
2041  if (code=="jpeg") self->jpgout(file);
2042  else if (code=="png") self->pngout(file);
2043  else if (code=="rib") self->ribout(file);
2044  else if (code=="vec") self->save(file);
2045  else if (code=="vrml") self->vrmlout(file);
2046  else if (code=="vtk") self->vtkout(file);
2047  else self->printout("Wrong code. window_name export code (jpeg pt rib tif vec vrml vtk)");
2048  }
2049 SWIGINTERN void a_canvas_camerapoint__SWIG_0(a_canvas *self,double x,double y,double z){
2050  double pt[3];
2051  pt[0] = x; pt[1] = y; pt[2] = z;
2052  self->viewpoint(pt);
2053  }
2054 SWIGINTERN void a_canvas_focalpoint__SWIG_0(a_canvas *self,double x,double y,double z){
2055  double pt[3];
2056  pt[0] = x; pt[1] = y; pt[2] = z;
2057  self->focalpoint(pt);
2058  }
2059 SWIGINTERN void a_canvas_up__SWIG_0(a_canvas *self,double x,double y,double z){
2060  double pt[3];
2061  pt[0] = x; pt[1] = y; pt[2] = z;
2062  self->up(pt);
2063  }
2065  a_point vp = self->viewpoint();
2066  std::ostringstream out;
2067  out << vp;
2068  return out.str();
2069  }
2071  a_point fp = self->focalpoint();
2072  std::ostringstream out;
2073  out << fp;
2074  return out.str();
2075  }
2077  a_point fp = self->up();
2078  std::ostringstream out;
2079  out << fp;
2080  return out.str();
2081  }
2082 SWIGINTERN void a_canvas_pan(a_canvas *self,double x,double y,double z){
2083  double pt[3];
2084  pt[0] = x; pt[1] = y; pt[2] = z;
2085  self->pan(pt);
2086  }
2087 #ifdef __cplusplus
2088 extern "C" {
2089 #endif
2090 SWIGINTERN int
2091 _wrap_new_a_element(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2092  a_element *result = 0 ;
2093 
2094  if (SWIG_GetArgs(interp, objc, objv,":new_a_element ") == TCL_ERROR) SWIG_fail;
2095  result = (a_element *)new a_element();
2096  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_element,0));
2097  return TCL_OK;
2098 fail:
2099  return TCL_ERROR;
2100 }
2101 
2102 
2103 SWIGINTERN int
2104 _wrap_delete_a_element(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2105  a_element *arg1 = (a_element *) 0 ;
2106  void *argp1 = 0 ;
2107  int res1 = 0 ;
2108 
2109  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_element self ",(void *)0) == TCL_ERROR) SWIG_fail;
2110  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, SWIG_POINTER_DISOWN | 0 );
2111  if (!SWIG_IsOK(res1)) {
2112  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_element" "', argument " "1"" of type '" "a_element *""'");
2113  }
2114  arg1 = reinterpret_cast< a_element * >(argp1);
2115  delete arg1;
2116 
2117  return TCL_OK;
2118 fail:
2119  return TCL_ERROR;
2120 }
2121 
2122 
2123 SWIGINTERN int
2124 _wrap_a_element_reset(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2125  a_element *arg1 = (a_element *) 0 ;
2126  void *argp1 = 0 ;
2127  int res1 = 0 ;
2128 
2129  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_reset self ",(void *)0) == TCL_ERROR) SWIG_fail;
2130  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2131  if (!SWIG_IsOK(res1)) {
2132  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_reset" "', argument " "1"" of type '" "a_element *""'");
2133  }
2134  arg1 = reinterpret_cast< a_element * >(argp1);
2135  (arg1)->reset();
2136 
2137  return TCL_OK;
2138 fail:
2139  return TCL_ERROR;
2140 }
2141 
2142 
2143 SWIGINTERN int
2144 _wrap_a_element_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2145  a_element *arg1 = (a_element *) 0 ;
2146  std::string arg2 ;
2147  void *argp1 = 0 ;
2148  int res1 = 0 ;
2149 
2150  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_name self aname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2151  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2152  if (!SWIG_IsOK(res1)) {
2153  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_name" "', argument " "1"" of type '" "a_element *""'");
2154  }
2155  arg1 = reinterpret_cast< a_element * >(argp1);
2156  {
2157  std::string *ptr = (std::string *)0;
2158  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
2159  if (!SWIG_IsOK(res) || !ptr) {
2160  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_element_name" "', argument " "2"" of type '" "std::string""'");
2161  }
2162  arg2 = *ptr;
2163  if (SWIG_IsNewObj(res)) delete ptr;
2164  }
2165  (arg1)->name(arg2);
2166 
2167  return TCL_OK;
2168 fail:
2169  return TCL_ERROR;
2170 }
2171 
2172 
2173 SWIGINTERN int
2174 _wrap_a_element_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2175  a_element *arg1 = (a_element *) 0 ;
2176  void *argp1 = 0 ;
2177  int res1 = 0 ;
2178  std::string result;
2179 
2180  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
2181  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2182  if (!SWIG_IsOK(res1)) {
2183  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_name" "', argument " "1"" of type '" "a_element const *""'");
2184  }
2185  arg1 = reinterpret_cast< a_element * >(argp1);
2186  result = ((a_element const *)arg1)->name();
2187  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
2188  return TCL_OK;
2189 fail:
2190  return TCL_ERROR;
2191 }
2192 
2193 
2194 SWIGINTERN int
2195 _wrap_a_element_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2196  Tcl_Obj *CONST *argv = objv+1;
2197  int argc = objc-1;
2198  if (argc == 1) {
2199  int _v;
2200  void *vptr = 0;
2201  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2202  _v = SWIG_CheckState(res);
2203  if (_v) {
2204  return _wrap_a_element_name__SWIG_1(clientData, interp, objc, argv - 1);
2205  }
2206  }
2207  if (argc == 2) {
2208  int _v;
2209  void *vptr = 0;
2210  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2211  _v = SWIG_CheckState(res);
2212  if (_v) {
2213  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
2214  _v = SWIG_CheckState(res);
2215  if (_v) {
2216  return _wrap_a_element_name__SWIG_0(clientData, interp, objc, argv - 1);
2217  }
2218  }
2219  }
2220 
2221  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_name'.\n"
2222  " Possible C/C++ prototypes are:\n"
2223  " a_element::name(std::string)\n"
2224  " a_element::name() const\n", TCL_STATIC);
2225  return TCL_ERROR;
2226 }
2227 
2228 
2229 SWIGINTERN int
2230 _wrap_a_element_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2231  std::string result;
2232 
2233  if (SWIG_GetArgs(interp, objc, objv,":a_element_help ") == TCL_ERROR) SWIG_fail;
2234  result = a_element::help();
2235  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
2236  return TCL_OK;
2237 fail:
2238  return TCL_ERROR;
2239 }
2240 
2241 
2242 SWIGINTERN int
2243 _wrap_a_element_empty__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2244  a_element *arg1 = (a_element *) 0 ;
2245  void *argp1 = 0 ;
2246  int res1 = 0 ;
2247  bool result;
2248 
2249  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
2250  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2251  if (!SWIG_IsOK(res1)) {
2252  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_empty" "', argument " "1"" of type '" "a_element const *""'");
2253  }
2254  arg1 = reinterpret_cast< a_element * >(argp1);
2255  result = (bool)((a_element const *)arg1)->empty();
2256  Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
2257  return TCL_OK;
2258 fail:
2259  return TCL_ERROR;
2260 }
2261 
2262 
2263 SWIGINTERN int
2264 _wrap_a_element_empty__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2265  a_element *arg1 = (a_element *) 0 ;
2266  bool arg2 ;
2267  void *argp1 = 0 ;
2268  int res1 = 0 ;
2269  bool val2 ;
2270  int ecode2 = 0 ;
2271 
2272  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_empty self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2273  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2274  if (!SWIG_IsOK(res1)) {
2275  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_empty" "', argument " "1"" of type '" "a_element *""'");
2276  }
2277  arg1 = reinterpret_cast< a_element * >(argp1);
2278  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2279  if (!SWIG_IsOK(ecode2)) {
2280  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_empty" "', argument " "2"" of type '" "bool""'");
2281  }
2282  arg2 = static_cast< bool >(val2);
2283  (arg1)->empty(arg2);
2284 
2285  return TCL_OK;
2286 fail:
2287  return TCL_ERROR;
2288 }
2289 
2290 
2291 SWIGINTERN int
2292 _wrap_a_element_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2293  Tcl_Obj *CONST *argv = objv+1;
2294  int argc = objc-1;
2295  if (argc == 1) {
2296  int _v;
2297  void *vptr = 0;
2298  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2299  _v = SWIG_CheckState(res);
2300  if (_v) {
2301  return _wrap_a_element_empty__SWIG_0(clientData, interp, objc, argv - 1);
2302  }
2303  }
2304  if (argc == 2) {
2305  int _v;
2306  void *vptr = 0;
2307  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2308  _v = SWIG_CheckState(res);
2309  if (_v) {
2310  {
2311  int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2312  _v = SWIG_CheckState(res);
2313  }
2314  if (_v) {
2315  return _wrap_a_element_empty__SWIG_1(clientData, interp, objc, argv - 1);
2316  }
2317  }
2318  }
2319 
2320  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_empty'.\n"
2321  " Possible C/C++ prototypes are:\n"
2322  " a_element::empty() const\n"
2323  " a_element::empty(bool)\n", TCL_STATIC);
2324  return TCL_ERROR;
2325 }
2326 
2327 
2328 SWIGINTERN int
2329 _wrap_a_element_color(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2330  a_element *arg1 = (a_element *) 0 ;
2331  double arg2 ;
2332  double arg3 ;
2333  double arg4 ;
2334  void *argp1 = 0 ;
2335  int res1 = 0 ;
2336  double val2 ;
2337  int ecode2 = 0 ;
2338  double val3 ;
2339  int ecode3 = 0 ;
2340  double val4 ;
2341  int ecode4 = 0 ;
2342 
2343  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_color self r g b ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2344  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2345  if (!SWIG_IsOK(res1)) {
2346  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_color" "', argument " "1"" of type '" "a_element *""'");
2347  }
2348  arg1 = reinterpret_cast< a_element * >(argp1);
2349  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2350  if (!SWIG_IsOK(ecode2)) {
2351  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_color" "', argument " "2"" of type '" "double""'");
2352  }
2353  arg2 = static_cast< double >(val2);
2354  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
2355  if (!SWIG_IsOK(ecode3)) {
2356  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_color" "', argument " "3"" of type '" "double""'");
2357  }
2358  arg3 = static_cast< double >(val3);
2359  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
2360  if (!SWIG_IsOK(ecode4)) {
2361  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_color" "', argument " "4"" of type '" "double""'");
2362  }
2363  arg4 = static_cast< double >(val4);
2364  (arg1)->color(arg2,arg3,arg4);
2365 
2366  return TCL_OK;
2367 fail:
2368  return TCL_ERROR;
2369 }
2370 
2371 
2372 SWIGINTERN int
2373 _wrap_a_element_R__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2374  a_element *arg1 = (a_element *) 0 ;
2375  double arg2 ;
2376  void *argp1 = 0 ;
2377  int res1 = 0 ;
2378  double val2 ;
2379  int ecode2 = 0 ;
2380 
2381  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_R self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2382  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2383  if (!SWIG_IsOK(res1)) {
2384  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_R" "', argument " "1"" of type '" "a_element *""'");
2385  }
2386  arg1 = reinterpret_cast< a_element * >(argp1);
2387  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2388  if (!SWIG_IsOK(ecode2)) {
2389  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_R" "', argument " "2"" of type '" "double""'");
2390  }
2391  arg2 = static_cast< double >(val2);
2392  (arg1)->R(arg2);
2393 
2394  return TCL_OK;
2395 fail:
2396  return TCL_ERROR;
2397 }
2398 
2399 
2400 SWIGINTERN int
2401 _wrap_a_element_G__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2402  a_element *arg1 = (a_element *) 0 ;
2403  double arg2 ;
2404  void *argp1 = 0 ;
2405  int res1 = 0 ;
2406  double val2 ;
2407  int ecode2 = 0 ;
2408 
2409  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_G self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2410  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2411  if (!SWIG_IsOK(res1)) {
2412  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_G" "', argument " "1"" of type '" "a_element *""'");
2413  }
2414  arg1 = reinterpret_cast< a_element * >(argp1);
2415  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2416  if (!SWIG_IsOK(ecode2)) {
2417  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_G" "', argument " "2"" of type '" "double""'");
2418  }
2419  arg2 = static_cast< double >(val2);
2420  (arg1)->G(arg2);
2421 
2422  return TCL_OK;
2423 fail:
2424  return TCL_ERROR;
2425 }
2426 
2427 
2428 SWIGINTERN int
2429 _wrap_a_element_B__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2430  a_element *arg1 = (a_element *) 0 ;
2431  double arg2 ;
2432  void *argp1 = 0 ;
2433  int res1 = 0 ;
2434  double val2 ;
2435  int ecode2 = 0 ;
2436 
2437  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_B self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2438  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2439  if (!SWIG_IsOK(res1)) {
2440  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_B" "', argument " "1"" of type '" "a_element *""'");
2441  }
2442  arg1 = reinterpret_cast< a_element * >(argp1);
2443  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2444  if (!SWIG_IsOK(ecode2)) {
2445  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_B" "', argument " "2"" of type '" "double""'");
2446  }
2447  arg2 = static_cast< double >(val2);
2448  (arg1)->B(arg2);
2449 
2450  return TCL_OK;
2451 fail:
2452  return TCL_ERROR;
2453 }
2454 
2455 
2456 SWIGINTERN int
2457 _wrap_a_element_R__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2458  a_element *arg1 = (a_element *) 0 ;
2459  void *argp1 = 0 ;
2460  int res1 = 0 ;
2461  double result;
2462 
2463  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_R self ",(void *)0) == TCL_ERROR) SWIG_fail;
2464  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2465  if (!SWIG_IsOK(res1)) {
2466  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_R" "', argument " "1"" of type '" "a_element const *""'");
2467  }
2468  arg1 = reinterpret_cast< a_element * >(argp1);
2469  result = (double)((a_element const *)arg1)->R();
2470  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
2471  return TCL_OK;
2472 fail:
2473  return TCL_ERROR;
2474 }
2475 
2476 
2477 SWIGINTERN int
2478 _wrap_a_element_R(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2479  Tcl_Obj *CONST *argv = objv+1;
2480  int argc = objc-1;
2481  if (argc == 1) {
2482  int _v;
2483  void *vptr = 0;
2484  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2485  _v = SWIG_CheckState(res);
2486  if (_v) {
2487  return _wrap_a_element_R__SWIG_1(clientData, interp, objc, argv - 1);
2488  }
2489  }
2490  if (argc == 2) {
2491  int _v;
2492  void *vptr = 0;
2493  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2494  _v = SWIG_CheckState(res);
2495  if (_v) {
2496  {
2497  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2498  _v = SWIG_CheckState(res);
2499  }
2500  if (_v) {
2501  return _wrap_a_element_R__SWIG_0(clientData, interp, objc, argv - 1);
2502  }
2503  }
2504  }
2505 
2506  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_R'.\n"
2507  " Possible C/C++ prototypes are:\n"
2508  " a_element::R(double)\n"
2509  " a_element::R() const\n", TCL_STATIC);
2510  return TCL_ERROR;
2511 }
2512 
2513 
2514 SWIGINTERN int
2515 _wrap_a_element_G__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2516  a_element *arg1 = (a_element *) 0 ;
2517  void *argp1 = 0 ;
2518  int res1 = 0 ;
2519  double result;
2520 
2521  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_G self ",(void *)0) == TCL_ERROR) SWIG_fail;
2522  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2523  if (!SWIG_IsOK(res1)) {
2524  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_G" "', argument " "1"" of type '" "a_element const *""'");
2525  }
2526  arg1 = reinterpret_cast< a_element * >(argp1);
2527  result = (double)((a_element const *)arg1)->G();
2528  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
2529  return TCL_OK;
2530 fail:
2531  return TCL_ERROR;
2532 }
2533 
2534 
2535 SWIGINTERN int
2536 _wrap_a_element_G(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2537  Tcl_Obj *CONST *argv = objv+1;
2538  int argc = objc-1;
2539  if (argc == 1) {
2540  int _v;
2541  void *vptr = 0;
2542  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2543  _v = SWIG_CheckState(res);
2544  if (_v) {
2545  return _wrap_a_element_G__SWIG_1(clientData, interp, objc, argv - 1);
2546  }
2547  }
2548  if (argc == 2) {
2549  int _v;
2550  void *vptr = 0;
2551  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2552  _v = SWIG_CheckState(res);
2553  if (_v) {
2554  {
2555  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2556  _v = SWIG_CheckState(res);
2557  }
2558  if (_v) {
2559  return _wrap_a_element_G__SWIG_0(clientData, interp, objc, argv - 1);
2560  }
2561  }
2562  }
2563 
2564  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_G'.\n"
2565  " Possible C/C++ prototypes are:\n"
2566  " a_element::G(double)\n"
2567  " a_element::G() const\n", TCL_STATIC);
2568  return TCL_ERROR;
2569 }
2570 
2571 
2572 SWIGINTERN int
2573 _wrap_a_element_B__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2574  a_element *arg1 = (a_element *) 0 ;
2575  void *argp1 = 0 ;
2576  int res1 = 0 ;
2577  double result;
2578 
2579  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_B self ",(void *)0) == TCL_ERROR) SWIG_fail;
2580  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2581  if (!SWIG_IsOK(res1)) {
2582  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_B" "', argument " "1"" of type '" "a_element const *""'");
2583  }
2584  arg1 = reinterpret_cast< a_element * >(argp1);
2585  result = (double)((a_element const *)arg1)->B();
2586  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
2587  return TCL_OK;
2588 fail:
2589  return TCL_ERROR;
2590 }
2591 
2592 
2593 SWIGINTERN int
2594 _wrap_a_element_B(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2595  Tcl_Obj *CONST *argv = objv+1;
2596  int argc = objc-1;
2597  if (argc == 1) {
2598  int _v;
2599  void *vptr = 0;
2600  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2601  _v = SWIG_CheckState(res);
2602  if (_v) {
2603  return _wrap_a_element_B__SWIG_1(clientData, interp, objc, argv - 1);
2604  }
2605  }
2606  if (argc == 2) {
2607  int _v;
2608  void *vptr = 0;
2609  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2610  _v = SWIG_CheckState(res);
2611  if (_v) {
2612  {
2613  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2614  _v = SWIG_CheckState(res);
2615  }
2616  if (_v) {
2617  return _wrap_a_element_B__SWIG_0(clientData, interp, objc, argv - 1);
2618  }
2619  }
2620  }
2621 
2622  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_B'.\n"
2623  " Possible C/C++ prototypes are:\n"
2624  " a_element::B(double)\n"
2625  " a_element::B() const\n", TCL_STATIC);
2626  return TCL_ERROR;
2627 }
2628 
2629 
2630 SWIGINTERN int
2631 _wrap_a_element_greyscale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2632  a_element *arg1 = (a_element *) 0 ;
2633  bool arg2 ;
2634  void *argp1 = 0 ;
2635  int res1 = 0 ;
2636  bool val2 ;
2637  int ecode2 = 0 ;
2638 
2639  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_greyscale self bool ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2640  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2641  if (!SWIG_IsOK(res1)) {
2642  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_greyscale" "', argument " "1"" of type '" "a_element *""'");
2643  }
2644  arg1 = reinterpret_cast< a_element * >(argp1);
2645  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2646  if (!SWIG_IsOK(ecode2)) {
2647  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_greyscale" "', argument " "2"" of type '" "bool""'");
2648  }
2649  arg2 = static_cast< bool >(val2);
2650  (arg1)->greyscale(arg2);
2651 
2652  return TCL_OK;
2653 fail:
2654  return TCL_ERROR;
2655 }
2656 
2657 
2658 SWIGINTERN int
2659 _wrap_a_element_zebra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2660  a_element *arg1 = (a_element *) 0 ;
2661  bool arg2 ;
2662  void *argp1 = 0 ;
2663  int res1 = 0 ;
2664  bool val2 ;
2665  int ecode2 = 0 ;
2666 
2667  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_zebra self bool ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2668  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2669  if (!SWIG_IsOK(res1)) {
2670  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_zebra" "', argument " "1"" of type '" "a_element *""'");
2671  }
2672  arg1 = reinterpret_cast< a_element * >(argp1);
2673  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2674  if (!SWIG_IsOK(ecode2)) {
2675  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_zebra" "', argument " "2"" of type '" "bool""'");
2676  }
2677  arg2 = static_cast< bool >(val2);
2678  (arg1)->zebra(arg2);
2679 
2680  return TCL_OK;
2681 fail:
2682  return TCL_ERROR;
2683 }
2684 
2685 
2686 SWIGINTERN int
2687 _wrap_a_element_greyscale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2688  a_element *arg1 = (a_element *) 0 ;
2689  void *argp1 = 0 ;
2690  int res1 = 0 ;
2691  bool result;
2692 
2693  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_greyscale self ",(void *)0) == TCL_ERROR) SWIG_fail;
2694  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2695  if (!SWIG_IsOK(res1)) {
2696  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_greyscale" "', argument " "1"" of type '" "a_element const *""'");
2697  }
2698  arg1 = reinterpret_cast< a_element * >(argp1);
2699  result = (bool)((a_element const *)arg1)->greyscale();
2700  Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
2701  return TCL_OK;
2702 fail:
2703  return TCL_ERROR;
2704 }
2705 
2706 
2707 SWIGINTERN int
2708 _wrap_a_element_greyscale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2709  Tcl_Obj *CONST *argv = objv+1;
2710  int argc = objc-1;
2711  if (argc == 1) {
2712  int _v;
2713  void *vptr = 0;
2714  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2715  _v = SWIG_CheckState(res);
2716  if (_v) {
2717  return _wrap_a_element_greyscale__SWIG_1(clientData, interp, objc, argv - 1);
2718  }
2719  }
2720  if (argc == 2) {
2721  int _v;
2722  void *vptr = 0;
2723  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2724  _v = SWIG_CheckState(res);
2725  if (_v) {
2726  {
2727  int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2728  _v = SWIG_CheckState(res);
2729  }
2730  if (_v) {
2731  return _wrap_a_element_greyscale__SWIG_0(clientData, interp, objc, argv - 1);
2732  }
2733  }
2734  }
2735 
2736  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_greyscale'.\n"
2737  " Possible C/C++ prototypes are:\n"
2738  " a_element::greyscale(bool)\n"
2739  " a_element::greyscale() const\n", TCL_STATIC);
2740  return TCL_ERROR;
2741 }
2742 
2743 
2744 SWIGINTERN int
2745 _wrap_a_element_steps__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2746  a_element *arg1 = (a_element *) 0 ;
2747  int arg2 ;
2748  void *argp1 = 0 ;
2749  int res1 = 0 ;
2750  int val2 ;
2751  int ecode2 = 0 ;
2752 
2753  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_steps self int const ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2754  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2755  if (!SWIG_IsOK(res1)) {
2756  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_steps" "', argument " "1"" of type '" "a_element *""'");
2757  }
2758  arg1 = reinterpret_cast< a_element * >(argp1);
2759  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2760  if (!SWIG_IsOK(ecode2)) {
2761  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_steps" "', argument " "2"" of type '" "int""'");
2762  }
2763  arg2 = static_cast< int >(val2);
2764  (arg1)->steps(arg2);
2765 
2766  return TCL_OK;
2767 fail:
2768  return TCL_ERROR;
2769 }
2770 
2771 
2772 SWIGINTERN int
2773 _wrap_a_element_steps__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2774  a_element *arg1 = (a_element *) 0 ;
2775  void *argp1 = 0 ;
2776  int res1 = 0 ;
2777  int result;
2778 
2779  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_steps self ",(void *)0) == TCL_ERROR) SWIG_fail;
2780  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2781  if (!SWIG_IsOK(res1)) {
2782  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_steps" "', argument " "1"" of type '" "a_element const *""'");
2783  }
2784  arg1 = reinterpret_cast< a_element * >(argp1);
2785  result = (int)((a_element const *)arg1)->steps();
2786  Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
2787  return TCL_OK;
2788 fail:
2789  return TCL_ERROR;
2790 }
2791 
2792 
2793 SWIGINTERN int
2794 _wrap_a_element_steps(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2795  Tcl_Obj *CONST *argv = objv+1;
2796  int argc = objc-1;
2797  if (argc == 1) {
2798  int _v;
2799  void *vptr = 0;
2800  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2801  _v = SWIG_CheckState(res);
2802  if (_v) {
2803  return _wrap_a_element_steps__SWIG_1(clientData, interp, objc, argv - 1);
2804  }
2805  }
2806  if (argc == 2) {
2807  int _v;
2808  void *vptr = 0;
2809  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2810  _v = SWIG_CheckState(res);
2811  if (_v) {
2812  {
2813  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2814  _v = SWIG_CheckState(res);
2815  }
2816  if (_v) {
2817  return _wrap_a_element_steps__SWIG_0(clientData, interp, objc, argv - 1);
2818  }
2819  }
2820  }
2821 
2822  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_steps'.\n"
2823  " Possible C/C++ prototypes are:\n"
2824  " a_element::steps(int const)\n"
2825  " a_element::steps() const\n", TCL_STATIC);
2826  return TCL_ERROR;
2827 }
2828 
2829 
2830 SWIGINTERN int
2831 _wrap_a_element_thickness__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2832  a_element *arg1 = (a_element *) 0 ;
2833  int arg2 ;
2834  void *argp1 = 0 ;
2835  int res1 = 0 ;
2836  int val2 ;
2837  int ecode2 = 0 ;
2838 
2839  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_thickness self int const ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2840  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2841  if (!SWIG_IsOK(res1)) {
2842  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_thickness" "', argument " "1"" of type '" "a_element *""'");
2843  }
2844  arg1 = reinterpret_cast< a_element * >(argp1);
2845  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2846  if (!SWIG_IsOK(ecode2)) {
2847  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_thickness" "', argument " "2"" of type '" "int""'");
2848  }
2849  arg2 = static_cast< int >(val2);
2850  (arg1)->thickness(arg2);
2851 
2852  return TCL_OK;
2853 fail:
2854  return TCL_ERROR;
2855 }
2856 
2857 
2858 SWIGINTERN int
2859 _wrap_a_element_thickness__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2860  a_element *arg1 = (a_element *) 0 ;
2861  void *argp1 = 0 ;
2862  int res1 = 0 ;
2863  int result;
2864 
2865  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_thickness self ",(void *)0) == TCL_ERROR) SWIG_fail;
2866  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2867  if (!SWIG_IsOK(res1)) {
2868  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_thickness" "', argument " "1"" of type '" "a_element const *""'");
2869  }
2870  arg1 = reinterpret_cast< a_element * >(argp1);
2871  result = (int)((a_element const *)arg1)->thickness();
2872  Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
2873  return TCL_OK;
2874 fail:
2875  return TCL_ERROR;
2876 }
2877 
2878 
2879 SWIGINTERN int
2880 _wrap_a_element_thickness(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2881  Tcl_Obj *CONST *argv = objv+1;
2882  int argc = objc-1;
2883  if (argc == 1) {
2884  int _v;
2885  void *vptr = 0;
2886  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2887  _v = SWIG_CheckState(res);
2888  if (_v) {
2889  return _wrap_a_element_thickness__SWIG_1(clientData, interp, objc, argv - 1);
2890  }
2891  }
2892  if (argc == 2) {
2893  int _v;
2894  void *vptr = 0;
2895  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
2896  _v = SWIG_CheckState(res);
2897  if (_v) {
2898  {
2899  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2900  _v = SWIG_CheckState(res);
2901  }
2902  if (_v) {
2903  return _wrap_a_element_thickness__SWIG_0(clientData, interp, objc, argv - 1);
2904  }
2905  }
2906  }
2907 
2908  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_thickness'.\n"
2909  " Possible C/C++ prototypes are:\n"
2910  " a_element::thickness(int const)\n"
2911  " a_element::thickness() const\n", TCL_STATIC);
2912  return TCL_ERROR;
2913 }
2914 
2915 
2916 SWIGINTERN int
2917 _wrap_a_element_dxfout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2918  a_element *arg1 = (a_element *) 0 ;
2919  std::ostream *arg2 = 0 ;
2920  void *argp1 = 0 ;
2921  int res1 = 0 ;
2922  void *argp2 = 0 ;
2923  int res2 = 0 ;
2924 
2925  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_dxfout self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2926  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2927  if (!SWIG_IsOK(res1)) {
2928  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_dxfout" "', argument " "1"" of type '" "a_element const *""'");
2929  }
2930  arg1 = reinterpret_cast< a_element * >(argp1);
2931  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__ostream, 0 );
2932  if (!SWIG_IsOK(res2)) {
2933  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_element_dxfout" "', argument " "2"" of type '" "std::ostream &""'");
2934  }
2935  if (!argp2) {
2936  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_element_dxfout" "', argument " "2"" of type '" "std::ostream &""'");
2937  }
2938  arg2 = reinterpret_cast< std::ostream * >(argp2);
2939  ((a_element const *)arg1)->dxfout(*arg2);
2940 
2941  return TCL_OK;
2942 fail:
2943  return TCL_ERROR;
2944 }
2945 
2946 
2947 SWIGINTERN int
2948 _wrap_a_element_visibility(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2949  a_element *arg1 = (a_element *) 0 ;
2950  int arg2 ;
2951  void *argp1 = 0 ;
2952  int res1 = 0 ;
2953  int val2 ;
2954  int ecode2 = 0 ;
2955 
2956  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_visibility self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2957  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2958  if (!SWIG_IsOK(res1)) {
2959  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_visibility" "', argument " "1"" of type '" "a_element *""'");
2960  }
2961  arg1 = reinterpret_cast< a_element * >(argp1);
2962  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2963  if (!SWIG_IsOK(ecode2)) {
2964  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_visibility" "', argument " "2"" of type '" "int""'");
2965  }
2966  arg2 = static_cast< int >(val2);
2967  (arg1)->visibility(arg2);
2968 
2969  return TCL_OK;
2970 fail:
2971  return TCL_ERROR;
2972 }
2973 
2974 
2975 SWIGINTERN int
2976 _wrap_a_element_isvisible(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2977  a_element *arg1 = (a_element *) 0 ;
2978  void *argp1 = 0 ;
2979  int res1 = 0 ;
2980  bool result;
2981 
2982  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_isvisible self ",(void *)0) == TCL_ERROR) SWIG_fail;
2983  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
2984  if (!SWIG_IsOK(res1)) {
2985  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_isvisible" "', argument " "1"" of type '" "a_element const *""'");
2986  }
2987  arg1 = reinterpret_cast< a_element * >(argp1);
2988  result = (bool)((a_element const *)arg1)->isvisible();
2989  Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
2990  return TCL_OK;
2991 fail:
2992  return TCL_ERROR;
2993 }
2994 
2995 
2996 SWIGINTERN int
2997 _wrap_a_element_isnotvisible(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2998  a_element *arg1 = (a_element *) 0 ;
2999  void *argp1 = 0 ;
3000  int res1 = 0 ;
3001  bool result;
3002 
3003  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_isnotvisible self ",(void *)0) == TCL_ERROR) SWIG_fail;
3004  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3005  if (!SWIG_IsOK(res1)) {
3006  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_isnotvisible" "', argument " "1"" of type '" "a_element const *""'");
3007  }
3008  arg1 = reinterpret_cast< a_element * >(argp1);
3009  result = (bool)((a_element const *)arg1)->isnotvisible();
3010  Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
3011  return TCL_OK;
3012 fail:
3013  return TCL_ERROR;
3014 }
3015 
3016 
3017 SWIGINTERN int
3018 _wrap_a_element_opacity(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3019  a_element *arg1 = (a_element *) 0 ;
3020  double arg2 ;
3021  void *argp1 = 0 ;
3022  int res1 = 0 ;
3023  double val2 ;
3024  int ecode2 = 0 ;
3025 
3026  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_opacity self val ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3027  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3028  if (!SWIG_IsOK(res1)) {
3029  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_opacity" "', argument " "1"" of type '" "a_element *""'");
3030  }
3031  arg1 = reinterpret_cast< a_element * >(argp1);
3032  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3033  if (!SWIG_IsOK(ecode2)) {
3034  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_opacity" "', argument " "2"" of type '" "double""'");
3035  }
3036  arg2 = static_cast< double >(val2);
3037  (arg1)->opacity(arg2);
3038 
3039  return TCL_OK;
3040 fail:
3041  return TCL_ERROR;
3042 }
3043 
3044 
3045 SWIGINTERN int
3046 _wrap_a_element_edges(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3047  a_element *arg1 = (a_element *) 0 ;
3048  bool arg2 ;
3049  void *argp1 = 0 ;
3050  int res1 = 0 ;
3051  bool val2 ;
3052  int ecode2 = 0 ;
3053 
3054  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_edges self val ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3055  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3056  if (!SWIG_IsOK(res1)) {
3057  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_edges" "', argument " "1"" of type '" "a_element *""'");
3058  }
3059  arg1 = reinterpret_cast< a_element * >(argp1);
3060  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3061  if (!SWIG_IsOK(ecode2)) {
3062  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_edges" "', argument " "2"" of type '" "bool""'");
3063  }
3064  arg2 = static_cast< bool >(val2);
3065  (arg1)->edges(arg2);
3066 
3067  return TCL_OK;
3068 fail:
3069  return TCL_ERROR;
3070 }
3071 
3072 
3073 SWIGINTERN int
3074 _wrap_a_element_smooth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3075  a_element *arg1 = (a_element *) 0 ;
3076  bool arg2 ;
3077  void *argp1 = 0 ;
3078  int res1 = 0 ;
3079  bool val2 ;
3080  int ecode2 = 0 ;
3081 
3082  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_smooth self val ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3083  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3084  if (!SWIG_IsOK(res1)) {
3085  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_smooth" "', argument " "1"" of type '" "a_element *""'");
3086  }
3087  arg1 = reinterpret_cast< a_element * >(argp1);
3088  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3089  if (!SWIG_IsOK(ecode2)) {
3090  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_smooth" "', argument " "2"" of type '" "bool""'");
3091  }
3092  arg2 = static_cast< bool >(val2);
3093  (arg1)->smooth(arg2);
3094 
3095  return TCL_OK;
3096 fail:
3097  return TCL_ERROR;
3098 }
3099 
3100 
3101 SWIGINTERN int
3102 _wrap_a_element_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3103  a_element *arg1 = (a_element *) 0 ;
3104  a_image *arg2 = 0 ;
3105  void *argp1 = 0 ;
3106  int res1 = 0 ;
3107  void *argp2 = 0 ;
3108  int res2 = 0 ;
3109 
3110  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_image self image ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3111  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3112  if (!SWIG_IsOK(res1)) {
3113  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_image" "', argument " "1"" of type '" "a_element *""'");
3114  }
3115  arg1 = reinterpret_cast< a_element * >(argp1);
3116  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_image, 0 );
3117  if (!SWIG_IsOK(res2)) {
3118  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_element_image" "', argument " "2"" of type '" "a_image &""'");
3119  }
3120  if (!argp2) {
3121  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_element_image" "', argument " "2"" of type '" "a_image &""'");
3122  }
3123  arg2 = reinterpret_cast< a_image * >(argp2);
3124  (arg1)->image(*arg2);
3125 
3126  return TCL_OK;
3127 fail:
3128  return TCL_ERROR;
3129 }
3130 
3131 
3132 SWIGINTERN int
3133 _wrap_a_element_imageon(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3134  a_element *arg1 = (a_element *) 0 ;
3135  void *argp1 = 0 ;
3136  int res1 = 0 ;
3137 
3138  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_imageon self ",(void *)0) == TCL_ERROR) SWIG_fail;
3139  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3140  if (!SWIG_IsOK(res1)) {
3141  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_imageon" "', argument " "1"" of type '" "a_element *""'");
3142  }
3143  arg1 = reinterpret_cast< a_element * >(argp1);
3144  (arg1)->imageon();
3145 
3146  return TCL_OK;
3147 fail:
3148  return TCL_ERROR;
3149 }
3150 
3151 
3152 SWIGINTERN int
3153 _wrap_a_element_imageoff(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3154  a_element *arg1 = (a_element *) 0 ;
3155  void *argp1 = 0 ;
3156  int res1 = 0 ;
3157 
3158  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_imageoff self ",(void *)0) == TCL_ERROR) SWIG_fail;
3159  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3160  if (!SWIG_IsOK(res1)) {
3161  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_imageoff" "', argument " "1"" of type '" "a_element *""'");
3162  }
3163  arg1 = reinterpret_cast< a_element * >(argp1);
3164  (arg1)->imageoff();
3165 
3166  return TCL_OK;
3167 fail:
3168  return TCL_ERROR;
3169 }
3170 
3171 
3172 SWIGINTERN int
3173 _wrap_a_element_open(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3174  a_element *arg1 = (a_element *) 0 ;
3175  std::string arg2 ;
3176  void *argp1 = 0 ;
3177  int res1 = 0 ;
3178 
3179  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_open self file ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3180  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3181  if (!SWIG_IsOK(res1)) {
3182  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_open" "', argument " "1"" of type '" "a_element *""'");
3183  }
3184  arg1 = reinterpret_cast< a_element * >(argp1);
3185  {
3186  std::string *ptr = (std::string *)0;
3187  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
3188  if (!SWIG_IsOK(res) || !ptr) {
3189  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_element_open" "', argument " "2"" of type '" "std::string const""'");
3190  }
3191  arg2 = *ptr;
3192  if (SWIG_IsNewObj(res)) delete ptr;
3193  }
3194  (arg1)->open(arg2);
3195 
3196  return TCL_OK;
3197 fail:
3198  return TCL_ERROR;
3199 }
3200 
3201 
3202 SWIGINTERN int
3203 _wrap_a_element_save(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3204  a_element *arg1 = (a_element *) 0 ;
3205  std::string arg2 ;
3206  void *argp1 = 0 ;
3207  int res1 = 0 ;
3208 
3209  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_save self file ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3210  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3211  if (!SWIG_IsOK(res1)) {
3212  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_save" "', argument " "1"" of type '" "a_element *""'");
3213  }
3214  arg1 = reinterpret_cast< a_element * >(argp1);
3215  {
3216  std::string *ptr = (std::string *)0;
3217  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
3218  if (!SWIG_IsOK(res) || !ptr) {
3219  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_element_save" "', argument " "2"" of type '" "std::string const""'");
3220  }
3221  arg2 = *ptr;
3222  if (SWIG_IsNewObj(res)) delete ptr;
3223  }
3224  (arg1)->save(arg2);
3225 
3226  return TCL_OK;
3227 fail:
3228  return TCL_ERROR;
3229 }
3230 
3231 
3232 SWIGINTERN int
3233 _wrap_a_element_save_transform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3234  a_element *arg1 = (a_element *) 0 ;
3235  std::string arg2 ;
3236  void *argp1 = 0 ;
3237  int res1 = 0 ;
3238 
3239  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_save_transform self file ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3240  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3241  if (!SWIG_IsOK(res1)) {
3242  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_save_transform" "', argument " "1"" of type '" "a_element *""'");
3243  }
3244  arg1 = reinterpret_cast< a_element * >(argp1);
3245  {
3246  std::string *ptr = (std::string *)0;
3247  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
3248  if (!SWIG_IsOK(res) || !ptr) {
3249  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_element_save_transform" "', argument " "2"" of type '" "std::string const""'");
3250  }
3251  arg2 = *ptr;
3252  if (SWIG_IsNewObj(res)) delete ptr;
3253  }
3254  (arg1)->save_transform(arg2);
3255 
3256  return TCL_OK;
3257 fail:
3258  return TCL_ERROR;
3259 }
3260 
3261 
3262 SWIGINTERN int
3263 _wrap_a_element_open_scalars(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3264  a_element *arg1 = (a_element *) 0 ;
3265  std::string *arg2 = 0 ;
3266  void *argp1 = 0 ;
3267  int res1 = 0 ;
3268  int res2 = SWIG_OLDOBJ ;
3269 
3270  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_open_scalars self file ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3271  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3272  if (!SWIG_IsOK(res1)) {
3273  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_open_scalars" "', argument " "1"" of type '" "a_element *""'");
3274  }
3275  arg1 = reinterpret_cast< a_element * >(argp1);
3276  {
3277  std::string *ptr = (std::string *)0;
3278  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
3279  if (!SWIG_IsOK(res2)) {
3280  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_element_open_scalars" "', argument " "2"" of type '" "std::string const &""'");
3281  }
3282  if (!ptr) {
3283  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_element_open_scalars" "', argument " "2"" of type '" "std::string const &""'");
3284  }
3285  arg2 = ptr;
3286  }
3287  (arg1)->open_scalars((std::string const &)*arg2);
3288 
3289  if (SWIG_IsNewObj(res2)) delete arg2;
3290  return TCL_OK;
3291 fail:
3292  if (SWIG_IsNewObj(res2)) delete arg2;
3293  return TCL_ERROR;
3294 }
3295 
3296 
3297 SWIGINTERN int
3298 _wrap_a_element_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3299  a_element *arg1 = (a_element *) 0 ;
3300  void *argp1 = 0 ;
3301  int res1 = 0 ;
3302 
3303  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_reset_mapper_clipping self ",(void *)0) == TCL_ERROR) SWIG_fail;
3304  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3305  if (!SWIG_IsOK(res1)) {
3306  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_reset_mapper_clipping" "', argument " "1"" of type '" "a_element *""'");
3307  }
3308  arg1 = reinterpret_cast< a_element * >(argp1);
3309  (arg1)->reset_mapper_clipping();
3310 
3311  return TCL_OK;
3312 fail:
3313  return TCL_ERROR;
3314 }
3315 
3316 
3317 SWIGINTERN int
3318 _wrap_a_element_place__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3319  a_element *arg1 = (a_element *) 0 ;
3320  double arg2 ;
3321  double arg3 ;
3322  double arg4 ;
3323  void *argp1 = 0 ;
3324  int res1 = 0 ;
3325  double val2 ;
3326  int ecode2 = 0 ;
3327  double val3 ;
3328  int ecode3 = 0 ;
3329  double val4 ;
3330  int ecode4 = 0 ;
3331 
3332  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_place self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3333  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3334  if (!SWIG_IsOK(res1)) {
3335  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_place" "', argument " "1"" of type '" "a_element *""'");
3336  }
3337  arg1 = reinterpret_cast< a_element * >(argp1);
3338  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3339  if (!SWIG_IsOK(ecode2)) {
3340  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_place" "', argument " "2"" of type '" "double""'");
3341  }
3342  arg2 = static_cast< double >(val2);
3343  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3344  if (!SWIG_IsOK(ecode3)) {
3345  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_place" "', argument " "3"" of type '" "double""'");
3346  }
3347  arg3 = static_cast< double >(val3);
3348  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3349  if (!SWIG_IsOK(ecode4)) {
3350  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_place" "', argument " "4"" of type '" "double""'");
3351  }
3352  arg4 = static_cast< double >(val4);
3353  (arg1)->place(arg2,arg3,arg4);
3354 
3355  return TCL_OK;
3356 fail:
3357  return TCL_ERROR;
3358 }
3359 
3360 
3361 SWIGINTERN int
3362 _wrap_a_element_translate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3363  a_element *arg1 = (a_element *) 0 ;
3364  double arg2 ;
3365  double arg3 ;
3366  double arg4 ;
3367  void *argp1 = 0 ;
3368  int res1 = 0 ;
3369  double val2 ;
3370  int ecode2 = 0 ;
3371  double val3 ;
3372  int ecode3 = 0 ;
3373  double val4 ;
3374  int ecode4 = 0 ;
3375 
3376  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_translate self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3377  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3378  if (!SWIG_IsOK(res1)) {
3379  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_translate" "', argument " "1"" of type '" "a_element *""'");
3380  }
3381  arg1 = reinterpret_cast< a_element * >(argp1);
3382  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3383  if (!SWIG_IsOK(ecode2)) {
3384  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_translate" "', argument " "2"" of type '" "double""'");
3385  }
3386  arg2 = static_cast< double >(val2);
3387  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3388  if (!SWIG_IsOK(ecode3)) {
3389  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_translate" "', argument " "3"" of type '" "double""'");
3390  }
3391  arg3 = static_cast< double >(val3);
3392  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3393  if (!SWIG_IsOK(ecode4)) {
3394  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_translate" "', argument " "4"" of type '" "double""'");
3395  }
3396  arg4 = static_cast< double >(val4);
3397  (arg1)->translate(arg2,arg3,arg4);
3398 
3399  return TCL_OK;
3400 fail:
3401  return TCL_ERROR;
3402 }
3403 
3404 
3405 SWIGINTERN int
3406 _wrap_a_element_origin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3407  a_element *arg1 = (a_element *) 0 ;
3408  double arg2 ;
3409  double arg3 ;
3410  double arg4 ;
3411  void *argp1 = 0 ;
3412  int res1 = 0 ;
3413  double val2 ;
3414  int ecode2 = 0 ;
3415  double val3 ;
3416  int ecode3 = 0 ;
3417  double val4 ;
3418  int ecode4 = 0 ;
3419 
3420  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_origin self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3421  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3422  if (!SWIG_IsOK(res1)) {
3423  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_origin" "', argument " "1"" of type '" "a_element *""'");
3424  }
3425  arg1 = reinterpret_cast< a_element * >(argp1);
3426  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3427  if (!SWIG_IsOK(ecode2)) {
3428  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_origin" "', argument " "2"" of type '" "double""'");
3429  }
3430  arg2 = static_cast< double >(val2);
3431  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3432  if (!SWIG_IsOK(ecode3)) {
3433  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_origin" "', argument " "3"" of type '" "double""'");
3434  }
3435  arg3 = static_cast< double >(val3);
3436  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3437  if (!SWIG_IsOK(ecode4)) {
3438  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_origin" "', argument " "4"" of type '" "double""'");
3439  }
3440  arg4 = static_cast< double >(val4);
3441  (arg1)->origin(arg2,arg3,arg4);
3442 
3443  return TCL_OK;
3444 fail:
3445  return TCL_ERROR;
3446 }
3447 
3448 
3449 SWIGINTERN int
3450 _wrap_a_element_orient__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3451  a_element *arg1 = (a_element *) 0 ;
3452  double arg2 ;
3453  double arg3 ;
3454  double arg4 ;
3455  void *argp1 = 0 ;
3456  int res1 = 0 ;
3457  double val2 ;
3458  int ecode2 = 0 ;
3459  double val3 ;
3460  int ecode3 = 0 ;
3461  double val4 ;
3462  int ecode4 = 0 ;
3463 
3464  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_orient self pitch roll yaw ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3465  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3466  if (!SWIG_IsOK(res1)) {
3467  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_orient" "', argument " "1"" of type '" "a_element *""'");
3468  }
3469  arg1 = reinterpret_cast< a_element * >(argp1);
3470  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3471  if (!SWIG_IsOK(ecode2)) {
3472  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_orient" "', argument " "2"" of type '" "double""'");
3473  }
3474  arg2 = static_cast< double >(val2);
3475  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3476  if (!SWIG_IsOK(ecode3)) {
3477  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_orient" "', argument " "3"" of type '" "double""'");
3478  }
3479  arg3 = static_cast< double >(val3);
3480  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3481  if (!SWIG_IsOK(ecode4)) {
3482  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_orient" "', argument " "4"" of type '" "double""'");
3483  }
3484  arg4 = static_cast< double >(val4);
3485  (arg1)->orient(arg2,arg3,arg4);
3486 
3487  return TCL_OK;
3488 fail:
3489  return TCL_ERROR;
3490 }
3491 
3492 
3493 SWIGINTERN int
3494 _wrap_a_element_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3495  a_element *arg1 = (a_element *) 0 ;
3496  double arg2 ;
3497  double arg3 ;
3498  double arg4 ;
3499  void *argp1 = 0 ;
3500  int res1 = 0 ;
3501  double val2 ;
3502  int ecode2 = 0 ;
3503  double val3 ;
3504  int ecode3 = 0 ;
3505  double val4 ;
3506  int ecode4 = 0 ;
3507 
3508  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_rotate self pitch roll yaw ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3509  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3510  if (!SWIG_IsOK(res1)) {
3511  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_rotate" "', argument " "1"" of type '" "a_element *""'");
3512  }
3513  arg1 = reinterpret_cast< a_element * >(argp1);
3514  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3515  if (!SWIG_IsOK(ecode2)) {
3516  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_rotate" "', argument " "2"" of type '" "double""'");
3517  }
3518  arg2 = static_cast< double >(val2);
3519  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3520  if (!SWIG_IsOK(ecode3)) {
3521  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_rotate" "', argument " "3"" of type '" "double""'");
3522  }
3523  arg3 = static_cast< double >(val3);
3524  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3525  if (!SWIG_IsOK(ecode4)) {
3526  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_rotate" "', argument " "4"" of type '" "double""'");
3527  }
3528  arg4 = static_cast< double >(val4);
3529  (arg1)->rotate(arg2,arg3,arg4);
3530 
3531  return TCL_OK;
3532 fail:
3533  return TCL_ERROR;
3534 }
3535 
3536 
3537 SWIGINTERN int
3538 _wrap_a_element_scale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3539  a_element *arg1 = (a_element *) 0 ;
3540  double arg2 ;
3541  void *argp1 = 0 ;
3542  int res1 = 0 ;
3543  double val2 ;
3544  int ecode2 = 0 ;
3545 
3546  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_scale self s ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3547  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3548  if (!SWIG_IsOK(res1)) {
3549  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_scale" "', argument " "1"" of type '" "a_element *""'");
3550  }
3551  arg1 = reinterpret_cast< a_element * >(argp1);
3552  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3553  if (!SWIG_IsOK(ecode2)) {
3554  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_scale" "', argument " "2"" of type '" "double""'");
3555  }
3556  arg2 = static_cast< double >(val2);
3557  (arg1)->scale(arg2);
3558 
3559  return TCL_OK;
3560 fail:
3561  return TCL_ERROR;
3562 }
3563 
3564 
3565 SWIGINTERN int
3566 _wrap_a_element_scale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3567  a_element *arg1 = (a_element *) 0 ;
3568  double arg2 ;
3569  double arg3 ;
3570  double arg4 ;
3571  void *argp1 = 0 ;
3572  int res1 = 0 ;
3573  double val2 ;
3574  int ecode2 = 0 ;
3575  double val3 ;
3576  int ecode3 = 0 ;
3577  double val4 ;
3578  int ecode4 = 0 ;
3579 
3580  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_element_scale self s1 s2 s3 ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3581  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3582  if (!SWIG_IsOK(res1)) {
3583  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_scale" "', argument " "1"" of type '" "a_element *""'");
3584  }
3585  arg1 = reinterpret_cast< a_element * >(argp1);
3586  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3587  if (!SWIG_IsOK(ecode2)) {
3588  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_scale" "', argument " "2"" of type '" "double""'");
3589  }
3590  arg2 = static_cast< double >(val2);
3591  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3592  if (!SWIG_IsOK(ecode3)) {
3593  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_scale" "', argument " "3"" of type '" "double""'");
3594  }
3595  arg3 = static_cast< double >(val3);
3596  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3597  if (!SWIG_IsOK(ecode4)) {
3598  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_scale" "', argument " "4"" of type '" "double""'");
3599  }
3600  arg4 = static_cast< double >(val4);
3601  (arg1)->scale(arg2,arg3,arg4);
3602 
3603  return TCL_OK;
3604 fail:
3605  return TCL_ERROR;
3606 }
3607 
3608 
3609 SWIGINTERN int
3610 _wrap_a_element_small__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3611  a_element *arg1 = (a_element *) 0 ;
3612  void *argp1 = 0 ;
3613  int res1 = 0 ;
3614  double result;
3615 
3616  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_small self ",(void *)0) == TCL_ERROR) SWIG_fail;
3617  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3618  if (!SWIG_IsOK(res1)) {
3619  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_small" "', argument " "1"" of type '" "a_element const *""'");
3620  }
3621  arg1 = reinterpret_cast< a_element * >(argp1);
3622  result = (double)((a_element const *)arg1)->small();
3623  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3624  return TCL_OK;
3625 fail:
3626  return TCL_ERROR;
3627 }
3628 
3629 
3630 SWIGINTERN int
3631 _wrap_a_element_small__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3632  a_element *arg1 = (a_element *) 0 ;
3633  double arg2 ;
3634  void *argp1 = 0 ;
3635  int res1 = 0 ;
3636  double val2 ;
3637  int ecode2 = 0 ;
3638 
3639  if (SWIG_GetArgs(interp, objc, objv,"oo:a_element_small self s ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3640  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3641  if (!SWIG_IsOK(res1)) {
3642  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_small" "', argument " "1"" of type '" "a_element *""'");
3643  }
3644  arg1 = reinterpret_cast< a_element * >(argp1);
3645  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3646  if (!SWIG_IsOK(ecode2)) {
3647  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_small" "', argument " "2"" of type '" "double""'");
3648  }
3649  arg2 = static_cast< double >(val2);
3650  (arg1)->small(arg2);
3651 
3652  return TCL_OK;
3653 fail:
3654  return TCL_ERROR;
3655 }
3656 
3657 
3658 SWIGINTERN int
3659 _wrap_a_element_small(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3660  Tcl_Obj *CONST *argv = objv+1;
3661  int argc = objc-1;
3662  if (argc == 1) {
3663  int _v;
3664  void *vptr = 0;
3665  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3666  _v = SWIG_CheckState(res);
3667  if (_v) {
3668  return _wrap_a_element_small__SWIG_0(clientData, interp, objc, argv - 1);
3669  }
3670  }
3671  if (argc == 2) {
3672  int _v;
3673  void *vptr = 0;
3674  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3675  _v = SWIG_CheckState(res);
3676  if (_v) {
3677  {
3678  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3679  _v = SWIG_CheckState(res);
3680  }
3681  if (_v) {
3682  return _wrap_a_element_small__SWIG_1(clientData, interp, objc, argv - 1);
3683  }
3684  }
3685  }
3686 
3687  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_small'.\n"
3688  " Possible C/C++ prototypes are:\n"
3689  " a_element::small() const\n"
3690  " a_element::small(double const)\n", TCL_STATIC);
3691  return TCL_ERROR;
3692 }
3693 
3694 
3695 SWIGINTERN int
3696 _wrap_a_element_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3697  a_element *arg1 = (a_element *) 0 ;
3698  void *argp1 = 0 ;
3699  int res1 = 0 ;
3700  double result;
3701 
3702  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
3703  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3704  if (!SWIG_IsOK(res1)) {
3705  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_size" "', argument " "1"" of type '" "a_element const *""'");
3706  }
3707  arg1 = reinterpret_cast< a_element * >(argp1);
3708  result = (double)((a_element const *)arg1)->size();
3709  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3710  return TCL_OK;
3711 fail:
3712  return TCL_ERROR;
3713 }
3714 
3715 
3716 SWIGINTERN int
3717 _wrap_a_element_minx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3718  a_element *arg1 = (a_element *) 0 ;
3719  void *argp1 = 0 ;
3720  int res1 = 0 ;
3721  double result;
3722 
3723  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_minx self ",(void *)0) == TCL_ERROR) SWIG_fail;
3724  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3725  if (!SWIG_IsOK(res1)) {
3726  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_minx" "', argument " "1"" of type '" "a_element const *""'");
3727  }
3728  arg1 = reinterpret_cast< a_element * >(argp1);
3729  result = (double)((a_element const *)arg1)->minx();
3730  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3731  return TCL_OK;
3732 fail:
3733  return TCL_ERROR;
3734 }
3735 
3736 
3737 SWIGINTERN int
3738 _wrap_a_element_maxx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3739  a_element *arg1 = (a_element *) 0 ;
3740  void *argp1 = 0 ;
3741  int res1 = 0 ;
3742  double result;
3743 
3744  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_maxx self ",(void *)0) == TCL_ERROR) SWIG_fail;
3745  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3746  if (!SWIG_IsOK(res1)) {
3747  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_maxx" "', argument " "1"" of type '" "a_element const *""'");
3748  }
3749  arg1 = reinterpret_cast< a_element * >(argp1);
3750  result = (double)((a_element const *)arg1)->maxx();
3751  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3752  return TCL_OK;
3753 fail:
3754  return TCL_ERROR;
3755 }
3756 
3757 
3758 SWIGINTERN int
3759 _wrap_a_element_miny(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3760  a_element *arg1 = (a_element *) 0 ;
3761  void *argp1 = 0 ;
3762  int res1 = 0 ;
3763  double result;
3764 
3765  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_miny self ",(void *)0) == TCL_ERROR) SWIG_fail;
3766  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3767  if (!SWIG_IsOK(res1)) {
3768  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_miny" "', argument " "1"" of type '" "a_element const *""'");
3769  }
3770  arg1 = reinterpret_cast< a_element * >(argp1);
3771  result = (double)((a_element const *)arg1)->miny();
3772  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3773  return TCL_OK;
3774 fail:
3775  return TCL_ERROR;
3776 }
3777 
3778 
3779 SWIGINTERN int
3780 _wrap_a_element_maxy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3781  a_element *arg1 = (a_element *) 0 ;
3782  void *argp1 = 0 ;
3783  int res1 = 0 ;
3784  double result;
3785 
3786  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_maxy self ",(void *)0) == TCL_ERROR) SWIG_fail;
3787  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3788  if (!SWIG_IsOK(res1)) {
3789  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_maxy" "', argument " "1"" of type '" "a_element const *""'");
3790  }
3791  arg1 = reinterpret_cast< a_element * >(argp1);
3792  result = (double)((a_element const *)arg1)->maxy();
3793  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3794  return TCL_OK;
3795 fail:
3796  return TCL_ERROR;
3797 }
3798 
3799 
3800 SWIGINTERN int
3801 _wrap_a_element_minz(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3802  a_element *arg1 = (a_element *) 0 ;
3803  void *argp1 = 0 ;
3804  int res1 = 0 ;
3805  double result;
3806 
3807  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_minz self ",(void *)0) == TCL_ERROR) SWIG_fail;
3808  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3809  if (!SWIG_IsOK(res1)) {
3810  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_minz" "', argument " "1"" of type '" "a_element const *""'");
3811  }
3812  arg1 = reinterpret_cast< a_element * >(argp1);
3813  result = (double)((a_element const *)arg1)->minz();
3814  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3815  return TCL_OK;
3816 fail:
3817  return TCL_ERROR;
3818 }
3819 
3820 
3821 SWIGINTERN int
3822 _wrap_a_element_maxz(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3823  a_element *arg1 = (a_element *) 0 ;
3824  void *argp1 = 0 ;
3825  int res1 = 0 ;
3826  double result;
3827 
3828  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_maxz self ",(void *)0) == TCL_ERROR) SWIG_fail;
3829  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3830  if (!SWIG_IsOK(res1)) {
3831  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_maxz" "', argument " "1"" of type '" "a_element const *""'");
3832  }
3833  arg1 = reinterpret_cast< a_element * >(argp1);
3834  result = (double)((a_element const *)arg1)->maxz();
3835  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3836  return TCL_OK;
3837 fail:
3838  return TCL_ERROR;
3839 }
3840 
3841 
3842 SWIGINTERN int
3843 _wrap_a_element_origin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3844  a_element *arg1 = (a_element *) 0 ;
3845  void *argp1 = 0 ;
3846  int res1 = 0 ;
3847  std::string result;
3848 
3849  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_origin self ",(void *)0) == TCL_ERROR) SWIG_fail;
3850  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3851  if (!SWIG_IsOK(res1)) {
3852  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_origin" "', argument " "1"" of type '" "a_element const *""'");
3853  }
3854  arg1 = reinterpret_cast< a_element * >(argp1);
3855  result = a_element_origin__SWIG_1((a_element const *)arg1);
3856  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3857  return TCL_OK;
3858 fail:
3859  return TCL_ERROR;
3860 }
3861 
3862 
3863 SWIGINTERN int
3864 _wrap_a_element_origin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3865  Tcl_Obj *CONST *argv = objv+1;
3866  int argc = objc-1;
3867  if (argc == 1) {
3868  int _v;
3869  void *vptr = 0;
3870  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3871  _v = SWIG_CheckState(res);
3872  if (_v) {
3873  return _wrap_a_element_origin__SWIG_1(clientData, interp, objc, argv - 1);
3874  }
3875  }
3876  if (argc == 4) {
3877  int _v;
3878  void *vptr = 0;
3879  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3880  _v = SWIG_CheckState(res);
3881  if (_v) {
3882  {
3883  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3884  _v = SWIG_CheckState(res);
3885  }
3886  if (_v) {
3887  {
3888  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
3889  _v = SWIG_CheckState(res);
3890  }
3891  if (_v) {
3892  {
3893  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
3894  _v = SWIG_CheckState(res);
3895  }
3896  if (_v) {
3897  return _wrap_a_element_origin__SWIG_0(clientData, interp, objc, argv - 1);
3898  }
3899  }
3900  }
3901  }
3902  }
3903 
3904  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_origin'.\n"
3905  " Possible C/C++ prototypes are:\n"
3906  " a_element::origin(double const,double const,double const)\n"
3907  " a_element::origin() const\n", TCL_STATIC);
3908  return TCL_ERROR;
3909 }
3910 
3911 
3912 SWIGINTERN int
3913 _wrap_a_element_place__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3914  a_element *arg1 = (a_element *) 0 ;
3915  void *argp1 = 0 ;
3916  int res1 = 0 ;
3917  std::string result;
3918 
3919  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_place self ",(void *)0) == TCL_ERROR) SWIG_fail;
3920  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3921  if (!SWIG_IsOK(res1)) {
3922  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_place" "', argument " "1"" of type '" "a_element const *""'");
3923  }
3924  arg1 = reinterpret_cast< a_element * >(argp1);
3925  result = a_element_place__SWIG_1((a_element const *)arg1);
3926  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3927  return TCL_OK;
3928 fail:
3929  return TCL_ERROR;
3930 }
3931 
3932 
3933 SWIGINTERN int
3934 _wrap_a_element_place(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3935  Tcl_Obj *CONST *argv = objv+1;
3936  int argc = objc-1;
3937  if (argc == 1) {
3938  int _v;
3939  void *vptr = 0;
3940  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3941  _v = SWIG_CheckState(res);
3942  if (_v) {
3943  return _wrap_a_element_place__SWIG_1(clientData, interp, objc, argv - 1);
3944  }
3945  }
3946  if (argc == 4) {
3947  int _v;
3948  void *vptr = 0;
3949  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
3950  _v = SWIG_CheckState(res);
3951  if (_v) {
3952  {
3953  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3954  _v = SWIG_CheckState(res);
3955  }
3956  if (_v) {
3957  {
3958  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
3959  _v = SWIG_CheckState(res);
3960  }
3961  if (_v) {
3962  {
3963  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
3964  _v = SWIG_CheckState(res);
3965  }
3966  if (_v) {
3967  return _wrap_a_element_place__SWIG_0(clientData, interp, objc, argv - 1);
3968  }
3969  }
3970  }
3971  }
3972  }
3973 
3974  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_place'.\n"
3975  " Possible C/C++ prototypes are:\n"
3976  " a_element::place(double const,double const,double const)\n"
3977  " a_element::place() const\n", TCL_STATIC);
3978  return TCL_ERROR;
3979 }
3980 
3981 
3982 SWIGINTERN int
3983 _wrap_a_element_orient__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3984  a_element *arg1 = (a_element *) 0 ;
3985  void *argp1 = 0 ;
3986  int res1 = 0 ;
3987  std::string result;
3988 
3989  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_orient self ",(void *)0) == TCL_ERROR) SWIG_fail;
3990  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
3991  if (!SWIG_IsOK(res1)) {
3992  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_orient" "', argument " "1"" of type '" "a_element const *""'");
3993  }
3994  arg1 = reinterpret_cast< a_element * >(argp1);
3995  result = a_element_orient__SWIG_1((a_element const *)arg1);
3996  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3997  return TCL_OK;
3998 fail:
3999  return TCL_ERROR;
4000 }
4001 
4002 
4003 SWIGINTERN int
4004 _wrap_a_element_orient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4005  Tcl_Obj *CONST *argv = objv+1;
4006  int argc = objc-1;
4007  if (argc == 1) {
4008  int _v;
4009  void *vptr = 0;
4010  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
4011  _v = SWIG_CheckState(res);
4012  if (_v) {
4013  return _wrap_a_element_orient__SWIG_1(clientData, interp, objc, argv - 1);
4014  }
4015  }
4016  if (argc == 4) {
4017  int _v;
4018  void *vptr = 0;
4019  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
4020  _v = SWIG_CheckState(res);
4021  if (_v) {
4022  {
4023  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4024  _v = SWIG_CheckState(res);
4025  }
4026  if (_v) {
4027  {
4028  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4029  _v = SWIG_CheckState(res);
4030  }
4031  if (_v) {
4032  {
4033  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4034  _v = SWIG_CheckState(res);
4035  }
4036  if (_v) {
4037  return _wrap_a_element_orient__SWIG_0(clientData, interp, objc, argv - 1);
4038  }
4039  }
4040  }
4041  }
4042  }
4043 
4044  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_orient'.\n"
4045  " Possible C/C++ prototypes are:\n"
4046  " a_element::orient(double const,double const,double const)\n"
4047  " a_element::orient() const\n", TCL_STATIC);
4048  return TCL_ERROR;
4049 }
4050 
4051 
4052 SWIGINTERN int
4053 _wrap_a_element_scale__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4054  a_element *arg1 = (a_element *) 0 ;
4055  void *argp1 = 0 ;
4056  int res1 = 0 ;
4057  std::string result;
4058 
4059  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_scale self ",(void *)0) == TCL_ERROR) SWIG_fail;
4060  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
4061  if (!SWIG_IsOK(res1)) {
4062  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_scale" "', argument " "1"" of type '" "a_element const *""'");
4063  }
4064  arg1 = reinterpret_cast< a_element * >(argp1);
4065  result = a_element_scale__SWIG_2((a_element const *)arg1);
4066  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4067  return TCL_OK;
4068 fail:
4069  return TCL_ERROR;
4070 }
4071 
4072 
4073 SWIGINTERN int
4074 _wrap_a_element_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4075  Tcl_Obj *CONST *argv = objv+1;
4076  int argc = objc-1;
4077  if (argc == 1) {
4078  int _v;
4079  void *vptr = 0;
4080  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
4081  _v = SWIG_CheckState(res);
4082  if (_v) {
4083  return _wrap_a_element_scale__SWIG_2(clientData, interp, objc, argv - 1);
4084  }
4085  }
4086  if (argc == 2) {
4087  int _v;
4088  void *vptr = 0;
4089  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
4090  _v = SWIG_CheckState(res);
4091  if (_v) {
4092  {
4093  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4094  _v = SWIG_CheckState(res);
4095  }
4096  if (_v) {
4097  return _wrap_a_element_scale__SWIG_0(clientData, interp, objc, argv - 1);
4098  }
4099  }
4100  }
4101  if (argc == 4) {
4102  int _v;
4103  void *vptr = 0;
4104  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_element, 0);
4105  _v = SWIG_CheckState(res);
4106  if (_v) {
4107  {
4108  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4109  _v = SWIG_CheckState(res);
4110  }
4111  if (_v) {
4112  {
4113  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4114  _v = SWIG_CheckState(res);
4115  }
4116  if (_v) {
4117  {
4118  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4119  _v = SWIG_CheckState(res);
4120  }
4121  if (_v) {
4122  return _wrap_a_element_scale__SWIG_1(clientData, interp, objc, argv - 1);
4123  }
4124  }
4125  }
4126  }
4127  }
4128 
4129  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_element_scale'.\n"
4130  " Possible C/C++ prototypes are:\n"
4131  " a_element::scale(double)\n"
4132  " a_element::scale(double,double,double)\n"
4133  " a_element::scale() const\n", TCL_STATIC);
4134  return TCL_ERROR;
4135 }
4136 
4137 
4138 SWIGINTERN int
4139 _wrap_a_element_center(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4140  a_element *arg1 = (a_element *) 0 ;
4141  void *argp1 = 0 ;
4142  int res1 = 0 ;
4143  std::string result;
4144 
4145  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_center self ",(void *)0) == TCL_ERROR) SWIG_fail;
4146  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
4147  if (!SWIG_IsOK(res1)) {
4148  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_center" "', argument " "1"" of type '" "a_element const *""'");
4149  }
4150  arg1 = reinterpret_cast< a_element * >(argp1);
4151  result = a_element_center((a_element const *)arg1);
4152  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4153  return TCL_OK;
4154 fail:
4155  return TCL_ERROR;
4156 }
4157 
4158 
4159 SWIGINTERN int
4160 _wrap_a_element_bounds(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4161  a_element *arg1 = (a_element *) 0 ;
4162  void *argp1 = 0 ;
4163  int res1 = 0 ;
4164  std::string result;
4165 
4166  if (SWIG_GetArgs(interp, objc, objv,"o:a_element_bounds self ",(void *)0) == TCL_ERROR) SWIG_fail;
4167  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
4168  if (!SWIG_IsOK(res1)) {
4169  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_bounds" "', argument " "1"" of type '" "a_element const *""'");
4170  }
4171  arg1 = reinterpret_cast< a_element * >(argp1);
4172  result = a_element_bounds((a_element const *)arg1);
4173  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4174  return TCL_OK;
4175 fail:
4176  return TCL_ERROR;
4177 }
4178 
4179 
4180 SWIGINTERN int
4181 _wrap_a_element_relief(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4182  a_element *arg1 = (a_element *) 0 ;
4183  double arg2 ;
4184  double arg3 ;
4185  double arg4 ;
4186  double arg5 ;
4187  double arg6 ;
4188  double arg7 ;
4189  void *argp1 = 0 ;
4190  int res1 = 0 ;
4191  double val2 ;
4192  int ecode2 = 0 ;
4193  double val3 ;
4194  int ecode3 = 0 ;
4195  double val4 ;
4196  int ecode4 = 0 ;
4197  double val5 ;
4198  int ecode5 = 0 ;
4199  double val6 ;
4200  int ecode6 = 0 ;
4201  double val7 ;
4202  int ecode7 = 0 ;
4203 
4204  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:a_element_relief self x1 y1 z1 x2 y2 z2 ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4205  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_element, 0 | 0 );
4206  if (!SWIG_IsOK(res1)) {
4207  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_element_relief" "', argument " "1"" of type '" "a_element *""'");
4208  }
4209  arg1 = reinterpret_cast< a_element * >(argp1);
4210  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4211  if (!SWIG_IsOK(ecode2)) {
4212  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_element_relief" "', argument " "2"" of type '" "double""'");
4213  }
4214  arg2 = static_cast< double >(val2);
4215  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4216  if (!SWIG_IsOK(ecode3)) {
4217  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_element_relief" "', argument " "3"" of type '" "double""'");
4218  }
4219  arg3 = static_cast< double >(val3);
4220  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4221  if (!SWIG_IsOK(ecode4)) {
4222  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_element_relief" "', argument " "4"" of type '" "double""'");
4223  }
4224  arg4 = static_cast< double >(val4);
4225  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
4226  if (!SWIG_IsOK(ecode5)) {
4227  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "a_element_relief" "', argument " "5"" of type '" "double""'");
4228  }
4229  arg5 = static_cast< double >(val5);
4230  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
4231  if (!SWIG_IsOK(ecode6)) {
4232  SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "a_element_relief" "', argument " "6"" of type '" "double""'");
4233  }
4234  arg6 = static_cast< double >(val6);
4235  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
4236  if (!SWIG_IsOK(ecode7)) {
4237  SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "a_element_relief" "', argument " "7"" of type '" "double""'");
4238  }
4239  arg7 = static_cast< double >(val7);
4240  a_element_relief(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4241 
4242  return TCL_OK;
4243 fail:
4244  return TCL_ERROR;
4245 }
4246 
4247 
4249 a_element *arg1 = (a_element *) obj;
4250 delete arg1;
4251 }
4253  {"reset", _wrap_a_element_reset},
4254  {"name", _wrap_a_element_name},
4255  {"empty", _wrap_a_element_empty},
4256  {"color", _wrap_a_element_color},
4257  {"R", _wrap_a_element_R},
4258  {"G", _wrap_a_element_G},
4259  {"B", _wrap_a_element_B},
4260  {"zebra", _wrap_a_element_zebra},
4261  {"greyscale", _wrap_a_element_greyscale},
4262  {"steps", _wrap_a_element_steps},
4263  {"thickness", _wrap_a_element_thickness},
4264  {"dxfout", _wrap_a_element_dxfout},
4265  {"visibility", _wrap_a_element_visibility},
4266  {"isvisible", _wrap_a_element_isvisible},
4267  {"isnotvisible", _wrap_a_element_isnotvisible},
4268  {"opacity", _wrap_a_element_opacity},
4269  {"edges", _wrap_a_element_edges},
4270  {"smooth", _wrap_a_element_smooth},
4271  {"image", _wrap_a_element_image},
4272  {"imageon", _wrap_a_element_imageon},
4273  {"imageoff", _wrap_a_element_imageoff},
4274  {"open", _wrap_a_element_open},
4275  {"save", _wrap_a_element_save},
4276  {"save_transform", _wrap_a_element_save_transform},
4277  {"open_scalars", _wrap_a_element_open_scalars},
4278  {"reset_mapper_clipping", _wrap_a_element_reset_mapper_clipping},
4279  {"translate", _wrap_a_element_translate},
4280  {"rotate", _wrap_a_element_rotate},
4281  {"small", _wrap_a_element_small},
4282  {"size", _wrap_a_element_size},
4283  {"minx", _wrap_a_element_minx},
4284  {"maxx", _wrap_a_element_maxx},
4285  {"miny", _wrap_a_element_miny},
4286  {"maxy", _wrap_a_element_maxy},
4287  {"minz", _wrap_a_element_minz},
4288  {"maxz", _wrap_a_element_maxz},
4289  {"origin", _wrap_a_element_origin},
4290  {"place", _wrap_a_element_place},
4291  {"orient", _wrap_a_element_orient},
4292  {"scale", _wrap_a_element_scale},
4293  {"center", _wrap_a_element_center},
4294  {"bounds", _wrap_a_element_bounds},
4295  {"relief", _wrap_a_element_relief},
4296  {0,0}
4297 };
4299  {0,0,0}
4300 };
4302 static const char * swig_a_element_base_names[] = {0};
4304 SWIGINTERN int
4305 _wrap_new_a_axes(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4306  a_axes *result = 0 ;
4307 
4308  if (SWIG_GetArgs(interp, objc, objv,":new_a_axes ") == TCL_ERROR) SWIG_fail;
4309  result = (a_axes *)new a_axes();
4310  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_axes,0));
4311  return TCL_OK;
4312 fail:
4313  return TCL_ERROR;
4314 }
4315 
4316 
4317 SWIGINTERN int
4318 _wrap_delete_a_axes(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4319  a_axes *arg1 = (a_axes *) 0 ;
4320  void *argp1 = 0 ;
4321  int res1 = 0 ;
4322 
4323  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_axes self ",(void *)0) == TCL_ERROR) SWIG_fail;
4324  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_axes, SWIG_POINTER_DISOWN | 0 );
4325  if (!SWIG_IsOK(res1)) {
4326  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_axes" "', argument " "1"" of type '" "a_axes *""'");
4327  }
4328  arg1 = reinterpret_cast< a_axes * >(argp1);
4329  delete arg1;
4330 
4331  return TCL_OK;
4332 fail:
4333  return TCL_ERROR;
4334 }
4335 
4336 
4337 SWIGINTERN int
4338 _wrap_a_axes_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4339  std::string result;
4340 
4341  if (SWIG_GetArgs(interp, objc, objv,":a_axes_help ") == TCL_ERROR) SWIG_fail;
4342  result = a_axes::help();
4343  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4344  return TCL_OK;
4345 fail:
4346  return TCL_ERROR;
4347 }
4348 
4349 
4351 a_axes *arg1 = (a_axes *) obj;
4352 delete arg1;
4353 }
4355  {0,0}
4356 };
4358  {0,0,0}
4359 };
4360 static swig_class *swig_a_axes_bases[] = {0,0};
4361 static const char * swig_a_axes_base_names[] = {"a_element *",0};
4363 SWIGINTERN int
4364 _wrap_new_a_pointcloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4365  a_pointcloud *result = 0 ;
4366 
4367  if (SWIG_GetArgs(interp, objc, objv,":new_a_pointcloud ") == TCL_ERROR) SWIG_fail;
4368  result = (a_pointcloud *)new a_pointcloud();
4369  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pointcloud,0));
4370  return TCL_OK;
4371 fail:
4372  return TCL_ERROR;
4373 }
4374 
4375 
4376 SWIGINTERN int
4377 _wrap_delete_a_pointcloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4378  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4379  void *argp1 = 0 ;
4380  int res1 = 0 ;
4381 
4382  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_pointcloud self ",(void *)0) == TCL_ERROR) SWIG_fail;
4383  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, SWIG_POINTER_DISOWN | 0 );
4384  if (!SWIG_IsOK(res1)) {
4385  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_pointcloud" "', argument " "1"" of type '" "a_pointcloud *""'");
4386  }
4387  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4388  delete arg1;
4389 
4390  return TCL_OK;
4391 fail:
4392  return TCL_ERROR;
4393 }
4394 
4395 
4396 SWIGINTERN int
4397 _wrap_a_pointcloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4398  std::string result;
4399 
4400  if (SWIG_GetArgs(interp, objc, objv,":a_pointcloud_help ") == TCL_ERROR) SWIG_fail;
4401  result = a_pointcloud::help();
4402  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4403  return TCL_OK;
4404 fail:
4405  return TCL_ERROR;
4406 }
4407 
4408 
4409 SWIGINTERN int
4410 _wrap_a_pointcloud_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4411  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4412  void *argp1 = 0 ;
4413  int res1 = 0 ;
4414  std::string result;
4415 
4416  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_type self ",(void *)0) == TCL_ERROR) SWIG_fail;
4417  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4418  if (!SWIG_IsOK(res1)) {
4419  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_type" "', argument " "1"" of type '" "a_pointcloud const *""'");
4420  }
4421  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4422  result = ((a_pointcloud const *)arg1)->type();
4423  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4424  return TCL_OK;
4425 fail:
4426  return TCL_ERROR;
4427 }
4428 
4429 
4430 SWIGINTERN int
4431 _wrap_a_pointcloud_np(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4432  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4433  void *argp1 = 0 ;
4434  int res1 = 0 ;
4435  int result;
4436 
4437  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_np self ",(void *)0) == TCL_ERROR) SWIG_fail;
4438  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4439  if (!SWIG_IsOK(res1)) {
4440  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_np" "', argument " "1"" of type '" "a_pointcloud const *""'");
4441  }
4442  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4443  result = (int)((a_pointcloud const *)arg1)->np();
4444  Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
4445  return TCL_OK;
4446 fail:
4447  return TCL_ERROR;
4448 }
4449 
4450 
4451 SWIGINTERN int
4452 _wrap_a_pointcloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4453  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4454  void *argp1 = 0 ;
4455  int res1 = 0 ;
4456 
4457  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_clear self ",(void *)0) == TCL_ERROR) SWIG_fail;
4458  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4459  if (!SWIG_IsOK(res1)) {
4460  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_clear" "', argument " "1"" of type '" "a_pointcloud *""'");
4461  }
4462  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4463  (arg1)->clear();
4464 
4465  return TCL_OK;
4466 fail:
4467  return TCL_ERROR;
4468 }
4469 
4470 
4471 SWIGINTERN int
4472 _wrap_a_pointcloud_eraselastpoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4473  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4474  void *argp1 = 0 ;
4475  int res1 = 0 ;
4476 
4477  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_eraselastpoint self ",(void *)0) == TCL_ERROR) SWIG_fail;
4478  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4479  if (!SWIG_IsOK(res1)) {
4480  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_eraselastpoint" "', argument " "1"" of type '" "a_pointcloud *""'");
4481  }
4482  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4483  (arg1)->eraselastpoint();
4484 
4485  return TCL_OK;
4486 fail:
4487  return TCL_ERROR;
4488 }
4489 
4490 
4491 SWIGINTERN int
4492 _wrap_a_pointcloud_dxfout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4493  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4494  std::ostream *arg2 = 0 ;
4495  void *argp1 = 0 ;
4496  int res1 = 0 ;
4497  void *argp2 = 0 ;
4498  int res2 = 0 ;
4499 
4500  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pointcloud_dxfout self o ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4501  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4502  if (!SWIG_IsOK(res1)) {
4503  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_dxfout" "', argument " "1"" of type '" "a_pointcloud const *""'");
4504  }
4505  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4506  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_std__ostream, 0 );
4507  if (!SWIG_IsOK(res2)) {
4508  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pointcloud_dxfout" "', argument " "2"" of type '" "std::ostream &""'");
4509  }
4510  if (!argp2) {
4511  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pointcloud_dxfout" "', argument " "2"" of type '" "std::ostream &""'");
4512  }
4513  arg2 = reinterpret_cast< std::ostream * >(argp2);
4514  ((a_pointcloud const *)arg1)->dxfout(*arg2);
4515 
4516  return TCL_OK;
4517 fail:
4518  return TCL_ERROR;
4519 }
4520 
4521 
4522 SWIGINTERN int
4523 _wrap_a_pointcloud_append(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4524  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4525  a_pointcloud *arg2 = 0 ;
4526  void *argp1 = 0 ;
4527  int res1 = 0 ;
4528  void *argp2 ;
4529  int res2 = 0 ;
4530 
4531  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pointcloud_append self a_pointcloud const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4532  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4533  if (!SWIG_IsOK(res1)) {
4534  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_append" "', argument " "1"" of type '" "a_pointcloud *""'");
4535  }
4536  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4537  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_pointcloud, 0 );
4538  if (!SWIG_IsOK(res2)) {
4539  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pointcloud_append" "', argument " "2"" of type '" "a_pointcloud const &""'");
4540  }
4541  if (!argp2) {
4542  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pointcloud_append" "', argument " "2"" of type '" "a_pointcloud const &""'");
4543  }
4544  arg2 = reinterpret_cast< a_pointcloud * >(argp2);
4545  (arg1)->append((a_pointcloud const &)*arg2);
4546 
4547  return TCL_OK;
4548 fail:
4549  return TCL_ERROR;
4550 }
4551 
4552 
4553 SWIGINTERN int
4554 _wrap_a_pointcloud_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4555  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4556  void *argp1 = 0 ;
4557  int res1 = 0 ;
4558 
4559  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_reset_mapper_clipping self ",(void *)0) == TCL_ERROR) SWIG_fail;
4560  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4561  if (!SWIG_IsOK(res1)) {
4562  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_reset_mapper_clipping" "', argument " "1"" of type '" "a_pointcloud *""'");
4563  }
4564  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4565  (arg1)->reset_mapper_clipping();
4566 
4567  return TCL_OK;
4568 fail:
4569  return TCL_ERROR;
4570 }
4571 
4572 
4573 SWIGINTERN int
4574 _wrap_a_pointcloud_cloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4575  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4576  void *argp1 = 0 ;
4577  int res1 = 0 ;
4578  std::vector< a_point > result;
4579 
4580  if (SWIG_GetArgs(interp, objc, objv,"o:a_pointcloud_cloud self ",(void *)0) == TCL_ERROR) SWIG_fail;
4581  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4582  if (!SWIG_IsOK(res1)) {
4583  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_cloud" "', argument " "1"" of type '" "a_pointcloud const *""'");
4584  }
4585  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4586  result = ((a_pointcloud const *)arg1)->cloud();
4587  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new std::vector< a_point >(static_cast< const std::vector< a_point >& >(result))), SWIGTYPE_p_std__vectorT_a_point_t, SWIG_POINTER_OWN | 0 ));
4588  return TCL_OK;
4589 fail:
4590  return TCL_ERROR;
4591 }
4592 
4593 
4594 SWIGINTERN int
4595 _wrap_a_pointcloud_point__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4596  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4597  double arg2 ;
4598  double arg3 ;
4599  double arg4 ;
4600  void *argp1 = 0 ;
4601  int res1 = 0 ;
4602  double val2 ;
4603  int ecode2 = 0 ;
4604  double val3 ;
4605  int ecode3 = 0 ;
4606  double val4 ;
4607  int ecode4 = 0 ;
4608 
4609  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_pointcloud_point self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4610  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4611  if (!SWIG_IsOK(res1)) {
4612  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_point" "', argument " "1"" of type '" "a_pointcloud *""'");
4613  }
4614  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4615  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4616  if (!SWIG_IsOK(ecode2)) {
4617  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_pointcloud_point" "', argument " "2"" of type '" "double""'");
4618  }
4619  arg2 = static_cast< double >(val2);
4620  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4621  if (!SWIG_IsOK(ecode3)) {
4622  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_pointcloud_point" "', argument " "3"" of type '" "double""'");
4623  }
4624  arg3 = static_cast< double >(val3);
4625  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4626  if (!SWIG_IsOK(ecode4)) {
4627  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_pointcloud_point" "', argument " "4"" of type '" "double""'");
4628  }
4629  arg4 = static_cast< double >(val4);
4630  a_pointcloud_point__SWIG_0(arg1,arg2,arg3,arg4);
4631 
4632  return TCL_OK;
4633 fail:
4634  return TCL_ERROR;
4635 }
4636 
4637 
4638 SWIGINTERN int
4639 _wrap_a_pointcloud_point__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4640  a_pointcloud *arg1 = (a_pointcloud *) 0 ;
4641  a_point *arg2 = 0 ;
4642  void *argp1 = 0 ;
4643  int res1 = 0 ;
4644  void *argp2 ;
4645  int res2 = 0 ;
4646 
4647  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pointcloud_point self p ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4648  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pointcloud, 0 | 0 );
4649  if (!SWIG_IsOK(res1)) {
4650  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pointcloud_point" "', argument " "1"" of type '" "a_pointcloud *""'");
4651  }
4652  arg1 = reinterpret_cast< a_pointcloud * >(argp1);
4653  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
4654  if (!SWIG_IsOK(res2)) {
4655  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pointcloud_point" "', argument " "2"" of type '" "a_point const &""'");
4656  }
4657  if (!argp2) {
4658  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pointcloud_point" "', argument " "2"" of type '" "a_point const &""'");
4659  }
4660  arg2 = reinterpret_cast< a_point * >(argp2);
4661  a_pointcloud_point__SWIG_1(arg1,(a_point const &)*arg2);
4662 
4663  return TCL_OK;
4664 fail:
4665  return TCL_ERROR;
4666 }
4667 
4668 
4669 SWIGINTERN int
4670 _wrap_a_pointcloud_point(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4671  Tcl_Obj *CONST *argv = objv+1;
4672  int argc = objc-1;
4673  if (argc == 2) {
4674  int _v;
4675  void *vptr = 0;
4676  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_pointcloud, 0);
4677  _v = SWIG_CheckState(res);
4678  if (_v) {
4679  void *vptr = 0;
4680  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
4681  _v = SWIG_CheckState(res);
4682  if (_v) {
4683  return _wrap_a_pointcloud_point__SWIG_1(clientData, interp, objc, argv - 1);
4684  }
4685  }
4686  }
4687  if (argc == 4) {
4688  int _v;
4689  void *vptr = 0;
4690  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_pointcloud, 0);
4691  _v = SWIG_CheckState(res);
4692  if (_v) {
4693  {
4694  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4695  _v = SWIG_CheckState(res);
4696  }
4697  if (_v) {
4698  {
4699  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4700  _v = SWIG_CheckState(res);
4701  }
4702  if (_v) {
4703  {
4704  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4705  _v = SWIG_CheckState(res);
4706  }
4707  if (_v) {
4708  return _wrap_a_pointcloud_point__SWIG_0(clientData, interp, objc, argv - 1);
4709  }
4710  }
4711  }
4712  }
4713  }
4714 
4715  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_pointcloud_point'.\n"
4716  " Possible C/C++ prototypes are:\n"
4717  " a_pointcloud::point(double,double,double)\n"
4718  " a_pointcloud::point(a_point const &)\n", TCL_STATIC);
4719  return TCL_ERROR;
4720 }
4721 
4722 
4724 a_pointcloud *arg1 = (a_pointcloud *) obj;
4725 delete arg1;
4726 }
4728  {"type", _wrap_a_pointcloud_type},
4729  {"np", _wrap_a_pointcloud_np},
4730  {"clear", _wrap_a_pointcloud_clear},
4731  {"eraselastpoint", _wrap_a_pointcloud_eraselastpoint},
4732  {"dxfout", _wrap_a_pointcloud_dxfout},
4733  {"append", _wrap_a_pointcloud_append},
4734  {"reset_mapper_clipping", _wrap_a_pointcloud_reset_mapper_clipping},
4735  {"cloud", _wrap_a_pointcloud_cloud},
4736  {"point", _wrap_a_pointcloud_point},
4737  {0,0}
4738 };
4740  {0,0,0}
4741 };
4743 static const char * swig_a_pointcloud_base_names[] = {"a_element *",0};
4745 SWIGINTERN int
4746 _wrap_new_a_linecloud__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4747  a_linecloud *result = 0 ;
4748 
4749  if (SWIG_GetArgs(interp, objc, objv,":new_a_linecloud ") == TCL_ERROR) SWIG_fail;
4750  result = (a_linecloud *)new a_linecloud();
4751  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_linecloud,0));
4752  return TCL_OK;
4753 fail:
4754  return TCL_ERROR;
4755 }
4756 
4757 
4758 SWIGINTERN int
4759 _wrap_new_a_linecloud__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4760  a_linecloud *arg1 = 0 ;
4761  void *argp1 ;
4762  int res1 = 0 ;
4763  a_linecloud *result = 0 ;
4764 
4765  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_linecloud c ",(void *)0) == TCL_ERROR) SWIG_fail;
4766  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_linecloud, 0 );
4767  if (!SWIG_IsOK(res1)) {
4768  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_linecloud" "', argument " "1"" of type '" "a_linecloud const &""'");
4769  }
4770  if (!argp1) {
4771  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_linecloud" "', argument " "1"" of type '" "a_linecloud const &""'");
4772  }
4773  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4774  result = (a_linecloud *)new a_linecloud((a_linecloud const &)*arg1);
4775  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_linecloud,0));
4776  return TCL_OK;
4777 fail:
4778  return TCL_ERROR;
4779 }
4780 
4781 
4782 SWIGINTERN int
4783 _wrap_new_a_linecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4784  Tcl_Obj *CONST *argv = objv+1;
4785  int argc = objc-1;
4786  if (argc == 0) {
4787  return _wrap_new_a_linecloud__SWIG_0(clientData, interp, objc, argv - 1);
4788  }
4789  if (argc == 1) {
4790  int _v;
4791  void *vptr = 0;
4792  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_linecloud, SWIG_POINTER_NO_NULL);
4793  _v = SWIG_CheckState(res);
4794  if (_v) {
4795  return _wrap_new_a_linecloud__SWIG_1(clientData, interp, objc, argv - 1);
4796  }
4797  }
4798 
4799  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_linecloud'.\n"
4800  " Possible C/C++ prototypes are:\n"
4801  " a_linecloud::a_linecloud()\n"
4802  " a_linecloud::a_linecloud(a_linecloud const &)\n", TCL_STATIC);
4803  return TCL_ERROR;
4804 }
4805 
4806 
4807 SWIGINTERN int
4808 _wrap_delete_a_linecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4809  a_linecloud *arg1 = (a_linecloud *) 0 ;
4810  void *argp1 = 0 ;
4811  int res1 = 0 ;
4812 
4813  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_linecloud self ",(void *)0) == TCL_ERROR) SWIG_fail;
4814  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, SWIG_POINTER_DISOWN | 0 );
4815  if (!SWIG_IsOK(res1)) {
4816  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_linecloud" "', argument " "1"" of type '" "a_linecloud *""'");
4817  }
4818  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4819  delete arg1;
4820 
4821  return TCL_OK;
4822 fail:
4823  return TCL_ERROR;
4824 }
4825 
4826 
4827 SWIGINTERN int
4828 _wrap_a_linecloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4829  std::string result;
4830 
4831  if (SWIG_GetArgs(interp, objc, objv,":a_linecloud_help ") == TCL_ERROR) SWIG_fail;
4832  result = a_linecloud::help();
4833  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4834  return TCL_OK;
4835 fail:
4836  return TCL_ERROR;
4837 }
4838 
4839 
4840 SWIGINTERN int
4841 _wrap_a_linecloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4842  a_linecloud *arg1 = (a_linecloud *) 0 ;
4843  void *argp1 = 0 ;
4844  int res1 = 0 ;
4845 
4846  if (SWIG_GetArgs(interp, objc, objv,"o:a_linecloud_clear self ",(void *)0) == TCL_ERROR) SWIG_fail;
4847  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
4848  if (!SWIG_IsOK(res1)) {
4849  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_clear" "', argument " "1"" of type '" "a_linecloud *""'");
4850  }
4851  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4852  (arg1)->clear();
4853 
4854  return TCL_OK;
4855 fail:
4856  return TCL_ERROR;
4857 }
4858 
4859 
4860 SWIGINTERN int
4861 _wrap_a_linecloud_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4862  a_linecloud *arg1 = (a_linecloud *) 0 ;
4863  a_linecloud *arg2 = 0 ;
4864  void *argp1 = 0 ;
4865  int res1 = 0 ;
4866  void *argp2 ;
4867  int res2 = 0 ;
4868  a_linecloud *result = 0 ;
4869 
4870  if (SWIG_GetArgs(interp, objc, objv,"oo:a_linecloud_add self c ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4871  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
4872  if (!SWIG_IsOK(res1)) {
4873  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_add" "', argument " "1"" of type '" "a_linecloud *""'");
4874  }
4875  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4876  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_linecloud, 0 );
4877  if (!SWIG_IsOK(res2)) {
4878  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_linecloud_add" "', argument " "2"" of type '" "a_linecloud const &""'");
4879  }
4880  if (!argp2) {
4881  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_linecloud_add" "', argument " "2"" of type '" "a_linecloud const &""'");
4882  }
4883  arg2 = reinterpret_cast< a_linecloud * >(argp2);
4884  result = (a_linecloud *) &(arg1)->operator +=((a_linecloud const &)*arg2);
4885  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_linecloud,0));
4886  return TCL_OK;
4887 fail:
4888  return TCL_ERROR;
4889 }
4890 
4891 
4892 SWIGINTERN int
4893 _wrap_a_linecloud_nl(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4894  a_linecloud *arg1 = (a_linecloud *) 0 ;
4895  void *argp1 = 0 ;
4896  int res1 = 0 ;
4897  int result;
4898 
4899  if (SWIG_GetArgs(interp, objc, objv,"o:a_linecloud_nl self ",(void *)0) == TCL_ERROR) SWIG_fail;
4900  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
4901  if (!SWIG_IsOK(res1)) {
4902  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_nl" "', argument " "1"" of type '" "a_linecloud const *""'");
4903  }
4904  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4905  result = (int)((a_linecloud const *)arg1)->nl();
4906  Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
4907  return TCL_OK;
4908 fail:
4909  return TCL_ERROR;
4910 }
4911 
4912 
4913 SWIGINTERN int
4914 _wrap_a_linecloud_append(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4915  a_linecloud *arg1 = (a_linecloud *) 0 ;
4916  a_linecloud *arg2 = 0 ;
4917  void *argp1 = 0 ;
4918  int res1 = 0 ;
4919  void *argp2 ;
4920  int res2 = 0 ;
4921 
4922  if (SWIG_GetArgs(interp, objc, objv,"oo:a_linecloud_append self a_linecloud const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4923  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
4924  if (!SWIG_IsOK(res1)) {
4925  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_append" "', argument " "1"" of type '" "a_linecloud *""'");
4926  }
4927  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4928  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_linecloud, 0 );
4929  if (!SWIG_IsOK(res2)) {
4930  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_linecloud_append" "', argument " "2"" of type '" "a_linecloud const &""'");
4931  }
4932  if (!argp2) {
4933  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_linecloud_append" "', argument " "2"" of type '" "a_linecloud const &""'");
4934  }
4935  arg2 = reinterpret_cast< a_linecloud * >(argp2);
4936  (arg1)->append((a_linecloud const &)*arg2);
4937 
4938  return TCL_OK;
4939 fail:
4940  return TCL_ERROR;
4941 }
4942 
4943 
4944 SWIGINTERN int
4945 _wrap_a_linecloud_line__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4946  a_linecloud *arg1 = (a_linecloud *) 0 ;
4947  a_point *arg2 = 0 ;
4948  a_point *arg3 = 0 ;
4949  void *argp1 = 0 ;
4950  int res1 = 0 ;
4951  void *argp2 ;
4952  int res2 = 0 ;
4953  void *argp3 ;
4954  int res3 = 0 ;
4955 
4956  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_linecloud_line self p1 p2 ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4957  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
4958  if (!SWIG_IsOK(res1)) {
4959  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_line" "', argument " "1"" of type '" "a_linecloud *""'");
4960  }
4961  arg1 = reinterpret_cast< a_linecloud * >(argp1);
4962  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
4963  if (!SWIG_IsOK(res2)) {
4964  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_linecloud_line" "', argument " "2"" of type '" "a_point const &""'");
4965  }
4966  if (!argp2) {
4967  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_linecloud_line" "', argument " "2"" of type '" "a_point const &""'");
4968  }
4969  arg2 = reinterpret_cast< a_point * >(argp2);
4970  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_a_point, 0 );
4971  if (!SWIG_IsOK(res3)) {
4972  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_linecloud_line" "', argument " "3"" of type '" "a_point const &""'");
4973  }
4974  if (!argp3) {
4975  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_linecloud_line" "', argument " "3"" of type '" "a_point const &""'");
4976  }
4977  arg3 = reinterpret_cast< a_point * >(argp3);
4978  a_linecloud_line__SWIG_0(arg1,(a_point const &)*arg2,(a_point const &)*arg3);
4979 
4980  return TCL_OK;
4981 fail:
4982  return TCL_ERROR;
4983 }
4984 
4985 
4986 SWIGINTERN int
4987 _wrap_a_linecloud_line__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4988  a_linecloud *arg1 = (a_linecloud *) 0 ;
4989  double arg2 ;
4990  double arg3 ;
4991  double arg4 ;
4992  double arg5 ;
4993  double arg6 ;
4994  double arg7 ;
4995  void *argp1 = 0 ;
4996  int res1 = 0 ;
4997  double val2 ;
4998  int ecode2 = 0 ;
4999  double val3 ;
5000  int ecode3 = 0 ;
5001  double val4 ;
5002  int ecode4 = 0 ;
5003  double val5 ;
5004  int ecode5 = 0 ;
5005  double val6 ;
5006  int ecode6 = 0 ;
5007  double val7 ;
5008  int ecode7 = 0 ;
5009 
5010  if (SWIG_GetArgs(interp, objc, objv,"ooooooo:a_linecloud_line self x1 y1 z1 x2 y2 z2 ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5011  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_linecloud, 0 | 0 );
5012  if (!SWIG_IsOK(res1)) {
5013  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_linecloud_line" "', argument " "1"" of type '" "a_linecloud *""'");
5014  }
5015  arg1 = reinterpret_cast< a_linecloud * >(argp1);
5016  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5017  if (!SWIG_IsOK(ecode2)) {
5018  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_linecloud_line" "', argument " "2"" of type '" "double""'");
5019  }
5020  arg2 = static_cast< double >(val2);
5021  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
5022  if (!SWIG_IsOK(ecode3)) {
5023  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_linecloud_line" "', argument " "3"" of type '" "double""'");
5024  }
5025  arg3 = static_cast< double >(val3);
5026  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
5027  if (!SWIG_IsOK(ecode4)) {
5028  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_linecloud_line" "', argument " "4"" of type '" "double""'");
5029  }
5030  arg4 = static_cast< double >(val4);
5031  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
5032  if (!SWIG_IsOK(ecode5)) {
5033  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "a_linecloud_line" "', argument " "5"" of type '" "double""'");
5034  }
5035  arg5 = static_cast< double >(val5);
5036  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
5037  if (!SWIG_IsOK(ecode6)) {
5038  SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "a_linecloud_line" "', argument " "6"" of type '" "double""'");
5039  }
5040  arg6 = static_cast< double >(val6);
5041  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
5042  if (!SWIG_IsOK(ecode7)) {
5043  SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "a_linecloud_line" "', argument " "7"" of type '" "double""'");
5044  }
5045  arg7 = static_cast< double >(val7);
5046  a_linecloud_line__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
5047 
5048  return TCL_OK;
5049 fail:
5050  return TCL_ERROR;
5051 }
5052 
5053 
5054 SWIGINTERN int
5055 _wrap_a_linecloud_line(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5056  Tcl_Obj *CONST *argv = objv+1;
5057  int argc = objc-1;
5058  if (argc == 3) {
5059  int _v;
5060  void *vptr = 0;
5061  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_linecloud, 0);
5062  _v = SWIG_CheckState(res);
5063  if (_v) {
5064  void *vptr = 0;
5065  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5066  _v = SWIG_CheckState(res);
5067  if (_v) {
5068  void *vptr = 0;
5069  int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5070  _v = SWIG_CheckState(res);
5071  if (_v) {
5072  return _wrap_a_linecloud_line__SWIG_0(clientData, interp, objc, argv - 1);
5073  }
5074  }
5075  }
5076  }
5077  if (argc == 7) {
5078  int _v;
5079  void *vptr = 0;
5080  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_linecloud, 0);
5081  _v = SWIG_CheckState(res);
5082  if (_v) {
5083  {
5084  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5085  _v = SWIG_CheckState(res);
5086  }
5087  if (_v) {
5088  {
5089  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
5090  _v = SWIG_CheckState(res);
5091  }
5092  if (_v) {
5093  {
5094  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
5095  _v = SWIG_CheckState(res);
5096  }
5097  if (_v) {
5098  {
5099  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
5100  _v = SWIG_CheckState(res);
5101  }
5102  if (_v) {
5103  {
5104  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[5], NULL);
5105  _v = SWIG_CheckState(res);
5106  }
5107  if (_v) {
5108  {
5109  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[6], NULL);
5110  _v = SWIG_CheckState(res);
5111  }
5112  if (_v) {
5113  return _wrap_a_linecloud_line__SWIG_1(clientData, interp, objc, argv - 1);
5114  }
5115  }
5116  }
5117  }
5118  }
5119  }
5120  }
5121  }
5122 
5123  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_linecloud_line'.\n"
5124  " Possible C/C++ prototypes are:\n"
5125  " a_linecloud::line(a_point const &,a_point const &)\n"
5126  " a_linecloud::line(double,double,double,double,double,double)\n", TCL_STATIC);
5127  return TCL_ERROR;
5128 }
5129 
5130 
5132 a_linecloud *arg1 = (a_linecloud *) obj;
5133 delete arg1;
5134 }
5136  {"clear", _wrap_a_linecloud_clear},
5137  {"add", _wrap_a_linecloud_add},
5138  {"nl", _wrap_a_linecloud_nl},
5139  {"append", _wrap_a_linecloud_append},
5140  {"line", _wrap_a_linecloud_line},
5141  {0,0}
5142 };
5144  {0,0,0}
5145 };
5147 static const char * swig_a_linecloud_base_names[] = {"a_element *",0};
5149 SWIGINTERN int
5150 _wrap_new_a_trianglecloud__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5151  a_trianglecloud *result = 0 ;
5152 
5153  if (SWIG_GetArgs(interp, objc, objv,":new_a_trianglecloud ") == TCL_ERROR) SWIG_fail;
5154  result = (a_trianglecloud *)new a_trianglecloud();
5155  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_trianglecloud,0));
5156  return TCL_OK;
5157 fail:
5158  return TCL_ERROR;
5159 }
5160 
5161 
5162 SWIGINTERN int
5163 _wrap_new_a_trianglecloud__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5164  a_trianglecloud *arg1 = 0 ;
5165  void *argp1 ;
5166  int res1 = 0 ;
5167  a_trianglecloud *result = 0 ;
5168 
5169  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_trianglecloud c ",(void *)0) == TCL_ERROR) SWIG_fail;
5170  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_trianglecloud, 0 );
5171  if (!SWIG_IsOK(res1)) {
5172  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_trianglecloud" "', argument " "1"" of type '" "a_trianglecloud const &""'");
5173  }
5174  if (!argp1) {
5175  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_trianglecloud" "', argument " "1"" of type '" "a_trianglecloud const &""'");
5176  }
5177  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5178  result = (a_trianglecloud *)new a_trianglecloud((a_trianglecloud const &)*arg1);
5179  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_trianglecloud,0));
5180  return TCL_OK;
5181 fail:
5182  return TCL_ERROR;
5183 }
5184 
5185 
5186 SWIGINTERN int
5187 _wrap_new_a_trianglecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5188  Tcl_Obj *CONST *argv = objv+1;
5189  int argc = objc-1;
5190  if (argc == 0) {
5191  return _wrap_new_a_trianglecloud__SWIG_0(clientData, interp, objc, argv - 1);
5192  }
5193  if (argc == 1) {
5194  int _v;
5195  void *vptr = 0;
5197  _v = SWIG_CheckState(res);
5198  if (_v) {
5199  return _wrap_new_a_trianglecloud__SWIG_1(clientData, interp, objc, argv - 1);
5200  }
5201  }
5202 
5203  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_trianglecloud'.\n"
5204  " Possible C/C++ prototypes are:\n"
5205  " a_trianglecloud::a_trianglecloud()\n"
5206  " a_trianglecloud::a_trianglecloud(a_trianglecloud const &)\n", TCL_STATIC);
5207  return TCL_ERROR;
5208 }
5209 
5210 
5211 SWIGINTERN int
5212 _wrap_delete_a_trianglecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5213  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5214  void *argp1 = 0 ;
5215  int res1 = 0 ;
5216 
5217  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_trianglecloud self ",(void *)0) == TCL_ERROR) SWIG_fail;
5218  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, SWIG_POINTER_DISOWN | 0 );
5219  if (!SWIG_IsOK(res1)) {
5220  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_trianglecloud" "', argument " "1"" of type '" "a_trianglecloud *""'");
5221  }
5222  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5223  delete arg1;
5224 
5225  return TCL_OK;
5226 fail:
5227  return TCL_ERROR;
5228 }
5229 
5230 
5231 SWIGINTERN int
5232 _wrap_a_trianglecloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5233  std::string result;
5234 
5235  if (SWIG_GetArgs(interp, objc, objv,":a_trianglecloud_help ") == TCL_ERROR) SWIG_fail;
5236  result = a_trianglecloud::help();
5237  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5238  return TCL_OK;
5239 fail:
5240  return TCL_ERROR;
5241 }
5242 
5243 
5244 SWIGINTERN int
5245 _wrap_a_trianglecloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5246  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5247  void *argp1 = 0 ;
5248  int res1 = 0 ;
5249 
5250  if (SWIG_GetArgs(interp, objc, objv,"o:a_trianglecloud_clear self ",(void *)0) == TCL_ERROR) SWIG_fail;
5251  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5252  if (!SWIG_IsOK(res1)) {
5253  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_clear" "', argument " "1"" of type '" "a_trianglecloud *""'");
5254  }
5255  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5256  (arg1)->clear();
5257 
5258  return TCL_OK;
5259 fail:
5260  return TCL_ERROR;
5261 }
5262 
5263 
5264 SWIGINTERN int
5265 _wrap_a_trianglecloud_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5266  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5267  a_trianglecloud *arg2 = 0 ;
5268  void *argp1 = 0 ;
5269  int res1 = 0 ;
5270  void *argp2 ;
5271  int res2 = 0 ;
5272  a_trianglecloud *result = 0 ;
5273 
5274  if (SWIG_GetArgs(interp, objc, objv,"oo:a_trianglecloud_add self c ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5275  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5276  if (!SWIG_IsOK(res1)) {
5277  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_add" "', argument " "1"" of type '" "a_trianglecloud *""'");
5278  }
5279  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5280  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_trianglecloud, 0 );
5281  if (!SWIG_IsOK(res2)) {
5282  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_trianglecloud_add" "', argument " "2"" of type '" "a_trianglecloud const &""'");
5283  }
5284  if (!argp2) {
5285  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_trianglecloud_add" "', argument " "2"" of type '" "a_trianglecloud const &""'");
5286  }
5287  arg2 = reinterpret_cast< a_trianglecloud * >(argp2);
5288  result = (a_trianglecloud *) &(arg1)->operator +=((a_trianglecloud const &)*arg2);
5289  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_trianglecloud,0));
5290  return TCL_OK;
5291 fail:
5292  return TCL_ERROR;
5293 }
5294 
5295 
5296 SWIGINTERN int
5297 _wrap_a_trianglecloud_nt(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5298  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5299  void *argp1 = 0 ;
5300  int res1 = 0 ;
5301  int result;
5302 
5303  if (SWIG_GetArgs(interp, objc, objv,"o:a_trianglecloud_nt self ",(void *)0) == TCL_ERROR) SWIG_fail;
5304  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5305  if (!SWIG_IsOK(res1)) {
5306  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_nt" "', argument " "1"" of type '" "a_trianglecloud const *""'");
5307  }
5308  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5309  result = (int)((a_trianglecloud const *)arg1)->nt();
5310  Tcl_SetObjResult(interp,SWIG_From_int(static_cast< int >(result)));
5311  return TCL_OK;
5312 fail:
5313  return TCL_ERROR;
5314 }
5315 
5316 
5317 SWIGINTERN int
5318 _wrap_a_trianglecloud_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5319  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5320  void *argp1 = 0 ;
5321  int res1 = 0 ;
5322 
5323  if (SWIG_GetArgs(interp, objc, objv,"o:a_trianglecloud_reset_mapper_clipping self ",(void *)0) == TCL_ERROR) SWIG_fail;
5324  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5325  if (!SWIG_IsOK(res1)) {
5326  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_reset_mapper_clipping" "', argument " "1"" of type '" "a_trianglecloud *""'");
5327  }
5328  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5329  (arg1)->reset_mapper_clipping();
5330 
5331  return TCL_OK;
5332 fail:
5333  return TCL_ERROR;
5334 }
5335 
5336 
5337 SWIGINTERN int
5338 _wrap_a_trianglecloud_triangle__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5339  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5340  a_point *arg2 = 0 ;
5341  a_point *arg3 = 0 ;
5342  a_point *arg4 = 0 ;
5343  void *argp1 = 0 ;
5344  int res1 = 0 ;
5345  void *argp2 ;
5346  int res2 = 0 ;
5347  void *argp3 ;
5348  int res3 = 0 ;
5349  void *argp4 ;
5350  int res4 = 0 ;
5351 
5352  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_trianglecloud_triangle self p1 p2 p3 ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5353  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5354  if (!SWIG_IsOK(res1)) {
5355  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_triangle" "', argument " "1"" of type '" "a_trianglecloud *""'");
5356  }
5357  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5358  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
5359  if (!SWIG_IsOK(res2)) {
5360  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_trianglecloud_triangle" "', argument " "2"" of type '" "a_point const &""'");
5361  }
5362  if (!argp2) {
5363  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_trianglecloud_triangle" "', argument " "2"" of type '" "a_point const &""'");
5364  }
5365  arg2 = reinterpret_cast< a_point * >(argp2);
5366  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_a_point, 0 );
5367  if (!SWIG_IsOK(res3)) {
5368  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_trianglecloud_triangle" "', argument " "3"" of type '" "a_point const &""'");
5369  }
5370  if (!argp3) {
5371  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_trianglecloud_triangle" "', argument " "3"" of type '" "a_point const &""'");
5372  }
5373  arg3 = reinterpret_cast< a_point * >(argp3);
5374  res4 = SWIG_ConvertPtr(objv[4], &argp4, SWIGTYPE_p_a_point, 0 );
5375  if (!SWIG_IsOK(res4)) {
5376  SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "a_trianglecloud_triangle" "', argument " "4"" of type '" "a_point const &""'");
5377  }
5378  if (!argp4) {
5379  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_trianglecloud_triangle" "', argument " "4"" of type '" "a_point const &""'");
5380  }
5381  arg4 = reinterpret_cast< a_point * >(argp4);
5382  a_trianglecloud_triangle__SWIG_0(arg1,(a_point const &)*arg2,(a_point const &)*arg3,(a_point const &)*arg4);
5383 
5384  return TCL_OK;
5385 fail:
5386  return TCL_ERROR;
5387 }
5388 
5389 
5390 SWIGINTERN int
5391 _wrap_a_trianglecloud_triangle__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5392  a_trianglecloud *arg1 = (a_trianglecloud *) 0 ;
5393  double arg2 ;
5394  double arg3 ;
5395  double arg4 ;
5396  double arg5 ;
5397  double arg6 ;
5398  double arg7 ;
5399  double arg8 ;
5400  double arg9 ;
5401  double arg10 ;
5402  void *argp1 = 0 ;
5403  int res1 = 0 ;
5404  double val2 ;
5405  int ecode2 = 0 ;
5406  double val3 ;
5407  int ecode3 = 0 ;
5408  double val4 ;
5409  int ecode4 = 0 ;
5410  double val5 ;
5411  int ecode5 = 0 ;
5412  double val6 ;
5413  int ecode6 = 0 ;
5414  double val7 ;
5415  int ecode7 = 0 ;
5416  double val8 ;
5417  int ecode8 = 0 ;
5418  double val9 ;
5419  int ecode9 = 0 ;
5420  double val10 ;
5421  int ecode10 = 0 ;
5422 
5423  if (SWIG_GetArgs(interp, objc, objv,"oooooooooo:a_trianglecloud_triangle self x1 y1 z1 x2 y2 z2 x3 y3 z3 ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5424  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_trianglecloud, 0 | 0 );
5425  if (!SWIG_IsOK(res1)) {
5426  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_trianglecloud_triangle" "', argument " "1"" of type '" "a_trianglecloud *""'");
5427  }
5428  arg1 = reinterpret_cast< a_trianglecloud * >(argp1);
5429  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5430  if (!SWIG_IsOK(ecode2)) {
5431  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_trianglecloud_triangle" "', argument " "2"" of type '" "double""'");
5432  }
5433  arg2 = static_cast< double >(val2);
5434  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
5435  if (!SWIG_IsOK(ecode3)) {
5436  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_trianglecloud_triangle" "', argument " "3"" of type '" "double""'");
5437  }
5438  arg3 = static_cast< double >(val3);
5439  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
5440  if (!SWIG_IsOK(ecode4)) {
5441  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_trianglecloud_triangle" "', argument " "4"" of type '" "double""'");
5442  }
5443  arg4 = static_cast< double >(val4);
5444  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
5445  if (!SWIG_IsOK(ecode5)) {
5446  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "a_trianglecloud_triangle" "', argument " "5"" of type '" "double""'");
5447  }
5448  arg5 = static_cast< double >(val5);
5449  ecode6 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[6], &val6);
5450  if (!SWIG_IsOK(ecode6)) {
5451  SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "a_trianglecloud_triangle" "', argument " "6"" of type '" "double""'");
5452  }
5453  arg6 = static_cast< double >(val6);
5454  ecode7 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[7], &val7);
5455  if (!SWIG_IsOK(ecode7)) {
5456  SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "a_trianglecloud_triangle" "', argument " "7"" of type '" "double""'");
5457  }
5458  arg7 = static_cast< double >(val7);
5459  ecode8 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[8], &val8);
5460  if (!SWIG_IsOK(ecode8)) {
5461  SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "a_trianglecloud_triangle" "', argument " "8"" of type '" "double""'");
5462  }
5463  arg8 = static_cast< double >(val8);
5464  ecode9 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[9], &val9);
5465  if (!SWIG_IsOK(ecode9)) {
5466  SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "a_trianglecloud_triangle" "', argument " "9"" of type '" "double""'");
5467  }
5468  arg9 = static_cast< double >(val9);
5469  ecode10 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[10], &val10);
5470  if (!SWIG_IsOK(ecode10)) {
5471  SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "a_trianglecloud_triangle" "', argument " "10"" of type '" "double""'");
5472  }
5473  arg10 = static_cast< double >(val10);
5474  a_trianglecloud_triangle__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5475 
5476  return TCL_OK;
5477 fail:
5478  return TCL_ERROR;
5479 }
5480 
5481 
5482 SWIGINTERN int
5483 _wrap_a_trianglecloud_triangle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5484  Tcl_Obj *CONST *argv = objv+1;
5485  int argc = objc-1;
5486  if (argc == 4) {
5487  int _v;
5488  void *vptr = 0;
5489  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_trianglecloud, 0);
5490  _v = SWIG_CheckState(res);
5491  if (_v) {
5492  void *vptr = 0;
5493  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5494  _v = SWIG_CheckState(res);
5495  if (_v) {
5496  void *vptr = 0;
5497  int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5498  _v = SWIG_CheckState(res);
5499  if (_v) {
5500  void *vptr = 0;
5501  int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5502  _v = SWIG_CheckState(res);
5503  if (_v) {
5504  return _wrap_a_trianglecloud_triangle__SWIG_0(clientData, interp, objc, argv - 1);
5505  }
5506  }
5507  }
5508  }
5509  }
5510  if (argc == 10) {
5511  int _v;
5512  void *vptr = 0;
5513  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_trianglecloud, 0);
5514  _v = SWIG_CheckState(res);
5515  if (_v) {
5516  {
5517  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5518  _v = SWIG_CheckState(res);
5519  }
5520  if (_v) {
5521  {
5522  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
5523  _v = SWIG_CheckState(res);
5524  }
5525  if (_v) {
5526  {
5527  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
5528  _v = SWIG_CheckState(res);
5529  }
5530  if (_v) {
5531  {
5532  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
5533  _v = SWIG_CheckState(res);
5534  }
5535  if (_v) {
5536  {
5537  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[5], NULL);
5538  _v = SWIG_CheckState(res);
5539  }
5540  if (_v) {
5541  {
5542  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[6], NULL);
5543  _v = SWIG_CheckState(res);
5544  }
5545  if (_v) {
5546  {
5547  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[7], NULL);
5548  _v = SWIG_CheckState(res);
5549  }
5550  if (_v) {
5551  {
5552  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[8], NULL);
5553  _v = SWIG_CheckState(res);
5554  }
5555  if (_v) {
5556  {
5557  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[9], NULL);
5558  _v = SWIG_CheckState(res);
5559  }
5560  if (_v) {
5561  return _wrap_a_trianglecloud_triangle__SWIG_1(clientData, interp, objc, argv - 1);
5562  }
5563  }
5564  }
5565  }
5566  }
5567  }
5568  }
5569  }
5570  }
5571  }
5572  }
5573 
5574  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_trianglecloud_triangle'.\n"
5575  " Possible C/C++ prototypes are:\n"
5576  " a_trianglecloud::triangle(a_point const &,a_point const &,a_point const &)\n"
5577  " a_trianglecloud::triangle(double,double,double,double,double,double,double,double,double)\n", TCL_STATIC);
5578  return TCL_ERROR;
5579 }
5580 
5581 
5583 a_trianglecloud *arg1 = (a_trianglecloud *) obj;
5584 delete arg1;
5585 }
5587  {"clear", _wrap_a_trianglecloud_clear},
5588  {"add", _wrap_a_trianglecloud_add},
5589  {"nt", _wrap_a_trianglecloud_nt},
5590  {"reset_mapper_clipping", _wrap_a_trianglecloud_reset_mapper_clipping},
5591  {"triangle", _wrap_a_trianglecloud_triangle},
5592  {0,0}
5593 };
5595  {0,0,0}
5596 };
5598 static const char * swig_a_trianglecloud_base_names[] = {"a_element *",0};
5600 SWIGINTERN int
5601 _wrap_new_a_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5602  std::string *arg1 = 0 ;
5603  std::string *arg2 = 0 ;
5604  int res1 = SWIG_OLDOBJ ;
5605  int res2 = SWIG_OLDOBJ ;
5606  a_image *result = 0 ;
5607 
5608  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_image image_file matrix_file ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5609  {
5610  std::string *ptr = (std::string *)0;
5611  res1 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[1], &ptr);
5612  if (!SWIG_IsOK(res1)) {
5613  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_image" "', argument " "1"" of type '" "std::string const &""'");
5614  }
5615  if (!ptr) {
5616  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_image" "', argument " "1"" of type '" "std::string const &""'");
5617  }
5618  arg1 = ptr;
5619  }
5620  {
5621  std::string *ptr = (std::string *)0;
5622  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5623  if (!SWIG_IsOK(res2)) {
5624  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_a_image" "', argument " "2"" of type '" "std::string const &""'");
5625  }
5626  if (!ptr) {
5627  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_image" "', argument " "2"" of type '" "std::string const &""'");
5628  }
5629  arg2 = ptr;
5630  }
5631  try {
5632  result = (a_image *)new a_image((std::string const &)*arg1,(std::string const &)*arg2);
5633  } catch(a_image::file_error &_e) {
5635  }
5636  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_image,0));
5637  if (SWIG_IsNewObj(res1)) delete arg1;
5638  if (SWIG_IsNewObj(res2)) delete arg2;
5639  return TCL_OK;
5640 fail:
5641  if (SWIG_IsNewObj(res1)) delete arg1;
5642  if (SWIG_IsNewObj(res2)) delete arg2;
5643  return TCL_ERROR;
5644 }
5645 
5646 
5647 SWIGINTERN int
5648 _wrap_delete_a_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5649  a_image *arg1 = (a_image *) 0 ;
5650  void *argp1 = 0 ;
5651  int res1 = 0 ;
5652 
5653  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_image self ",(void *)0) == TCL_ERROR) SWIG_fail;
5654  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, SWIG_POINTER_DISOWN | 0 );
5655  if (!SWIG_IsOK(res1)) {
5656  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_image" "', argument " "1"" of type '" "a_image *""'");
5657  }
5658  arg1 = reinterpret_cast< a_image * >(argp1);
5659  delete arg1;
5660 
5661  return TCL_OK;
5662 fail:
5663  return TCL_ERROR;
5664 }
5665 
5666 
5667 SWIGINTERN int
5668 _wrap_a_image_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5669  std::string result;
5670 
5671  if (SWIG_GetArgs(interp, objc, objv,":a_image_help ") == TCL_ERROR) SWIG_fail;
5672  try {
5673  result = a_image::help();
5674  } catch(a_image::file_error &_e) {
5676  }
5677  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5678  return TCL_OK;
5679 fail:
5680  return TCL_ERROR;
5681 }
5682 
5683 
5684 SWIGINTERN int
5685 _wrap_a_image_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5686  a_image *arg1 = (a_image *) 0 ;
5687  void *argp1 = 0 ;
5688  int res1 = 0 ;
5689  std::string result;
5690 
5691  if (SWIG_GetArgs(interp, objc, objv,"o:a_image_type self ",(void *)0) == TCL_ERROR) SWIG_fail;
5692  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, 0 | 0 );
5693  if (!SWIG_IsOK(res1)) {
5694  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_image_type" "', argument " "1"" of type '" "a_image const *""'");
5695  }
5696  arg1 = reinterpret_cast< a_image * >(argp1);
5697  try {
5698  result = ((a_image const *)arg1)->type();
5699  } catch(a_image::file_error &_e) {
5701  }
5702  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5703  return TCL_OK;
5704 fail:
5705  return TCL_ERROR;
5706 }
5707 
5708 
5709 SWIGINTERN int
5710 _wrap_a_image_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5711  a_image *arg1 = (a_image *) 0 ;
5712  std::string *arg2 = 0 ;
5713  void *argp1 = 0 ;
5714  int res1 = 0 ;
5715  int res2 = SWIG_OLDOBJ ;
5716 
5717  if (SWIG_GetArgs(interp, objc, objv,"oo:a_image_image self file_name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5718  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, 0 | 0 );
5719  if (!SWIG_IsOK(res1)) {
5720  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_image_image" "', argument " "1"" of type '" "a_image *""'");
5721  }
5722  arg1 = reinterpret_cast< a_image * >(argp1);
5723  {
5724  std::string *ptr = (std::string *)0;
5725  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5726  if (!SWIG_IsOK(res2)) {
5727  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_image_image" "', argument " "2"" of type '" "std::string const &""'");
5728  }
5729  if (!ptr) {
5730  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_image_image" "', argument " "2"" of type '" "std::string const &""'");
5731  }
5732  arg2 = ptr;
5733  }
5734  try {
5735  (arg1)->image((std::string const &)*arg2);
5736  } catch(a_image::file_error &_e) {
5738  }
5739 
5740  if (SWIG_IsNewObj(res2)) delete arg2;
5741  return TCL_OK;
5742 fail:
5743  if (SWIG_IsNewObj(res2)) delete arg2;
5744  return TCL_ERROR;
5745 }
5746 
5747 
5748 SWIGINTERN int
5749 _wrap_a_image_pmatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5750  a_image *arg1 = (a_image *) 0 ;
5751  std::string *arg2 = 0 ;
5752  void *argp1 = 0 ;
5753  int res1 = 0 ;
5754  int res2 = SWIG_OLDOBJ ;
5755 
5756  if (SWIG_GetArgs(interp, objc, objv,"oo:a_image_pmatrix self file_name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5757  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, 0 | 0 );
5758  if (!SWIG_IsOK(res1)) {
5759  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_image_pmatrix" "', argument " "1"" of type '" "a_image *""'");
5760  }
5761  arg1 = reinterpret_cast< a_image * >(argp1);
5762  {
5763  std::string *ptr = (std::string *)0;
5764  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5765  if (!SWIG_IsOK(res2)) {
5766  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_image_pmatrix" "', argument " "2"" of type '" "std::string const &""'");
5767  }
5768  if (!ptr) {
5769  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_image_pmatrix" "', argument " "2"" of type '" "std::string const &""'");
5770  }
5771  arg2 = ptr;
5772  }
5773  try {
5774  (arg1)->pmatrix((std::string const &)*arg2);
5775  } catch(a_image::file_error &_e) {
5777  }
5778 
5779  if (SWIG_IsNewObj(res2)) delete arg2;
5780  return TCL_OK;
5781 fail:
5782  if (SWIG_IsNewObj(res2)) delete arg2;
5783  return TCL_ERROR;
5784 }
5785 
5786 
5787 SWIGINTERN int
5788 _wrap_a_image_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5789  a_image *arg1 = (a_image *) 0 ;
5790  std::string arg2 ;
5791  void *argp1 = 0 ;
5792  int res1 = 0 ;
5793 
5794  if (SWIG_GetArgs(interp, objc, objv,"oo:a_image_name self aname ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5795  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, 0 | 0 );
5796  if (!SWIG_IsOK(res1)) {
5797  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_image_name" "', argument " "1"" of type '" "a_image *""'");
5798  }
5799  arg1 = reinterpret_cast< a_image * >(argp1);
5800  {
5801  std::string *ptr = (std::string *)0;
5802  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
5803  if (!SWIG_IsOK(res) || !ptr) {
5804  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_image_name" "', argument " "2"" of type '" "std::string""'");
5805  }
5806  arg2 = *ptr;
5807  if (SWIG_IsNewObj(res)) delete ptr;
5808  }
5809  try {
5810  (arg1)->name(arg2);
5811  } catch(a_image::file_error &_e) {
5813  }
5814 
5815  return TCL_OK;
5816 fail:
5817  return TCL_ERROR;
5818 }
5819 
5820 
5821 SWIGINTERN int
5822 _wrap_a_image_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5823  a_image *arg1 = (a_image *) 0 ;
5824  void *argp1 = 0 ;
5825  int res1 = 0 ;
5826  std::string result;
5827 
5828  if (SWIG_GetArgs(interp, objc, objv,"o:a_image_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
5829  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_image, 0 | 0 );
5830  if (!SWIG_IsOK(res1)) {
5831  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_image_name" "', argument " "1"" of type '" "a_image const *""'");
5832  }
5833  arg1 = reinterpret_cast< a_image * >(argp1);
5834  try {
5835  result = ((a_image const *)arg1)->name();
5836  } catch(a_image::file_error &_e) {
5838  }
5839  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5840  return TCL_OK;
5841 fail:
5842  return TCL_ERROR;
5843 }
5844 
5845 
5846 SWIGINTERN int
5847 _wrap_a_image_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5848  Tcl_Obj *CONST *argv = objv+1;
5849  int argc = objc-1;
5850  if (argc == 1) {
5851  int _v;
5852  void *vptr = 0;
5853  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_image, 0);
5854  _v = SWIG_CheckState(res);
5855  if (_v) {
5856  return _wrap_a_image_name__SWIG_1(clientData, interp, objc, argv - 1);
5857  }
5858  }
5859  if (argc == 2) {
5860  int _v;
5861  void *vptr = 0;
5862  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_image, 0);
5863  _v = SWIG_CheckState(res);
5864  if (_v) {
5865  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
5866  _v = SWIG_CheckState(res);
5867  if (_v) {
5868  return _wrap_a_image_name__SWIG_0(clientData, interp, objc, argv - 1);
5869  }
5870  }
5871  }
5872 
5873  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_image_name'.\n"
5874  " Possible C/C++ prototypes are:\n"
5875  " a_image::name(std::string)\n"
5876  " a_image::name() const\n", TCL_STATIC);
5877  return TCL_ERROR;
5878 }
5879 
5880 
5882 a_image *arg1 = (a_image *) obj;
5883 delete arg1;
5884 }
5886  {"type", _wrap_a_image_type},
5887  {"image", _wrap_a_image_image},
5888  {"pmatrix", _wrap_a_image_pmatrix},
5889  {"name", _wrap_a_image_name},
5890  {0,0}
5891 };
5893  {0,0,0}
5894 };
5896 static const char * swig_a_image_base_names[] = {0};
5898 SWIGINTERN int
5899 _wrap_new_a_canvas(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5900  a_canvas *result = 0 ;
5901 
5902  if (SWIG_GetArgs(interp, objc, objv,":new_a_canvas ") == TCL_ERROR) SWIG_fail;
5903  try {
5904  result = (a_canvas *)new a_canvas();
5905  } catch(...) {
5906  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
5907  }
5908  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_canvas,0));
5909  return TCL_OK;
5910 fail:
5911  return TCL_ERROR;
5912 }
5913 
5914 
5915 SWIGINTERN int
5916 _wrap_delete_a_canvas(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5917  a_canvas *arg1 = (a_canvas *) 0 ;
5918  void *argp1 = 0 ;
5919  int res1 = 0 ;
5920 
5921  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_canvas self ",(void *)0) == TCL_ERROR) SWIG_fail;
5922  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, SWIG_POINTER_DISOWN | 0 );
5923  if (!SWIG_IsOK(res1)) {
5924  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_canvas" "', argument " "1"" of type '" "a_canvas *""'");
5925  }
5926  arg1 = reinterpret_cast< a_canvas * >(argp1);
5927  delete arg1;
5928 
5929  return TCL_OK;
5930 fail:
5931  return TCL_ERROR;
5932 }
5933 
5934 
5935 SWIGINTERN int
5936 _wrap_a_canvas_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5937  a_canvas *arg1 = (a_canvas *) 0 ;
5938  void *argp1 = 0 ;
5939  int res1 = 0 ;
5940 
5941  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_clear self ",(void *)0) == TCL_ERROR) SWIG_fail;
5942  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
5943  if (!SWIG_IsOK(res1)) {
5944  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_clear" "', argument " "1"" of type '" "a_canvas *""'");
5945  }
5946  arg1 = reinterpret_cast< a_canvas * >(argp1);
5947  try {
5948  (arg1)->clear();
5949  } catch(...) {
5950  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
5951  }
5952 
5953  return TCL_OK;
5954 fail:
5955  return TCL_ERROR;
5956 }
5957 
5958 
5959 SWIGINTERN int
5960 _wrap_a_canvas_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5961  std::string result;
5962 
5963  if (SWIG_GetArgs(interp, objc, objv,":a_canvas_help ") == TCL_ERROR) SWIG_fail;
5964  try {
5965  result = a_canvas::help();
5966  } catch(...) {
5967  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
5968  }
5969  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5970  return TCL_OK;
5971 fail:
5972  return TCL_ERROR;
5973 }
5974 
5975 
5976 SWIGINTERN int
5977 _wrap_a_canvas_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5978  a_canvas *arg1 = (a_canvas *) 0 ;
5979  void *argp1 = 0 ;
5980  int res1 = 0 ;
5981  std::string result;
5982 
5983  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_type self ",(void *)0) == TCL_ERROR) SWIG_fail;
5984  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
5985  if (!SWIG_IsOK(res1)) {
5986  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_type" "', argument " "1"" of type '" "a_canvas const *""'");
5987  }
5988  arg1 = reinterpret_cast< a_canvas * >(argp1);
5989  try {
5990  result = ((a_canvas const *)arg1)->type();
5991  } catch(...) {
5992  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
5993  }
5994  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5995  return TCL_OK;
5996 fail:
5997  return TCL_ERROR;
5998 }
5999 
6000 
6001 SWIGINTERN int
6002 _wrap_a_canvas_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6003  a_canvas *arg1 = (a_canvas *) 0 ;
6004  std::string arg2 ;
6005  void *argp1 = 0 ;
6006  int res1 = 0 ;
6007 
6008  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_name self name ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6009  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6010  if (!SWIG_IsOK(res1)) {
6011  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_name" "', argument " "1"" of type '" "a_canvas *""'");
6012  }
6013  arg1 = reinterpret_cast< a_canvas * >(argp1);
6014  {
6015  std::string *ptr = (std::string *)0;
6016  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
6017  if (!SWIG_IsOK(res) || !ptr) {
6018  SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "a_canvas_name" "', argument " "2"" of type '" "std::string""'");
6019  }
6020  arg2 = *ptr;
6021  if (SWIG_IsNewObj(res)) delete ptr;
6022  }
6023  try {
6024  (arg1)->name(arg2);
6025  } catch(...) {
6026  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6027  }
6028 
6029  return TCL_OK;
6030 fail:
6031  return TCL_ERROR;
6032 }
6033 
6034 
6035 SWIGINTERN int
6036 _wrap_a_canvas_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6037  a_canvas *arg1 = (a_canvas *) 0 ;
6038  void *argp1 = 0 ;
6039  int res1 = 0 ;
6040  std::string result;
6041 
6042  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_name self ",(void *)0) == TCL_ERROR) SWIG_fail;
6043  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6044  if (!SWIG_IsOK(res1)) {
6045  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_name" "', argument " "1"" of type '" "a_canvas const *""'");
6046  }
6047  arg1 = reinterpret_cast< a_canvas * >(argp1);
6048  try {
6049  result = ((a_canvas const *)arg1)->name();
6050  } catch(...) {
6051  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6052  }
6053  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
6054  return TCL_OK;
6055 fail:
6056  return TCL_ERROR;
6057 }
6058 
6059 
6060 SWIGINTERN int
6061 _wrap_a_canvas_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6062  Tcl_Obj *CONST *argv = objv+1;
6063  int argc = objc-1;
6064  if (argc == 1) {
6065  int _v;
6066  void *vptr = 0;
6067  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6068  _v = SWIG_CheckState(res);
6069  if (_v) {
6070  return _wrap_a_canvas_name__SWIG_1(clientData, interp, objc, argv - 1);
6071  }
6072  }
6073  if (argc == 2) {
6074  int _v;
6075  void *vptr = 0;
6076  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6077  _v = SWIG_CheckState(res);
6078  if (_v) {
6079  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
6080  _v = SWIG_CheckState(res);
6081  if (_v) {
6082  return _wrap_a_canvas_name__SWIG_0(clientData, interp, objc, argv - 1);
6083  }
6084  }
6085  }
6086 
6087  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_name'.\n"
6088  " Possible C/C++ prototypes are:\n"
6089  " a_canvas::name(std::string)\n"
6090  " a_canvas::name() const\n", TCL_STATIC);
6091  return TCL_ERROR;
6092 }
6093 
6094 
6095 SWIGINTERN int
6096 _wrap_a_canvas_empty__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6097  a_canvas *arg1 = (a_canvas *) 0 ;
6098  void *argp1 = 0 ;
6099  int res1 = 0 ;
6100  bool result;
6101 
6102  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_empty self ",(void *)0) == TCL_ERROR) SWIG_fail;
6103  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6104  if (!SWIG_IsOK(res1)) {
6105  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_empty" "', argument " "1"" of type '" "a_canvas const *""'");
6106  }
6107  arg1 = reinterpret_cast< a_canvas * >(argp1);
6108  try {
6109  result = (bool)((a_canvas const *)arg1)->empty();
6110  } catch(...) {
6111  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6112  }
6113  Tcl_SetObjResult(interp,SWIG_From_bool(static_cast< bool >(result)));
6114  return TCL_OK;
6115 fail:
6116  return TCL_ERROR;
6117 }
6118 
6119 
6120 SWIGINTERN int
6121 _wrap_a_canvas_empty__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6122  a_canvas *arg1 = (a_canvas *) 0 ;
6123  bool arg2 ;
6124  void *argp1 = 0 ;
6125  int res1 = 0 ;
6126  bool val2 ;
6127  int ecode2 = 0 ;
6128 
6129  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_empty self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6130  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6131  if (!SWIG_IsOK(res1)) {
6132  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_empty" "', argument " "1"" of type '" "a_canvas *""'");
6133  }
6134  arg1 = reinterpret_cast< a_canvas * >(argp1);
6135  ecode2 = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6136  if (!SWIG_IsOK(ecode2)) {
6137  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_empty" "', argument " "2"" of type '" "bool""'");
6138  }
6139  arg2 = static_cast< bool >(val2);
6140  try {
6141  (arg1)->empty(arg2);
6142  } catch(...) {
6143  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6144  }
6145 
6146  return TCL_OK;
6147 fail:
6148  return TCL_ERROR;
6149 }
6150 
6151 
6152 SWIGINTERN int
6153 _wrap_a_canvas_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6154  Tcl_Obj *CONST *argv = objv+1;
6155  int argc = objc-1;
6156  if (argc == 1) {
6157  int _v;
6158  void *vptr = 0;
6159  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6160  _v = SWIG_CheckState(res);
6161  if (_v) {
6162  return _wrap_a_canvas_empty__SWIG_0(clientData, interp, objc, argv - 1);
6163  }
6164  }
6165  if (argc == 2) {
6166  int _v;
6167  void *vptr = 0;
6168  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6169  _v = SWIG_CheckState(res);
6170  if (_v) {
6171  {
6172  int res = SWIG_AsVal_bool SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6173  _v = SWIG_CheckState(res);
6174  }
6175  if (_v) {
6176  return _wrap_a_canvas_empty__SWIG_1(clientData, interp, objc, argv - 1);
6177  }
6178  }
6179  }
6180 
6181  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_empty'.\n"
6182  " Possible C/C++ prototypes are:\n"
6183  " a_canvas::empty() const\n"
6184  " a_canvas::empty(bool)\n", TCL_STATIC);
6185  return TCL_ERROR;
6186 }
6187 
6188 
6189 SWIGINTERN int
6190 _wrap_a_canvas_interact__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6191  a_canvas *arg1 = (a_canvas *) 0 ;
6192  void *argp1 = 0 ;
6193  int res1 = 0 ;
6194 
6195  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_interact self ",(void *)0) == TCL_ERROR) SWIG_fail;
6196  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6197  if (!SWIG_IsOK(res1)) {
6198  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_interact" "', argument " "1"" of type '" "a_canvas *""'");
6199  }
6200  arg1 = reinterpret_cast< a_canvas * >(argp1);
6201  try {
6202  (arg1)->interact();
6203  } catch(...) {
6204  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6205  }
6206 
6207  return TCL_OK;
6208 fail:
6209  return TCL_ERROR;
6210 }
6211 
6212 
6213 SWIGINTERN int
6214 _wrap_a_canvas_straighten(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6215  a_canvas *arg1 = (a_canvas *) 0 ;
6216  void *argp1 = 0 ;
6217  int res1 = 0 ;
6218 
6219  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_straighten self ",(void *)0) == TCL_ERROR) SWIG_fail;
6220  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6221  if (!SWIG_IsOK(res1)) {
6222  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_straighten" "', argument " "1"" of type '" "a_canvas *""'");
6223  }
6224  arg1 = reinterpret_cast< a_canvas * >(argp1);
6225  try {
6226  (arg1)->straighten();
6227  } catch(...) {
6228  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6229  }
6230 
6231  return TCL_OK;
6232 fail:
6233  return TCL_ERROR;
6234 }
6235 
6236 
6237 SWIGINTERN int
6238 _wrap_a_canvas_getinteract(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6239  a_canvas *arg1 = (a_canvas *) 0 ;
6240  void *argp1 = 0 ;
6241  int res1 = 0 ;
6242 
6243  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_getinteract self ",(void *)0) == TCL_ERROR) SWIG_fail;
6244  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6245  if (!SWIG_IsOK(res1)) {
6246  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_getinteract" "', argument " "1"" of type '" "a_canvas *""'");
6247  }
6248  arg1 = reinterpret_cast< a_canvas * >(argp1);
6249  try {
6250  (arg1)->getinteract();
6251  } catch(...) {
6252  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6253  }
6254 
6255  return TCL_OK;
6256 fail:
6257  return TCL_ERROR;
6258 }
6259 
6260 
6261 SWIGINTERN int
6262 _wrap_a_canvas_render_clip(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6263  a_canvas *arg1 = (a_canvas *) 0 ;
6264  void *argp1 = 0 ;
6265  int res1 = 0 ;
6266 
6267  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_render_clip self ",(void *)0) == TCL_ERROR) SWIG_fail;
6268  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6269  if (!SWIG_IsOK(res1)) {
6270  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_render_clip" "', argument " "1"" of type '" "a_canvas *""'");
6271  }
6272  arg1 = reinterpret_cast< a_canvas * >(argp1);
6273  try {
6274  (arg1)->render_clip();
6275  } catch(...) {
6276  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6277  }
6278 
6279  return TCL_OK;
6280 fail:
6281  return TCL_ERROR;
6282 }
6283 
6284 
6285 SWIGINTERN int
6286 _wrap_a_canvas_background(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6287  a_canvas *arg1 = (a_canvas *) 0 ;
6288  double arg2 ;
6289  double arg3 ;
6290  double arg4 ;
6291  void *argp1 = 0 ;
6292  int res1 = 0 ;
6293  double val2 ;
6294  int ecode2 = 0 ;
6295  double val3 ;
6296  int ecode3 = 0 ;
6297  double val4 ;
6298  int ecode4 = 0 ;
6299 
6300  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_background self R G B ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6301  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6302  if (!SWIG_IsOK(res1)) {
6303  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_background" "', argument " "1"" of type '" "a_canvas *""'");
6304  }
6305  arg1 = reinterpret_cast< a_canvas * >(argp1);
6306  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6307  if (!SWIG_IsOK(ecode2)) {
6308  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_background" "', argument " "2"" of type '" "double""'");
6309  }
6310  arg2 = static_cast< double >(val2);
6311  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6312  if (!SWIG_IsOK(ecode3)) {
6313  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_background" "', argument " "3"" of type '" "double""'");
6314  }
6315  arg3 = static_cast< double >(val3);
6316  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
6317  if (!SWIG_IsOK(ecode4)) {
6318  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_canvas_background" "', argument " "4"" of type '" "double""'");
6319  }
6320  arg4 = static_cast< double >(val4);
6321  try {
6322  (arg1)->background(arg2,arg3,arg4);
6323  } catch(...) {
6324  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6325  }
6326 
6327  return TCL_OK;
6328 fail:
6329  return TCL_ERROR;
6330 }
6331 
6332 
6333 SWIGINTERN int
6334 _wrap_a_canvas_azimuth__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6335  a_canvas *arg1 = (a_canvas *) 0 ;
6336  double arg2 ;
6337  void *argp1 = 0 ;
6338  int res1 = 0 ;
6339  double val2 ;
6340  int ecode2 = 0 ;
6341 
6342  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_azimuth self x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6343  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6344  if (!SWIG_IsOK(res1)) {
6345  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_azimuth" "', argument " "1"" of type '" "a_canvas *""'");
6346  }
6347  arg1 = reinterpret_cast< a_canvas * >(argp1);
6348  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6349  if (!SWIG_IsOK(ecode2)) {
6350  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_azimuth" "', argument " "2"" of type '" "double""'");
6351  }
6352  arg2 = static_cast< double >(val2);
6353  try {
6354  (arg1)->azimuth(arg2);
6355  } catch(...) {
6356  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6357  }
6358 
6359  return TCL_OK;
6360 fail:
6361  return TCL_ERROR;
6362 }
6363 
6364 
6365 SWIGINTERN int
6366 _wrap_a_canvas_elevation__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6367  a_canvas *arg1 = (a_canvas *) 0 ;
6368  double arg2 ;
6369  void *argp1 = 0 ;
6370  int res1 = 0 ;
6371  double val2 ;
6372  int ecode2 = 0 ;
6373 
6374  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_elevation self y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6375  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6376  if (!SWIG_IsOK(res1)) {
6377  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_elevation" "', argument " "1"" of type '" "a_canvas *""'");
6378  }
6379  arg1 = reinterpret_cast< a_canvas * >(argp1);
6380  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6381  if (!SWIG_IsOK(ecode2)) {
6382  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_elevation" "', argument " "2"" of type '" "double""'");
6383  }
6384  arg2 = static_cast< double >(val2);
6385  try {
6386  (arg1)->elevation(arg2);
6387  } catch(...) {
6388  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6389  }
6390 
6391  return TCL_OK;
6392 fail:
6393  return TCL_ERROR;
6394 }
6395 
6396 
6397 SWIGINTERN int
6398 _wrap_a_canvas_roll__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6399  a_canvas *arg1 = (a_canvas *) 0 ;
6400  double arg2 ;
6401  void *argp1 = 0 ;
6402  int res1 = 0 ;
6403  double val2 ;
6404  int ecode2 = 0 ;
6405 
6406  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_roll self z ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6407  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6408  if (!SWIG_IsOK(res1)) {
6409  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_roll" "', argument " "1"" of type '" "a_canvas *""'");
6410  }
6411  arg1 = reinterpret_cast< a_canvas * >(argp1);
6412  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6413  if (!SWIG_IsOK(ecode2)) {
6414  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_roll" "', argument " "2"" of type '" "double""'");
6415  }
6416  arg2 = static_cast< double >(val2);
6417  try {
6418  (arg1)->roll(arg2);
6419  } catch(...) {
6420  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6421  }
6422 
6423  return TCL_OK;
6424 fail:
6425  return TCL_ERROR;
6426 }
6427 
6428 
6429 SWIGINTERN int
6430 _wrap_a_canvas_pitch(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6431  a_canvas *arg1 = (a_canvas *) 0 ;
6432  double arg2 ;
6433  void *argp1 = 0 ;
6434  int res1 = 0 ;
6435  double val2 ;
6436  int ecode2 = 0 ;
6437 
6438  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_pitch self u ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6439  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6440  if (!SWIG_IsOK(res1)) {
6441  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_pitch" "', argument " "1"" of type '" "a_canvas *""'");
6442  }
6443  arg1 = reinterpret_cast< a_canvas * >(argp1);
6444  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6445  if (!SWIG_IsOK(ecode2)) {
6446  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_pitch" "', argument " "2"" of type '" "double""'");
6447  }
6448  arg2 = static_cast< double >(val2);
6449  try {
6450  (arg1)->pitch(arg2);
6451  } catch(...) {
6452  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6453  }
6454 
6455  return TCL_OK;
6456 fail:
6457  return TCL_ERROR;
6458 }
6459 
6460 
6461 SWIGINTERN int
6462 _wrap_a_canvas_yaw(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6463  a_canvas *arg1 = (a_canvas *) 0 ;
6464  double arg2 ;
6465  void *argp1 = 0 ;
6466  int res1 = 0 ;
6467  double val2 ;
6468  int ecode2 = 0 ;
6469 
6470  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_yaw self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6471  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6472  if (!SWIG_IsOK(res1)) {
6473  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_yaw" "', argument " "1"" of type '" "a_canvas *""'");
6474  }
6475  arg1 = reinterpret_cast< a_canvas * >(argp1);
6476  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6477  if (!SWIG_IsOK(ecode2)) {
6478  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_yaw" "', argument " "2"" of type '" "double""'");
6479  }
6480  arg2 = static_cast< double >(val2);
6481  try {
6482  (arg1)->yaw(arg2);
6483  } catch(...) {
6484  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6485  }
6486 
6487  return TCL_OK;
6488 fail:
6489  return TCL_ERROR;
6490 }
6491 
6492 
6493 SWIGINTERN int
6494 _wrap_a_canvas_distance__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6495  a_canvas *arg1 = (a_canvas *) 0 ;
6496  double arg2 ;
6497  void *argp1 = 0 ;
6498  int res1 = 0 ;
6499  double val2 ;
6500  int ecode2 = 0 ;
6501 
6502  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_distance self d ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6503  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6504  if (!SWIG_IsOK(res1)) {
6505  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_distance" "', argument " "1"" of type '" "a_canvas *""'");
6506  }
6507  arg1 = reinterpret_cast< a_canvas * >(argp1);
6508  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6509  if (!SWIG_IsOK(ecode2)) {
6510  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_distance" "', argument " "2"" of type '" "double""'");
6511  }
6512  arg2 = static_cast< double >(val2);
6513  try {
6514  (arg1)->distance(arg2);
6515  } catch(...) {
6516  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6517  }
6518 
6519  return TCL_OK;
6520 fail:
6521  return TCL_ERROR;
6522 }
6523 
6524 
6525 SWIGINTERN int
6526 _wrap_a_canvas_distance0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6527  a_canvas *arg1 = (a_canvas *) 0 ;
6528  double arg2 ;
6529  void *argp1 = 0 ;
6530  int res1 = 0 ;
6531  double val2 ;
6532  int ecode2 = 0 ;
6533 
6534  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_distance0 self d ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6535  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6536  if (!SWIG_IsOK(res1)) {
6537  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_distance0" "', argument " "1"" of type '" "a_canvas *""'");
6538  }
6539  arg1 = reinterpret_cast< a_canvas * >(argp1);
6540  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6541  if (!SWIG_IsOK(ecode2)) {
6542  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_distance0" "', argument " "2"" of type '" "double""'");
6543  }
6544  arg2 = static_cast< double >(val2);
6545  try {
6546  (arg1)->distance0(arg2);
6547  } catch(...) {
6548  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6549  }
6550 
6551  return TCL_OK;
6552 fail:
6553  return TCL_ERROR;
6554 }
6555 
6556 
6557 SWIGINTERN int
6558 _wrap_a_canvas_azimuth__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6559  a_canvas *arg1 = (a_canvas *) 0 ;
6560  void *argp1 = 0 ;
6561  int res1 = 0 ;
6562  double result;
6563 
6564  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_azimuth self ",(void *)0) == TCL_ERROR) SWIG_fail;
6565  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6566  if (!SWIG_IsOK(res1)) {
6567  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_azimuth" "', argument " "1"" of type '" "a_canvas const *""'");
6568  }
6569  arg1 = reinterpret_cast< a_canvas * >(argp1);
6570  try {
6571  result = (double)((a_canvas const *)arg1)->azimuth();
6572  } catch(...) {
6573  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6574  }
6575  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6576  return TCL_OK;
6577 fail:
6578  return TCL_ERROR;
6579 }
6580 
6581 
6582 SWIGINTERN int
6583 _wrap_a_canvas_azimuth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6584  Tcl_Obj *CONST *argv = objv+1;
6585  int argc = objc-1;
6586  if (argc == 1) {
6587  int _v;
6588  void *vptr = 0;
6589  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6590  _v = SWIG_CheckState(res);
6591  if (_v) {
6592  return _wrap_a_canvas_azimuth__SWIG_1(clientData, interp, objc, argv - 1);
6593  }
6594  }
6595  if (argc == 2) {
6596  int _v;
6597  void *vptr = 0;
6598  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6599  _v = SWIG_CheckState(res);
6600  if (_v) {
6601  {
6602  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6603  _v = SWIG_CheckState(res);
6604  }
6605  if (_v) {
6606  return _wrap_a_canvas_azimuth__SWIG_0(clientData, interp, objc, argv - 1);
6607  }
6608  }
6609  }
6610 
6611  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_azimuth'.\n"
6612  " Possible C/C++ prototypes are:\n"
6613  " a_canvas::azimuth(double)\n"
6614  " a_canvas::azimuth() const\n", TCL_STATIC);
6615  return TCL_ERROR;
6616 }
6617 
6618 
6619 SWIGINTERN int
6620 _wrap_a_canvas_elevation__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6621  a_canvas *arg1 = (a_canvas *) 0 ;
6622  void *argp1 = 0 ;
6623  int res1 = 0 ;
6624  double result;
6625 
6626  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_elevation self ",(void *)0) == TCL_ERROR) SWIG_fail;
6627  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6628  if (!SWIG_IsOK(res1)) {
6629  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_elevation" "', argument " "1"" of type '" "a_canvas const *""'");
6630  }
6631  arg1 = reinterpret_cast< a_canvas * >(argp1);
6632  try {
6633  result = (double)((a_canvas const *)arg1)->elevation();
6634  } catch(...) {
6635  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6636  }
6637  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6638  return TCL_OK;
6639 fail:
6640  return TCL_ERROR;
6641 }
6642 
6643 
6644 SWIGINTERN int
6645 _wrap_a_canvas_elevation(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6646  Tcl_Obj *CONST *argv = objv+1;
6647  int argc = objc-1;
6648  if (argc == 1) {
6649  int _v;
6650  void *vptr = 0;
6651  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6652  _v = SWIG_CheckState(res);
6653  if (_v) {
6654  return _wrap_a_canvas_elevation__SWIG_1(clientData, interp, objc, argv - 1);
6655  }
6656  }
6657  if (argc == 2) {
6658  int _v;
6659  void *vptr = 0;
6660  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6661  _v = SWIG_CheckState(res);
6662  if (_v) {
6663  {
6664  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6665  _v = SWIG_CheckState(res);
6666  }
6667  if (_v) {
6668  return _wrap_a_canvas_elevation__SWIG_0(clientData, interp, objc, argv - 1);
6669  }
6670  }
6671  }
6672 
6673  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_elevation'.\n"
6674  " Possible C/C++ prototypes are:\n"
6675  " a_canvas::elevation(double)\n"
6676  " a_canvas::elevation() const\n", TCL_STATIC);
6677  return TCL_ERROR;
6678 }
6679 
6680 
6681 SWIGINTERN int
6682 _wrap_a_canvas_roll__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6683  a_canvas *arg1 = (a_canvas *) 0 ;
6684  void *argp1 = 0 ;
6685  int res1 = 0 ;
6686  double result;
6687 
6688  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_roll self ",(void *)0) == TCL_ERROR) SWIG_fail;
6689  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6690  if (!SWIG_IsOK(res1)) {
6691  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_roll" "', argument " "1"" of type '" "a_canvas const *""'");
6692  }
6693  arg1 = reinterpret_cast< a_canvas * >(argp1);
6694  try {
6695  result = (double)((a_canvas const *)arg1)->roll();
6696  } catch(...) {
6697  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6698  }
6699  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6700  return TCL_OK;
6701 fail:
6702  return TCL_ERROR;
6703 }
6704 
6705 
6706 SWIGINTERN int
6707 _wrap_a_canvas_roll(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6708  Tcl_Obj *CONST *argv = objv+1;
6709  int argc = objc-1;
6710  if (argc == 1) {
6711  int _v;
6712  void *vptr = 0;
6713  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6714  _v = SWIG_CheckState(res);
6715  if (_v) {
6716  return _wrap_a_canvas_roll__SWIG_1(clientData, interp, objc, argv - 1);
6717  }
6718  }
6719  if (argc == 2) {
6720  int _v;
6721  void *vptr = 0;
6722  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6723  _v = SWIG_CheckState(res);
6724  if (_v) {
6725  {
6726  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6727  _v = SWIG_CheckState(res);
6728  }
6729  if (_v) {
6730  return _wrap_a_canvas_roll__SWIG_0(clientData, interp, objc, argv - 1);
6731  }
6732  }
6733  }
6734 
6735  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_roll'.\n"
6736  " Possible C/C++ prototypes are:\n"
6737  " a_canvas::roll(double)\n"
6738  " a_canvas::roll() const\n", TCL_STATIC);
6739  return TCL_ERROR;
6740 }
6741 
6742 
6743 SWIGINTERN int
6744 _wrap_a_canvas_distance__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6745  a_canvas *arg1 = (a_canvas *) 0 ;
6746  void *argp1 = 0 ;
6747  int res1 = 0 ;
6748  double result;
6749 
6750  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_distance self ",(void *)0) == TCL_ERROR) SWIG_fail;
6751  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6752  if (!SWIG_IsOK(res1)) {
6753  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_distance" "', argument " "1"" of type '" "a_canvas const *""'");
6754  }
6755  arg1 = reinterpret_cast< a_canvas * >(argp1);
6756  try {
6757  result = (double)((a_canvas const *)arg1)->distance();
6758  } catch(...) {
6759  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6760  }
6761  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6762  return TCL_OK;
6763 fail:
6764  return TCL_ERROR;
6765 }
6766 
6767 
6768 SWIGINTERN int
6769 _wrap_a_canvas_distance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6770  Tcl_Obj *CONST *argv = objv+1;
6771  int argc = objc-1;
6772  if (argc == 1) {
6773  int _v;
6774  void *vptr = 0;
6775  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6776  _v = SWIG_CheckState(res);
6777  if (_v) {
6778  return _wrap_a_canvas_distance__SWIG_1(clientData, interp, objc, argv - 1);
6779  }
6780  }
6781  if (argc == 2) {
6782  int _v;
6783  void *vptr = 0;
6784  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
6785  _v = SWIG_CheckState(res);
6786  if (_v) {
6787  {
6788  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6789  _v = SWIG_CheckState(res);
6790  }
6791  if (_v) {
6792  return _wrap_a_canvas_distance__SWIG_0(clientData, interp, objc, argv - 1);
6793  }
6794  }
6795  }
6796 
6797  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_distance'.\n"
6798  " Possible C/C++ prototypes are:\n"
6799  " a_canvas::distance(double)\n"
6800  " a_canvas::distance() const\n", TCL_STATIC);
6801  return TCL_ERROR;
6802 }
6803 
6804 
6805 SWIGINTERN int
6806 _wrap_a_canvas_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6807  a_canvas *arg1 = (a_canvas *) 0 ;
6808  void *argp1 = 0 ;
6809  int res1 = 0 ;
6810 
6811  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_x self ",(void *)0) == TCL_ERROR) SWIG_fail;
6812  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6813  if (!SWIG_IsOK(res1)) {
6814  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_x" "', argument " "1"" of type '" "a_canvas *""'");
6815  }
6816  arg1 = reinterpret_cast< a_canvas * >(argp1);
6817  try {
6818  (arg1)->x();
6819  } catch(...) {
6820  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6821  }
6822 
6823  return TCL_OK;
6824 fail:
6825  return TCL_ERROR;
6826 }
6827 
6828 
6829 SWIGINTERN int
6830 _wrap_a_canvas_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6831  a_canvas *arg1 = (a_canvas *) 0 ;
6832  void *argp1 = 0 ;
6833  int res1 = 0 ;
6834 
6835  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_X self ",(void *)0) == TCL_ERROR) SWIG_fail;
6836  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6837  if (!SWIG_IsOK(res1)) {
6838  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_X" "', argument " "1"" of type '" "a_canvas *""'");
6839  }
6840  arg1 = reinterpret_cast< a_canvas * >(argp1);
6841  try {
6842  (arg1)->X();
6843  } catch(...) {
6844  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6845  }
6846 
6847  return TCL_OK;
6848 fail:
6849  return TCL_ERROR;
6850 }
6851 
6852 
6853 SWIGINTERN int
6854 _wrap_a_canvas_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6855  a_canvas *arg1 = (a_canvas *) 0 ;
6856  void *argp1 = 0 ;
6857  int res1 = 0 ;
6858 
6859  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_y self ",(void *)0) == TCL_ERROR) SWIG_fail;
6860  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6861  if (!SWIG_IsOK(res1)) {
6862  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_y" "', argument " "1"" of type '" "a_canvas *""'");
6863  }
6864  arg1 = reinterpret_cast< a_canvas * >(argp1);
6865  try {
6866  (arg1)->y();
6867  } catch(...) {
6868  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6869  }
6870 
6871  return TCL_OK;
6872 fail:
6873  return TCL_ERROR;
6874 }
6875 
6876 
6877 SWIGINTERN int
6878 _wrap_a_canvas_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6879  a_canvas *arg1 = (a_canvas *) 0 ;
6880  void *argp1 = 0 ;
6881  int res1 = 0 ;
6882 
6883  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_Y self ",(void *)0) == TCL_ERROR) SWIG_fail;
6884  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6885  if (!SWIG_IsOK(res1)) {
6886  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_Y" "', argument " "1"" of type '" "a_canvas *""'");
6887  }
6888  arg1 = reinterpret_cast< a_canvas * >(argp1);
6889  try {
6890  (arg1)->Y();
6891  } catch(...) {
6892  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6893  }
6894 
6895  return TCL_OK;
6896 fail:
6897  return TCL_ERROR;
6898 }
6899 
6900 
6901 SWIGINTERN int
6902 _wrap_a_canvas_z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6903  a_canvas *arg1 = (a_canvas *) 0 ;
6904  void *argp1 = 0 ;
6905  int res1 = 0 ;
6906 
6907  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_z self ",(void *)0) == TCL_ERROR) SWIG_fail;
6908  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6909  if (!SWIG_IsOK(res1)) {
6910  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_z" "', argument " "1"" of type '" "a_canvas *""'");
6911  }
6912  arg1 = reinterpret_cast< a_canvas * >(argp1);
6913  try {
6914  (arg1)->z();
6915  } catch(...) {
6916  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6917  }
6918 
6919  return TCL_OK;
6920 fail:
6921  return TCL_ERROR;
6922 }
6923 
6924 
6925 SWIGINTERN int
6926 _wrap_a_canvas_Z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6927  a_canvas *arg1 = (a_canvas *) 0 ;
6928  void *argp1 = 0 ;
6929  int res1 = 0 ;
6930 
6931  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_Z self ",(void *)0) == TCL_ERROR) SWIG_fail;
6932  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6933  if (!SWIG_IsOK(res1)) {
6934  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_Z" "', argument " "1"" of type '" "a_canvas *""'");
6935  }
6936  arg1 = reinterpret_cast< a_canvas * >(argp1);
6937  try {
6938  (arg1)->Z();
6939  } catch(...) {
6940  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6941  }
6942 
6943  return TCL_OK;
6944 fail:
6945  return TCL_ERROR;
6946 }
6947 
6948 
6949 SWIGINTERN int
6950 _wrap_a_canvas_magnification(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6951  a_canvas *arg1 = (a_canvas *) 0 ;
6952  unsigned short arg2 ;
6953  void *argp1 = 0 ;
6954  int res1 = 0 ;
6955  unsigned short val2 ;
6956  int ecode2 = 0 ;
6957 
6958  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_magnification self val ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6959  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6960  if (!SWIG_IsOK(res1)) {
6961  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_magnification" "', argument " "1"" of type '" "a_canvas *""'");
6962  }
6963  arg1 = reinterpret_cast< a_canvas * >(argp1);
6964  ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6965  if (!SWIG_IsOK(ecode2)) {
6966  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_magnification" "', argument " "2"" of type '" "unsigned short""'");
6967  }
6968  arg2 = static_cast< unsigned short >(val2);
6969  try {
6970  (arg1)->magnification(arg2);
6971  } catch(...) {
6972  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6973  }
6974 
6975  return TCL_OK;
6976 fail:
6977  return TCL_ERROR;
6978 }
6979 
6980 
6981 SWIGINTERN int
6982 _wrap_a_canvas_scale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6983  a_canvas *arg1 = (a_canvas *) 0 ;
6984  void *argp1 = 0 ;
6985  int res1 = 0 ;
6986  double result;
6987 
6988  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_scale self ",(void *)0) == TCL_ERROR) SWIG_fail;
6989  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
6990  if (!SWIG_IsOK(res1)) {
6991  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_scale" "', argument " "1"" of type '" "a_canvas const *""'");
6992  }
6993  arg1 = reinterpret_cast< a_canvas * >(argp1);
6994  try {
6995  result = (double)((a_canvas const *)arg1)->scale();
6996  } catch(...) {
6997  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
6998  }
6999  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
7000  return TCL_OK;
7001 fail:
7002  return TCL_ERROR;
7003 }
7004 
7005 
7006 SWIGINTERN int
7007 _wrap_a_canvas_scale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7008  a_canvas *arg1 = (a_canvas *) 0 ;
7009  double arg2 ;
7010  void *argp1 = 0 ;
7011  int res1 = 0 ;
7012  double val2 ;
7013  int ecode2 = 0 ;
7014 
7015  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_scale self val ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7016  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7017  if (!SWIG_IsOK(res1)) {
7018  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_scale" "', argument " "1"" of type '" "a_canvas *""'");
7019  }
7020  arg1 = reinterpret_cast< a_canvas * >(argp1);
7021  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7022  if (!SWIG_IsOK(ecode2)) {
7023  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_scale" "', argument " "2"" of type '" "double""'");
7024  }
7025  arg2 = static_cast< double >(val2);
7026  try {
7027  (arg1)->scale(arg2);
7028  } catch(...) {
7029  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7030  }
7031 
7032  return TCL_OK;
7033 fail:
7034  return TCL_ERROR;
7035 }
7036 
7037 
7038 SWIGINTERN int
7039 _wrap_a_canvas_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7040  Tcl_Obj *CONST *argv = objv+1;
7041  int argc = objc-1;
7042  if (argc == 1) {
7043  int _v;
7044  void *vptr = 0;
7045  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7046  _v = SWIG_CheckState(res);
7047  if (_v) {
7048  return _wrap_a_canvas_scale__SWIG_0(clientData, interp, objc, argv - 1);
7049  }
7050  }
7051  if (argc == 2) {
7052  int _v;
7053  void *vptr = 0;
7054  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7055  _v = SWIG_CheckState(res);
7056  if (_v) {
7057  {
7058  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7059  _v = SWIG_CheckState(res);
7060  }
7061  if (_v) {
7062  return _wrap_a_canvas_scale__SWIG_1(clientData, interp, objc, argv - 1);
7063  }
7064  }
7065  }
7066 
7067  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_scale'.\n"
7068  " Possible C/C++ prototypes are:\n"
7069  " a_canvas::scale() const\n"
7070  " a_canvas::scale(double)\n", TCL_STATIC);
7071  return TCL_ERROR;
7072 }
7073 
7074 
7075 SWIGINTERN int
7076 _wrap_a_canvas_size__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7077  a_canvas *arg1 = (a_canvas *) 0 ;
7078  int arg2 ;
7079  int arg3 ;
7080  void *argp1 = 0 ;
7081  int res1 = 0 ;
7082  int val2 ;
7083  int ecode2 = 0 ;
7084  int val3 ;
7085  int ecode3 = 0 ;
7086 
7087  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_canvas_size self w h ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7088  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7089  if (!SWIG_IsOK(res1)) {
7090  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_size" "', argument " "1"" of type '" "a_canvas *""'");
7091  }
7092  arg1 = reinterpret_cast< a_canvas * >(argp1);
7093  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7094  if (!SWIG_IsOK(ecode2)) {
7095  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_size" "', argument " "2"" of type '" "int""'");
7096  }
7097  arg2 = static_cast< int >(val2);
7098  ecode3 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
7099  if (!SWIG_IsOK(ecode3)) {
7100  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_size" "', argument " "3"" of type '" "int""'");
7101  }
7102  arg3 = static_cast< int >(val3);
7103  try {
7104  (arg1)->size(arg2,arg3);
7105  } catch(...) {
7106  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7107  }
7108 
7109  return TCL_OK;
7110 fail:
7111  return TCL_ERROR;
7112 }
7113 
7114 
7115 SWIGINTERN int
7116 _wrap_a_canvas_logfile__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7117  a_canvas *arg1 = (a_canvas *) 0 ;
7118  void *argp1 = 0 ;
7119  int res1 = 0 ;
7120  a_text *result = 0 ;
7121 
7122  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_logfile self ",(void *)0) == TCL_ERROR) SWIG_fail;
7123  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7124  if (!SWIG_IsOK(res1)) {
7125  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_logfile" "', argument " "1"" of type '" "a_canvas *""'");
7126  }
7127  arg1 = reinterpret_cast< a_canvas * >(argp1);
7128  try {
7129  result = (a_text *) &(arg1)->logfile();
7130  } catch(...) {
7131  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7132  }
7133  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_text,0));
7134  return TCL_OK;
7135 fail:
7136  return TCL_ERROR;
7137 }
7138 
7139 
7140 SWIGINTERN int
7141 _wrap_a_canvas_redraw(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7142  a_canvas *arg1 = (a_canvas *) 0 ;
7143  void *argp1 = 0 ;
7144  int res1 = 0 ;
7145 
7146  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_redraw self ",(void *)0) == TCL_ERROR) SWIG_fail;
7147  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7148  if (!SWIG_IsOK(res1)) {
7149  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_redraw" "', argument " "1"" of type '" "a_canvas *""'");
7150  }
7151  arg1 = reinterpret_cast< a_canvas * >(argp1);
7152  try {
7153  a_canvas_redraw(arg1);
7154  } catch(...) {
7155  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7156  }
7157 
7158  return TCL_OK;
7159 fail:
7160  return TCL_ERROR;
7161 }
7162 
7163 
7164 SWIGINTERN int
7165 _wrap_a_canvas_fit(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7166  a_canvas *arg1 = (a_canvas *) 0 ;
7167  void *argp1 = 0 ;
7168  int res1 = 0 ;
7169 
7170  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_fit self ",(void *)0) == TCL_ERROR) SWIG_fail;
7171  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7172  if (!SWIG_IsOK(res1)) {
7173  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_fit" "', argument " "1"" of type '" "a_canvas *""'");
7174  }
7175  arg1 = reinterpret_cast< a_canvas * >(argp1);
7176  try {
7177  a_canvas_fit(arg1);
7178  } catch(...) {
7179  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7180  }
7181 
7182  return TCL_OK;
7183 fail:
7184  return TCL_ERROR;
7185 }
7186 
7187 
7188 SWIGINTERN int
7189 _wrap_a_canvas_logfile__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7190  a_canvas *arg1 = (a_canvas *) 0 ;
7191  a_text *arg2 = 0 ;
7192  void *argp1 = 0 ;
7193  int res1 = 0 ;
7194  void *argp2 = 0 ;
7195  int res2 = 0 ;
7196 
7197  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_logfile self text ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7198  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7199  if (!SWIG_IsOK(res1)) {
7200  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_logfile" "', argument " "1"" of type '" "a_canvas *""'");
7201  }
7202  arg1 = reinterpret_cast< a_canvas * >(argp1);
7203  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_text, 0 );
7204  if (!SWIG_IsOK(res2)) {
7205  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_logfile" "', argument " "2"" of type '" "a_text &""'");
7206  }
7207  if (!argp2) {
7208  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_logfile" "', argument " "2"" of type '" "a_text &""'");
7209  }
7210  arg2 = reinterpret_cast< a_text * >(argp2);
7211  try {
7212  a_canvas_logfile__SWIG_1(arg1,*arg2);
7213  } catch(...) {
7214  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7215  }
7216 
7217  return TCL_OK;
7218 fail:
7219  return TCL_ERROR;
7220 }
7221 
7222 
7223 SWIGINTERN int
7224 _wrap_a_canvas_logfile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7225  Tcl_Obj *CONST *argv = objv+1;
7226  int argc = objc-1;
7227  if (argc == 1) {
7228  int _v;
7229  void *vptr = 0;
7230  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7231  _v = SWIG_CheckState(res);
7232  if (_v) {
7233  return _wrap_a_canvas_logfile__SWIG_0(clientData, interp, objc, argv - 1);
7234  }
7235  }
7236  if (argc == 2) {
7237  int _v;
7238  void *vptr = 0;
7239  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7240  _v = SWIG_CheckState(res);
7241  if (_v) {
7242  void *vptr = 0;
7243  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_text, SWIG_POINTER_NO_NULL);
7244  _v = SWIG_CheckState(res);
7245  if (_v) {
7246  return _wrap_a_canvas_logfile__SWIG_1(clientData, interp, objc, argv - 1);
7247  }
7248  }
7249  }
7250 
7251  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_logfile'.\n"
7252  " Possible C/C++ prototypes are:\n"
7253  " a_canvas::logfile()\n"
7254  " a_canvas::logfile(a_text &)\n", TCL_STATIC);
7255  return TCL_ERROR;
7256 }
7257 
7258 
7259 SWIGINTERN int
7260 _wrap_a_canvas_object__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7261  a_canvas *arg1 = (a_canvas *) 0 ;
7262  std::string *arg2 = 0 ;
7263  void *argp1 = 0 ;
7264  int res1 = 0 ;
7265  int res2 = SWIG_OLDOBJ ;
7266  std::string result;
7267 
7268  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_object self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7269  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7270  if (!SWIG_IsOK(res1)) {
7271  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_object" "', argument " "1"" of type '" "a_canvas *""'");
7272  }
7273  arg1 = reinterpret_cast< a_canvas * >(argp1);
7274  {
7275  std::string *ptr = (std::string *)0;
7276  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7277  if (!SWIG_IsOK(res2)) {
7278  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7279  }
7280  if (!ptr) {
7281  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7282  }
7283  arg2 = ptr;
7284  }
7285  try {
7286  result = a_canvas_object__SWIG_0(arg1,(std::string const &)*arg2);
7287  } catch(...) {
7288  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7289  }
7290  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7291  if (SWIG_IsNewObj(res2)) delete arg2;
7292  return TCL_OK;
7293 fail:
7294  if (SWIG_IsNewObj(res2)) delete arg2;
7295  return TCL_ERROR;
7296 }
7297 
7298 
7299 SWIGINTERN int
7300 _wrap_a_canvas_object__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7301  a_canvas *arg1 = (a_canvas *) 0 ;
7302  std::string *arg2 = 0 ;
7303  a_element *arg3 = 0 ;
7304  void *argp1 = 0 ;
7305  int res1 = 0 ;
7306  int res2 = SWIG_OLDOBJ ;
7307  void *argp3 = 0 ;
7308  int res3 = 0 ;
7309 
7310  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_canvas_object self code l ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7311  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7312  if (!SWIG_IsOK(res1)) {
7313  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_object" "', argument " "1"" of type '" "a_canvas *""'");
7314  }
7315  arg1 = reinterpret_cast< a_canvas * >(argp1);
7316  {
7317  std::string *ptr = (std::string *)0;
7318  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7319  if (!SWIG_IsOK(res2)) {
7320  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7321  }
7322  if (!ptr) {
7323  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7324  }
7325  arg2 = ptr;
7326  }
7327  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_a_element, 0 );
7328  if (!SWIG_IsOK(res3)) {
7329  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_canvas_object" "', argument " "3"" of type '" "a_element &""'");
7330  }
7331  if (!argp3) {
7332  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "3"" of type '" "a_element &""'");
7333  }
7334  arg3 = reinterpret_cast< a_element * >(argp3);
7335  try {
7336  a_canvas_object__SWIG_1(arg1,(std::string const &)*arg2,*arg3);
7337  } catch(...) {
7338  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7339  }
7340 
7341  if (SWIG_IsNewObj(res2)) delete arg2;
7342  return TCL_OK;
7343 fail:
7344  if (SWIG_IsNewObj(res2)) delete arg2;
7345  return TCL_ERROR;
7346 }
7347 
7348 
7349 SWIGINTERN int
7350 _wrap_a_canvas_object__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7351  a_canvas *arg1 = (a_canvas *) 0 ;
7352  std::string *arg2 = 0 ;
7353  std::string *arg3 = 0 ;
7354  void *argp1 = 0 ;
7355  int res1 = 0 ;
7356  int res2 = SWIG_OLDOBJ ;
7357  int res3 = SWIG_OLDOBJ ;
7358 
7359  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_canvas_object self code name ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7360  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7361  if (!SWIG_IsOK(res1)) {
7362  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_object" "', argument " "1"" of type '" "a_canvas *""'");
7363  }
7364  arg1 = reinterpret_cast< a_canvas * >(argp1);
7365  {
7366  std::string *ptr = (std::string *)0;
7367  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7368  if (!SWIG_IsOK(res2)) {
7369  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7370  }
7371  if (!ptr) {
7372  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7373  }
7374  arg2 = ptr;
7375  }
7376  {
7377  std::string *ptr = (std::string *)0;
7378  res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
7379  if (!SWIG_IsOK(res3)) {
7380  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_canvas_object" "', argument " "3"" of type '" "std::string const &""'");
7381  }
7382  if (!ptr) {
7383  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "3"" of type '" "std::string const &""'");
7384  }
7385  arg3 = ptr;
7386  }
7387  try {
7388  a_canvas_object__SWIG_2(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
7389  } catch(...) {
7390  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7391  }
7392 
7393  if (SWIG_IsNewObj(res2)) delete arg2;
7394  if (SWIG_IsNewObj(res3)) delete arg3;
7395  return TCL_OK;
7396 fail:
7397  if (SWIG_IsNewObj(res2)) delete arg2;
7398  if (SWIG_IsNewObj(res3)) delete arg3;
7399  return TCL_ERROR;
7400 }
7401 
7402 
7403 SWIGINTERN int
7404 _wrap_a_canvas_object__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7405  a_canvas *arg1 = (a_canvas *) 0 ;
7406  std::string *arg2 = 0 ;
7407  std::string *arg3 = 0 ;
7408  std::string *arg4 = 0 ;
7409  void *argp1 = 0 ;
7410  int res1 = 0 ;
7411  int res2 = SWIG_OLDOBJ ;
7412  int res3 = SWIG_OLDOBJ ;
7413  int res4 = SWIG_OLDOBJ ;
7414 
7415  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_object self code mesh points ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7416  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7417  if (!SWIG_IsOK(res1)) {
7418  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_object" "', argument " "1"" of type '" "a_canvas *""'");
7419  }
7420  arg1 = reinterpret_cast< a_canvas * >(argp1);
7421  {
7422  std::string *ptr = (std::string *)0;
7423  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7424  if (!SWIG_IsOK(res2)) {
7425  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7426  }
7427  if (!ptr) {
7428  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "2"" of type '" "std::string const &""'");
7429  }
7430  arg2 = ptr;
7431  }
7432  {
7433  std::string *ptr = (std::string *)0;
7434  res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
7435  if (!SWIG_IsOK(res3)) {
7436  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_canvas_object" "', argument " "3"" of type '" "std::string const &""'");
7437  }
7438  if (!ptr) {
7439  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "3"" of type '" "std::string const &""'");
7440  }
7441  arg3 = ptr;
7442  }
7443  {
7444  std::string *ptr = (std::string *)0;
7445  res4 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[4], &ptr);
7446  if (!SWIG_IsOK(res4)) {
7447  SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "a_canvas_object" "', argument " "4"" of type '" "std::string const &""'");
7448  }
7449  if (!ptr) {
7450  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_object" "', argument " "4"" of type '" "std::string const &""'");
7451  }
7452  arg4 = ptr;
7453  }
7454  try {
7455  a_canvas_object__SWIG_3(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4);
7456  } catch(...) {
7457  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7458  }
7459 
7460  if (SWIG_IsNewObj(res2)) delete arg2;
7461  if (SWIG_IsNewObj(res3)) delete arg3;
7462  if (SWIG_IsNewObj(res4)) delete arg4;
7463  return TCL_OK;
7464 fail:
7465  if (SWIG_IsNewObj(res2)) delete arg2;
7466  if (SWIG_IsNewObj(res3)) delete arg3;
7467  if (SWIG_IsNewObj(res4)) delete arg4;
7468  return TCL_ERROR;
7469 }
7470 
7471 
7472 SWIGINTERN int
7473 _wrap_a_canvas_object(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7474  Tcl_Obj *CONST *argv = objv+1;
7475  int argc = objc-1;
7476  if (argc == 2) {
7477  int _v;
7478  void *vptr = 0;
7479  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7480  _v = SWIG_CheckState(res);
7481  if (_v) {
7482  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7483  _v = SWIG_CheckState(res);
7484  if (_v) {
7485  return _wrap_a_canvas_object__SWIG_0(clientData, interp, objc, argv - 1);
7486  }
7487  }
7488  }
7489  if (argc == 3) {
7490  int _v;
7491  void *vptr = 0;
7492  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7493  _v = SWIG_CheckState(res);
7494  if (_v) {
7495  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7496  _v = SWIG_CheckState(res);
7497  if (_v) {
7498  void *vptr = 0;
7499  int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_a_element, SWIG_POINTER_NO_NULL);
7500  _v = SWIG_CheckState(res);
7501  if (_v) {
7502  return _wrap_a_canvas_object__SWIG_1(clientData, interp, objc, argv - 1);
7503  }
7504  }
7505  }
7506  }
7507  if (argc == 3) {
7508  int _v;
7509  void *vptr = 0;
7510  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7511  _v = SWIG_CheckState(res);
7512  if (_v) {
7513  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7514  _v = SWIG_CheckState(res);
7515  if (_v) {
7516  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
7517  _v = SWIG_CheckState(res);
7518  if (_v) {
7519  return _wrap_a_canvas_object__SWIG_2(clientData, interp, objc, argv - 1);
7520  }
7521  }
7522  }
7523  }
7524  if (argc == 4) {
7525  int _v;
7526  void *vptr = 0;
7527  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7528  _v = SWIG_CheckState(res);
7529  if (_v) {
7530  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7531  _v = SWIG_CheckState(res);
7532  if (_v) {
7533  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[2], (std::string**)(0));
7534  _v = SWIG_CheckState(res);
7535  if (_v) {
7536  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[3], (std::string**)(0));
7537  _v = SWIG_CheckState(res);
7538  if (_v) {
7539  return _wrap_a_canvas_object__SWIG_3(clientData, interp, objc, argv - 1);
7540  }
7541  }
7542  }
7543  }
7544  }
7545 
7546  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_object'.\n"
7547  " Possible C/C++ prototypes are:\n"
7548  " a_canvas::object(std::string const &)\n"
7549  " a_canvas::object(std::string const &,a_element &)\n"
7550  " a_canvas::object(std::string const &,std::string const &)\n"
7551  " a_canvas::object(std::string const &,std::string const &,std::string const &)\n", TCL_STATIC);
7552  return TCL_ERROR;
7553 }
7554 
7555 
7556 SWIGINTERN int
7557 _wrap_a_canvas_interact__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7558  a_canvas *arg1 = (a_canvas *) 0 ;
7559  std::string *arg2 = 0 ;
7560  void *argp1 = 0 ;
7561  int res1 = 0 ;
7562  int res2 = SWIG_OLDOBJ ;
7563 
7564  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_interact self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7565  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7566  if (!SWIG_IsOK(res1)) {
7567  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_interact" "', argument " "1"" of type '" "a_canvas *""'");
7568  }
7569  arg1 = reinterpret_cast< a_canvas * >(argp1);
7570  {
7571  std::string *ptr = (std::string *)0;
7572  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7573  if (!SWIG_IsOK(res2)) {
7574  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_interact" "', argument " "2"" of type '" "std::string const &""'");
7575  }
7576  if (!ptr) {
7577  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_interact" "', argument " "2"" of type '" "std::string const &""'");
7578  }
7579  arg2 = ptr;
7580  }
7581  try {
7582  a_canvas_interact__SWIG_1(arg1,(std::string const &)*arg2);
7583  } catch(...) {
7584  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7585  }
7586 
7587  if (SWIG_IsNewObj(res2)) delete arg2;
7588  return TCL_OK;
7589 fail:
7590  if (SWIG_IsNewObj(res2)) delete arg2;
7591  return TCL_ERROR;
7592 }
7593 
7594 
7595 SWIGINTERN int
7596 _wrap_a_canvas_interact(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7597  Tcl_Obj *CONST *argv = objv+1;
7598  int argc = objc-1;
7599  if (argc == 1) {
7600  int _v;
7601  void *vptr = 0;
7602  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7603  _v = SWIG_CheckState(res);
7604  if (_v) {
7605  return _wrap_a_canvas_interact__SWIG_0(clientData, interp, objc, argv - 1);
7606  }
7607  }
7608  if (argc == 2) {
7609  int _v;
7610  void *vptr = 0;
7611  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7612  _v = SWIG_CheckState(res);
7613  if (_v) {
7614  int res = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(argv[1], (std::string**)(0));
7615  _v = SWIG_CheckState(res);
7616  if (_v) {
7617  return _wrap_a_canvas_interact__SWIG_1(clientData, interp, objc, argv - 1);
7618  }
7619  }
7620  }
7621 
7622  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_interact'.\n"
7623  " Possible C/C++ prototypes are:\n"
7624  " a_canvas::interact()\n"
7625  " a_canvas::interact(std::string const &)\n", TCL_STATIC);
7626  return TCL_ERROR;
7627 }
7628 
7629 
7630 SWIGINTERN int
7631 _wrap_a_canvas_size__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7632  a_canvas *arg1 = (a_canvas *) 0 ;
7633  void *argp1 = 0 ;
7634  int res1 = 0 ;
7635  std::string result;
7636 
7637  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
7638  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7639  if (!SWIG_IsOK(res1)) {
7640  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_size" "', argument " "1"" of type '" "a_canvas *""'");
7641  }
7642  arg1 = reinterpret_cast< a_canvas * >(argp1);
7643  try {
7644  result = a_canvas_size__SWIG_1(arg1);
7645  } catch(...) {
7646  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7647  }
7648  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7649  return TCL_OK;
7650 fail:
7651  return TCL_ERROR;
7652 }
7653 
7654 
7655 SWIGINTERN int
7656 _wrap_a_canvas_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7657  Tcl_Obj *CONST *argv = objv+1;
7658  int argc = objc-1;
7659  if (argc == 1) {
7660  int _v;
7661  void *vptr = 0;
7662  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7663  _v = SWIG_CheckState(res);
7664  if (_v) {
7665  return _wrap_a_canvas_size__SWIG_1(clientData, interp, objc, argv - 1);
7666  }
7667  }
7668  if (argc == 3) {
7669  int _v;
7670  void *vptr = 0;
7671  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
7672  _v = SWIG_CheckState(res);
7673  if (_v) {
7674  {
7675  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7676  _v = SWIG_CheckState(res);
7677  }
7678  if (_v) {
7679  {
7680  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
7681  _v = SWIG_CheckState(res);
7682  }
7683  if (_v) {
7684  return _wrap_a_canvas_size__SWIG_0(clientData, interp, objc, argv - 1);
7685  }
7686  }
7687  }
7688  }
7689 
7690  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_size'.\n"
7691  " Possible C/C++ prototypes are:\n"
7692  " a_canvas::size(int const,int const)\n"
7693  " a_canvas::size()\n", TCL_STATIC);
7694  return TCL_ERROR;
7695 }
7696 
7697 
7698 SWIGINTERN int
7699 _wrap_a_canvas_fullscreen(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7700  a_canvas *arg1 = (a_canvas *) 0 ;
7701  std::string *arg2 = 0 ;
7702  void *argp1 = 0 ;
7703  int res1 = 0 ;
7704  int res2 = SWIG_OLDOBJ ;
7705 
7706  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_fullscreen self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7707  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7708  if (!SWIG_IsOK(res1)) {
7709  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_fullscreen" "', argument " "1"" of type '" "a_canvas *""'");
7710  }
7711  arg1 = reinterpret_cast< a_canvas * >(argp1);
7712  {
7713  std::string *ptr = (std::string *)0;
7714  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7715  if (!SWIG_IsOK(res2)) {
7716  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_fullscreen" "', argument " "2"" of type '" "std::string const &""'");
7717  }
7718  if (!ptr) {
7719  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_fullscreen" "', argument " "2"" of type '" "std::string const &""'");
7720  }
7721  arg2 = ptr;
7722  }
7723  try {
7724  a_canvas_fullscreen(arg1,(std::string const &)*arg2);
7725  } catch(...) {
7726  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7727  }
7728 
7729  if (SWIG_IsNewObj(res2)) delete arg2;
7730  return TCL_OK;
7731 fail:
7732  if (SWIG_IsNewObj(res2)) delete arg2;
7733  return TCL_ERROR;
7734 }
7735 
7736 
7737 SWIGINTERN int
7738 _wrap_a_canvas_perspective(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7739  a_canvas *arg1 = (a_canvas *) 0 ;
7740  std::string *arg2 = 0 ;
7741  void *argp1 = 0 ;
7742  int res1 = 0 ;
7743  int res2 = SWIG_OLDOBJ ;
7744 
7745  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_perspective self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7746  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7747  if (!SWIG_IsOK(res1)) {
7748  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_perspective" "', argument " "1"" of type '" "a_canvas *""'");
7749  }
7750  arg1 = reinterpret_cast< a_canvas * >(argp1);
7751  {
7752  std::string *ptr = (std::string *)0;
7753  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7754  if (!SWIG_IsOK(res2)) {
7755  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_perspective" "', argument " "2"" of type '" "std::string const &""'");
7756  }
7757  if (!ptr) {
7758  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_perspective" "', argument " "2"" of type '" "std::string const &""'");
7759  }
7760  arg2 = ptr;
7761  }
7762  try {
7763  a_canvas_perspective(arg1,(std::string const &)*arg2);
7764  } catch(...) {
7765  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7766  }
7767 
7768  if (SWIG_IsNewObj(res2)) delete arg2;
7769  return TCL_OK;
7770 fail:
7771  if (SWIG_IsNewObj(res2)) delete arg2;
7772  return TCL_ERROR;
7773 }
7774 
7775 
7776 SWIGINTERN int
7777 _wrap_a_canvas_cursor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7778  a_canvas *arg1 = (a_canvas *) 0 ;
7779  std::string *arg2 = 0 ;
7780  void *argp1 = 0 ;
7781  int res1 = 0 ;
7782  int res2 = SWIG_OLDOBJ ;
7783 
7784  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_cursor self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7785  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7786  if (!SWIG_IsOK(res1)) {
7787  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_cursor" "', argument " "1"" of type '" "a_canvas *""'");
7788  }
7789  arg1 = reinterpret_cast< a_canvas * >(argp1);
7790  {
7791  std::string *ptr = (std::string *)0;
7792  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7793  if (!SWIG_IsOK(res2)) {
7794  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_cursor" "', argument " "2"" of type '" "std::string const &""'");
7795  }
7796  if (!ptr) {
7797  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_cursor" "', argument " "2"" of type '" "std::string const &""'");
7798  }
7799  arg2 = ptr;
7800  }
7801  try {
7802  a_canvas_cursor(arg1,(std::string const &)*arg2);
7803  } catch(...) {
7804  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7805  }
7806 
7807  if (SWIG_IsNewObj(res2)) delete arg2;
7808  return TCL_OK;
7809 fail:
7810  if (SWIG_IsNewObj(res2)) delete arg2;
7811  return TCL_ERROR;
7812 }
7813 
7814 
7815 SWIGINTERN int
7816 _wrap_a_canvas_light(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7817  a_canvas *arg1 = (a_canvas *) 0 ;
7818  std::string *arg2 = 0 ;
7819  void *argp1 = 0 ;
7820  int res1 = 0 ;
7821  int res2 = SWIG_OLDOBJ ;
7822 
7823  if (SWIG_GetArgs(interp, objc, objv,"oo:a_canvas_light self code ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7824  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7825  if (!SWIG_IsOK(res1)) {
7826  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_light" "', argument " "1"" of type '" "a_canvas *""'");
7827  }
7828  arg1 = reinterpret_cast< a_canvas * >(argp1);
7829  {
7830  std::string *ptr = (std::string *)0;
7831  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7832  if (!SWIG_IsOK(res2)) {
7833  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_light" "', argument " "2"" of type '" "std::string const &""'");
7834  }
7835  if (!ptr) {
7836  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_light" "', argument " "2"" of type '" "std::string const &""'");
7837  }
7838  arg2 = ptr;
7839  }
7840  try {
7841  a_canvas_light(arg1,(std::string const &)*arg2);
7842  } catch(...) {
7843  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7844  }
7845 
7846  if (SWIG_IsNewObj(res2)) delete arg2;
7847  return TCL_OK;
7848 fail:
7849  if (SWIG_IsNewObj(res2)) delete arg2;
7850  return TCL_ERROR;
7851 }
7852 
7853 
7854 SWIGINTERN int
7855 _wrap_a_canvas_save(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7856  a_canvas *arg1 = (a_canvas *) 0 ;
7857  std::string *arg2 = 0 ;
7858  std::string *arg3 = 0 ;
7859  void *argp1 = 0 ;
7860  int res1 = 0 ;
7861  int res2 = SWIG_OLDOBJ ;
7862  int res3 = SWIG_OLDOBJ ;
7863 
7864  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_canvas_save self code file ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7865  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7866  if (!SWIG_IsOK(res1)) {
7867  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_save" "', argument " "1"" of type '" "a_canvas *""'");
7868  }
7869  arg1 = reinterpret_cast< a_canvas * >(argp1);
7870  {
7871  std::string *ptr = (std::string *)0;
7872  res2 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[2], &ptr);
7873  if (!SWIG_IsOK(res2)) {
7874  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_canvas_save" "', argument " "2"" of type '" "std::string const &""'");
7875  }
7876  if (!ptr) {
7877  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_save" "', argument " "2"" of type '" "std::string const &""'");
7878  }
7879  arg2 = ptr;
7880  }
7881  {
7882  std::string *ptr = (std::string *)0;
7883  res3 = SWIG_AsPtr_std_string SWIG_TCL_CALL_ARGS_2(objv[3], &ptr);
7884  if (!SWIG_IsOK(res3)) {
7885  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_canvas_save" "', argument " "3"" of type '" "std::string const &""'");
7886  }
7887  if (!ptr) {
7888  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_canvas_save" "', argument " "3"" of type '" "std::string const &""'");
7889  }
7890  arg3 = ptr;
7891  }
7892  try {
7893  a_canvas_save(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
7894  } catch(...) {
7895  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7896  }
7897 
7898  if (SWIG_IsNewObj(res2)) delete arg2;
7899  if (SWIG_IsNewObj(res3)) delete arg3;
7900  return TCL_OK;
7901 fail:
7902  if (SWIG_IsNewObj(res2)) delete arg2;
7903  if (SWIG_IsNewObj(res3)) delete arg3;
7904  return TCL_ERROR;
7905 }
7906 
7907 
7908 SWIGINTERN int
7909 _wrap_a_canvas_camerapoint__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7910  a_canvas *arg1 = (a_canvas *) 0 ;
7911  double arg2 ;
7912  double arg3 ;
7913  double arg4 ;
7914  void *argp1 = 0 ;
7915  int res1 = 0 ;
7916  double val2 ;
7917  int ecode2 = 0 ;
7918  double val3 ;
7919  int ecode3 = 0 ;
7920  double val4 ;
7921  int ecode4 = 0 ;
7922 
7923  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_camerapoint self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7924  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7925  if (!SWIG_IsOK(res1)) {
7926  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_camerapoint" "', argument " "1"" of type '" "a_canvas *""'");
7927  }
7928  arg1 = reinterpret_cast< a_canvas * >(argp1);
7929  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7930  if (!SWIG_IsOK(ecode2)) {
7931  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_camerapoint" "', argument " "2"" of type '" "double""'");
7932  }
7933  arg2 = static_cast< double >(val2);
7934  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
7935  if (!SWIG_IsOK(ecode3)) {
7936  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_camerapoint" "', argument " "3"" of type '" "double""'");
7937  }
7938  arg3 = static_cast< double >(val3);
7939  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
7940  if (!SWIG_IsOK(ecode4)) {
7941  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_canvas_camerapoint" "', argument " "4"" of type '" "double""'");
7942  }
7943  arg4 = static_cast< double >(val4);
7944  try {
7945  a_canvas_camerapoint__SWIG_0(arg1,arg2,arg3,arg4);
7946  } catch(...) {
7947  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7948  }
7949 
7950  return TCL_OK;
7951 fail:
7952  return TCL_ERROR;
7953 }
7954 
7955 
7956 SWIGINTERN int
7957 _wrap_a_canvas_focalpoint__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7958  a_canvas *arg1 = (a_canvas *) 0 ;
7959  double arg2 ;
7960  double arg3 ;
7961  double arg4 ;
7962  void *argp1 = 0 ;
7963  int res1 = 0 ;
7964  double val2 ;
7965  int ecode2 = 0 ;
7966  double val3 ;
7967  int ecode3 = 0 ;
7968  double val4 ;
7969  int ecode4 = 0 ;
7970 
7971  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_focalpoint self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7972  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
7973  if (!SWIG_IsOK(res1)) {
7974  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_focalpoint" "', argument " "1"" of type '" "a_canvas *""'");
7975  }
7976  arg1 = reinterpret_cast< a_canvas * >(argp1);
7977  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
7978  if (!SWIG_IsOK(ecode2)) {
7979  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_focalpoint" "', argument " "2"" of type '" "double""'");
7980  }
7981  arg2 = static_cast< double >(val2);
7982  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
7983  if (!SWIG_IsOK(ecode3)) {
7984  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_focalpoint" "', argument " "3"" of type '" "double""'");
7985  }
7986  arg3 = static_cast< double >(val3);
7987  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
7988  if (!SWIG_IsOK(ecode4)) {
7989  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_canvas_focalpoint" "', argument " "4"" of type '" "double""'");
7990  }
7991  arg4 = static_cast< double >(val4);
7992  try {
7993  a_canvas_focalpoint__SWIG_0(arg1,arg2,arg3,arg4);
7994  } catch(...) {
7995  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
7996  }
7997 
7998  return TCL_OK;
7999 fail:
8000  return TCL_ERROR;
8001 }
8002 
8003 
8004 SWIGINTERN int
8005 _wrap_a_canvas_up__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8006  a_canvas *arg1 = (a_canvas *) 0 ;
8007  double arg2 ;
8008  double arg3 ;
8009  double arg4 ;
8010  void *argp1 = 0 ;
8011  int res1 = 0 ;
8012  double val2 ;
8013  int ecode2 = 0 ;
8014  double val3 ;
8015  int ecode3 = 0 ;
8016  double val4 ;
8017  int ecode4 = 0 ;
8018 
8019  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_up self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8020  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
8021  if (!SWIG_IsOK(res1)) {
8022  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_up" "', argument " "1"" of type '" "a_canvas *""'");
8023  }
8024  arg1 = reinterpret_cast< a_canvas * >(argp1);
8025  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8026  if (!SWIG_IsOK(ecode2)) {
8027  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_up" "', argument " "2"" of type '" "double""'");
8028  }
8029  arg2 = static_cast< double >(val2);
8030  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8031  if (!SWIG_IsOK(ecode3)) {
8032  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_up" "', argument " "3"" of type '" "double""'");
8033  }
8034  arg3 = static_cast< double >(val3);
8035  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
8036  if (!SWIG_IsOK(ecode4)) {
8037  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_canvas_up" "', argument " "4"" of type '" "double""'");
8038  }
8039  arg4 = static_cast< double >(val4);
8040  try {
8041  a_canvas_up__SWIG_0(arg1,arg2,arg3,arg4);
8042  } catch(...) {
8043  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
8044  }
8045 
8046  return TCL_OK;
8047 fail:
8048  return TCL_ERROR;
8049 }
8050 
8051 
8052 SWIGINTERN int
8053 _wrap_a_canvas_camerapoint__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8054  a_canvas *arg1 = (a_canvas *) 0 ;
8055  void *argp1 = 0 ;
8056  int res1 = 0 ;
8057  std::string result;
8058 
8059  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_camerapoint self ",(void *)0) == TCL_ERROR) SWIG_fail;
8060  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
8061  if (!SWIG_IsOK(res1)) {
8062  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_camerapoint" "', argument " "1"" of type '" "a_canvas *""'");
8063  }
8064  arg1 = reinterpret_cast< a_canvas * >(argp1);
8065  try {
8066  result = a_canvas_camerapoint__SWIG_1(arg1);
8067  } catch(...) {
8068  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
8069  }
8070  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
8071  return TCL_OK;
8072 fail:
8073  return TCL_ERROR;
8074 }
8075 
8076 
8077 SWIGINTERN int
8078 _wrap_a_canvas_camerapoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8079  Tcl_Obj *CONST *argv = objv+1;
8080  int argc = objc-1;
8081  if (argc == 1) {
8082  int _v;
8083  void *vptr = 0;
8084  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8085  _v = SWIG_CheckState(res);
8086  if (_v) {
8087  return _wrap_a_canvas_camerapoint__SWIG_1(clientData, interp, objc, argv - 1);
8088  }
8089  }
8090  if (argc == 4) {
8091  int _v;
8092  void *vptr = 0;
8093  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8094  _v = SWIG_CheckState(res);
8095  if (_v) {
8096  {
8097  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
8098  _v = SWIG_CheckState(res);
8099  }
8100  if (_v) {
8101  {
8102  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8103  _v = SWIG_CheckState(res);
8104  }
8105  if (_v) {
8106  {
8107  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
8108  _v = SWIG_CheckState(res);
8109  }
8110  if (_v) {
8111  return _wrap_a_canvas_camerapoint__SWIG_0(clientData, interp, objc, argv - 1);
8112  }
8113  }
8114  }
8115  }
8116  }
8117 
8118  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_camerapoint'.\n"
8119  " Possible C/C++ prototypes are:\n"
8120  " a_canvas::camerapoint(double,double,double)\n"
8121  " a_canvas::camerapoint()\n", TCL_STATIC);
8122  return TCL_ERROR;
8123 }
8124 
8125 
8126 SWIGINTERN int
8127 _wrap_a_canvas_focalpoint__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8128  a_canvas *arg1 = (a_canvas *) 0 ;
8129  void *argp1 = 0 ;
8130  int res1 = 0 ;
8131  std::string result;
8132 
8133  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_focalpoint self ",(void *)0) == TCL_ERROR) SWIG_fail;
8134  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
8135  if (!SWIG_IsOK(res1)) {
8136  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_focalpoint" "', argument " "1"" of type '" "a_canvas *""'");
8137  }
8138  arg1 = reinterpret_cast< a_canvas * >(argp1);
8139  try {
8140  result = a_canvas_focalpoint__SWIG_1(arg1);
8141  } catch(...) {
8142  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
8143  }
8144  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
8145  return TCL_OK;
8146 fail:
8147  return TCL_ERROR;
8148 }
8149 
8150 
8151 SWIGINTERN int
8152 _wrap_a_canvas_focalpoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8153  Tcl_Obj *CONST *argv = objv+1;
8154  int argc = objc-1;
8155  if (argc == 1) {
8156  int _v;
8157  void *vptr = 0;
8158  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8159  _v = SWIG_CheckState(res);
8160  if (_v) {
8161  return _wrap_a_canvas_focalpoint__SWIG_1(clientData, interp, objc, argv - 1);
8162  }
8163  }
8164  if (argc == 4) {
8165  int _v;
8166  void *vptr = 0;
8167  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8168  _v = SWIG_CheckState(res);
8169  if (_v) {
8170  {
8171  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
8172  _v = SWIG_CheckState(res);
8173  }
8174  if (_v) {
8175  {
8176  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8177  _v = SWIG_CheckState(res);
8178  }
8179  if (_v) {
8180  {
8181  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
8182  _v = SWIG_CheckState(res);
8183  }
8184  if (_v) {
8185  return _wrap_a_canvas_focalpoint__SWIG_0(clientData, interp, objc, argv - 1);
8186  }
8187  }
8188  }
8189  }
8190  }
8191 
8192  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_focalpoint'.\n"
8193  " Possible C/C++ prototypes are:\n"
8194  " a_canvas::focalpoint(double,double,double)\n"
8195  " a_canvas::focalpoint()\n", TCL_STATIC);
8196  return TCL_ERROR;
8197 }
8198 
8199 
8200 SWIGINTERN int
8201 _wrap_a_canvas_up__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8202  a_canvas *arg1 = (a_canvas *) 0 ;
8203  void *argp1 = 0 ;
8204  int res1 = 0 ;
8205  std::string result;
8206 
8207  if (SWIG_GetArgs(interp, objc, objv,"o:a_canvas_up self ",(void *)0) == TCL_ERROR) SWIG_fail;
8208  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
8209  if (!SWIG_IsOK(res1)) {
8210  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_up" "', argument " "1"" of type '" "a_canvas *""'");
8211  }
8212  arg1 = reinterpret_cast< a_canvas * >(argp1);
8213  try {
8214  result = a_canvas_up__SWIG_1(arg1);
8215  } catch(...) {
8216  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
8217  }
8218  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
8219  return TCL_OK;
8220 fail:
8221  return TCL_ERROR;
8222 }
8223 
8224 
8225 SWIGINTERN int
8226 _wrap_a_canvas_up(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8227  Tcl_Obj *CONST *argv = objv+1;
8228  int argc = objc-1;
8229  if (argc == 1) {
8230  int _v;
8231  void *vptr = 0;
8232  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8233  _v = SWIG_CheckState(res);
8234  if (_v) {
8235  return _wrap_a_canvas_up__SWIG_1(clientData, interp, objc, argv - 1);
8236  }
8237  }
8238  if (argc == 4) {
8239  int _v;
8240  void *vptr = 0;
8241  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_canvas, 0);
8242  _v = SWIG_CheckState(res);
8243  if (_v) {
8244  {
8245  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
8246  _v = SWIG_CheckState(res);
8247  }
8248  if (_v) {
8249  {
8250  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
8251  _v = SWIG_CheckState(res);
8252  }
8253  if (_v) {
8254  {
8255  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
8256  _v = SWIG_CheckState(res);
8257  }
8258  if (_v) {
8259  return _wrap_a_canvas_up__SWIG_0(clientData, interp, objc, argv - 1);
8260  }
8261  }
8262  }
8263  }
8264  }
8265 
8266  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_canvas_up'.\n"
8267  " Possible C/C++ prototypes are:\n"
8268  " a_canvas::up(double,double,double)\n"
8269  " a_canvas::up()\n", TCL_STATIC);
8270  return TCL_ERROR;
8271 }
8272 
8273 
8274 SWIGINTERN int
8275 _wrap_a_canvas_pan(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
8276  a_canvas *arg1 = (a_canvas *) 0 ;
8277  double arg2 ;
8278  double arg3 ;
8279  double arg4 ;
8280  void *argp1 = 0 ;
8281  int res1 = 0 ;
8282  double val2 ;
8283  int ecode2 = 0 ;
8284  double val3 ;
8285  int ecode3 = 0 ;
8286  double val4 ;
8287  int ecode4 = 0 ;
8288 
8289  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_canvas_pan self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
8290  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_canvas, 0 | 0 );
8291  if (!SWIG_IsOK(res1)) {
8292  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_canvas_pan" "', argument " "1"" of type '" "a_canvas *""'");
8293  }
8294  arg1 = reinterpret_cast< a_canvas * >(argp1);
8295  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
8296  if (!SWIG_IsOK(ecode2)) {
8297  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_canvas_pan" "', argument " "2"" of type '" "double""'");
8298  }
8299  arg2 = static_cast< double >(val2);
8300  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
8301  if (!SWIG_IsOK(ecode3)) {
8302  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_canvas_pan" "', argument " "3"" of type '" "double""'");
8303  }
8304  arg3 = static_cast< double >(val3);
8305  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
8306  if (!SWIG_IsOK(ecode4)) {
8307  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_canvas_pan" "', argument " "4"" of type '" "double""'");
8308  }
8309  arg4 = static_cast< double >(val4);
8310  try {
8311  a_canvas_pan(arg1,arg2,arg3,arg4);
8312  } catch(...) {
8313  SWIG_exception_fail(SWIG_RuntimeError,"unknown exception");
8314  }
8315 
8316  return TCL_OK;
8317 fail:
8318  return TCL_ERROR;
8319 }
8320 
8321 
8323 a_canvas *arg1 = (a_canvas *) obj;
8324 delete arg1;
8325 }
8327  {"clear", _wrap_a_canvas_clear},
8328  {"type", _wrap_a_canvas_type},
8329  {"name", _wrap_a_canvas_name},
8330  {"empty", _wrap_a_canvas_empty},
8331  {"straighten", _wrap_a_canvas_straighten},
8332  {"getinteract", _wrap_a_canvas_getinteract},
8333  {"render_clip", _wrap_a_canvas_render_clip},
8334  {"background", _wrap_a_canvas_background},
8335  {"pitch", _wrap_a_canvas_pitch},
8336  {"yaw", _wrap_a_canvas_yaw},
8337  {"distance0", _wrap_a_canvas_distance0},
8338  {"azimuth", _wrap_a_canvas_azimuth},
8339  {"elevation", _wrap_a_canvas_elevation},
8340  {"roll", _wrap_a_canvas_roll},
8341  {"distance", _wrap_a_canvas_distance},
8342  {"x", _wrap_a_canvas_x},
8343  {"X", _wrap_a_canvas_X},
8344  {"y", _wrap_a_canvas_y},
8345  {"Y", _wrap_a_canvas_Y},
8346  {"z", _wrap_a_canvas_z},
8347  {"Z", _wrap_a_canvas_Z},
8348  {"magnification", _wrap_a_canvas_magnification},
8349  {"scale", _wrap_a_canvas_scale},
8350  {"redraw", _wrap_a_canvas_redraw},
8351  {"fit", _wrap_a_canvas_fit},
8352  {"logfile", _wrap_a_canvas_logfile},
8353  {"object", _wrap_a_canvas_object},
8354  {"interact", _wrap_a_canvas_interact},
8355  {"size", _wrap_a_canvas_size},
8356  {"fullscreen", _wrap_a_canvas_fullscreen},
8357  {"perspective", _wrap_a_canvas_perspective},
8358  {"cursor", _wrap_a_canvas_cursor},
8359  {"light", _wrap_a_canvas_light},
8360  {"save", _wrap_a_canvas_save},
8361  {"camerapoint", _wrap_a_canvas_camerapoint},
8362  {"focalpoint", _wrap_a_canvas_focalpoint},
8363  {"up", _wrap_a_canvas_up},
8364  {"pan", _wrap_a_canvas_pan},
8365  {0,0}
8366 };
8368  {0,0,0}
8369 };
8371 static const char * swig_a_canvas_base_names[] = {0};
8373 
8375  { SWIG_prefix "new_a_element", (swig_wrapper_func) _wrap_new_a_element, NULL},
8376  { SWIG_prefix "delete_a_element", (swig_wrapper_func) _wrap_delete_a_element, NULL},
8377  { SWIG_prefix "a_element_reset", (swig_wrapper_func) _wrap_a_element_reset, NULL},
8378  { SWIG_prefix "a_element_name", (swig_wrapper_func) _wrap_a_element_name, NULL},
8379  { SWIG_prefix "a_element_help", (swig_wrapper_func) _wrap_a_element_help, NULL},
8380  { SWIG_prefix "a_element_empty", (swig_wrapper_func) _wrap_a_element_empty, NULL},
8381  { SWIG_prefix "a_element_color", (swig_wrapper_func) _wrap_a_element_color, NULL},
8382  { SWIG_prefix "a_element_R", (swig_wrapper_func) _wrap_a_element_R, NULL},
8383  { SWIG_prefix "a_element_G", (swig_wrapper_func) _wrap_a_element_G, NULL},
8384  { SWIG_prefix "a_element_B", (swig_wrapper_func) _wrap_a_element_B, NULL},
8385  { SWIG_prefix "a_element_zebra", (swig_wrapper_func) _wrap_a_element_zebra, NULL},
8386  { SWIG_prefix "a_element_greyscale", (swig_wrapper_func) _wrap_a_element_greyscale, NULL},
8387  { SWIG_prefix "a_element_steps", (swig_wrapper_func) _wrap_a_element_steps, NULL},
8388  { SWIG_prefix "a_element_thickness", (swig_wrapper_func) _wrap_a_element_thickness, NULL},
8389  { SWIG_prefix "a_element_dxfout", (swig_wrapper_func) _wrap_a_element_dxfout, NULL},
8390  { SWIG_prefix "a_element_visibility", (swig_wrapper_func) _wrap_a_element_visibility, NULL},
8391  { SWIG_prefix "a_element_isvisible", (swig_wrapper_func) _wrap_a_element_isvisible, NULL},
8392  { SWIG_prefix "a_element_isnotvisible", (swig_wrapper_func) _wrap_a_element_isnotvisible, NULL},
8393  { SWIG_prefix "a_element_opacity", (swig_wrapper_func) _wrap_a_element_opacity, NULL},
8394  { SWIG_prefix "a_element_edges", (swig_wrapper_func) _wrap_a_element_edges, NULL},
8395  { SWIG_prefix "a_element_smooth", (swig_wrapper_func) _wrap_a_element_smooth, NULL},
8396  { SWIG_prefix "a_element_image", (swig_wrapper_func) _wrap_a_element_image, NULL},
8397  { SWIG_prefix "a_element_imageon", (swig_wrapper_func) _wrap_a_element_imageon, NULL},
8398  { SWIG_prefix "a_element_imageoff", (swig_wrapper_func) _wrap_a_element_imageoff, NULL},
8399  { SWIG_prefix "a_element_open", (swig_wrapper_func) _wrap_a_element_open, NULL},
8400  { SWIG_prefix "a_element_save", (swig_wrapper_func) _wrap_a_element_save, NULL},
8401  { SWIG_prefix "a_element_save_transform", (swig_wrapper_func) _wrap_a_element_save_transform, NULL},
8402  { SWIG_prefix "a_element_open_scalars", (swig_wrapper_func) _wrap_a_element_open_scalars, NULL},
8403  { SWIG_prefix "a_element_reset_mapper_clipping", (swig_wrapper_func) _wrap_a_element_reset_mapper_clipping, NULL},
8404  { SWIG_prefix "a_element_translate", (swig_wrapper_func) _wrap_a_element_translate, NULL},
8405  { SWIG_prefix "a_element_rotate", (swig_wrapper_func) _wrap_a_element_rotate, NULL},
8406  { SWIG_prefix "a_element_small", (swig_wrapper_func) _wrap_a_element_small, NULL},
8407  { SWIG_prefix "a_element_size", (swig_wrapper_func) _wrap_a_element_size, NULL},
8408  { SWIG_prefix "a_element_minx", (swig_wrapper_func) _wrap_a_element_minx, NULL},
8409  { SWIG_prefix "a_element_maxx", (swig_wrapper_func) _wrap_a_element_maxx, NULL},
8410  { SWIG_prefix "a_element_miny", (swig_wrapper_func) _wrap_a_element_miny, NULL},
8411  { SWIG_prefix "a_element_maxy", (swig_wrapper_func) _wrap_a_element_maxy, NULL},
8412  { SWIG_prefix "a_element_minz", (swig_wrapper_func) _wrap_a_element_minz, NULL},
8413  { SWIG_prefix "a_element_maxz", (swig_wrapper_func) _wrap_a_element_maxz, NULL},
8414  { SWIG_prefix "a_element_origin", (swig_wrapper_func) _wrap_a_element_origin, NULL},
8415  { SWIG_prefix "a_element_place", (swig_wrapper_func) _wrap_a_element_place, NULL},
8416  { SWIG_prefix "a_element_orient", (swig_wrapper_func) _wrap_a_element_orient, NULL},
8417  { SWIG_prefix "a_element_scale", (swig_wrapper_func) _wrap_a_element_scale, NULL},
8418  { SWIG_prefix "a_element_center", (swig_wrapper_func) _wrap_a_element_center, NULL},
8419  { SWIG_prefix "a_element_bounds", (swig_wrapper_func) _wrap_a_element_bounds, NULL},
8420  { SWIG_prefix "a_element_relief", (swig_wrapper_func) _wrap_a_element_relief, NULL},
8422  { SWIG_prefix "new_a_axes", (swig_wrapper_func) _wrap_new_a_axes, NULL},
8423  { SWIG_prefix "delete_a_axes", (swig_wrapper_func) _wrap_delete_a_axes, NULL},
8424  { SWIG_prefix "a_axes_help", (swig_wrapper_func) _wrap_a_axes_help, NULL},
8426  { SWIG_prefix "new_a_pointcloud", (swig_wrapper_func) _wrap_new_a_pointcloud, NULL},
8427  { SWIG_prefix "delete_a_pointcloud", (swig_wrapper_func) _wrap_delete_a_pointcloud, NULL},
8428  { SWIG_prefix "a_pointcloud_help", (swig_wrapper_func) _wrap_a_pointcloud_help, NULL},
8429  { SWIG_prefix "a_pointcloud_type", (swig_wrapper_func) _wrap_a_pointcloud_type, NULL},
8430  { SWIG_prefix "a_pointcloud_np", (swig_wrapper_func) _wrap_a_pointcloud_np, NULL},
8431  { SWIG_prefix "a_pointcloud_clear", (swig_wrapper_func) _wrap_a_pointcloud_clear, NULL},
8432  { SWIG_prefix "a_pointcloud_eraselastpoint", (swig_wrapper_func) _wrap_a_pointcloud_eraselastpoint, NULL},
8433  { SWIG_prefix "a_pointcloud_dxfout", (swig_wrapper_func) _wrap_a_pointcloud_dxfout, NULL},
8434  { SWIG_prefix "a_pointcloud_append", (swig_wrapper_func) _wrap_a_pointcloud_append, NULL},
8435  { SWIG_prefix "a_pointcloud_reset_mapper_clipping", (swig_wrapper_func) _wrap_a_pointcloud_reset_mapper_clipping, NULL},
8436  { SWIG_prefix "a_pointcloud_cloud", (swig_wrapper_func) _wrap_a_pointcloud_cloud, NULL},
8437  { SWIG_prefix "a_pointcloud_point", (swig_wrapper_func) _wrap_a_pointcloud_point, NULL},
8439  { SWIG_prefix "new_a_linecloud", (swig_wrapper_func) _wrap_new_a_linecloud, NULL},
8440  { SWIG_prefix "delete_a_linecloud", (swig_wrapper_func) _wrap_delete_a_linecloud, NULL},
8441  { SWIG_prefix "a_linecloud_help", (swig_wrapper_func) _wrap_a_linecloud_help, NULL},
8442  { SWIG_prefix "a_linecloud_clear", (swig_wrapper_func) _wrap_a_linecloud_clear, NULL},
8443  { SWIG_prefix "a_linecloud_add", (swig_wrapper_func) _wrap_a_linecloud_add, NULL},
8444  { SWIG_prefix "a_linecloud_nl", (swig_wrapper_func) _wrap_a_linecloud_nl, NULL},
8445  { SWIG_prefix "a_linecloud_append", (swig_wrapper_func) _wrap_a_linecloud_append, NULL},
8446  { SWIG_prefix "a_linecloud_line", (swig_wrapper_func) _wrap_a_linecloud_line, NULL},
8448  { SWIG_prefix "new_a_trianglecloud", (swig_wrapper_func) _wrap_new_a_trianglecloud, NULL},
8449  { SWIG_prefix "delete_a_trianglecloud", (swig_wrapper_func) _wrap_delete_a_trianglecloud, NULL},
8450  { SWIG_prefix "a_trianglecloud_help", (swig_wrapper_func) _wrap_a_trianglecloud_help, NULL},
8451  { SWIG_prefix "a_trianglecloud_clear", (swig_wrapper_func) _wrap_a_trianglecloud_clear, NULL},
8452  { SWIG_prefix "a_trianglecloud_add", (swig_wrapper_func) _wrap_a_trianglecloud_add, NULL},
8453  { SWIG_prefix "a_trianglecloud_nt", (swig_wrapper_func) _wrap_a_trianglecloud_nt, NULL},
8454  { SWIG_prefix "a_trianglecloud_reset_mapper_clipping", (swig_wrapper_func) _wrap_a_trianglecloud_reset_mapper_clipping, NULL},
8455  { SWIG_prefix "a_trianglecloud_triangle", (swig_wrapper_func) _wrap_a_trianglecloud_triangle, NULL},
8457  { SWIG_prefix "new_a_image", (swig_wrapper_func) _wrap_new_a_image, NULL},
8458  { SWIG_prefix "delete_a_image", (swig_wrapper_func) _wrap_delete_a_image, NULL},
8459  { SWIG_prefix "a_image_help", (swig_wrapper_func) _wrap_a_image_help, NULL},
8460  { SWIG_prefix "a_image_type", (swig_wrapper_func) _wrap_a_image_type, NULL},
8461  { SWIG_prefix "a_image_image", (swig_wrapper_func) _wrap_a_image_image, NULL},
8462  { SWIG_prefix "a_image_pmatrix", (swig_wrapper_func) _wrap_a_image_pmatrix, NULL},
8463  { SWIG_prefix "a_image_name", (swig_wrapper_func) _wrap_a_image_name, NULL},
8465  { SWIG_prefix "new_a_canvas", (swig_wrapper_func) _wrap_new_a_canvas, NULL},
8466  { SWIG_prefix "delete_a_canvas", (swig_wrapper_func) _wrap_delete_a_canvas, NULL},
8467  { SWIG_prefix "a_canvas_clear", (swig_wrapper_func) _wrap_a_canvas_clear, NULL},
8468  { SWIG_prefix "a_canvas_help", (swig_wrapper_func) _wrap_a_canvas_help, NULL},
8469  { SWIG_prefix "a_canvas_type", (swig_wrapper_func) _wrap_a_canvas_type, NULL},
8470  { SWIG_prefix "a_canvas_name", (swig_wrapper_func) _wrap_a_canvas_name, NULL},
8471  { SWIG_prefix "a_canvas_empty", (swig_wrapper_func) _wrap_a_canvas_empty, NULL},
8472  { SWIG_prefix "a_canvas_straighten", (swig_wrapper_func) _wrap_a_canvas_straighten, NULL},
8473  { SWIG_prefix "a_canvas_getinteract", (swig_wrapper_func) _wrap_a_canvas_getinteract, NULL},
8474  { SWIG_prefix "a_canvas_render_clip", (swig_wrapper_func) _wrap_a_canvas_render_clip, NULL},
8475  { SWIG_prefix "a_canvas_background", (swig_wrapper_func) _wrap_a_canvas_background, NULL},
8476  { SWIG_prefix "a_canvas_pitch", (swig_wrapper_func) _wrap_a_canvas_pitch, NULL},
8477  { SWIG_prefix "a_canvas_yaw", (swig_wrapper_func) _wrap_a_canvas_yaw, NULL},
8478  { SWIG_prefix "a_canvas_distance0", (swig_wrapper_func) _wrap_a_canvas_distance0, NULL},
8479  { SWIG_prefix "a_canvas_azimuth", (swig_wrapper_func) _wrap_a_canvas_azimuth, NULL},
8480  { SWIG_prefix "a_canvas_elevation", (swig_wrapper_func) _wrap_a_canvas_elevation, NULL},
8481  { SWIG_prefix "a_canvas_roll", (swig_wrapper_func) _wrap_a_canvas_roll, NULL},
8482  { SWIG_prefix "a_canvas_distance", (swig_wrapper_func) _wrap_a_canvas_distance, NULL},
8483  { SWIG_prefix "a_canvas_x", (swig_wrapper_func) _wrap_a_canvas_x, NULL},
8484  { SWIG_prefix "a_canvas_X", (swig_wrapper_func) _wrap_a_canvas_X, NULL},
8485  { SWIG_prefix "a_canvas_y", (swig_wrapper_func) _wrap_a_canvas_y, NULL},
8486  { SWIG_prefix "a_canvas_Y", (swig_wrapper_func) _wrap_a_canvas_Y, NULL},
8487  { SWIG_prefix "a_canvas_z", (swig_wrapper_func) _wrap_a_canvas_z, NULL},
8488  { SWIG_prefix "a_canvas_Z", (swig_wrapper_func) _wrap_a_canvas_Z, NULL},
8489  { SWIG_prefix "a_canvas_magnification", (swig_wrapper_func) _wrap_a_canvas_magnification, NULL},
8490  { SWIG_prefix "a_canvas_scale", (swig_wrapper_func) _wrap_a_canvas_scale, NULL},
8491  { SWIG_prefix "a_canvas_redraw", (swig_wrapper_func) _wrap_a_canvas_redraw, NULL},
8492  { SWIG_prefix "a_canvas_fit", (swig_wrapper_func) _wrap_a_canvas_fit, NULL},
8493  { SWIG_prefix "a_canvas_logfile", (swig_wrapper_func) _wrap_a_canvas_logfile, NULL},
8494  { SWIG_prefix "a_canvas_object", (swig_wrapper_func) _wrap_a_canvas_object, NULL},
8495  { SWIG_prefix "a_canvas_interact", (swig_wrapper_func) _wrap_a_canvas_interact, NULL},
8496  { SWIG_prefix "a_canvas_size", (swig_wrapper_func) _wrap_a_canvas_size, NULL},
8497  { SWIG_prefix "a_canvas_fullscreen", (swig_wrapper_func) _wrap_a_canvas_fullscreen, NULL},
8498  { SWIG_prefix "a_canvas_perspective", (swig_wrapper_func) _wrap_a_canvas_perspective, NULL},
8499  { SWIG_prefix "a_canvas_cursor", (swig_wrapper_func) _wrap_a_canvas_cursor, NULL},
8500  { SWIG_prefix "a_canvas_light", (swig_wrapper_func) _wrap_a_canvas_light, NULL},
8501  { SWIG_prefix "a_canvas_save", (swig_wrapper_func) _wrap_a_canvas_save, NULL},
8502  { SWIG_prefix "a_canvas_camerapoint", (swig_wrapper_func) _wrap_a_canvas_camerapoint, NULL},
8503  { SWIG_prefix "a_canvas_focalpoint", (swig_wrapper_func) _wrap_a_canvas_focalpoint, NULL},
8504  { SWIG_prefix "a_canvas_up", (swig_wrapper_func) _wrap_a_canvas_up, NULL},
8505  { SWIG_prefix "a_canvas_pan", (swig_wrapper_func) _wrap_a_canvas_pan, NULL},
8507  {0, 0, 0}
8508 };
8509 
8511  {0,0,0,0}
8512 };
8513 
8515  {0,0,0,0,0,0}
8516 };
8517 
8518 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8519 
8520 static void *_p_a_axesTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8521  return (void *)((a_element *) ((a_axes *) x));
8522 }
8523 static void *_p_a_linecloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8524  return (void *)((a_element *) ((a_linecloud *) x));
8525 }
8526 static void *_p_a_trianglecloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8527  return (void *)((a_element *) ((a_trianglecloud *) x));
8528 }
8529 static void *_p_a_pointcloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8530  return (void *)((a_element *) ((a_pointcloud *) x));
8531 }
8532 static swig_type_info _swigt__p_a_axes = {"_p_a_axes", "a_axes *", 0, 0, (void*)&_wrap_class_a_axes, 0};
8533 static swig_type_info _swigt__p_a_canvas = {"_p_a_canvas", "a_canvas *", 0, 0, (void*)&_wrap_class_a_canvas, 0};
8534 static swig_type_info _swigt__p_a_element = {"_p_a_element", "a_element *", 0, 0, (void*)&_wrap_class_a_element, 0};
8535 static swig_type_info _swigt__p_a_image = {"_p_a_image", "a_image *", 0, 0, (void*)&_wrap_class_a_image, 0};
8536 static swig_type_info _swigt__p_a_image__file_error = {"_p_a_image__file_error", "a_image::file_error *", 0, 0, (void*)0, 0};
8537 static swig_type_info _swigt__p_a_linecloud = {"_p_a_linecloud", "a_linecloud *", 0, 0, (void*)&_wrap_class_a_linecloud, 0};
8538 static swig_type_info _swigt__p_a_point = {"_p_a_point", "a_point *", 0, 0, (void*)0, 0};
8539 static swig_type_info _swigt__p_a_pointcloud = {"_p_a_pointcloud", "a_pointcloud *", 0, 0, (void*)&_wrap_class_a_pointcloud, 0};
8540 static swig_type_info _swigt__p_a_text = {"_p_a_text", "a_text *", 0, 0, (void*)0, 0};
8541 static swig_type_info _swigt__p_a_trianglecloud = {"_p_a_trianglecloud", "a_trianglecloud *", 0, 0, (void*)&_wrap_class_a_trianglecloud, 0};
8542 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
8543 static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0};
8544 static swig_type_info _swigt__p_std__vectorT_a_point_t = {"_p_std__vectorT_a_point_t", "std::vector< a_point > *", 0, 0, (void*)0, 0};
8545 
8557  &_swigt__p_char,
8560 };
8561 
8562 static swig_cast_info _swigc__p_a_axes[] = { {&_swigt__p_a_axes, 0, 0, 0},{0, 0, 0, 0}};
8563 static swig_cast_info _swigc__p_a_canvas[] = { {&_swigt__p_a_canvas, 0, 0, 0},{0, 0, 0, 0}};
8565 static swig_cast_info _swigc__p_a_image[] = { {&_swigt__p_a_image, 0, 0, 0},{0, 0, 0, 0}};
8567 static swig_cast_info _swigc__p_a_linecloud[] = { {&_swigt__p_a_linecloud, 0, 0, 0},{0, 0, 0, 0}};
8568 static swig_cast_info _swigc__p_a_point[] = { {&_swigt__p_a_point, 0, 0, 0},{0, 0, 0, 0}};
8569 static swig_cast_info _swigc__p_a_pointcloud[] = { {&_swigt__p_a_pointcloud, 0, 0, 0},{0, 0, 0, 0}};
8570 static swig_cast_info _swigc__p_a_text[] = { {&_swigt__p_a_text, 0, 0, 0},{0, 0, 0, 0}};
8572 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
8573 static swig_cast_info _swigc__p_std__ostream[] = { {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}};
8575 
8590 };
8591 
8592 
8593 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8594 
8595 #ifdef __cplusplus
8596 }
8597 #endif
8598 /* -----------------------------------------------------------------------------
8599  * Type initialization:
8600  * This problem is tough by the requirement that no dynamic
8601  * memory is used. Also, since swig_type_info structures store pointers to
8602  * swig_cast_info structures and swig_cast_info structures store pointers back
8603  * to swig_type_info structures, we need some lookup code at initialization.
8604  * The idea is that swig generates all the structures that are needed.
8605  * The runtime then collects these partially filled structures.
8606  * The SWIG_InitializeModule function takes these initial arrays out of
8607  * swig_module, and does all the lookup, filling in the swig_module.types
8608  * array with the correct data and linking the correct swig_cast_info
8609  * structures together.
8610  *
8611  * The generated swig_type_info structures are assigned statically to an initial
8612  * array. We just loop through that array, and handle each type individually.
8613  * First we lookup if this type has been already loaded, and if so, use the
8614  * loaded structure instead of the generated one. Then we have to fill in the
8615  * cast linked list. The cast data is initially stored in something like a
8616  * two-dimensional array. Each row corresponds to a type (there are the same
8617  * number of rows as there are in the swig_type_initial array). Each entry in
8618  * a column is one of the swig_cast_info structures for that type.
8619  * The cast_initial array is actually an array of arrays, because each row has
8620  * a variable number of columns. So to actually build the cast linked list,
8621  * we find the array of casts associated with the type, and loop through it
8622  * adding the casts to the list. The one last trick we need to do is making
8623  * sure the type pointer in the swig_cast_info struct is correct.
8624  *
8625  * First off, we lookup the cast->type name to see if it is already loaded.
8626  * There are three cases to handle:
8627  * 1) If the cast->type has already been loaded AND the type we are adding
8628  * casting info to has not been loaded (it is in this module), THEN we
8629  * replace the cast->type pointer with the type pointer that has already
8630  * been loaded.
8631  * 2) If BOTH types (the one we are adding casting info to, and the
8632  * cast->type) are loaded, THEN the cast info has already been loaded by
8633  * the previous module so we just ignore it.
8634  * 3) Finally, if cast->type has not already been loaded, then we add that
8635  * swig_cast_info to the linked list (because the cast->type) pointer will
8636  * be correct.
8637  * ----------------------------------------------------------------------------- */
8638 
8639 #ifdef __cplusplus
8640 extern "C" {
8641 #if 0
8642 } /* c-mode */
8643 #endif
8644 #endif
8645 
8646 #if 0
8647 #define SWIGRUNTIME_DEBUG
8648 #endif
8649 
8650 
8651 SWIGRUNTIME void
8652 SWIG_InitializeModule(void *clientdata) {
8653  size_t i;
8654  swig_module_info *module_head, *iter;
8655  int init;
8656 
8657  /* check to see if the circular list has been setup, if not, set it up */
8658  if (swig_module.next==0) {
8659  /* Initialize the swig_module */
8663  init = 1;
8664  } else {
8665  init = 0;
8666  }
8667 
8668  /* Try and load any already created modules */
8669  module_head = SWIG_GetModule(clientdata);
8670  if (!module_head) {
8671  /* This is the first module loaded for this interpreter */
8672  /* so set the swig module into the interpreter */
8673  SWIG_SetModule(clientdata, &swig_module);
8674  } else {
8675  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
8676  iter=module_head;
8677  do {
8678  if (iter==&swig_module) {
8679  /* Our module is already in the list, so there's nothing more to do. */
8680  return;
8681  }
8682  iter=iter->next;
8683  } while (iter!= module_head);
8684 
8685  /* otherwise we must add our module into the list */
8686  swig_module.next = module_head->next;
8687  module_head->next = &swig_module;
8688  }
8689 
8690  /* When multiple interpreters are used, a module could have already been initialized in
8691  a different interpreter, but not yet have a pointer in this interpreter.
8692  In this case, we do not want to continue adding types... everything should be
8693  set up already */
8694  if (init == 0) return;
8695 
8696  /* Now work on filling in swig_module.types */
8697 #ifdef SWIGRUNTIME_DEBUG
8698  printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
8699 #endif
8700  for (i = 0; i < swig_module.size; ++i) {
8701  swig_type_info *type = 0;
8702  swig_type_info *ret;
8703  swig_cast_info *cast;
8704 
8705 #ifdef SWIGRUNTIME_DEBUG
8706  printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
8707 #endif
8708 
8709  /* if there is another module already loaded */
8710  if (swig_module.next != &swig_module) {
8712  }
8713  if (type) {
8714  /* Overwrite clientdata field */
8715 #ifdef SWIGRUNTIME_DEBUG
8716  printf("SWIG_InitializeModule: found type %s\n", type->name);
8717 #endif
8720 #ifdef SWIGRUNTIME_DEBUG
8721  printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8722 #endif
8723  }
8724  } else {
8725  type = swig_module.type_initial[i];
8726  }
8727 
8728  /* Insert casting types */
8729  cast = swig_module.cast_initial[i];
8730  while (cast->type) {
8731  /* Don't need to add information already in the list */
8732  ret = 0;
8733 #ifdef SWIGRUNTIME_DEBUG
8734  printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8735 #endif
8736  if (swig_module.next != &swig_module) {
8738 #ifdef SWIGRUNTIME_DEBUG
8739  if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8740 #endif
8741  }
8742  if (ret) {
8743  if (type == swig_module.type_initial[i]) {
8744 #ifdef SWIGRUNTIME_DEBUG
8745  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8746 #endif
8747  cast->type = ret;
8748  ret = 0;
8749  } else {
8750  /* Check for casting already in the list */
8751  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8752 #ifdef SWIGRUNTIME_DEBUG
8753  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8754 #endif
8755  if (!ocast) ret = 0;
8756  }
8757  }
8758 
8759  if (!ret) {
8760 #ifdef SWIGRUNTIME_DEBUG
8761  printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8762 #endif
8763  if (type->cast) {
8764  type->cast->prev = cast;
8765  cast->next = type->cast;
8766  }
8767  type->cast = cast;
8768  }
8769  cast++;
8770  }
8771  /* Set entry in modules->types array equal to the type */
8772  swig_module.types[i] = type;
8773  }
8774  swig_module.types[i] = 0;
8775 
8776 #ifdef SWIGRUNTIME_DEBUG
8777  printf("**** SWIG_InitializeModule: Cast List ******\n");
8778  for (i = 0; i < swig_module.size; ++i) {
8779  int j = 0;
8781  printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
8782  while (cast->type) {
8783  printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8784  cast++;
8785  ++j;
8786  }
8787  printf("---- Total casts: %d\n",j);
8788  }
8789  printf("**** SWIG_InitializeModule: Cast List ******\n");
8790 #endif
8791 }
8792 
8793 /* This function will propagate the clientdata field of type to
8794 * any new swig_type_info structures that have been added into the list
8795 * of equivalent types. It is like calling
8796 * SWIG_TypeClientData(type, clientdata) a second time.
8797 */
8798 SWIGRUNTIME void
8800  size_t i;
8801  swig_cast_info *equiv;
8802  static int init_run = 0;
8803 
8804  if (init_run) return;
8805  init_run = 1;
8806 
8807  for (i = 0; i < swig_module.size; i++) {
8808  if (swig_module.types[i]->clientdata) {
8809  equiv = swig_module.types[i]->cast;
8810  while (equiv) {
8811  if (!equiv->converter) {
8812  if (equiv->type && !equiv->type->clientdata)
8814  }
8815  equiv = equiv->next;
8816  }
8817  }
8818  }
8819 }
8820 
8821 #ifdef __cplusplus
8822 #if 0
8823 {
8824  /* c-mode */
8825 #endif
8826 }
8827 #endif
8828 
8829 
8830 #ifdef __cplusplus
8831 extern "C" {
8832 #endif
8833 
8834  /* -----------------------------------------------------------------------------
8835  * constants/methods manipulation
8836  * ----------------------------------------------------------------------------- */
8837 
8838  /* Install Constants */
8839 
8840  SWIGINTERN void
8841  SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[]) {
8842  size_t i;
8843  Tcl_Obj *obj;
8844 
8845  if (!swigconstTableinit) {
8846  Tcl_InitHashTable(&swigconstTable, TCL_STRING_KEYS);
8847  swigconstTableinit = 1;
8848  }
8849  for (i = 0; constants[i].type; i++) {
8850  switch(constants[i].type) {
8851  case SWIG_TCL_POINTER:
8852  obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
8853  break;
8854  case SWIG_TCL_BINARY:
8855  obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
8856  break;
8857  default:
8858  obj = 0;
8859  break;
8860  }
8861  if (obj) {
8862  SWIG_Tcl_SetConstantObj(interp, constants[i].name, obj);
8863  }
8864  }
8865  }
8866 
8867  /* Create fast method lookup tables */
8868 
8869  SWIGINTERN void
8871  size_t i;
8872 
8873  for (i = 0; i < swig_module.size; ++i) {
8875  if (type->clientdata) {
8876  swig_class* klass = (swig_class*) type->clientdata;
8877  swig_method* meth;
8878  Tcl_InitHashTable(&(klass->hashtable), TCL_STRING_KEYS);
8879  for (meth = klass->methods; meth && meth->name; ++meth) {
8880  int newEntry;
8881  Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->hashtable), meth->name, &newEntry);
8882  Tcl_SetHashValue(hashentry, (ClientData)meth->method);
8883  }
8884  }
8885  }
8886  }
8887 
8888 #ifdef __cplusplus
8889 }
8890 #endif
8891 
8892 /* -----------------------------------------------------------------------------*
8893  * Partial Init method
8894  * -----------------------------------------------------------------------------*/
8895 
8896 SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
8897  size_t i;
8898  if (interp == 0) return TCL_ERROR;
8899 #ifdef USE_TCL_STUBS
8900  /* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */
8901  if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
8902  return TCL_ERROR;
8903  }
8904 #endif
8905 #ifdef USE_TK_STUBS
8906  /* (char*) cast is required to avoid compiler warning/error. */
8907  if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
8908  return TCL_ERROR;
8909  }
8910 #endif
8911 
8912  Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version);
8913 
8914 #ifdef SWIG_namespace
8915  Tcl_Eval(interp, "namespace eval " SWIG_namespace " { }");
8916 #endif
8917 
8918  SWIG_InitializeModule((void *) interp);
8920 
8921  for (i = 0; swig_commands[i].name; i++) {
8922  Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
8923  swig_commands[i].clientdata, NULL);
8924  }
8925  for (i = 0; swig_variables[i].name; i++) {
8926  Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
8927  Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY,
8928  (Tcl_VarTraceProc *) swig_variables[i].get, (ClientData) swig_variables[i].addr);
8929  Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY,
8930  (Tcl_VarTraceProc *) swig_variables[i].set, (ClientData) swig_variables[i].addr);
8931  }
8932 
8935 
8936 
8937 
8938  printf("Points&forces a_canvas module.\n");
8939  printf("Type a_canvas_help for an introduction.\n");
8940 
8941  return TCL_OK;
8942 }
8943 SWIGEXPORT int A_canvas_SafeInit(Tcl_Interp *interp) {
8944  return SWIG_init(interp);
8945 }
8946 
#define SWIGTYPE_p_std__vectorT_a_point_t
SWIGINTERN int _wrap_a_canvas_pan(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_isnotvisible(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static const char * swig_a_axes_base_names[]
SWIGINTERN int _wrap_a_element_small__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
static swig_var_info swig_variables[]
SWIGINTERN int _wrap_a_element_B__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERNINLINE Tcl_Obj * SWIG_From_std_string(const std::string &s)
SWIGINTERN int _wrap_a_element_origin__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info * swig_cast_initial[]
SWIGINTERN void a_linecloud_line__SWIG_1(a_linecloud *self, double x1, double y1, double z1, double x2, double y2, double z2)
SWIGINTERN int _wrap_a_canvas_elevation__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN std::string a_element_origin__SWIG_1(a_element const *self)
SWIGINTERN int _wrap_a_pointcloud_np(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_trianglecloud
SWIGINTERN int _wrap_a_pointcloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_image_attributes[]
SWIGRUNTIME int SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_perspective(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_element_bases[]
#define SWIGTYPE_p_a_element
SWIGINTERN int _wrap_a_linecloud_line(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_trianglecloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_size__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pointcloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_object__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_fit(a_canvas *self)
SWIGINTERN int _wrap_a_canvas_scale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN int _wrap_new_a_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MakePtr(c, ptr, ty, flags)
static const char * swig_a_pointcloud_base_names[]
SWIGINTERN std::string a_canvas_up__SWIG_1(a_canvas *self)
SWIGINTERN void a_canvas_up__SWIG_0(a_canvas *self, double x, double y, double z)
SWIGINTERN int _wrap_a_element_R__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_isvisible(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_pointcloud(void *obj)
SWIGINTERN void SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[])
#define SWIG_TypeQuery(name)
static swig_attribute swig_a_trianglecloud_attributes[]
SWIGINTERN int _wrap_a_element_greyscale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_POINTER_OWN
static swig_const_info swig_constants[]
SWIGINTERN int _wrap_a_canvas_object__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_canvas(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_linecloud_line__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_translate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_linecloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_SyntaxError
#define SWIG_ConvertPtr(oc, ptr, ty, flags)
SWIGINTERN int _wrap_a_canvas_interact__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_linecloud__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_place(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_CheckState(r)
SWIGINTERN int _wrap_a_canvas_object__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_image__file_error[]
SWIGINTERN int _wrap_a_element_maxy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_axes[]
SWIGRUNTIME void SWIG_Tcl_Acquire(void *ptr)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN int _wrap_a_element_edges(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_pointcloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN void a_canvas_logfile__SWIG_1(a_canvas *self, a_text &text)
SWIGINTERN int _wrap_a_trianglecloud_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_BUFFER_SIZE
SWIGINTERN int _wrap_a_canvas_object__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_instance swig_instance
SWIGINTERN int _wrap_a_element_maxx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_TypeError
SWIGINTERN int _wrap_a_canvas_scale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_distance0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_trianglecloud__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERNINLINE void SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char *mesg)
SWIGINTERN void a_linecloud_line__SWIG_0(a_linecloud *self, a_point const &p1, a_point const &p2)
SWIGINTERN int _wrap_a_canvas_interact(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
struct swig_cast_info swig_cast_info
SWIGINTERN int _wrap_a_element_reset(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_init
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type)
SWIGRUNTIME int SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[])
SWIGINTERN int _wrap_a_element_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_save(a_canvas *self, std::string const &code, std::string const &file)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
static swig_attribute swig_a_axes_attributes[]
SWIGINTERN int _wrap_a_element_scale__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_B__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_linecloud_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_orient__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_object__SWIG_3(a_canvas *self, std::string const &code, std::string const &mesh, std::string const &points)
SWIGINTERN int _wrap_a_element_relief(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_trianglecloud_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
SWIGINTERN int _wrap_a_canvas_logfile__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_RuntimeError
#define SWIG_GetArgs
SWIGINTERN int _wrap_new_a_pointcloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_image(void *obj)
SWIGINTERN int _wrap_delete_a_axes(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_command_info swig_commands[]
SWIGINTERN int _wrap_a_element_B(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_trianglecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pointcloud_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_distance__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_image__file_error
SWIGINTERN int _wrap_a_canvas_clear(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_bounds(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_pointcloud
SWIGINTERN int _wrap_a_canvas_size__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_interact__SWIG_1(a_canvas *self, std::string const &code)
SWIGINTERN int _wrap_a_canvas_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
int(* swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN int _wrap_a_image_pmatrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_axes_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_std__vectorT_a_point_t
SWIGINTERN int _wrap_new_a_linecloud__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN const char * SWIG_Tcl_ErrorType(int code)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGINTERN int _wrap_a_pointcloud_cloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static const char * swig_a_element_base_names[]
#define SWIGRUNTIME
static const char * swig_a_linecloud_base_names[]
static swig_method swig_a_element_methods[]
static swig_type_info * swig_types[14]
SWIGINTERN void swig_delete_a_linecloud(void *obj)
SWIGINTERN int _wrap_a_canvas_background(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class _wrap_class_a_pointcloud
SWIGINTERN int _wrap_a_linecloud_nl(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int SWIG_AsCharPtrAndSize(Tcl_Obj *obj, char **cptr, size_t *psize, int *alloc)
#define SWIG_version
#define SWIG_RUNTIME_VERSION
SWIGINTERN std::string a_canvas_camerapoint__SWIG_1(a_canvas *self)
SWIGINTERN void a_trianglecloud_triangle__SWIG_0(a_trianglecloud *self, a_point const &p1, a_point const &p2, a_point const &p3)
static const char * swig_a_image_base_names[]
SWIGINTERN int _wrap_a_canvas_Z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
SWIGINTERN int _wrap_a_canvas_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_OLDOBJ
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
static Tcl_HashTable swigconstTable
static swig_class _wrap_class_a_element
#define SWIG_MethodCommand
#define SWIG_ValueError
SWIGRUNTIME int SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt,...)
SWIGINTERNINLINE Tcl_Obj * SWIG_From_int(int value)
SWIGINTERN int _wrap_a_canvas_cursor(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_trianglecloud_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_AddCast(r)
SWIGINTERN int _wrap_a_canvas_save(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_up(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_axesTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_element_scale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_std__ostream[]
#define SWIG_IsNewObj(r)
SWIGINTERN int _wrap_a_canvas_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_pointcloud
static swig_attribute swig_a_pointcloud_attributes[]
#define SWIG_exception_fail(code, msg)
static swig_class _wrap_class_a_image
SWIGINTERN int _wrap_a_canvas_scale(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_linecloud_attributes[]
static const char * swig_a_canvas_base_names[]
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int _wrap_delete_a_pointcloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_render_clip(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_AttributeError
SWIGINTERN int _wrap_a_element_origin(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_object__SWIG_2(a_canvas *self, std::string const &code, std::string const &name)
SWIGINTERN int _wrap_a_element_G__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_module_info swig_module
SWIGINTERN int _wrap_a_element_miny(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_interact__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_std__vectorT_a_point_t[]
SWIGINTERN int _wrap_a_element_orient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pointcloud_point__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_canvas_attributes[]
SWIGINTERN int _wrap_a_canvas_azimuth__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_trianglecloud_triangle__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN std::string a_element_bounds(a_element const *self)
SWIGINTERN int _wrap_a_pointcloud_point__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_redraw(a_canvas *self)
SWIGINTERN int _wrap_a_element_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_SetModule(clientdata, pointer)
SWIGINTERN int _wrap_a_element_small(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
SWIGINTERN int _wrap_a_element_scale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_element(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGUNUSEDPARM(p)
static swig_type_info _swigt__p_a_linecloud
SWIGINTERN int _wrap_a_canvas_camerapoint__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_perspective(a_canvas *self, std::string const &code)
SWIGINTERN int _wrap_a_trianglecloud_nt(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_empty(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_image_name__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_linecloud_append(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_roll__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_class swig_class
#define SWIG_as_voidptr(a)
SWIGINTERN int _wrap_a_element_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGUNUSED
SWIGINTERN int _wrap_a_element_steps__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pointcloud_point(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME void SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIMEINLINE int SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags)
SWIGINTERN int _wrap_a_element_orient__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_axes(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_const_info swig_const_info
SWIGINTERN int _wrap_a_element_empty__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_R(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pointcloud_eraselastpoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_up__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_pointcloud_bases[]
SWIGINTERN void a_element_relief(a_element *self, double const x1, double const y1, double const z1, double const x2, double const y2, double const z2)
SWIGINTERN int _wrap_a_element_minx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_image_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_Thisown(void *ptr)
SWIGINTERN int _wrap_a_element_place__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_pointcloud_methods[]
SWIGINTERN int _wrap_a_element_minz(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_InitializeModule(void *clientdata)
SWIGINTERN std::string a_canvas_size__SWIG_1(a_canvas *self)
static swig_class _wrap_class_a_axes
SWIGINTERN int _wrap_a_element_imageon(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
static swig_type_info _swigt__p_a_point
SWIGINTERN void SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char *name, Tcl_Obj *obj)
#define SWIGTYPE_p_a_canvas
SWIGINTERN int _wrap_a_element_dxfout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_element[]
SWIGINTERN int _wrap_a_element_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_linecloud_bases[]
SWIGRUNTIMEINLINE Tcl_Obj * SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags)
SWIGINTERN void a_canvas_fullscreen(a_canvas *self, std::string const &code)
static swig_class _wrap_class_a_canvas
static const char * swig_a_trianglecloud_base_names[]
static swig_method swig_a_image_methods[]
SWIGINTERN int _wrap_a_trianglecloud_triangle__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_steps(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_text
static swig_cast_info _swigc__p_a_canvas[]
static swig_cast_info _swigc__p_char[]
SWIGINTERN int _wrap_a_element_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_color(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
static swig_cast_info _swigc__p_a_text[]
SWIGINTERN int _wrap_a_canvas_azimuth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_fit(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_open_scalars(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_zebra(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_camerapoint__SWIG_0(a_canvas *self, double x, double y, double z)
#define SWIGINTERN
#define SWIGTYPE_p_a_linecloud
SWIGINTERN int _wrap_a_canvas_camerapoint__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_thickness(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_From_double
SWIGINTERN int _wrap_a_canvas_getinteract(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_trianglecloud
SWIGINTERN int _wrap_new_a_element(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGEXPORT int A_canvas_SafeInit(Tcl_Interp *interp)
#define SWIG_ArgError(r)
SWIGINTERN int _wrap_a_pointcloud_append(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_canvas_methods[]
SWIGINTERN int _wrap_a_image_name__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGINTERN int _wrap_new_a_canvas(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_Thisown(ptr)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGINTERN int _wrap_a_canvas_elevation__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_steps__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_trianglecloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory))
void *(* swig_converter_func)(void *, int *)
static swig_cast_info _swigc__p_a_image[]
#define SWIG_POINTER_NO_NULL
SWIGINTERN int _wrap_a_element_open(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_empty__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_std__ostream
SWIGINTERN int _wrap_a_canvas_empty__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_IOError
SWIGINTERN int _wrap_a_element_save_transform(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags)
SWIGINTERN int _wrap_a_element_small__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_element
#define SWIG_NullReferenceError
SWIGINTERN int _wrap_a_canvas_elevation(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_axes
static swig_class * swig_a_image_bases[]
SWIGINTERN int _wrap_a_pointcloud_dxfout(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_yaw(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_POINTER_DISOWN
struct swig_type_info swig_type_info
SWIGINTERN int _wrap_a_pointcloud_type(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_trianglecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_focalpoint__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_image_name(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_G(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME char * SWIG_Tcl_PointerTypeFromString(char *c)
static swig_type_info _swigt__p_a_canvas
SWIGINTERN int _wrap_a_element_imageoff(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class _wrap_class_a_linecloud
SWIGINTERN int _wrap_a_linecloud_add(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_From_bool
#define SWIG_NEWOBJ
static swig_class * swig_a_canvas_bases[]
SWIGINTERN void swig_delete_a_element(void *obj)
SWIGRUNTIME int SWIG_Tcl_Disown(void *ptr)
SWIGINTERN int _wrap_a_element_center(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_element_attributes[]
#define SWIG_ObjectDelete
static void * _p_a_linecloudTo_p_a_element(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_class * swig_a_axes_bases[]
#define SWIG_NewPackedObj(ptr, sz, type)
SWIGINTERN void a_pointcloud_point__SWIG_1(a_pointcloud *self, a_point const &p)
SWIGINTERN int _wrap_a_canvas_roll__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_G__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_GetModule(clientdata)
SWIGINTERN int _wrap_a_canvas_up__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_fail
SWIGINTERN std::string a_canvas_focalpoint__SWIG_1(a_canvas *self)
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGINTERN int _wrap_a_canvas_distance__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_linecloud_line__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_fullscreen(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
static swig_cast_info _swigc__p_a_point[]
SWIGINTERN Tcl_Obj * SWIG_Tcl_GetConstantObj(const char *key)
SWIGINTERN std::string a_element_scale__SWIG_2(a_element const *self)
SWIGINTERN int _wrap_a_canvas_azimuth__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_linecloud_methods[]
#define SWIGTYPE_p_a_point
SWIGINTERN int _wrap_a_element_place__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_trianglecloud(void *obj)
SWIGINTERNINLINE Tcl_Obj * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
SWIGINTERN int _wrap_a_element_origin__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_pitch(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_roll(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_TYPE_TABLE_NAME
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int _wrap_a_canvas_straighten(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_pointcloud_point__SWIG_0(a_pointcloud *self, double x, double y, double z)
SWIGRUNTIME swig_module_info * SWIG_Tcl_GetModule(Tcl_Interp *interp)
SWIGINTERN int _wrap_a_canvas_focalpoint__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_redraw(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_module_info swig_module_info
#define SWIG_TCL_POINTER
static swig_cast_info _swigc__p_a_linecloud[]
#define SWIG_Acquire(ptr)
static swig_method swig_a_axes_methods[]
SWIGINTERN std::string a_element_place__SWIG_1(a_element const *self)
static swig_cast_info _swigc__p_a_pointcloud[]
SWIGRUNTIME void SWIG_Tcl_ObjectDelete(ClientData clientData)
SWIGINTERN int _wrap_a_image_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_focalpoint__SWIG_0(a_canvas *self, double x, double y, double z)
#define SWIG_ERROR
#define SWIG_TCL_HASHTABLE_INIT
SWIGINTERN int _wrap_a_element_greyscale__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_name
SWIGRUNTIME int SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp), Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty)
SWIGINTERN int _wrap_a_canvas_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_magnification(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_ObjectConstructor
SWIGINTERN int _wrap_a_element_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NewInstanceObj(thisvalue, type, flags)
SWIGINTERN int _wrap_a_element_smooth(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_Disown(ptr)
SWIGINTERN int _wrap_a_element_greyscale__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_trianglecloud__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info * swig_type_initial[]
SWIGINTERN int _wrap_a_element_maxz(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_empty__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_trianglecloud_bases[]
SWIGINTERN int _wrap_a_canvas_logfile__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_cursor(a_canvas *self, std::string const &code)
#define SWIGTYPE_p_std__ostream
SWIGINTERN int _wrap_a_element_reset_mapper_clipping(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static int swigconstTableinit
struct swig_attribute swig_attribute
SWIGINTERN int _wrap_a_element_opacity(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void a_canvas_light(a_canvas *self, std::string const &code)
void(* swig_delete_func)(ClientData)
SWIGRUNTIME Tcl_HashTable * SWIG_Tcl_ObjectTable(void)
SWIGRUNTIME int SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags)
SWIGINTERN std::string const a_canvas_object__SWIG_0(a_canvas *self, std::string const &code)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
static swig_type_info _swigt__p_a_axes
#define SWIGTYPE_p_a_text
SWIGINTERN int _wrap_a_element_thickness__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MemoryError
SWIGINTERN int _wrap_a_element_visibility(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_light(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_linecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
#define SWIG_SystemError
#define SWIG_DivisionByZero
SWIGINTERN std::string a_element_orient__SWIG_1(a_element const *self)
SWIGINTERN void swig_delete_a_canvas(void *obj)
SWIGINTERN int _wrap_a_canvas_camerapoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_char
struct swig_method swig_method
static swig_class _wrap_class_a_trianglecloud
#define SWIG_TCL_DECL_ARGS_2(arg1, arg2)
SWIGINTERN void a_canvas_pan(a_canvas *self, double x, double y, double z)
SWIGINTERN int _wrap_a_canvas_focalpoint(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_OverflowError
static swig_method swig_a_trianglecloud_methods[]
SWIGINTERN int _wrap_a_image_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGEXPORT
#define SWIG_IsOK(r)
int(* swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN int _wrap_a_trianglecloud_triangle(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERNINLINE Tcl_Obj * SWIG_From_long(long value)
SWIGRUNTIME void SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags))
struct swig_type_info *(* swig_dycast_func)(void **)
#define SWIG_TCL_CALL_ARGS_2(arg1, arg2)
#define SWIG_IndexError
SWIGINTERN void SWIG_Tcl_InstallMethodLookupTables(void)
#define SWIG_TCL_STUBS_VERSION
#define SWIG_prefix
SWIGINTERN int _wrap_a_canvas_object(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_distance(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_canvas_logfile(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_image(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_linecloud(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_image
#define SWIG_TCL_BINARY
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
SWIGINTERN int _wrap_a_element_save(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_trianglecloud[]
SWIGINTERN std::string a_element_center(a_element const *self)
#define SWIG_OK
SWIGINTERN void a_canvas_object__SWIG_1(a_canvas *self, std::string const &code, a_element &l)
SWIGINTERN int _wrap_a_element_R__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_axes(void *obj)
#define SWIGINTERNINLINE
static swig_type_info _swigt__p_a_image
SWIGINTERN void a_trianglecloud_triangle__SWIG_1(a_trianglecloud *self, double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3)
#define SWIGTYPE_p_a_image__file_error
SWIGINTERN int _wrap_a_canvas_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_element_thickness__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGRUNTIMEINLINE
a_mat_sq x2(3)
layer used by screen to draw vector graphics
Definition: a_axes.h:30
static const std::string help()
Definition: a_axes.cxx:54
a vtk screen
Definition: a_canvas.h:40
void logfile(a_text &text)
Definition: a_canvas.cxx:245
static const std::string help()
Definition: a_canvas.cxx:68
virtual std::string type() const
Definition: a_canvas.h:45
void name(const std::string &name)
Definition: a_canvas.cxx:236
layer used by screen to draw vector graphics
Definition: a_element.h:39
void name(std::string &aname)
Definition: a_element.h:49
static const std::string help()
Definition: a_element.cxx:66
virtual std::string type() const
Definition: a_image.h:38
void name(std::string aname)
Definition: a_image.h:43
static const std::string help()
Definition: a_image.cxx:57
layer used by screen to draw vector graphics
Definition: a_linecloud.h:30
static const std::string help()
Definition: a_linecloud.cxx:59
layer used by screen to draw vector graphics
Definition: a_pointcloud.h:32
std::vector< a_point > cloud() const
virtual std::string type() const
Definition: a_pointcloud.h:38
static const std::string help()
layer used by screen to draw vector graphics
static const std::string help()
double v(const uint32_t step, const uint32_t n)
Definition: generate.cxx:42
std::string name
Definition: pixelpos.cxx:77
Definition: stlb2stla.cxx:21
swig_wrapper setmethod
swig_wrapper getmethod
swig_type_info * type
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
swig_method * methods
swig_type_info ** type
Tcl_HashTable hashtable
struct swig_class ** bases
swig_module_info * module
const char * name
void(* destructor)(void *)
swig_wrapper constructor
swig_attribute * attributes
const char ** base_names
swig_type_info ** ptype
swig_class * classptr
const char * name
swig_wrapper method
swig_type_info ** types
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
swig_dycast_func dcast
struct swig_cast_info * cast
bool smooth
Definition: view_li.cxx:82