10#define SWIG_VERSION 0x040401
12#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
13#define SWIG_LUA_MODULE_GLOBAL
21#ifndef SWIGTEMPLATEDISAMBIGUATOR
22# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
23# define SWIGTEMPLATEDISAMBIGUATOR template
24# elif defined(__HP_aCC)
27# define SWIGTEMPLATEDISAMBIGUATOR template
29# define SWIGTEMPLATEDISAMBIGUATOR
35# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
36# define SWIGINLINE inline
45# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
46# define SWIGUNUSED __attribute__ ((__unused__))
51# define SWIGUNUSED __attribute__ ((__unused__))
57#ifndef SWIG_MSC_UNSUPPRESS_4505
59# pragma warning(disable : 4505)
65# define SWIGUNUSEDPARM(p)
67# define SWIGUNUSEDPARM(p) p SWIGUNUSED
73# define SWIGINTERN static SWIGUNUSED
77#ifndef SWIGINTERNINLINE
78# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
83# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
84# ifndef GCC_HASCLASSVISIBILITY
85# define GCC_HASCLASSVISIBILITY
91# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
92# if defined(STATIC_LINKED)
95# define SWIGEXPORT __declspec(dllexport)
98# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
99# define SWIGEXPORT __attribute__ ((visibility("default")))
108# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
109# define SWIGSTDCALL __stdcall
116#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
117# define _CRT_SECURE_NO_DEPRECATE
121#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
122# define _SCL_SECURE_NO_DEPRECATE
126#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
127# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
135#ifdef __INTEL_COMPILER
136# pragma warning disable 592
139#if defined(__cplusplus) && __cplusplus >=201103L
140# define SWIG_NOEXCEPT noexcept
142# define SWIG_NOEXCEPT throw()
158#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
159 (defined __cplusplus && __cplusplus >= 201103L) || \
160 defined SWIG_HAVE_SNPRINTF) && \
161 !defined SWIG_NO_SNPRINTF
162# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
163# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
169# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
170# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
182#define SWIG_RUNTIME_VERSION "5"
185#ifdef SWIG_TYPE_TABLE
186# define SWIG_QUOTE_STRING(x) #x
187# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
188# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
190# define SWIG_TYPE_TABLE_NAME
203# define SWIGRUNTIME SWIGINTERN
206#ifndef SWIGRUNTIMEINLINE
207# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
211#ifndef SWIG_BUFFER_SIZE
212# define SWIG_BUFFER_SIZE 1024
216#define SWIG_POINTER_DISOWN 0x1
217#define SWIG_CAST_NEW_MEMORY 0x2
218#define SWIG_POINTER_NO_NULL 0x4
219#define SWIG_POINTER_CLEAR 0x8
220#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
223#define SWIG_POINTER_OWN 0x1
307#define SWIG_ERROR (-1)
311#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
313#define SWIG_IsOK(r) (r >= 0)
314#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
317#define SWIG_CASTRANKLIMIT (1 << 8)
319#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
321#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
323#define SWIG_BADOBJ (SWIG_ERROR)
324#define SWIG_OLDOBJ (SWIG_OK)
325#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
326#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
328#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
329#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
330#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
331#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
332#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
333#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
336#if defined(SWIG_CASTRANK_MODE)
337# ifndef SWIG_TypeRank
338# define SWIG_TypeRank unsigned long
340# ifndef SWIG_MAXCASTRANK
341# define SWIG_MAXCASTRANK (2)
343# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
344# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
349 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
352# define SWIG_AddCast(r) (r)
353# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
363typedef void *(*swig_converter_func)(
void *,
int *);
405 const char *f2,
const char *l2) {
406 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
407 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
408 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
409 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
411 return (
int)((l1 - f1) - (l2 - f2));
421 const char* te = tb + strlen(tb);
423 while (equiv != 0 && *ne) {
424 for (nb = ne; *ne; ++ne) {
425 if (*ne ==
'|')
break;
446 const unsigned char *data = (
const unsigned char *)str;
447 unsigned int hash = len, i = 0, k;
450 while (rem >= (
int)
sizeof(
unsigned int)) {
451 memcpy(&k, data,
sizeof(
unsigned int));
455 data +=
sizeof(
unsigned int);
456 rem -=
sizeof(
unsigned int);
460 case 3: k = (
unsigned int)(data[2]) << 16;
461 k |= (
unsigned int)(data[1]) << 8;
462 k |= (
unsigned int)(data[0]);
467 case 2: k = (
unsigned int)(data[1]) << 8;
468 k |= (
unsigned int)(data[0]);
473 case 1: k = (
unsigned int)(data[0]);
487 static const unsigned int scan_threshold = 4;
490 unsigned int hash_value = 0;
495 if (strcmp(
head->type->name, c) == 0) {
506 if (
head->value < scan_threshold) {
507 for (iter = first; iter <= last; iter++) {
508 if (strcmp(iter->
type->
name, c) == 0) {
515 hash_value =
SWIG_Hash(c, (
unsigned int)strlen(c));
522 iter = first + ((last - first) >> 1);
523 if (iter->
value < hash_value) {
525 }
else if (iter->
value == hash_value) {
532 for (last = iter + 1; last->
next && last->
value == hash_value; last++) {
537 for (first = iter - 1; first !=
head && first->
value == hash_value; first--) {
545 }
while (first <= last);
562 if (
head->type == from) {
573 iter = first + ((last - first) >> 1);
574 if (iter->
type < from) {
576 }
else if (iter->
type == from) {
580 }
while (first <= last);
602 if (!ty || !ty->
dcast)
return ty;
603 while (ty && (ty->
dcast)) {
604 ty = (*ty->
dcast)(ptr);
628 if (!type)
return NULL;
629 if (type->str != NULL) {
630 const char *last_name = type->str;
632 for (s = type->str; *s; s++)
633 if (*s ==
'|') last_name = s+1;
651 for (cast =
head; (cast -
head) <=
head->value; cast++) {
685 size_t r = iter->
size - 1;
688 size_t i = (l + r) >> 1;
689 const char *iname = iter->
types[i]->
name;
691 int compare = strcmp(
name, iname);
693 return iter->
types[i];
694 }
else if (compare < 0) {
700 }
else if (compare > 0) {
709 }
while (iter != end);
736 for (; i < iter->
size; ++i) {
738 return iter->
types[i];
741 }
while (iter != end);
753 static const char hex[17] =
"0123456789abcdef";
754 const unsigned char *u = (
unsigned char *) ptr;
755 const unsigned char *eu = u + sz;
756 for (; u != eu; ++u) {
757 unsigned char uu = *u;
758 *(c++) = hex[(uu & 0xf0) >> 4];
759 *(c++) = hex[uu & 0xf];
769 unsigned char *u = (
unsigned char *) ptr;
770 const unsigned char *eu = u + sz;
771 for (; u != eu; ++u) {
774 if ((d >=
'0') && (d <=
'9'))
775 uu = (
unsigned char)((d -
'0') << 4);
776 else if ((d >=
'a') && (d <=
'f'))
777 uu = (
unsigned char)((d - (
'a'-10)) << 4);
781 if ((d >=
'0') && (d <=
'9'))
782 uu |= (
unsigned char)(d -
'0');
783 else if ((d >=
'a') && (d <=
'f'))
784 uu |= (
unsigned char)(d - (
'a'-10));
798 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
801 if (strlen(
name) + 1 > (bsz - (r - buff)))
return 0;
809 if (strcmp(c,
"NULL") == 0) {
822 size_t lname = (
name ? strlen(
name) : 0);
823 if ((2*sz + 2 + lname) > bsz)
return 0;
827 strncpy(r,
name,lname+1);
837 if (strcmp(c,
"NULL") == 0) {
852#define SWIG_UnknownError -1
853#define SWIG_IOError -2
854#define SWIG_RuntimeError -3
855#define SWIG_IndexError -4
856#define SWIG_TypeError -5
857#define SWIG_DivisionByZero -6
858#define SWIG_OverflowError -7
859#define SWIG_SyntaxError -8
860#define SWIG_ValueError -9
861#define SWIG_SystemError -10
862#define SWIG_AttributeError -11
863#define SWIG_MemoryError -12
864#define SWIG_NullReferenceError -13
888#define SWIG_LUA_FLAVOR_LUA 1
889#define SWIG_LUA_FLAVOR_ELUA 2
890#define SWIG_LUA_FLAVOR_ELUAC 3
892#if !defined(SWIG_LUA_TARGET)
893# error SWIG_LUA_TARGET not defined
896#if defined(SWIG_LUA_ELUA_EMULATE)
898struct swig_elua_entry;
900typedef struct swig_elua_key {
908typedef struct swig_elua_val {
912 const struct swig_elua_entry *table;
924typedef struct swig_elua_entry {
929#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} }
930#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} }
931#define LNILKEY {LUA_TNIL, {.strkey = 0} }
933#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} }
934#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} }
935#define LROVAL(x) {LUA_TTABLE, {.table = x} }
936#define LNILVAL {LUA_TNIL, {.string = 0} }
937#define LSTRVAL(x) {LUA_TSTRING, {.string = x} }
939#define LUA_REG_TYPE swig_elua_entry
941#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable"
943#define lua_pushrotable(L,p)\
946 SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p));
948#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
949 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } }
951#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\
952 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } }
955#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
956# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
957# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
958# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
959# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
962#ifndef SWIG_LUA_CONSTTAB_POINTER
963#warning eLua does not support pointers as constants. By default, nil will be used as value
964#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL
967#ifndef SWIG_LUA_CONSTTAB_BINARY
968#warning eLua does not support pointers to member as constants. By default, nil will be used as value
969#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL
972# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
973# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
974# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
975# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
976# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
977 SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D
978# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\
979 SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D
982#ifndef SWIG_LUA_ELUA_EMULATE
983#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
984# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
985# define LSTRVAL LRO_STRVAL
989#ifndef SWIG_LUA_ELUA_EMULATE
990#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
993#define MIN_OPT_LEVEL 2
1012#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
1013# define lua_rawlen lua_strlen
1014#elif LUA_VERSION_NUM == 501
1015# define lua_rawlen lua_objlen
1022#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
1026 const char *result = lua_tostring(L, idx);
1027 if (len) *len = lua_strlen(L, idx);
1036#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
1037# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
1041#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
1042# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1)
1046#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
1047#define lua_rawsetp(L,index,ptr)\
1048 lua_pushlightuserdata(L,(void*)(ptr));\
1050 lua_rawset(L,index);
1052#define lua_rawgetp(L,index,ptr)\
1053 lua_pushlightuserdata(L,(void*)(ptr));\
1054 lua_rawget(L,index);
1069 lua_pushstring (L, str);
1080 va_start(argp, fmt);
1082 lua_pushvfstring(L, fmt, argp);
1092#define SWIG_LUA_INT 1
1093#define SWIG_LUA_FLOAT 2
1094#define SWIG_LUA_STRING 3
1095#define SWIG_LUA_POINTER 4
1096#define SWIG_LUA_BINARY 5
1097#define SWIG_LUA_CHAR 6
1106#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
1176#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
1177#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
1178#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
1180#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
1181#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type)
1184#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata))
1185#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
1186#define SWIG_MODULE_CLIENTDATA_TYPE lua_State*
1189#define SWIG_contract_assert(expr, msg) \
1190 do { if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } } while (0)
1194#define SWIG_fail {goto fail;}
1195#define SWIG_fail_arg(func_name,argnum,type) \
1196 {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
1197 func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
1199#define SWIG_fail_ptr(func_name,argnum,type) \
1200 SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
1201#define SWIG_check_num_args(func_name,a,b) \
1202 if (lua_gettop(L)<a || lua_gettop(L)>b) \
1203 {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
1207#define SWIG_Lua_get_table(L,n) \
1208 (lua_pushstring(L, n), lua_rawget(L,-2))
1210#define SWIG_Lua_add_function(L,n,f) \
1211 (lua_pushstring(L, n), \
1212 lua_pushcfunction(L, f), \
1215#define SWIG_Lua_add_boolean(L,n,b) \
1216 (lua_pushstring(L, n), \
1217 lua_pushboolean(L, b), \
1221#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I))
1234 lua_rawget(L,LUA_REGISTRYINDEX);
1235 if (lua_islightuserdata(L,-1))
1245 lua_pushlightuserdata(L,(
void*)module);
1246 lua_rawset(L,LUA_REGISTRYINDEX);
1259#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
1261 luaL_error(L,
"This variable is immutable");
1266#ifdef SWIG_LUA_ELUA_EMULATE
1270static int swig_lua_elua_emulate_unique_key;
1273SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L,
const swig_elua_entry *table)
1275 int i, table_parsed, parsed_tables_array, target_table;
1276 assert(lua_istable(L,-1));
1277 target_table = lua_gettop(L);
1279 lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1280 if(lua_isnil(L,-1)) {
1283 lua_pushvalue(L,-1);
1284 lua_rawsetp(L,LUA_REGISTRYINDEX,(
void*)(&swig_lua_elua_emulate_unique_key));
1286 parsed_tables_array = lua_gettop(L);
1287 lua_pushvalue(L,target_table);
1290 const int SWIGUNUSED pairs_start = lua_gettop(L);
1291 for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++)
1293 const swig_elua_entry *entry = table + i;
1294 int is_metatable = 0;
1295 switch(entry->key.type) {
1297 lua_pushstring(L,entry->key.key.strkey);
1298 if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0)
1302 lua_pushnumber(L,entry->key.key.numkey);
1310 switch(entry->value.type) {
1312 lua_pushstring(L,entry->value.value.string);
1315 lua_pushnumber(L,entry->value.value.number);
1318 lua_pushcfunction(L,entry->value.value.function);
1321 lua_rawgetp(L,parsed_tables_array, entry->value.value.table);
1322 table_parsed = !lua_isnil(L,-1);
1326 SWIG_Lua_elua_emulate_register(L,entry->value.value.table);
1329 assert(lua_istable(L,-1));
1330 lua_pushvalue(L,-1);
1331 lua_setmetatable(L,target_table);
1336 if(entry->value.value.userdata.member)
1338 entry->value.value.userdata.lvalue,
1339 *(entry->value.value.userdata.ptype));
1342 *(entry->value.value.userdata.ptype),0);
1350 assert(lua_gettop(L) == pairs_start + 2);
1351 lua_rawset(L,target_table);
1354 assert(lua_gettop(L) == target_table);
1357SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L)
1360 lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1365SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L)
1369 lua_getfield(L,-1,
"lua_getmetatable");
1371 assert(!lua_isnil(L,-1));
1373 assert(lua_gettop(L) == 3);
1375 if(!lua_isnil(L,-1))
1378 assert(lua_gettop(L) == 2);
1379 if(lua_istable(L,-2)) {
1381 lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY);
1383 assert(lua_gettop(L) == 2);
1391SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L)
1395 lua_pushstring(L,
"lua_getmetatable");
1396 lua_getfield(L,-2,
"getmetatable");
1397 assert(!lua_isnil(L,-1));
1399 lua_pushstring(L,
"getmetatable");
1400 lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable);
1418 assert(lua_istable(L,-2));
1419 lua_getmetatable(L,-2);
1420 assert(lua_istable(L,-1));
1422 assert(lua_istable(L,-1));
1427 if (lua_iscfunction(L,-1))
1436 assert(lua_istable(L,-1));
1440 if (lua_isfunction(L,-1))
1457 assert(lua_istable(L,1));
1458 lua_getmetatable(L,1);
1459 assert(lua_istable(L,-1));
1462 if (lua_istable(L,-1))
1467 if (lua_iscfunction(L,-1))
1481#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1491 assert(lua_istable(L,-1));
1498 lua_getmetatable(L,-1);
1516 assert(lua_istable(L,-1));
1520 if( classes != 0 ) {
1521 while(*classes != 0) {
1538 assert(lua_istable(L,-1));
1539 lua_checkstack(L,5);
1544 lua_pushstring(L,
".get");
1548 lua_pushstring(L,
".set");
1552 lua_pushstring(L,
".fn");
1560 lua_setmetatable(L,-2);
1568 if( sub_namespace != 0) {
1569 while(*sub_namespace != 0) {
1577 lua_pushstring(L,ns->
name);
1578 lua_pushvalue(L,-2);
1581 assert(lua_gettop(L) == begin+1);
1598 int last_arg = lua_gettop(L);
1599 int original_metatable = last_arg + 1;
1604 lua_getmetatable(L,first_arg);
1607#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1609 assert(lua_istable(L,-1));
1611 bases_table = lua_gettop(L);
1615 assert(swig_type!=0);
1620 for(;base_names[bases_count];
1631 int subcall_last_arg;
1632 int subcall_first_arg = lua_gettop(L) + 1;
1635 for(j=first_arg;j<=last_arg;j++)
1637 subcall_last_arg = lua_gettop(L);
1640 for(i=0;i<bases_count;i++) {
1642#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1643 lua_rawgeti(L,bases_table,i+1);
1645 if(lua_isnil(L,-1)) {
1659 assert(base_swig_type != 0);
1665 assert(lua_isuserdata(L, subcall_first_arg));
1666 assert(lua_istable(L,-1));
1667 lua_setmetatable(L,subcall_first_arg);
1668 assert(lua_gettop(L) == subcall_last_arg);
1669 result = func(L, base_swig_type,subcall_first_arg, ret);
1675 lua_pushvalue(L,original_metatable);
1676 lua_setmetatable(L,first_arg);
1678 to_remove = subcall_last_arg - last_arg;
1679 for(j=0;j<to_remove;j++)
1680 lua_remove(L,last_arg+1);
1683 lua_pop(L, lua_gettop(L) - last_arg);
1685 if(ret) assert(lua_gettop(L) == last_arg + *ret);
1699 int bases_search_result;
1700 int substack_start = lua_gettop(L)-2;
1701 assert(first_arg == substack_start+1);
1703 lua_checkstack(L,5);
1704 assert(lua_isuserdata(L,-2));
1705 lua_getmetatable(L,-2);
1706 assert(lua_istable(L,-1));
1710 if (lua_iscfunction(L,-1))
1712 lua_pushvalue(L,substack_start+1);
1713 lua_pushvalue(L,substack_start+2);
1724 return bases_search_result;
1738 int bases_search_result;
1739 int substack_start = lua_gettop(L)-2;
1740 assert(first_arg == substack_start+1);
1742 lua_checkstack(L,5);
1743 assert(lua_isuserdata(L,-2));
1744 lua_getmetatable(L,-2);
1745 assert(lua_istable(L,-1));
1747 assert(lua_istable(L,-1));
1749 lua_pushvalue(L,substack_start+2);
1752 if (lua_iscfunction(L,-1))
1754 lua_pushvalue(L,substack_start+1);
1764 assert(lua_istable(L,-1));
1765 lua_pushvalue(L,substack_start+2);
1768 if (lua_isfunction(L,-1))
1780 return bases_search_result;
1795 assert(lua_isuserdata(L,1));
1820 int bases_search_result;
1821 int substack_start = lua_gettop(L) - 3;
1822 lua_checkstack(L,5);
1823 assert(lua_isuserdata(L,substack_start+1));
1824 lua_getmetatable(L,substack_start+1);
1825 assert(lua_istable(L,-1));
1830 if (lua_istable(L,-1))
1833 lua_pushvalue(L,substack_start+2);
1836 if (lua_iscfunction(L,-1))
1838 lua_pushvalue(L,substack_start+1);
1839 lua_pushvalue(L,substack_start+3);
1841 lua_remove(L,substack_start+4);
1851 if (lua_iscfunction(L,-1))
1853 lua_pushvalue(L,substack_start+1);
1854 lua_pushvalue(L,substack_start+2);
1855 lua_pushvalue(L,substack_start+3);
1867 assert(lua_gettop(L) == substack_start + 3);
1868 return bases_search_result;
1885 assert(lua_isuserdata(L,1));
1890 SWIG_Lua_pushferrstring(L,
"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method.");
1905 assert(lua_isuserdata(L,-1));
1925 assert(lua_isuserdata(L,1));
1928 lua_pushfstring(L,
"<userdata of type '%s' at %p>", userData->
type->
str, userData->
ptr);
1938 assert(lua_isuserdata(L,-1));
1952 if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2))
1957 result=(usr1->
ptr==usr2->
ptr);
1958 lua_pushboolean(L,result);
1986 lua_pushstring(L,
"SWIG");
1991 lua_pushstring(L,
".library");
1995 lua_pushstring(L,
"inheritable_metamethods");
2003 lua_rawset(L,LUA_REGISTRYINDEX);
2010 lua_pushstring(L,
"SWIG");
2011 lua_rawget(L,LUA_REGISTRYINDEX);
2012 if (!lua_istable(L,-1))
2017 lua_pushstring(L,
"SWIG");
2018 lua_rawget(L,LUA_REGISTRYINDEX);
2025 lua_pushstring(L,
".library");
2027 assert( !lua_isnil(L,-1) );
2028 lua_pushstring(L,
"inheritable_metamethods");
2040 lua_pushstring(L,cname);
2058 if (clss->
bases[i]==0)
2067#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2069SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L,
int target,
int source)
2073 while (lua_next(L,source) != 0) {
2076 lua_pushvalue(L,-2);
2077 lua_pushvalue(L,-2);
2078 lua_rawset(L, target);
2085SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L,
const char*
name,
int original,
int base)
2088 lua_pushstring(L,
name);
2089 lua_rawget(L,original);
2090 int original_table = lua_gettop(L);
2091 lua_pushstring(L,
name);
2093 int base_table = lua_gettop(L);
2094 SWIG_Lua_merge_tables_by_index(L, original_table, base_table);
2103 assert(lua_istable(L,-1));
2104 int original = lua_gettop(L);
2106 int base = lua_gettop(L);
2107 SWIG_Lua_merge_tables(L,
".fn", original, base );
2108 SWIG_Lua_merge_tables(L,
".set", original, base );
2109 SWIG_Lua_merge_tables(L,
".get", original, base );
2120 if (clss->
bases[i]==0)
2126 SWIG_Lua_class_squash_base(L, clss->
bases[i]);
2132#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2136 assert(lua_istable(L,-1));
2138 assert(lua_istable(L,-1));
2144 assert(lua_istable(L,-1));
2155 assert(lua_istable(L,-1));
2157 for(i=0;clss->
bases[i];i++)
2171 size_t bases_count = 0;
2174 assert(lua_istable(L,-1));
2175 for(i=0;clss->
bases[i];i++)
2179 assert(lua_istable(L,-1));
2180 lua_rawseti(L,-2,i+1);
2191 assert(lua_istable(L,-1));
2192 for(i=0;clss->
methods[i].name;i++){
2206#if !defined(SWIG_LUA_SQUASH_BASES)
2248 lua_pushvalue(L, metamethod_name_idx);
2262 for(i=0;clss->
bases[i];i++)
2277 int metamethod_name_idx;
2281 lua_checkstack(L,5);
2282 numargs = lua_gettop(L);
2285 lua_pushvalue(L, lua_upvalueindex(1));
2286 metamethod_name_idx = lua_gettop(L);
2288 lua_pushvalue(L, lua_upvalueindex(2));
2295 SWIG_Lua_pushferrstring(L,
"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation.");
2302 lua_call(L, numargs, LUA_MULTRET);
2303 return lua_gettop(L);
2318 assert(lua_isstring(L,-1));
2320 key_index = lua_gettop(L);
2323 lua_pushvalue(L,key_index);
2324 lua_gettable(L,metatable_index);
2325 if( !lua_isnil(L,-1) ) {
2332 for(i=0;clss->
bases[i];i++)
2336 lua_pushvalue(L, key_index);
2338 if( !lua_isnil(L,-1) ) {
2339 lua_pushvalue(L, key_index);
2342 lua_pushvalue(L, key_index);
2343 lua_pushlightuserdata(L, clss);
2346 lua_rawset(L, metatable_index);
2361 int metatable_index;
2362 int metamethods_info_index;
2363 int tostring_undefined;
2364 int eq_undefined = 0;
2367 metatable_index = lua_gettop(L);
2369 assert(lua_istable(L,-1));
2370 metamethods_info_index = lua_gettop(L);
2372 while(lua_next(L, metamethods_info_index) != 0 ) {
2374 const int is_inheritable = lua_toboolean(L,-2);
2377 if(is_inheritable) {
2385 lua_pushstring(L,
"__tostring");
2386 lua_pushvalue(L,-1);
2387 lua_rawget(L,metatable_index);
2388 tostring_undefined = lua_isnil(L,-1);
2390 if( tostring_undefined ) {
2392 lua_rawset(L, metatable_index);
2398 lua_pushstring(L,
"__eq");
2399 lua_pushvalue(L,-1);
2400 lua_rawget(L,metatable_index);
2401 eq_undefined = lua_isnil(L,-1);
2403 if( eq_undefined ) {
2405 lua_rawset(L, metatable_index);
2419 lua_checkstack(L,5);
2420 assert(lua_istable(L,-1));
2425 assert(lua_istable(L,-1));
2433 lua_getmetatable(L,-1);
2434 assert(lua_istable(L,-1));
2439 assert(lua_istable(L,-1));
2444 assert( lua_gettop(L) == begin );
2456 lua_pushstring(L,clss->
fqname);
2458 if(!lua_isnil(L,-1)) {
2460 assert(lua_gettop(L)==begin);
2465 for(i=0;clss->
bases[i];i++)
2471 lua_pushstring(L,clss->
fqname);
2473#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2480 for(i=0;clss->
bases[i];i++)
2485 SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable);
2492 lua_pushstring(L,
".type");
2493 lua_pushstring(L,clss->
fqname);
2496 lua_pushstring(L,
".bases");
2500 lua_pushstring(L,
".get");
2504 lua_pushstring(L,
".set");
2508 lua_pushstring(L,
".fn");
2520 assert(lua_gettop(L) == begin);
2522#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2524 SWIG_Lua_class_squash_bases(L,clss);
2529 assert( lua_gettop(L) == begin );
2535 assert(lua_istable(L,-1));
2549 begin = lua_gettop(L);
2552 assert(lua_istable(L,-1));
2553 lua_getmetatable(L,-1);
2554 assert(lua_istable(L,-1));
2555 lua_pushstring(L,
".instance");
2558 assert(lua_istable(L,-1));
2559 lua_pushstring(L,
".static");
2560 lua_pushvalue(L, -4);
2561 assert(lua_istable(L,-1));
2565 assert(lua_gettop(L) == begin);
2569#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
2576 lua_pushstring(L,clss->
fqname);
2578 if(!lua_isnil(L,-1)) {
2580 assert(lua_gettop(L)==begin);
2585 for(i=0;clss->
bases[i];i++)
2587 SWIG_Lua_elua_class_register_instance(L,clss->
bases[i]);
2591 lua_pushstring(L,clss->
fqname);
2593 lua_pushrotable(L, (
void*)(clss->
metatable));
2596 assert(lua_gettop(L) == begin);
2607 if (type->clientdata)
2610 if (lua_istable(L,-1))
2612 lua_setmetatable(L,-2);
2633#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
2646 if (lua_isnil(L,index))
2651 if (lua_islightuserdata(L,index))
2653 *ptr=lua_touserdata(L,index);
2692 int argnum,
const char *func_name){
2695 luaL_error (L,
"Error in %s, expected a %s at argument number %d\n",
2696 func_name,(type && type->str)?type->str:
"void*",argnum);
2709 memcpy(raw->
data,ptr,size);
2719 if (type==0 || type==raw->
type)
2721 memcpy(ptr,raw->
data,size);
2731 if (lua_isuserdata(L,tp))
2736 return "userdata (unknown type)";
2738 return lua_typename(L,lua_type(L,tp));
2752#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
2757 for (i = 0; constants[i].
type; i++) {
2758 switch(constants[i].type) {
2760 lua_pushstring(L,constants[i].
name);
2761 lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
2765 lua_pushstring(L,constants[i].
name);
2766 lua_pushnumber(L,(lua_Number)constants[i].dvalue);
2770 lua_pushstring(L,constants[i].
name);
2772 char c = (char)constants[i].lvalue;
2773 lua_pushlstring(L,&c,1);
2778 lua_pushstring(L,constants[i].
name);
2779 lua_pushstring(L,(
char *) constants[i].pvalue);
2783 lua_pushstring(L,constants[i].
name);
2788 lua_pushstring(L,constants[i].
name);
2789 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);
2803#ifndef SWIG_DOSTRING_FAIL
2804#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
2814 if (str==0 || str[0]==0)
return 0;
2816#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501))
2817 ok=luaL_dostring(L,str);
2819 ok=lua_dostring(L,str);
2837#define SWIGTYPE_p_PLGraphicsIn swig_types[0]
2838#define SWIGTYPE_p_char swig_types[1]
2839#define SWIGTYPE_p_double swig_types[2]
2840#define SWIGTYPE_p_f_double_double__int swig_types[3]
2841#define SWIGTYPE_p_f_double_double_p_double_p_double_p_void__void swig_types[4]
2842#define SWIGTYPE_p_f_int_double_p_char_int_p_void__void swig_types[5]
2843#define SWIGTYPE_p_f_int_p_double_p_double__void swig_types[6]
2844#define SWIGTYPE_p_f_int_p_q_const__double_p_q_const__double__void swig_types[7]
2845#define SWIGTYPE_p_int swig_types[8]
2846#define SWIGTYPE_p_p_char swig_types[9]
2847#define SWIGTYPE_p_p_double swig_types[10]
2848#define SWIGTYPE_p_unsigned_int swig_types[11]
2851#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2852#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2856#define SWIG_name "plplotluac"
2857#define SWIG_init luaopen_plplotluac
2858#define SWIG_init_user luaopen_plplotluac_user
2860#define SWIG_LUACODE luaopen_plplotluac_luacode
2865#define LUA_ALLOC_ARRAY( TYPE, LEN ) (TYPE *) malloc( LEN * sizeof ( TYPE ) )
2866#define LUA_FREE_ARRAY( PTR ) if ( PTR ) { free( PTR ); PTR = NULL;}
2870#define LUA_DECLARE_TYPEMAP_ARR_FN( NAME, TYPE ) \
2871 SWIGINTERN int LUA_read_ ## NAME ## _num_array( lua_State * L, int index, TYPE * array, int size ){ \
2873 for ( i = 0; i < size; i++ ) { \
2874 lua_rawgeti( L, index, i + 1 ); \
2875 if ( lua_isnumber( L, -1 ) ) { \
2876 array[i] = (TYPE) lua_tonumber( L, -1 ); \
2885 SWIGINTERN TYPE* LUA_get_ ## NAME ## _num_array_var( lua_State * L, int index, int* size ) \
2888 if ( !lua_istable( L, index ) ) { \
2889 lua_pushstring( L, "expected a table" ); \
2892 *size = SWIG_itable_size( L, index ); \
2893 if ( *size < 1 ) { \
2894 array = LUA_ALLOC_ARRAY( TYPE, 1 ); \
2895 array[0] = (TYPE) 0; \
2898 array = LUA_ALLOC_ARRAY( TYPE, *size ); \
2899 if ( !LUA_read_ ## NAME ## _num_array( L, index, array, *size ) ) { \
2900 lua_pushstring( L, "table must contain numbers" ); \
2901 LUA_FREE_ARRAY( array ); \
2916#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN]
2917#define SWIG_FREE_ARRAY(PTR) delete[] PTR
2919#define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE))
2920#define SWIG_FREE_ARRAY(PTR) free(PTR)
2927 lua_rawgeti(L,index,n+1);
2928 if (lua_isnil(L,-1))
break;
2940 while (lua_next(L, index) != 0) {
2948#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)\
2949 SWIGINTERN int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\
2951 for (i = 0; i < size; i++) {\
2952 lua_rawgeti(L,index,i+1);\
2953 if (lua_isnumber(L,-1)){\
2954 array[i] = (TYPE)lua_tonumber(L,-1);\
2963 SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\
2965 if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {\
2966 SWIG_Lua_pushferrstring(L,"expected a table of size %d",size);\
2969 array=SWIG_ALLOC_ARRAY(TYPE,size);\
2970 if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\
2971 SWIG_Lua_pusherrstring(L,"table must contain numbers");\
2972 SWIG_FREE_ARRAY(array);\
2977 SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\
2980 if (!lua_istable(L,index)) {\
2981 SWIG_Lua_pusherrstring(L,"expected a table");\
2984 *size=SWIG_itable_size(L,index);\
2986 SWIG_Lua_pusherrstring(L,"table appears to be empty");\
2989 array=SWIG_ALLOC_ARRAY(TYPE,*size);\
2990 if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\
2991 SWIG_Lua_pusherrstring(L,"table must contain numbers");\
2992 SWIG_FREE_ARRAY(array);\
2997 SWIGINTERN void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\
3000 for (i = 0; i < size; i++){\
3001 lua_pushnumber(L,(lua_Number)array[i]);\
3002 lua_rawseti(L,-2,i+1); \
3019 for (i = 0; i < size; i++) {
3020 lua_rawgeti(L,index,i+1);
3021 if (!lua_isuserdata(L,-1) ||
SWIG_ConvertPtr(L,-1,&array[i],type,0)==-1){
3045 if (!lua_istable(L,index)) {
3065 for (i = 0; i < size; i++){
3067 lua_rawseti(L,-2,i+1);
3082 if ( !lua_istable( L, index ) )
3084 lua_pushstring( L,
"expected a table" );
3090 lua_pushstring( L,
"table appears to be empty" );
3094 for ( i = 0; i < *nx; i++ )
3097 lua_rawgeti( L, index, 1 );
3098 if ( !lua_istable( L, -1 ) )
3101 lua_pushstring( L,
"expected a table" );
3108 lua_pushstring( L,
"table appears to be empty" );
3114 for ( i = 0; i < *nx; i++ )
3116 lua_rawgeti( L, index, i + 1 );
3117 if ( !lua_istable( L, -1 ) )
3120 lua_pushstring( L,
"expected a table" );
3121 for ( j = 0; j < *ny; j++ )
3129 lua_pushstring( L,
"inconsistent table sizes" );
3130 for ( j = 0; j < i; j++ )
3136 for ( j = 0; j < *ny; j++ )
3138 lua_rawgeti( L, -1, j + 1 );
3139 if ( lua_isnumber( L, -1 ) )
3141 matrix[i][j] = (
PLFLT) lua_tonumber( L, -1 );
3146 lua_pushstring( L,
"table must contain numbers" );
3147 for ( j = 0; j < i + 1; j++ )
3168 PLFLT *xtemp, *ytemp;
3174 fprintf( stderr,
"Lua state is not set!" );
3180 lua_pushnumber(
myL, n );
3181 SWIG_write_double_num_array(
myL, x, n );
3182 SWIG_write_double_num_array(
myL, y, n );
3185 if ( lua_pcall(
myL, 3, 2, 0 ) != 0 )
3186 fprintf( stderr,
"error running function `%s':%s",
3190 if ( !lua_istable(
myL, -2 ) )
3192 fprintf( stderr,
"function `%s' must return a table as 1st result",
mapform_funcstr );
3195 if ( !lua_istable(
myL, -1 ) )
3197 fprintf( stderr,
"function `%s' must return a table as 2nd result",
mapform_funcstr );
3200 xtemp = (
PLFLT *) LUA_get_double_num_array_var(
myL, -2, &len );
3201 if ( !xtemp || len != n )
3203 fprintf( stderr,
"function `%s' must return a table of length%d",
mapform_funcstr, n );
3206 for ( i = 0; i < n; i++ )
3210 ytemp = (
PLFLT *) LUA_get_double_num_array_var(
myL, -1, &len );
3211 if ( !ytemp || len != n )
3213 fprintf( stderr,
"function `%s' must return a table of length%d",
mapform_funcstr, n );
3216 for ( i = 0; i < n; i++ )
3251 fprintf( stderr,
"Lua state is not set!" );
3257 lua_pushnumber(
myL, x );
3258 lua_pushnumber(
myL, y );
3261 if ( lua_pcall(
myL, 2, 2, 0 ) != 0 )
3262 fprintf( stderr,
"error running function `%s':%s",
3266 if ( !lua_isnumber(
myL, -2 ) )
3268 fprintf( stderr,
"function `%s' must return a number as 1st result",
mypltr_funcstr );
3271 if ( !lua_isnumber(
myL, -1 ) )
3273 fprintf( stderr,
"function `%s' must return a number as 2nd result",
mypltr_funcstr );
3276 *tx = lua_tonumber(
myL, -2 );
3277 *ty = lua_tonumber(
myL, -1 );
3295 fprintf( stderr,
"Lua state is not set!" );
3301 lua_pushnumber(
myL, x );
3302 lua_pushnumber(
myL, y );
3305 if ( lua_pcall(
myL, 2, 2, 0 ) != 0 )
3306 fprintf( stderr,
"error running function `%s':%s",
3310 if ( !lua_isnumber(
myL, -2 ) )
3312 fprintf( stderr,
"function `%s' must return a number as 1st result",
myct_funcstr );
3315 if ( !lua_isnumber(
myL, -1 ) )
3317 fprintf( stderr,
"function `%s' must return a number as 2nd result",
myct_funcstr );
3320 *tx = lua_tonumber(
myL, -2 );
3321 *ty = lua_tonumber(
myL, -1 );
3334 fprintf( stderr,
"Lua state is not set!" );
3340 lua_pushnumber(
myL, axis );
3344 if ( lua_pcall(
myL, 2, 1, 0 ) != 0 )
3345 fprintf( stderr,
"error running function `%s':%s",
3349 if ( !lua_isstring(
myL, -1 ) )
3351 fprintf( stderr,
"function `%s' must return a string as result",
mylabel_funcstr );
3354 strncpy( label, lua_tostring(
myL, -1 ), length );
3366 int ret = lua_isstring(L, idx);
3368 ret = lua_isnil(L, idx);
3382 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::type",2,
"int");
3388 arg2 = (int)lua_tonumber(L, 2);
3389 if (arg1) (arg1)->type = arg2;
3411 result = (int) ((arg1)->type);
3412 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3428 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::state",2,
"unsigned int");
3435 arg2 = (
unsigned int)lua_tonumber(L, 2);
3436 if (arg1) (arg1)->state = arg2;
3449 unsigned int result;
3458 result = (
unsigned int) ((arg1)->state);
3459 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3475 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::keysym",2,
"unsigned int");
3482 arg2 = (
unsigned int)lua_tonumber(L, 2);
3483 if (arg1) (arg1)->keysym = arg2;
3496 unsigned int result;
3505 result = (
unsigned int) ((arg1)->keysym);
3506 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3522 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::button",2,
"unsigned int");
3529 arg2 = (
unsigned int)lua_tonumber(L, 2);
3530 if (arg1) (arg1)->button = arg2;
3543 unsigned int result;
3552 result = (
unsigned int) ((arg1)->button);
3553 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3569 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::subwindow",2,
"PLINT");
3575 arg2 = (
PLINT)lua_tonumber(L, 2);
3576 if (arg1) (arg1)->subwindow = arg2;
3598 result = (
PLINT) ((arg1)->subwindow);
3599 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3611 char *arg2 = (
char *)0 ;
3621 arg2 = (
char *)lua_tostring(L, 2);
3624 strncpy((
char*)arg1->
string, (
const char *)arg2, 16-1);
3651 result = (
char *)(
char *) ((arg1)->string);
3652 lua_pushstring(L,(
const char *)result); SWIG_arg++;
3668 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::pX",2,
"int");
3674 arg2 = (int)lua_tonumber(L, 2);
3675 if (arg1) (arg1)->pX = arg2;
3697 result = (int) ((arg1)->pX);
3698 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3714 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::pY",2,
"int");
3720 arg2 = (int)lua_tonumber(L, 2);
3721 if (arg1) (arg1)->pY = arg2;
3743 result = (int) ((arg1)->pY);
3744 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3760 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::dX",2,
"PLFLT");
3766 arg2 = (
PLFLT)lua_tonumber(L, 2);
3767 if (arg1) (arg1)->dX = arg2;
3789 result = (
PLFLT) ((arg1)->dX);
3790 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3806 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::dY",2,
"PLFLT");
3812 arg2 = (
PLFLT)lua_tonumber(L, 2);
3813 if (arg1) (arg1)->dY = arg2;
3835 result = (
PLFLT) ((arg1)->dY);
3836 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3852 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::wX",2,
"PLFLT");
3858 arg2 = (
PLFLT)lua_tonumber(L, 2);
3859 if (arg1) (arg1)->wX = arg2;
3881 result = (
PLFLT) ((arg1)->wX);
3882 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3898 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::wY",2,
"PLFLT");
3904 arg2 = (
PLFLT)lua_tonumber(L, 2);
3905 if (arg1) (arg1)->wY = arg2;
3927 result = (
PLFLT) ((arg1)->wY);
3928 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3957 assert(lua_istable(L,1));
3959 assert(!lua_isnil(L,-1));
3961 lua_call(L,lua_gettop(L)-1,1);
4009static swig_lua_class _wrap_class_PLGraphicsIn = {
"PLGraphicsIn",
"PLGraphicsIn", &
SWIGTYPE_p_PLGraphicsIn,
_proxy__wrap_new_PLGraphicsIn,
swig_delete_PLGraphicsIn,
swig_PLGraphicsIn_methods,
swig_PLGraphicsIn_attributes, &
swig_PLGraphicsIn_Sf_SwigStatic,
swig_PLGraphicsIn_meta,
swig_PLGraphicsIn_bases,
swig_PLGraphicsIn_base_names };
4017 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pl_setcontlabelformat",1,
"PLINT");
4018 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pl_setcontlabelformat",2,
"PLINT");
4019 arg1 = (
PLINT)lua_tonumber(L, 1);
4020 arg2 = (
PLINT)lua_tonumber(L, 2);
4039 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pl_setcontlabelparam",1,
"PLFLT");
4040 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pl_setcontlabelparam",2,
"PLFLT");
4041 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"pl_setcontlabelparam",3,
"PLFLT");
4042 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"pl_setcontlabelparam",4,
"PLINT");
4043 arg1 = (
PLFLT)lua_tonumber(L, 1);
4044 arg2 = (
PLFLT)lua_tonumber(L, 2);
4045 arg3 = (
PLFLT)lua_tonumber(L, 3);
4046 arg4 = (
PLINT)lua_tonumber(L, 4);
4063 arg1 = (
PLINT)lua_tonumber(L, 1);
4094 arg1 = (
PLFLT)lua_tonumber(L, 1);
4095 arg2 = (
PLFLT)lua_tonumber(L, 2);
4096 arg3 = (
PLFLT)lua_tonumber(L, 3);
4097 arg4 = (
PLFLT)lua_tonumber(L, 4);
4098 arg5 = (
PLFLT)lua_tonumber(L, 5);
4099 arg6 = (
PLFLT)lua_tonumber(L, 6);
4100 arg7 = (
PLFLT)lua_tonumber(L, 7);
4101 arg8 = (
PLBOOL)lua_tonumber(L, 8);
4102 plarc(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
4132 arg1 = (
PLFLT)lua_tonumber(L, 1);
4133 arg2 = (
PLFLT)lua_tonumber(L, 2);
4134 arg3 = (
char *)lua_tostring(L, 3);
4135 arg4 = (
PLFLT)lua_tonumber(L, 4);
4136 arg5 = (
PLINT)lua_tonumber(L, 5);
4137 arg6 = (
char *)lua_tostring(L, 6);
4138 arg7 = (
PLFLT)lua_tonumber(L, 7);
4139 arg8 = (
PLINT)lua_tonumber(L, 8);
4140 plaxes(arg1,arg2,(
char const *)arg3,arg4,arg5,(
char const *)arg6,arg7,arg8);
4162 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
4168 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
4171 if ( temp3 !=
Alen )
4173 lua_pushfstring( L,
"Tables must be of same length." );
4177 arg4 = (
PLINT)lua_tonumber(L, 3);
4178 plbin(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
4224 arg7 = (
PLFLT)lua_tonumber(L, 1);
4225 plbtime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4227 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
4228 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
4229 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
4230 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
4231 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
4232 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
4271 arg1 = (
char *)lua_tostring(L, 1);
4272 arg2 = (
PLFLT)lua_tonumber(L, 2);
4273 arg3 = (
PLINT)lua_tonumber(L, 3);
4274 arg4 = (
char *)lua_tostring(L, 4);
4275 arg5 = (
PLFLT)lua_tonumber(L, 5);
4276 arg6 = (
PLINT)lua_tonumber(L, 6);
4277 plbox((
char const *)arg1,arg2,arg3,(
char const *)arg4,arg5,arg6);
4315 arg1 = (
char *)lua_tostring(L, 1);
4316 arg2 = (
char *)lua_tostring(L, 2);
4317 arg3 = (
PLFLT)lua_tonumber(L, 3);
4318 arg4 = (
PLINT)lua_tonumber(L, 4);
4319 arg5 = (
char *)lua_tostring(L, 5);
4320 arg6 = (
char *)lua_tostring(L, 6);
4321 arg7 = (
PLFLT)lua_tonumber(L, 7);
4322 arg8 = (
PLINT)lua_tonumber(L, 8);
4323 arg9 = (
char *)lua_tostring(L, 9);
4324 arg10 = (
char *)lua_tostring(L, 10);
4325 arg11 = (
PLFLT)lua_tonumber(L, 11);
4326 arg12 = (
PLINT)lua_tonumber(L, 12);
4327 plbox3((
char const *)arg1,(
char const *)arg2,arg3,arg4,(
char const *)arg5,(
char const *)arg6,arg7,arg8,(
char const *)arg9,(
char const *)arg10,arg11,arg12);
4352 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plcalc_world",1,
"PLFLT");
4353 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcalc_world",2,
"PLFLT");
4354 arg1 = (
PLFLT)lua_tonumber(L, 1);
4355 arg2 = (
PLFLT)lua_tonumber(L, 2);
4358 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
4359 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
4360 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
4389 arg1 = (
PLINT)lua_tonumber(L, 1);
4406 arg1 = (
PLFLT)lua_tonumber(L, 1);
4432 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plconfigtime",1,
"PLFLT");
4433 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plconfigtime",2,
"PLFLT");
4434 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plconfigtime",3,
"PLFLT");
4435 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plconfigtime",4,
"PLINT");
4436 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plconfigtime",5,
"PLBOOL");
4437 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plconfigtime",6,
"PLINT");
4438 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plconfigtime",7,
"PLINT");
4439 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plconfigtime",8,
"PLINT");
4440 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plconfigtime",9,
"PLINT");
4441 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plconfigtime",10,
"PLINT");
4442 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plconfigtime",11,
"PLFLT");
4443 arg1 = (
PLFLT)lua_tonumber(L, 1);
4444 arg2 = (
PLFLT)lua_tonumber(L, 2);
4445 arg3 = (
PLFLT)lua_tonumber(L, 3);
4446 arg4 = (
PLINT)lua_tonumber(L, 4);
4447 arg5 = (
PLBOOL)lua_tonumber(L, 5);
4448 arg6 = (
PLINT)lua_tonumber(L, 6);
4449 arg7 = (
PLINT)lua_tonumber(L, 7);
4450 arg8 = (
PLINT)lua_tonumber(L, 8);
4451 arg9 = (
PLINT)lua_tonumber(L, 9);
4452 arg10 = (
PLINT)lua_tonumber(L, 10);
4453 arg11 = (
PLFLT)lua_tonumber(L, 11);
4454 plconfigtime(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
4482 cgrid111.
xg = cgrid111.
yg = cgrid111.
zg = NULL;
4483 cgrid111.
nx = cgrid111.
ny = cgrid111.
nz = 0;
4484 cgrid211.
xg = cgrid211.
yg = cgrid211.
zg = NULL;
4485 cgrid211.
nx = cgrid211.
ny = 0;
4507 arg4 = (
PLINT)lua_tonumber(L, 2);
4508 arg5 = (
PLINT)lua_tonumber(L, 3);
4509 arg6 = (
PLINT)lua_tonumber(L, 4);
4510 arg7 = (
PLINT)lua_tonumber(L, 5);
4513 arg8 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp );
4518 if(lua_gettop(L)>=7){
4523 if ( lua_isstring( L, 7 ) )
4525 const char* funcstr = lua_tostring( L, 7 );
4526 if ( strcmp(
"pltr0", funcstr ) == 0 )
4530 else if ( strcmp(
"pltr1", funcstr ) == 0 )
4534 else if ( strcmp(
"pltr2", funcstr ) == 0 )
4549 if(lua_gettop(L)>=8){
4554 lua_pushstring( L,
"xg" );
4555 lua_gettable( L, 8 );
4556 if ( !lua_istable( L, -1 ) )
4559 lua_pushstring( L,
"expected a table xg" );
4562 lua_rawgeti( L, -1, 1 );
4563 if ( lua_istable( L, -1 ) )
4565 else if ( lua_isnumber( L, -1 ) )
4571 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
4575 if ( gridmode == 1 )
4577 cgrid111.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
4585 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
4598 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
4601 lua_pushfstring( L,
"Vectors must match matrix." );
4609 lua_pushstring( L,
"yg" );
4610 lua_gettable( L, 8 );
4611 if ( !lua_istable( L, -1 ) )
4614 lua_pushstring( L,
"expected a table yg" );
4617 lua_rawgeti( L, -1, 1 );
4618 if ( gridmode == 2 )
4620 if ( !lua_istable( L, -1 ) )
4624 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
4630 if ( !lua_isnumber( L, -1 ) )
4634 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
4639 if ( gridmode == 1 )
4641 cgrid111.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
4649 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
4662 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
4665 lua_pushfstring( L,
"Vectors must match matrix." );
4672 if ( gridmode == 1 )
4674 else if ( gridmode == 2 )
4678 plcont((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,(
double const *)arg8,arg9,arg10,arg11);
4685 for ( i = 0; i < ii1; i++ )
4704 for ( i = 0; i <
Xlen; i++ )
4710 for ( i = 0; i <
Xlen; i++ )
4723 for ( i = 0; i < ii1; i++ )
4742 for ( i = 0; i <
Xlen; i++ )
4748 for ( i = 0; i <
Xlen; i++ )
4777 arg1 = (
PLINT)lua_tonumber(L, 1);
4778 arg2 = (
PLINT)lua_tonumber(L, 2);
4779 arg3 = (
PLINT)lua_tonumber(L, 3);
4780 arg4 = (
PLINT)lua_tonumber(L, 4);
4781 arg5 = (
PLINT)lua_tonumber(L, 5);
4782 arg6 = (
PLFLT)lua_tonumber(L, 6);
4783 plctime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4785 lua_pushnumber(L, (lua_Number) *arg7); SWIG_arg++;
4801 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcpstrm",2,
"PLBOOL");
4802 arg1 = (
PLINT)lua_tonumber(L, 1);
4803 arg2 = (
PLBOOL)lua_tonumber(L, 2);
4858 arg1 = (
PLFLT)lua_tonumber(L, 1);
4859 arg2 = (
PLFLT)lua_tonumber(L, 2);
4860 arg3 = (
PLFLT)lua_tonumber(L, 3);
4861 arg4 = (
PLFLT)lua_tonumber(L, 4);
4862 arg5 = (
PLINT)lua_tonumber(L, 5);
4863 arg6 = (
PLINT)lua_tonumber(L, 6);
4864 plenv(arg1,arg2,arg3,arg4,arg5,arg6);
4890 arg1 = (
PLFLT)lua_tonumber(L, 1);
4891 arg2 = (
PLFLT)lua_tonumber(L, 2);
4892 arg3 = (
PLFLT)lua_tonumber(L, 3);
4893 arg4 = (
PLFLT)lua_tonumber(L, 4);
4894 arg5 = (
PLINT)lua_tonumber(L, 5);
4895 arg6 = (
PLINT)lua_tonumber(L, 6);
4896 plenv0(arg1,arg2,arg3,arg4,arg5,arg6);
4932 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
4938 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
4941 if ( temp3 !=
Alen )
4943 lua_pushfstring( L,
"Tables must be of same length." );
4948 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
4951 if ( temp4 !=
Alen )
4953 lua_pushfstring( L,
"Tables must be of same length." );
4957 plerrx(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
4997 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5003 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5006 if ( temp3 !=
Alen )
5008 lua_pushfstring( L,
"Tables must be of same length." );
5013 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
5016 if ( temp4 !=
Alen )
5018 lua_pushfstring( L,
"Tables must be of same length." );
5022 plerry(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
5074 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5080 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5083 if ( temp3 !=
Alen )
5085 lua_pushfstring( L,
"Tables must be of same length." );
5089 plfill(arg1,(
double const *)arg2,(
double const *)arg3);
5123 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5129 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5132 if ( temp3 !=
Alen )
5134 lua_pushfstring( L,
"Tables must be of same length." );
5139 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
5142 if ( temp4 !=
Alen )
5144 lua_pushfstring( L,
"Tables must be of same length." );
5148 plfill3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
5185 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plgradient",3,
"PLFLT");
5188 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5194 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5197 if ( temp3 !=
Alen )
5199 lua_pushfstring( L,
"Tables must be of same length." );
5203 arg4 = (
PLFLT)lua_tonumber(L, 3);
5204 plgradient(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
5246 arg1 = (
PLINT)lua_tonumber(L, 1);
5263 arg1 = (
PLINT)lua_tonumber(L, 1);
5286 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5287 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5311 arg1 = (
PLINT)lua_tonumber(L, 1);
5314 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5315 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5316 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5343 arg1 = (
PLINT)lua_tonumber(L, 1);
5344 plgcol0a(arg1,arg2,arg3,arg4,arg5);
5346 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5347 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5348 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5349 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
5373 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5374 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5375 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5402 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5403 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5404 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5405 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5423 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5444 lua_pushstring( L, arg1 );
5473 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5474 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5475 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5476 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5494 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5521 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5522 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5523 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5524 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5548 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5549 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5550 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5568 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5589 lua_pushstring( L, arg1 );
5615 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5616 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5617 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5635 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5666 plgpage(arg1,arg2,arg3,arg4,arg5,arg6);
5668 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5669 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5670 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5671 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5672 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
5673 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
5712 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plgriddata",6,
"PLINT");
5713 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plgriddata",7,
"PLFLT");
5716 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5722 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp2 );
5725 if ( temp2 !=
Alen )
5727 lua_pushfstring( L,
"Tables must be of same length." );
5733 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp );
5738 lua_pushfstring( L,
"Tables must be of same length." );
5745 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
5753 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
5761 for ( i = 0; i <
Xlen; i++ )
5764 for ( i = 0; i <
Xlen; i++ )
5771 arg10 = (
PLINT)lua_tonumber(L, 6);
5772 arg11 = (
PLFLT)lua_tonumber(L, 7);
5773 plgriddata((
double const *)arg1,(
double const *)arg2,(
double const *)arg3,arg4,(
double const *)arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,arg11);
5781 for ( i = 0; i <
Xlen; i++ )
5783 SWIG_write_double_num_array( L, arg9[i],
Ylen );
5784 lua_rawseti( L, -2, i + 1 );
5808 for ( i = 0; i <
Xlen; i++ )
5835 for ( i = 0; i <
Xlen; i++ )
5861 plgspa(arg1,arg2,arg3,arg4);
5863 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5864 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5865 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5866 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5884 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5905 lua_pushstring( L, arg1 );
5932 plgvpd(arg1,arg2,arg3,arg4);
5934 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5935 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5936 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5937 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5962 plgvpw(arg1,arg2,arg3,arg4);
5964 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5965 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5966 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5967 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5988 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5989 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6010 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6011 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6032 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6033 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6058 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6063 arg3 = (
PLFLT)lua_tonumber(L, 2);
6064 arg4 = (
PLFLT)lua_tonumber(L, 3);
6065 arg5 = (
PLINT)lua_tonumber(L, 4);
6066 arg6 = (
PLINT)lua_tonumber(L, 5);
6067 plhist(arg1,(
double const *)arg2,arg3,arg4,arg5,arg6);
6102 arg1 = (
PLFLT)lua_tonumber(L, 1);
6103 arg2 = (
PLFLT)lua_tonumber(L, 2);
6104 arg3 = (
PLFLT)lua_tonumber(L, 3);
6105 plhlsrgb(arg1,arg2,arg3,arg4,arg5,arg6);
6107 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
6108 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
6109 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
6144 arg1 = (
PLFLT)lua_tonumber(L, 1);
6145 arg2 = (
PLFLT)lua_tonumber(L, 2);
6146 arg3 = (
PLFLT)lua_tonumber(L, 3);
6147 arg4 = (
PLFLT)lua_tonumber(L, 4);
6148 pljoin(arg1,arg2,arg3,arg4);
6168 arg1 = (
char *)lua_tostring(L, 1);
6169 arg2 = (
char *)lua_tostring(L, 2);
6170 arg3 = (
char *)lua_tostring(L, 3);
6171 pllab((
char const *)arg1,(
char const *)arg2,(
char const *)arg3);
6270 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"pllegend",10,
"PLINT");
6271 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"pllegend",12,
"PLFLT");
6272 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"pllegend",13,
"PLFLT");
6273 if(!lua_isnumber(L,14))
SWIG_fail_arg(
"pllegend",14,
"PLFLT");
6274 if(!lua_isnumber(L,15))
SWIG_fail_arg(
"pllegend",15,
"PLFLT");
6275 if(!lua_istable(L,17))
SWIG_fail_arg(
"pllegend",17,
"char const **");
6276 if(lua_gettop(L)>=28 && !lua_istable(L,28))
SWIG_fail_arg(
"pllegend",28,
"char const **");
6277 arg3 = (
PLINT)lua_tonumber(L, 1);
6278 arg4 = (
PLINT)lua_tonumber(L, 2);
6279 arg5 = (
PLFLT)lua_tonumber(L, 3);
6280 arg6 = (
PLFLT)lua_tonumber(L, 4);
6281 arg7 = (
PLFLT)lua_tonumber(L, 5);
6282 arg8 = (
PLINT)lua_tonumber(L, 6);
6283 arg9 = (
PLINT)lua_tonumber(L, 7);
6284 arg10 = (
PLINT)lua_tonumber(L, 8);
6285 arg11 = (
PLINT)lua_tonumber(L, 9);
6286 arg12 = (
PLINT)lua_tonumber(L, 10);
6288 arg14 = (
PLINT *) LUA_get_int_num_array_var( L, 11, &arg13 );
6293 arg15 = (
PLFLT)lua_tonumber(L, 12);
6294 arg16 = (
PLFLT)lua_tonumber(L, 13);
6295 arg17 = (
PLFLT)lua_tonumber(L, 14);
6296 arg18 = (
PLFLT)lua_tonumber(L, 15);
6298 arg19 = (
PLINT *) LUA_get_int_num_array_var( L, 16, &temp19 );
6301 if ( temp19 !=
Alen )
6303 lua_pushfstring( L,
"Tables must be of same length." );
6313 lua_pushfstring( L,
"Tables must be of same length." );
6316 arg20 = malloc(
sizeof (
char* ) *
Alen );
6317 for ( i = 1; i <=
Alen; i++ )
6319 lua_rawgeti( L, 17, i );
6320 if ( lua_isstring( L, -1 ) )
6322 arg20[i - 1] = (
char *) lua_tostring( L, -1 );
6327 lua_pushfstring( L,
"Requires a sequence of strings." );
6334 if(lua_gettop(L)>=18){
6336 if ( lua_isnil( L, 18 ) )
6342 arg21 = (
PLINT *) LUA_get_int_num_array_var( L, 18, &temp21 );
6345 if ( temp21 !=
Alen )
6347 lua_pushfstring( L,
"Tables must be of same length." );
6353 if(lua_gettop(L)>=19){
6355 if ( lua_isnil( L, 19 ) )
6361 arg22 = (
PLINT *) LUA_get_int_num_array_var( L, 19, &temp22 );
6364 if ( temp22 !=
Alen )
6366 lua_pushfstring( L,
"Tables must be of same length." );
6372 if(lua_gettop(L)>=20){
6374 if ( lua_isnil( L, 20 ) )
6380 arg23 = (
PLFLT *) LUA_get_double_num_array_var( L, 20, &temp23 );
6383 if ( temp23 !=
Alen )
6385 lua_pushfstring( L,
"Tables must be of same length." );
6391 if(lua_gettop(L)>=21){
6393 if ( lua_isnil( L, 21 ) )
6399 arg24 = (
PLFLT *) LUA_get_double_num_array_var( L, 21, &temp24 );
6402 if ( temp24 !=
Alen )
6404 lua_pushfstring( L,
"Tables must be of same length." );
6410 if(lua_gettop(L)>=22){
6412 if ( lua_isnil( L, 22 ) )
6418 arg25 = (
PLINT *) LUA_get_int_num_array_var( L, 22, &temp25 );
6421 if ( temp25 !=
Alen )
6423 lua_pushfstring( L,
"Tables must be of same length." );
6429 if(lua_gettop(L)>=23){
6431 if ( lua_isnil( L, 23 ) )
6437 arg26 = (
PLINT *) LUA_get_int_num_array_var( L, 23, &temp26 );
6440 if ( temp26 !=
Alen )
6442 lua_pushfstring( L,
"Tables must be of same length." );
6448 if(lua_gettop(L)>=24){
6450 if ( lua_isnil( L, 24 ) )
6456 arg27 = (
PLFLT *) LUA_get_double_num_array_var( L, 24, &temp27 );
6459 if ( temp27 !=
Alen )
6461 lua_pushfstring( L,
"Tables must be of same length." );
6467 if(lua_gettop(L)>=25){
6469 if ( lua_isnil( L, 25 ) )
6475 arg28 = (
PLINT *) LUA_get_int_num_array_var( L, 25, &temp28 );
6478 if ( temp28 !=
Alen )
6480 lua_pushfstring( L,
"Tables must be of same length." );
6486 if(lua_gettop(L)>=26){
6488 if ( lua_isnil( L, 26 ) )
6494 arg29 = (
PLFLT *) LUA_get_double_num_array_var( L, 26, &temp29 );
6497 if ( temp29 !=
Alen )
6499 lua_pushfstring( L,
"Tables must be of same length." );
6505 if(lua_gettop(L)>=27){
6507 if ( lua_isnil( L, 27 ) )
6513 arg30 = (
PLINT *) LUA_get_int_num_array_var( L, 27, &temp30 );
6516 if ( temp30 !=
Alen )
6518 lua_pushfstring( L,
"Tables must be of same length." );
6524 if(lua_gettop(L)>=28){
6531 lua_pushfstring( L,
"Tables must be of same length." );
6534 arg31 = malloc(
sizeof (
char* ) *
Alen );
6535 for ( i = 1; i <=
Alen; i++ )
6537 lua_rawgeti( L, 28, i );
6538 if ( lua_isstring( L, -1 ) )
6540 arg31[i - 1] = (
char *) lua_tostring( L, -1 );
6545 lua_pushfstring( L,
"Requires a sequence of strings." );
6553 pllegend(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,(
int const *)arg14,arg15,arg16,arg17,arg18,(
int const *)arg19,(
char const **)arg20,(
int const *)arg21,(
int const *)arg22,(
double const *)arg23,(
double const *)arg24,(
int const *)arg25,(
int const *)arg26,(
double const *)arg27,(
int const *)arg28,(
double const *)arg29,(
int const *)arg30,(
char const **)arg31);
6555 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6556 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6566 free( arg20 ); arg20 = NULL;
6602 free( arg31 ); arg31 = NULL;
6617 free( arg20 ); arg20 = NULL;
6653 free( arg31 ); arg31 = NULL;
6697 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plcolorbar",1,
"PLINT");
6698 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcolorbar",2,
"PLINT");
6699 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plcolorbar",3,
"PLFLT");
6700 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plcolorbar",4,
"PLFLT");
6701 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plcolorbar",5,
"PLFLT");
6702 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plcolorbar",6,
"PLFLT");
6703 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plcolorbar",7,
"PLINT");
6704 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plcolorbar",8,
"PLINT");
6705 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plcolorbar",9,
"PLINT");
6706 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plcolorbar",10,
"PLFLT");
6707 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plcolorbar",11,
"PLFLT");
6708 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plcolorbar",12,
"PLINT");
6709 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plcolorbar",13,
"PLFLT");
6710 if(!lua_istable(L,15))
SWIG_fail_arg(
"plcolorbar",15,
"char const **");
6711 arg3 = (
PLINT)lua_tonumber(L, 1);
6712 arg4 = (
PLINT)lua_tonumber(L, 2);
6713 arg5 = (
PLFLT)lua_tonumber(L, 3);
6714 arg6 = (
PLFLT)lua_tonumber(L, 4);
6715 arg7 = (
PLFLT)lua_tonumber(L, 5);
6716 arg8 = (
PLFLT)lua_tonumber(L, 6);
6717 arg9 = (
PLINT)lua_tonumber(L, 7);
6718 arg10 = (
PLINT)lua_tonumber(L, 8);
6719 arg11 = (
PLINT)lua_tonumber(L, 9);
6720 arg12 = (
PLFLT)lua_tonumber(L, 10);
6721 arg13 = (
PLFLT)lua_tonumber(L, 11);
6722 arg14 = (
PLINT)lua_tonumber(L, 12);
6723 arg15 = (
PLFLT)lua_tonumber(L, 13);
6725 arg17 = (
PLINT *) LUA_get_int_num_array_var( L, 14, &arg16 );
6736 lua_pushfstring( L,
"Tables must be of same length." );
6739 arg18 = malloc(
sizeof (
char* ) *
Alen );
6740 for ( i = 1; i <=
Alen; i++ )
6742 lua_rawgeti( L, 15, i );
6743 if ( lua_isstring( L, -1 ) )
6745 arg18[i - 1] = (
char *) lua_tostring( L, -1 );
6750 lua_pushfstring( L,
"Requires a sequence of strings." );
6762 arg20 = malloc(
sizeof (
char* ) *
Alen );
6763 for ( i = 1; i <=
Alen; i++ )
6765 lua_rawgeti( L, 16, i );
6766 if ( lua_isstring( L, -1 ) )
6768 arg20[i - 1] = (
char *) lua_tostring( L, -1 );
6773 lua_pushfstring( L,
"Requires a sequence of strings." );
6780 arg21 = (
PLFLT *) LUA_get_double_num_array_var( L, 17, &temp21 );
6783 if ( temp21 !=
Alen )
6785 lua_pushfstring( L,
"Tables must be of same length." );
6790 arg22 = (
PLINT *) LUA_get_int_num_array_var( L, 18, &temp22 );
6793 if ( temp22 !=
Alen )
6795 lua_pushfstring( L,
"Tables must be of same length." );
6802 arg23 = (
PLINT *) LUA_get_int_num_array_var( L, 19, &temp23 );
6805 if ( temp23 !=
Alen )
6807 lua_pushfstring( L,
"Tables must be of same length." );
6813 for ( i = 0; i <
Xlen; i++ )
6814 if ( arg23[i] >
Ylen )
6823 if ( ( ii24 !=
Xlen ) || ( jj !=
Ylen ) )
6825 lua_pushfstring( L,
"Vectors must match matrix." );
6829 plcolorbar(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,(
int const *)arg17,(
char const **)arg18,arg19,(
char const **)arg20,(
double const *)arg21,(
int const *)arg22,(
int const *)arg23,(
double const **)arg24);
6831 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6832 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6839 free( arg18 ); arg18 = NULL;
6845 free( arg20 ); arg20 = NULL;
6862 for ( i = 0; i < ii24; i++ )
6876 free( arg18 ); arg18 = NULL;
6882 free( arg20 ); arg20 = NULL;
6899 for ( i = 0; i < ii24; i++ )
6916 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pllightsource",1,
"PLFLT");
6917 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pllightsource",2,
"PLFLT");
6918 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"pllightsource",3,
"PLFLT");
6919 arg1 = (
PLFLT)lua_tonumber(L, 1);
6920 arg2 = (
PLFLT)lua_tonumber(L, 2);
6921 arg3 = (
PLFLT)lua_tonumber(L, 3);
6942 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6948 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
6951 if ( temp3 !=
Alen )
6953 lua_pushfstring( L,
"Tables must be of same length." );
6957 plline(arg1,(
double const *)arg2,(
double const *)arg3);
6991 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6997 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
7000 if ( temp3 !=
Alen )
7002 lua_pushfstring( L,
"Tables must be of same length." );
7007 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
7010 if ( temp4 !=
Alen )
7012 lua_pushfstring( L,
"Tables must be of same length." );
7016 plline3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
7050 arg1 = (
PLINT)lua_tonumber(L, 1);
7075 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7082 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7095 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7097 lua_pushfstring( L,
"Vectors must match matrix." );
7101 arg6 = (
PLINT)lua_tonumber(L, 4);
7102 plmesh((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6);
7115 for ( i = 0; i < ii3; i++ )
7134 for ( i = 0; i < ii3; i++ )
7160 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7167 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7180 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7182 lua_pushfstring( L,
"Vectors must match matrix." );
7186 arg6 = (
PLINT)lua_tonumber(L, 4);
7189 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7194 plmeshc((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7207 for ( i = 0; i < ii3; i++ )
7229 for ( i = 0; i < ii3; i++ )
7251 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
7274 arg1 = (
char *)lua_tostring(L, 1);
7275 arg2 = (
PLFLT)lua_tonumber(L, 2);
7276 arg3 = (
PLFLT)lua_tonumber(L, 3);
7277 arg4 = (
PLFLT)lua_tonumber(L, 4);
7278 arg5 = (
char *)lua_tostring(L, 5);
7279 plmtex((
char const *)arg1,arg2,arg3,arg4,(
char const *)arg5);
7303 arg1 = (
char *)lua_tostring(L, 1);
7304 arg2 = (
PLFLT)lua_tonumber(L, 2);
7305 arg3 = (
PLFLT)lua_tonumber(L, 3);
7306 arg4 = (
PLFLT)lua_tonumber(L, 4);
7307 arg5 = (
char *)lua_tostring(L, 5);
7308 plmtex3((
char const *)arg1,arg2,arg3,arg4,(
char const *)arg5);
7334 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7341 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7354 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7356 lua_pushfstring( L,
"Vectors must match matrix." );
7360 arg6 = (
PLINT)lua_tonumber(L, 4);
7361 arg7 = (
PLBOOL)lua_tonumber(L, 5);
7362 plot3d((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,arg7);
7375 for ( i = 0; i < ii3; i++ )
7394 for ( i = 0; i < ii3; i++ )
7420 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7427 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7440 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7442 lua_pushfstring( L,
"Vectors must match matrix." );
7446 arg6 = (
PLINT)lua_tonumber(L, 4);
7449 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7454 plot3dc((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7467 for ( i = 0; i < ii3; i++ )
7489 for ( i = 0; i < ii3; i++ )
7524 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7531 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7544 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7546 lua_pushfstring( L,
"Vectors must match matrix." );
7550 arg6 = (
PLINT)lua_tonumber(L, 4);
7553 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7558 arg9 = (
PLINT)lua_tonumber(L, 6);
7560 arg11 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &arg10 );
7566 arg12 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp12 );
7569 if ( temp12 !=
Alen )
7571 lua_pushfstring( L,
"Tables must be of same length." );
7575 plot3dcl((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,(
int const *)arg11,(
int const *)arg12);
7588 for ( i = 0; i < ii3; i++ )
7616 for ( i = 0; i < ii3; i++ )
7651 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7658 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7671 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7673 lua_pushfstring( L,
"Vectors must match matrix." );
7677 arg6 = (
PLINT)lua_tonumber(L, 4);
7680 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7685 plsurf3d((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7698 for ( i = 0; i < ii3; i++ )
7720 for ( i = 0; i < ii3; i++ )
7751 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plsurf3dl",4,
"PLINT");
7752 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plsurf3dl",6,
"PLINT");
7755 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7762 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7775 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7777 lua_pushfstring( L,
"Vectors must match matrix." );
7781 arg6 = (
PLINT)lua_tonumber(L, 4);
7784 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7789 arg9 = (
PLINT)lua_tonumber(L, 6);
7791 arg11 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &arg10 );
7797 arg12 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp12 );
7800 if ( temp12 !=
Alen )
7802 lua_pushfstring( L,
"Tables must be of same length." );
7806 plsurf3dl((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,(
int const *)arg11,(
int const *)arg12);
7819 for ( i = 0; i < ii3; i++ )
7847 for ( i = 0; i < ii3; i++ )
7874 if(!lua_istable(L,1))
SWIG_fail_arg(
"plparseopts",1,
"int *");
7875 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plparseopts",2,
"PLINT");
7884 lua_rawgeti( L, 1, i );
7885 if ( lua_isnil( L, -1 ) )
7898 for ( i = 0; i < n; i++ )
7900 lua_rawgeti( L, 1, i );
7901 if ( lua_isstring( L, -1 ) )
7903 arg2[i] = (
char *) lua_tostring( L, -1 );
7908 lua_pushfstring( L,
"List items must be strings" );
7916 arg3 = (
PLINT)lua_tonumber(L, 2);
7918 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7942 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &arg1 );
7948 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp3 );
7951 if ( temp3 !=
Alen )
7953 lua_pushfstring( L,
"Tables must be of same length." );
7957 plpat(arg1,(
int const *)arg2,(
int const *)arg3);
7993 arg1 = (
PLINT)lua_tonumber(L, 1);
7994 arg2 = (
PLFLT)lua_tonumber(L, 2);
7995 arg3 = (
PLFLT)lua_tonumber(L, 3);
7996 arg4 = (
PLFLT)lua_tonumber(L, 4);
7997 arg5 = (
PLFLT)lua_tonumber(L, 5);
7998 plpath(arg1,arg2,arg3,arg4,arg5);
8020 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
8026 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
8029 if ( temp3 !=
Alen )
8031 lua_pushfstring( L,
"Tables must be of same length." );
8035 arg4 = (
PLINT)lua_tonumber(L, 3);
8036 plpoin(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
8072 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
8078 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
8081 if ( temp3 !=
Alen )
8083 lua_pushfstring( L,
"Tables must be of same length." );
8088 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8091 if ( temp4 !=
Alen )
8093 lua_pushfstring( L,
"Tables must be of same length." );
8097 arg5 = (
PLINT)lua_tonumber(L, 4);
8098 plpoin3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,arg5);
8142 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
8148 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
8151 if ( temp3 !=
Alen )
8153 lua_pushfstring( L,
"Tables must be of same length." );
8158 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8161 if ( temp4 !=
Alen )
8163 lua_pushfstring( L,
"Tables must be of same length." );
8168 arg5 = (
PLINT *) LUA_get_int_num_array_var( L, 4, &temp5 );
8171 if ( temp5 <
Alen - 1 )
8173 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8177 arg6 = (
PLBOOL)lua_tonumber(L, 5);
8178 plpoly3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,(
int const *)arg5,arg6);
8220 arg1 = (
PLINT)lua_tonumber(L, 1);
8221 arg2 = (
PLINT)lua_tonumber(L, 2);
8238 arg1 = (
PLINT)lua_tonumber(L, 1);
8265 arg1 = (
PLFLT)lua_tonumber(L, 1);
8266 arg2 = (
PLFLT)lua_tonumber(L, 2);
8267 arg3 = (
PLFLT)lua_tonumber(L, 3);
8268 arg4 = (
PLFLT)lua_tonumber(L, 4);
8269 arg5 = (
PLFLT)lua_tonumber(L, 5);
8270 arg6 = (
char *)lua_tostring(L, 6);
8271 plptex(arg1,arg2,arg3,arg4,arg5,(
char const *)arg6);
8305 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plptex3",10,
"PLFLT");
8307 arg1 = (
PLFLT)lua_tonumber(L, 1);
8308 arg2 = (
PLFLT)lua_tonumber(L, 2);
8309 arg3 = (
PLFLT)lua_tonumber(L, 3);
8310 arg4 = (
PLFLT)lua_tonumber(L, 4);
8311 arg5 = (
PLFLT)lua_tonumber(L, 5);
8312 arg6 = (
PLFLT)lua_tonumber(L, 6);
8313 arg7 = (
PLFLT)lua_tonumber(L, 7);
8314 arg8 = (
PLFLT)lua_tonumber(L, 8);
8315 arg9 = (
PLFLT)lua_tonumber(L, 9);
8316 arg10 = (
PLFLT)lua_tonumber(L, 10);
8317 arg11 = (
char *)lua_tostring(L, 11);
8318 plptex3(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(
char const *)arg11);
8334 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
8376 arg1 = (
PLFLT)lua_tonumber(L, 1);
8377 arg2 = (
PLFLT)lua_tonumber(L, 2);
8378 arg3 = (
PLFLT)lua_tonumber(L, 3);
8379 plrgbhls(arg1,arg2,arg3,arg4,arg5,arg6);
8381 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
8382 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
8383 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
8400 arg1 = (
PLFLT)lua_tonumber(L, 1);
8401 arg2 = (
PLFLT)lua_tonumber(L, 2);
8424 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8430 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8433 if ( temp2 !=
Alen )
8435 lua_pushfstring( L,
"Tables must be of same length." );
8440 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8443 if ( temp3 !=
Alen )
8445 lua_pushfstring( L,
"Tables must be of same length." );
8450 plscmap0((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,arg4);
8491 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8497 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8500 if ( temp2 !=
Alen )
8502 lua_pushfstring( L,
"Tables must be of same length." );
8507 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8510 if ( temp3 !=
Alen )
8512 lua_pushfstring( L,
"Tables must be of same length." );
8518 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
8523 lua_pushfstring( L,
"Tables must be of same length." );
8528 plscmap0a((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,(
double const *)arg4,arg5);
8567 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap0n",1,
"PLINT");
8568 arg1 = (
PLINT)lua_tonumber(L, 1);
8591 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8597 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8600 if ( temp2 !=
Alen )
8602 lua_pushfstring( L,
"Tables must be of same length." );
8607 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8610 if ( temp3 !=
Alen )
8612 lua_pushfstring( L,
"Tables must be of same length." );
8617 plscmap1((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,arg4);
8658 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8664 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8667 if ( temp2 !=
Alen )
8669 lua_pushfstring( L,
"Tables must be of same length." );
8674 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8677 if ( temp3 !=
Alen )
8679 lua_pushfstring( L,
"Tables must be of same length." );
8685 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
8690 lua_pushfstring( L,
"Tables must be of same length." );
8695 plscmap1a((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,(
double const *)arg4,arg5);
8747 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1l",1,
"PLBOOL");
8748 arg1 = (
PLBOOL)lua_tonumber(L, 1);
8751 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
8757 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8760 if ( temp4 !=
Alen )
8762 lua_pushfstring( L,
"Tables must be of same length." );
8767 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp5 );
8770 if ( temp5 !=
Alen )
8772 lua_pushfstring( L,
"Tables must be of same length." );
8777 arg6 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp6 );
8780 if ( temp6 !=
Alen )
8782 lua_pushfstring( L,
"Tables must be of same length." );
8786 if(lua_gettop(L)>=6){
8788 if ( lua_isnil( L, 6 ) )
8794 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 6, &temp7 );
8797 if ( temp7 <
Alen - 1 )
8799 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8805 plscmap1l(arg1,arg2,(
double const *)arg3,(
double const *)arg4,(
double const *)arg5,(
double const *)arg6,(
int const *)arg7);
8865 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1la",1,
"PLBOOL");
8866 arg1 = (
PLBOOL)lua_tonumber(L, 1);
8869 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
8875 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8878 if ( temp4 !=
Alen )
8880 lua_pushfstring( L,
"Tables must be of same length." );
8885 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp5 );
8888 if ( temp5 !=
Alen )
8890 lua_pushfstring( L,
"Tables must be of same length." );
8895 arg6 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp6 );
8898 if ( temp6 !=
Alen )
8900 lua_pushfstring( L,
"Tables must be of same length." );
8905 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp7 );
8908 if ( temp7 !=
Alen )
8910 lua_pushfstring( L,
"Tables must be of same length." );
8914 if(lua_gettop(L)>=7){
8916 if ( lua_isnil( L, 7 ) )
8922 arg8 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp8 );
8925 if ( temp8 <
Alen - 1 )
8927 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8933 plscmap1la(arg1,arg2,(
double const *)arg3,(
double const *)arg4,(
double const *)arg5,(
double const *)arg6,(
double const *)arg7,(
int const *)arg8);
8984 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1n",1,
"PLINT");
8985 arg1 = (
PLINT)lua_tonumber(L, 1);
9002 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1_range",1,
"PLFLT");
9003 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plscmap1_range",2,
"PLFLT");
9004 arg1 = (
PLFLT)lua_tonumber(L, 1);
9005 arg2 = (
PLFLT)lua_tonumber(L, 2);
9028 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
9029 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
9050 arg1 = (
PLINT)lua_tonumber(L, 1);
9051 arg2 = (
PLINT)lua_tonumber(L, 2);
9052 arg3 = (
PLINT)lua_tonumber(L, 3);
9053 arg4 = (
PLINT)lua_tonumber(L, 4);
9078 arg1 = (
PLINT)lua_tonumber(L, 1);
9079 arg2 = (
PLINT)lua_tonumber(L, 2);
9080 arg3 = (
PLINT)lua_tonumber(L, 3);
9081 arg4 = (
PLINT)lua_tonumber(L, 4);
9082 arg5 = (
PLFLT)lua_tonumber(L, 5);
9083 plscol0a(arg1,arg2,arg3,arg4,arg5);
9103 arg1 = (
PLINT)lua_tonumber(L, 1);
9104 arg2 = (
PLINT)lua_tonumber(L, 2);
9105 arg3 = (
PLINT)lua_tonumber(L, 3);
9124 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscolbga",1,
"PLINT");
9125 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plscolbga",2,
"PLINT");
9126 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plscolbga",3,
"PLINT");
9127 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plscolbga",4,
"PLFLT");
9128 arg1 = (
PLINT)lua_tonumber(L, 1);
9129 arg2 = (
PLINT)lua_tonumber(L, 2);
9130 arg3 = (
PLINT)lua_tonumber(L, 3);
9131 arg4 = (
PLFLT)lua_tonumber(L, 4);
9148 arg1 = (
PLINT)lua_tonumber(L, 1);
9164 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscompression",1,
"PLINT");
9165 arg1 = (
PLINT)lua_tonumber(L, 1);
9182 arg1 = (
char *)lua_tostring(L, 1);
9183 plsdev((
char const *)arg1);
9205 arg1 = (
PLFLT)lua_tonumber(L, 1);
9206 arg2 = (
PLFLT)lua_tonumber(L, 2);
9207 arg3 = (
PLFLT)lua_tonumber(L, 3);
9208 arg4 = (
PLFLT)lua_tonumber(L, 4);
9235 arg1 = (
PLINT)lua_tonumber(L, 1);
9236 arg2 = (
PLINT)lua_tonumber(L, 2);
9237 arg3 = (
PLINT)lua_tonumber(L, 3);
9238 arg4 = (
PLINT)lua_tonumber(L, 4);
9239 arg5 = (
PLFLT)lua_tonumber(L, 5);
9240 arg6 = (
PLFLT)lua_tonumber(L, 6);
9241 plsdimap(arg1,arg2,arg3,arg4,arg5,arg6);
9257 arg1 = (
PLFLT)lua_tonumber(L, 1);
9280 arg1 = (
PLFLT)lua_tonumber(L, 1);
9281 arg2 = (
PLFLT)lua_tonumber(L, 2);
9282 arg3 = (
PLFLT)lua_tonumber(L, 3);
9283 arg4 = (
PLFLT)lua_tonumber(L, 4);
9306 arg1 = (
PLFLT)lua_tonumber(L, 1);
9307 arg2 = (
PLFLT)lua_tonumber(L, 2);
9308 arg3 = (
PLFLT)lua_tonumber(L, 3);
9309 arg4 = (
PLFLT)lua_tonumber(L, 4);
9325 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plseed",1,
"unsigned int");
9327 arg1 = (
unsigned int)lua_tonumber(L, 1);
9344 arg1 = (lua_tostring(L, 1))[0];
9364 arg1 = (
char *)lua_tostring(L, 1);
9365 arg2 = (
char *)lua_tostring(L, 2);
9366 result = (
PLINT)
plsetopt((
char const *)arg1,(
char const *)arg2);
9367 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
9386 arg1 = (
PLINT)lua_tonumber(L, 1);
9387 arg2 = (
PLINT)lua_tonumber(L, 2);
9388 arg3 = (
PLINT)lua_tonumber(L, 3);
9404 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plsfci",1,
"PLUNICODE");
9423 arg1 = (
char *)lua_tostring(L, 1);
9444 arg1 = (
PLINT)lua_tonumber(L, 1);
9445 arg2 = (
PLINT)lua_tonumber(L, 2);
9446 arg3 = (
PLINT)lua_tonumber(L, 3);
9481 cgrid117.
xg = cgrid117.
yg = cgrid117.
zg = NULL;
9482 cgrid117.
nx = cgrid117.
ny = cgrid117.
nz = 0;
9483 cgrid217.
xg = cgrid217.
yg = cgrid217.
zg = NULL;
9484 cgrid217.
nx = cgrid217.
ny = 0;
9506 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plshades",10,
"PLBOOL");
9516 arg5 = (
PLFLT)lua_tonumber(L, 2);
9517 arg6 = (
PLFLT)lua_tonumber(L, 3);
9518 arg7 = (
PLFLT)lua_tonumber(L, 4);
9519 arg8 = (
PLFLT)lua_tonumber(L, 5);
9522 arg9 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp );
9525 arg10 =
Alen = temp;
9527 arg11 = (
PLFLT)lua_tonumber(L, 7);
9528 arg12 = (
PLINT)lua_tonumber(L, 8);
9529 arg13 = (
PLFLT)lua_tonumber(L, 9);
9530 arg15 = (
PLBOOL)lua_tonumber(L, 10);
9531 if(lua_gettop(L)>=11){
9536 if ( lua_isstring( L, 11 ) )
9538 const char* funcstr = lua_tostring( L, 11 );
9539 if ( strcmp(
"pltr0", funcstr ) == 0 )
9543 else if ( strcmp(
"pltr1", funcstr ) == 0 )
9547 else if ( strcmp(
"pltr2", funcstr ) == 0 )
9562 if(lua_gettop(L)>=12){
9567 lua_pushstring( L,
"xg" );
9568 lua_gettable( L, 12 );
9569 if ( !lua_istable( L, -1 ) )
9572 lua_pushstring( L,
"expected a table xg" );
9575 lua_rawgeti( L, -1, 1 );
9576 if ( lua_istable( L, -1 ) )
9578 else if ( lua_isnumber( L, -1 ) )
9584 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
9588 if ( gridmode == 1 )
9590 cgrid117.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
9598 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
9611 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9614 lua_pushfstring( L,
"Vectors must match matrix." );
9622 lua_pushstring( L,
"yg" );
9623 lua_gettable( L, 12 );
9624 if ( !lua_istable( L, -1 ) )
9627 lua_pushstring( L,
"expected a table yg" );
9630 lua_rawgeti( L, -1, 1 );
9631 if ( gridmode == 2 )
9633 if ( !lua_istable( L, -1 ) )
9637 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
9643 if ( !lua_isnumber( L, -1 ) )
9647 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
9652 if ( gridmode == 1 )
9654 cgrid117.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
9662 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
9675 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9678 lua_pushfstring( L,
"Vectors must match matrix." );
9685 if ( gridmode == 1 )
9687 else if ( gridmode == 2 )
9691 plshades((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,(
double const *)arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17);
9698 for ( i = 0; i < ii1; i++ )
9717 for ( i = 0; i <
Xlen; i++ )
9723 for ( i = 0; i <
Xlen; i++ )
9736 for ( i = 0; i < ii1; i++ )
9755 for ( i = 0; i <
Xlen; i++ )
9761 for ( i = 0; i <
Xlen; i++ )
9799 cgrid121.
xg = cgrid121.
yg = cgrid121.
zg = NULL;
9800 cgrid121.
nx = cgrid121.
ny = cgrid121.
nz = 0;
9801 cgrid221.
xg = cgrid221.
yg = cgrid221.
zg = NULL;
9802 cgrid221.
nx = cgrid221.
ny = 0;
9825 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plshade",10,
"PLFLT");
9826 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plshade",11,
"PLINT");
9827 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plshade",12,
"PLFLT");
9828 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plshade",13,
"PLINT");
9829 if(!lua_isnumber(L,14))
SWIG_fail_arg(
"plshade",14,
"PLFLT");
9830 if(!lua_isnumber(L,15))
SWIG_fail_arg(
"plshade",15,
"PLBOOL");
9840 arg5 = (
PLFLT)lua_tonumber(L, 2);
9841 arg6 = (
PLFLT)lua_tonumber(L, 3);
9842 arg7 = (
PLFLT)lua_tonumber(L, 4);
9843 arg8 = (
PLFLT)lua_tonumber(L, 5);
9844 arg9 = (
PLFLT)lua_tonumber(L, 6);
9845 arg10 = (
PLFLT)lua_tonumber(L, 7);
9846 arg11 = (
PLINT)lua_tonumber(L, 8);
9847 arg12 = (
PLFLT)lua_tonumber(L, 9);
9848 arg13 = (
PLFLT)lua_tonumber(L, 10);
9849 arg14 = (
PLINT)lua_tonumber(L, 11);
9850 arg15 = (
PLFLT)lua_tonumber(L, 12);
9851 arg16 = (
PLINT)lua_tonumber(L, 13);
9852 arg17 = (
PLFLT)lua_tonumber(L, 14);
9853 arg19 = (
PLBOOL)lua_tonumber(L, 15);
9854 if(lua_gettop(L)>=16){
9859 if ( lua_isstring( L, 16 ) )
9861 const char* funcstr = lua_tostring( L, 16 );
9862 if ( strcmp(
"pltr0", funcstr ) == 0 )
9866 else if ( strcmp(
"pltr1", funcstr ) == 0 )
9870 else if ( strcmp(
"pltr2", funcstr ) == 0 )
9885 if(lua_gettop(L)>=17){
9890 lua_pushstring( L,
"xg" );
9891 lua_gettable( L, 17 );
9892 if ( !lua_istable( L, -1 ) )
9895 lua_pushstring( L,
"expected a table xg" );
9898 lua_rawgeti( L, -1, 1 );
9899 if ( lua_istable( L, -1 ) )
9901 else if ( lua_isnumber( L, -1 ) )
9907 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
9911 if ( gridmode == 1 )
9913 cgrid121.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
9921 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
9934 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9937 lua_pushfstring( L,
"Vectors must match matrix." );
9945 lua_pushstring( L,
"yg" );
9946 lua_gettable( L, 17 );
9947 if ( !lua_istable( L, -1 ) )
9950 lua_pushstring( L,
"expected a table yg" );
9953 lua_rawgeti( L, -1, 1 );
9954 if ( gridmode == 2 )
9956 if ( !lua_istable( L, -1 ) )
9960 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
9966 if ( !lua_isnumber( L, -1 ) )
9970 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
9975 if ( gridmode == 1 )
9977 cgrid121.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
9985 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
9998 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
10001 lua_pushfstring( L,
"Vectors must match matrix." );
10008 if ( gridmode == 1 )
10010 else if ( gridmode == 2 )
10014 plshade((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21);
10021 for ( i = 0; i < ii1; i++ )
10037 for ( i = 0; i <
Xlen; i++ )
10043 for ( i = 0; i <
Xlen; i++ )
10056 for ( i = 0; i < ii1; i++ )
10072 for ( i = 0; i <
Xlen; i++ )
10078 for ( i = 0; i <
Xlen; i++ )
10101 if ( lua_isnil( L, 1 ) )
10105 else if ( lua_isstring( L, 1 ) )
10138 arg1 = (
PLFLT)lua_tonumber(L, 1);
10139 arg2 = (
PLFLT)lua_tonumber(L, 2);
10158 arg1 = (
PLFLT)lua_tonumber(L, 1);
10159 arg2 = (
PLFLT)lua_tonumber(L, 2);
10176 arg1 = (
PLINT)lua_tonumber(L, 1);
10203 arg1 = (
PLFLT)lua_tonumber(L, 1);
10204 arg2 = (
PLFLT)lua_tonumber(L, 2);
10205 arg3 = (
PLINT)lua_tonumber(L, 3);
10206 arg4 = (
PLINT)lua_tonumber(L, 4);
10207 arg5 = (
PLINT)lua_tonumber(L, 5);
10208 arg6 = (
PLINT)lua_tonumber(L, 6);
10209 plspage(arg1,arg2,arg3,arg4,arg5,arg6);
10225 arg1 = (
char *)lua_tostring(L, 1);
10243 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plspal1",2,
"PLBOOL");
10244 arg1 = (
char *)lua_tostring(L, 1);
10245 arg2 = (
PLBOOL)lua_tonumber(L, 2);
10246 plspal1((
char const *)arg1,arg2);
10261 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plspause",1,
"PLBOOL");
10262 arg1 = (
PLBOOL)lua_tonumber(L, 1);
10279 arg1 = (
PLINT)lua_tonumber(L, 1);
10298 arg1 = (
PLINT)lua_tonumber(L, 1);
10299 arg2 = (
PLINT)lua_tonumber(L, 2);
10318 arg1 = (
PLFLT)lua_tonumber(L, 1);
10319 arg2 = (
PLFLT)lua_tonumber(L, 2);
10338 arg1 = (
PLINT)lua_tonumber(L, 1);
10339 arg2 = (
PLINT)lua_tonumber(L, 2);
10360 arg1 = (
char *)lua_tostring(L, 1);
10361 arg2 = (
PLINT)lua_tonumber(L, 2);
10362 arg3 = (
PLINT)lua_tonumber(L, 3);
10363 plstart((
char const *)arg1,arg2,arg3);
10386 if(lua_gettop(L)>=1){
10391 if ( lua_isstring( L, 1 ) )
10393 const char* funcstr = lua_tostring( L, 1 );
10424 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10427 arg1 =
Alen = temp;
10430 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10433 if ( temp3 !=
Alen )
10435 lua_pushfstring( L,
"Tables must be of same length." );
10439 arg4 = (
char *)lua_tostring(L, 3);
10440 plstring(arg1,(
double const *)arg2,(
double const *)arg3,(
char const *)arg4);
10476 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10479 arg1 =
Alen = temp;
10482 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10485 if ( temp3 !=
Alen )
10487 lua_pushfstring( L,
"Tables must be of same length." );
10492 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
10495 if ( temp4 !=
Alen )
10497 lua_pushfstring( L,
"Tables must be of same length." );
10501 arg5 = (
char *)lua_tostring(L, 4);
10502 plstring3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,(
char const *)arg5);
10538 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plstripa",1,
"PLINT");
10539 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plstripa",2,
"PLINT");
10540 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plstripa",3,
"PLFLT");
10541 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plstripa",4,
"PLFLT");
10542 arg1 = (
PLINT)lua_tonumber(L, 1);
10543 arg2 = (
PLINT)lua_tonumber(L, 2);
10544 arg3 = (
PLFLT)lua_tonumber(L, 3);
10545 arg4 = (
PLFLT)lua_tonumber(L, 4);
10574 char **arg17 = (
char **)0 ;
10589 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plstripc",3,
"PLFLT");
10590 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plstripc",4,
"PLFLT");
10591 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plstripc",5,
"PLFLT");
10592 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plstripc",6,
"PLFLT");
10593 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plstripc",7,
"PLFLT");
10594 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plstripc",8,
"PLFLT");
10595 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plstripc",9,
"PLFLT");
10596 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plstripc",10,
"PLBOOL");
10597 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plstripc",11,
"PLBOOL");
10598 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plstripc",12,
"PLINT");
10599 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plstripc",13,
"PLINT");
10600 if(lua_gettop(L)>=16 && !lua_istable(L,16))
SWIG_fail_arg(
"plstripc",16,
"char const *[4]");
10604 arg2 = (
char *)lua_tostring(L, 1);
10605 arg3 = (
char *)lua_tostring(L, 2);
10606 arg4 = (
PLFLT)lua_tonumber(L, 3);
10607 arg5 = (
PLFLT)lua_tonumber(L, 4);
10608 arg6 = (
PLFLT)lua_tonumber(L, 5);
10609 arg7 = (
PLFLT)lua_tonumber(L, 6);
10610 arg8 = (
PLFLT)lua_tonumber(L, 7);
10611 arg9 = (
PLFLT)lua_tonumber(L, 8);
10612 arg10 = (
PLFLT)lua_tonumber(L, 9);
10613 arg11 = (
PLBOOL)lua_tonumber(L, 10);
10614 arg12 = (
PLBOOL)lua_tonumber(L, 11);
10615 arg13 = (
PLINT)lua_tonumber(L, 12);
10616 arg14 = (
PLINT)lua_tonumber(L, 13);
10618 arg15 = (
PLINT *) LUA_get_int_num_array_var( L, 14, &temp15 );
10624 arg16 = (
PLINT *) LUA_get_int_num_array_var( L, 15, &temp16 );
10627 if ( temp16 !=
Alen )
10629 lua_pushfstring( L,
"Tables must be of same length." );
10633 if(lua_gettop(L)>=16){
10640 lua_pushfstring( L,
"Requires a sequence of 4 strings." );
10645 lua_pushfstring( L,
"colline and styline args must be length 4." );
10649 arg17 = malloc(
sizeof (
char* ) * 4 );
10650 for ( i = 1; i <= 4; i++ )
10652 lua_rawgeti( L, 16, i );
10653 if ( lua_isstring( L, -1 ) )
10655 arg17[i - 1] = (
char *) lua_tostring( L, -1 );
10660 lua_pushfstring( L,
"Requires a sequence of 4 strings." );
10668 if(lua_gettop(L)>=17){
10669 arg18 = (
char *)lua_tostring(L, 17);
10671 if(lua_gettop(L)>=18){
10672 arg19 = (
char *)lua_tostring(L, 18);
10674 if(lua_gettop(L)>=19){
10675 arg20 = (
char *)lua_tostring(L, 19);
10677 plstripc(arg1,(
char const *)arg2,(
char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,(
int const *)arg15,(
int const *)arg16,(
char const *(*))arg17,(
char const *)arg18,(
char const *)arg19,(
char const *)arg20);
10679 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
10689 free( arg17 ); arg17 = NULL;
10704 free( arg17 ); arg17 = NULL;
10717 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plstripd",1,
"PLINT");
10718 arg1 = (
PLINT)lua_tonumber(L, 1);
10738 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &arg1 );
10744 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp3 );
10747 if ( temp3 !=
Alen )
10749 lua_pushfstring( L,
"Tables must be of same length." );
10753 plstyl(arg1,(
int const *)arg2,(
int const *)arg3);
10783 arg2 = NULL; arg3 = 0;
10789 if(lua_gettop(L)>=3 && !lua_isnumber(L,3))
SWIG_fail_arg(
"plsvect",3,
"PLBOOL");
10792 if ( lua_isnil( L, 1 ) )
10799 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10805 if(lua_gettop(L)>=2){
10808 if ( lua_isnil( L, 2 ) )
10814 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
10817 if ( temp !=
Alen )
10819 lua_pushfstring( L,
"Tables must be of same length." );
10826 if(lua_gettop(L)>=3){
10827 arg4 = (
PLBOOL)lua_tonumber(L, 3);
10829 plsvect((
double const *)arg1,(
double const *)arg2,arg3,arg4);
10857 arg1 = (
PLFLT)lua_tonumber(L, 1);
10858 arg2 = (
PLFLT)lua_tonumber(L, 2);
10859 arg3 = (
PLFLT)lua_tonumber(L, 3);
10860 arg4 = (
PLFLT)lua_tonumber(L, 4);
10861 plsvpa(arg1,arg2,arg3,arg4);
10879 arg1 = (
PLINT)lua_tonumber(L, 1);
10880 arg2 = (
PLINT)lua_tonumber(L, 2);
10899 arg1 = (
PLINT)lua_tonumber(L, 1);
10900 arg2 = (
PLINT)lua_tonumber(L, 2);
10923 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10926 arg1 =
Alen = temp;
10929 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10932 if ( temp3 !=
Alen )
10934 lua_pushfstring( L,
"Tables must be of same length." );
10938 arg4 = (
PLINT)lua_tonumber(L, 3);
10939 plsym(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
10969 arg1 = (
PLINT)lua_tonumber(L, 1);
10970 arg2 = (
PLINT)lua_tonumber(L, 2);
11001 arg1 = (
char *)lua_tostring(L, 1);
11018 arg1 = (
PLFLT)lua_tonumber(L, 1);
11044 cgrid17.
xg = cgrid17.
yg = cgrid17.
zg = NULL;
11045 cgrid17.
nx = cgrid17.
ny = cgrid17.
nz = 0;
11046 cgrid27.
xg = cgrid27.
yg = cgrid27.
zg = NULL;
11047 cgrid27.
nx = cgrid27.
ny = 0;
11074 if ( ( arg3 !=
Xlen ) || ( arg4 !=
Ylen ) )
11076 lua_pushfstring( L,
"Vectors must match matrix." );
11080 arg5 = (
PLFLT)lua_tonumber(L, 3);
11081 if(lua_gettop(L)>=4){
11086 if ( lua_isstring( L, 4 ) )
11088 const char* funcstr = lua_tostring( L, 4 );
11089 if ( strcmp(
"pltr0", funcstr ) == 0 )
11093 else if ( strcmp(
"pltr1", funcstr ) == 0 )
11097 else if ( strcmp(
"pltr2", funcstr ) == 0 )
11112 if(lua_gettop(L)>=5){
11117 lua_pushstring( L,
"xg" );
11118 lua_gettable( L, 5 );
11119 if ( !lua_istable( L, -1 ) )
11122 lua_pushstring( L,
"expected a table xg" );
11125 lua_rawgeti( L, -1, 1 );
11126 if ( lua_istable( L, -1 ) )
11128 else if ( lua_isnumber( L, -1 ) )
11134 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
11138 if ( gridmode == 1 )
11140 cgrid17.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
11148 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
11161 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
11164 lua_pushfstring( L,
"Vectors must match matrix." );
11172 lua_pushstring( L,
"yg" );
11173 lua_gettable( L, 5 );
11174 if ( !lua_istable( L, -1 ) )
11177 lua_pushstring( L,
"expected a table yg" );
11180 lua_rawgeti( L, -1, 1 );
11181 if ( gridmode == 2 )
11183 if ( !lua_istable( L, -1 ) )
11187 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
11193 if ( !lua_isnumber( L, -1 ) )
11197 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
11202 if ( gridmode == 1 )
11204 cgrid17.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
11212 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
11225 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
11228 lua_pushfstring( L,
"Vectors must match matrix." );
11235 if ( gridmode == 1 )
11237 else if ( gridmode == 2 )
11241 plvect((
double const **)arg1,(
double const **)arg2,arg3,arg4,arg5,arg6,arg7);
11248 for ( i = 0; i < ii1; i++ )
11258 for ( i = 0; i < ii2; i++ )
11274 for ( i = 0; i <
Xlen; i++ )
11280 for ( i = 0; i <
Xlen; i++ )
11293 for ( i = 0; i < ii1; i++ )
11303 for ( i = 0; i < ii2; i++ )
11319 for ( i = 0; i <
Xlen; i++ )
11325 for ( i = 0; i <
Xlen; i++ )
11349 arg1 = (
PLFLT)lua_tonumber(L, 1);
11350 arg2 = (
PLFLT)lua_tonumber(L, 2);
11351 arg3 = (
PLFLT)lua_tonumber(L, 3);
11352 arg4 = (
PLFLT)lua_tonumber(L, 4);
11353 arg5 = (
PLFLT)lua_tonumber(L, 5);
11354 plvpas(arg1,arg2,arg3,arg4,arg5);
11376 arg1 = (
PLFLT)lua_tonumber(L, 1);
11377 arg2 = (
PLFLT)lua_tonumber(L, 2);
11378 arg3 = (
PLFLT)lua_tonumber(L, 3);
11379 arg4 = (
PLFLT)lua_tonumber(L, 4);
11380 plvpor(arg1,arg2,arg3,arg4);
11430 arg1 = (
PLFLT)lua_tonumber(L, 1);
11431 arg2 = (
PLFLT)lua_tonumber(L, 2);
11432 arg3 = (
PLFLT)lua_tonumber(L, 3);
11433 arg4 = (
PLFLT)lua_tonumber(L, 4);
11434 arg5 = (
PLFLT)lua_tonumber(L, 5);
11435 arg6 = (
PLFLT)lua_tonumber(L, 6);
11436 arg7 = (
PLFLT)lua_tonumber(L, 7);
11437 arg8 = (
PLFLT)lua_tonumber(L, 8);
11438 arg9 = (
PLFLT)lua_tonumber(L, 9);
11439 arg10 = (
PLFLT)lua_tonumber(L, 10);
11440 arg11 = (
PLFLT)lua_tonumber(L, 11);
11441 plw3d(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
11457 arg1 = (
PLFLT)lua_tonumber(L, 1);
11480 arg1 = (
PLFLT)lua_tonumber(L, 1);
11481 arg2 = (
PLFLT)lua_tonumber(L, 2);
11482 arg3 = (
PLFLT)lua_tonumber(L, 3);
11483 arg4 = (
PLFLT)lua_tonumber(L, 4);
11484 plwind(arg1,arg2,arg3,arg4);
11502 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plxormod",1,
"PLBOOL");
11503 arg1 = (
PLBOOL)lua_tonumber(L, 1);
11506 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
11534 if ( lua_isnil( L, 1 ) )
11538 else if ( lua_isstring( L, 1 ) )
11547 arg2 = (
char *)lua_tostring(L, 2);
11548 arg3 = (
PLFLT)lua_tonumber(L, 3);
11549 arg4 = (
PLFLT)lua_tonumber(L, 4);
11550 arg5 = (
PLFLT)lua_tonumber(L, 5);
11551 arg6 = (
PLFLT)lua_tonumber(L, 6);
11552 plmap(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6);
11582 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmapline",3,
"PLFLT");
11583 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapline",4,
"PLFLT");
11584 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapline",5,
"PLFLT");
11585 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapline",6,
"PLFLT");
11590 if ( lua_isnil( L, 1 ) )
11594 else if ( lua_isstring( L, 1 ) )
11603 arg2 = (
char *)lua_tostring(L, 2);
11604 arg3 = (
PLFLT)lua_tonumber(L, 3);
11605 arg4 = (
PLFLT)lua_tonumber(L, 4);
11606 arg5 = (
PLFLT)lua_tonumber(L, 5);
11607 arg6 = (
PLFLT)lua_tonumber(L, 6);
11609 if ( lua_isnil( L, 7 ) )
11616 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp7 );
11622 plmapline(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6,(
int const *)arg7,arg8);
11660 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapstring",4,
"PLFLT");
11661 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapstring",5,
"PLFLT");
11662 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapstring",6,
"PLFLT");
11663 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmapstring",7,
"PLFLT");
11668 if ( lua_isnil( L, 1 ) )
11672 else if ( lua_isstring( L, 1 ) )
11681 arg2 = (
char *)lua_tostring(L, 2);
11682 arg3 = (
char *)lua_tostring(L, 3);
11683 arg4 = (
PLFLT)lua_tonumber(L, 4);
11684 arg5 = (
PLFLT)lua_tonumber(L, 5);
11685 arg6 = (
PLFLT)lua_tonumber(L, 6);
11686 arg7 = (
PLFLT)lua_tonumber(L, 7);
11688 if ( lua_isnil( L, 8 ) )
11695 arg8 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp8 );
11701 plmapstring(arg1,(
char const *)arg2,(
char const *)arg3,arg4,arg5,arg6,arg7,(
int const *)arg8,arg9);
11739 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmaptex",3,
"PLFLT");
11740 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmaptex",4,
"PLFLT");
11741 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmaptex",5,
"PLFLT");
11743 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmaptex",7,
"PLFLT");
11744 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plmaptex",8,
"PLFLT");
11745 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plmaptex",9,
"PLFLT");
11746 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plmaptex",10,
"PLFLT");
11747 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plmaptex",11,
"PLINT");
11752 if ( lua_isnil( L, 1 ) )
11756 else if ( lua_isstring( L, 1 ) )
11765 arg2 = (
char *)lua_tostring(L, 2);
11766 arg3 = (
PLFLT)lua_tonumber(L, 3);
11767 arg4 = (
PLFLT)lua_tonumber(L, 4);
11768 arg5 = (
PLFLT)lua_tonumber(L, 5);
11769 arg6 = (
char *)lua_tostring(L, 6);
11770 arg7 = (
PLFLT)lua_tonumber(L, 7);
11771 arg8 = (
PLFLT)lua_tonumber(L, 8);
11772 arg9 = (
PLFLT)lua_tonumber(L, 9);
11773 arg10 = (
PLFLT)lua_tonumber(L, 10);
11774 arg11 = (
PLINT)lua_tonumber(L, 11);
11775 plmaptex(arg1,(
char const *)arg2,arg3,arg4,arg5,(
char const *)arg6,arg7,arg8,arg9,arg10,arg11);
11805 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmapfill",3,
"PLFLT");
11806 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapfill",4,
"PLFLT");
11807 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapfill",5,
"PLFLT");
11808 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapfill",6,
"PLFLT");
11813 if ( lua_isnil( L, 1 ) )
11817 else if ( lua_isstring( L, 1 ) )
11826 arg2 = (
char *)lua_tostring(L, 2);
11827 arg3 = (
PLFLT)lua_tonumber(L, 3);
11828 arg4 = (
PLFLT)lua_tonumber(L, 4);
11829 arg5 = (
PLFLT)lua_tonumber(L, 5);
11830 arg6 = (
PLFLT)lua_tonumber(L, 6);
11832 if ( lua_isnil( L, 7 ) )
11839 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp7 );
11845 plmapfill(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6,(
int const *)arg7,arg8);
11878 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plmeridians",2,
"PLFLT");
11879 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmeridians",3,
"PLFLT");
11880 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmeridians",4,
"PLFLT");
11881 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmeridians",5,
"PLFLT");
11882 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmeridians",6,
"PLFLT");
11883 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmeridians",7,
"PLFLT");
11888 if ( lua_isnil( L, 1 ) )
11892 else if ( lua_isstring( L, 1 ) )
11901 arg2 = (
PLFLT)lua_tonumber(L, 2);
11902 arg3 = (
PLFLT)lua_tonumber(L, 3);
11903 arg4 = (
PLFLT)lua_tonumber(L, 4);
11904 arg5 = (
PLFLT)lua_tonumber(L, 5);
11905 arg6 = (
PLFLT)lua_tonumber(L, 6);
11906 arg7 = (
PLFLT)lua_tonumber(L, 7);
11949 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plimage",10,
"PLFLT");
11950 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plimage",11,
"PLFLT");
11960 arg4 = (
PLFLT)lua_tonumber(L, 2);
11961 arg5 = (
PLFLT)lua_tonumber(L, 3);
11962 arg6 = (
PLFLT)lua_tonumber(L, 4);
11963 arg7 = (
PLFLT)lua_tonumber(L, 5);
11964 arg8 = (
PLFLT)lua_tonumber(L, 6);
11965 arg9 = (
PLFLT)lua_tonumber(L, 7);
11966 arg10 = (
PLFLT)lua_tonumber(L, 8);
11967 arg11 = (
PLFLT)lua_tonumber(L, 9);
11968 arg12 = (
PLFLT)lua_tonumber(L, 10);
11969 arg13 = (
PLFLT)lua_tonumber(L, 11);
11970 plimage((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
11977 for ( i = 0; i < ii1; i++ )
11990 for ( i = 0; i < ii1; i++ )
12020 cgrid113.
xg = cgrid113.
yg = cgrid113.
zg = NULL;
12021 cgrid113.
nx = cgrid113.
ny = cgrid113.
nz = 0;
12022 cgrid213.
xg = cgrid213.
yg = cgrid213.
zg = NULL;
12023 cgrid213.
nx = cgrid213.
ny = 0;
12032 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plimagefr",2,
"PLFLT");
12033 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plimagefr",3,
"PLFLT");
12034 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plimagefr",4,
"PLFLT");
12035 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plimagefr",5,
"PLFLT");
12036 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plimagefr",6,
"PLFLT");
12037 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plimagefr",7,
"PLFLT");
12038 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plimagefr",8,
"PLFLT");
12039 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plimagefr",9,
"PLFLT");
12049 arg4 = (
PLFLT)lua_tonumber(L, 2);
12050 arg5 = (
PLFLT)lua_tonumber(L, 3);
12051 arg6 = (
PLFLT)lua_tonumber(L, 4);
12052 arg7 = (
PLFLT)lua_tonumber(L, 5);
12053 arg8 = (
PLFLT)lua_tonumber(L, 6);
12054 arg9 = (
PLFLT)lua_tonumber(L, 7);
12055 arg10 = (
PLFLT)lua_tonumber(L, 8);
12056 arg11 = (
PLFLT)lua_tonumber(L, 9);
12057 if(lua_gettop(L)>=10){
12062 if ( lua_isstring( L, 10 ) )
12064 const char* funcstr = lua_tostring( L, 10 );
12065 if ( strcmp(
"pltr0", funcstr ) == 0 )
12069 else if ( strcmp(
"pltr1", funcstr ) == 0 )
12073 else if ( strcmp(
"pltr2", funcstr ) == 0 )
12088 if(lua_gettop(L)>=11){
12093 lua_pushstring( L,
"xg" );
12094 lua_gettable( L, 11 );
12095 if ( !lua_istable( L, -1 ) )
12098 lua_pushstring( L,
"expected a table xg" );
12101 lua_rawgeti( L, -1, 1 );
12102 if ( lua_istable( L, -1 ) )
12104 else if ( lua_isnumber( L, -1 ) )
12110 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
12114 if ( gridmode == 1 )
12116 cgrid113.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
12117 if ( !cgrid113.
xg )
12124 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
12132 if ( !cgrid213.
xg )
12137 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
12140 lua_pushfstring( L,
"Vectors must match matrix." );
12148 lua_pushstring( L,
"yg" );
12149 lua_gettable( L, 11 );
12150 if ( !lua_istable( L, -1 ) )
12153 lua_pushstring( L,
"expected a table yg" );
12156 lua_rawgeti( L, -1, 1 );
12157 if ( gridmode == 2 )
12159 if ( !lua_istable( L, -1 ) )
12163 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
12169 if ( !lua_isnumber( L, -1 ) )
12173 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
12178 if ( gridmode == 1 )
12180 cgrid113.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
12181 if ( !cgrid113.
yg )
12188 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
12196 if ( !cgrid213.
yg )
12201 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
12204 lua_pushfstring( L,
"Vectors must match matrix." );
12211 if ( gridmode == 1 )
12213 else if ( gridmode == 2 )
12217 plimagefr((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
12224 for ( i = 0; i < ii1; i++ )
12240 for ( i = 0; i <
Xlen; i++ )
12246 for ( i = 0; i <
Xlen; i++ )
12259 for ( i = 0; i < ii1; i++ )
12275 for ( i = 0; i <
Xlen; i++ )
12281 for ( i = 0; i <
Xlen; i++ )
12327 arg1 = (
char *)lua_tostring(L, 1);
12328 arg2 = (
char *)lua_tostring(L, 2);
12329 plSetUsage((
char const *)arg1,(
char const *)arg2);
12378 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
12379 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
12385 for ( i = 0; i < ii1; i++ )
12398 for ( i = 0; i < ii1; i++ )
12421 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
12435 if(!lua_isstring(L,1))
SWIG_fail_arg(
"plwarn",1,
"char const *");
12437 arg1 = (
char *) lua_tostring( L, 1 );
12439 plwarn((
char const *)arg1);
12454 if(!lua_isstring(L,1))
SWIG_fail_arg(
"plabort",1,
"char const *");
12456 arg1 = (
char *) lua_tostring( L, 1 );
13037#define SWIGRUNTIME_DEBUG
13040#ifndef SWIG_INIT_CLIENT_DATA_TYPE
13041#define SWIG_INIT_CLIENT_DATA_TYPE void *
13052 return (pca->
next || pcb->
next == 0) ? -1 : 1;
13054 return (pcb->
next || pca->
next == 0) ? 1 : -1;
13062 const int hmax = size/9;
13064 for(h = 1; h <= hmax; h = 3*h+1);
13065 for(; h > 0; h /= 3)
13067 for(i = h; i < size; ++i)
13070 unsigned int hash = cast[i].
value;
13072 while(j >= h && hash < cast[j-h].
value)
13079 cast[j].
value = hash;
13103 if (!module_head) {
13116 }
while (iter!= module_head);
13127 if (init == 0)
return;
13130#ifdef SWIGRUNTIME_DEBUG
13131 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.size);
13137 int num_mapped = 0;
13139#ifdef SWIGRUNTIME_DEBUG
13140 printf(
"SWIG_InitializeModule: type %lu %s\n", (
unsigned long)i,
swig_module.type_initial[i]->name);
13149#ifdef SWIGRUNTIME_DEBUG
13150 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
13153 type->clientdata =
swig_module.type_initial[i]->clientdata;
13154#ifdef SWIGRUNTIME_DEBUG
13155 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13164 while (cast->
type) {
13168#ifdef SWIGRUNTIME_DEBUG
13169 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
13176#ifdef SWIGRUNTIME_DEBUG
13177 printf(
"SWIG_InitializeModule: found cast %s\n", target_type->
name);
13180#ifdef SWIGRUNTIME_DEBUG
13181 printf(
"SWIG_InitializeModule: skip old type %s\n", target_type->
name);
13183 cast->
type = target_type;
13188#ifdef SWIGRUNTIME_DEBUG
13189 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", target_type->
name);
13191 if (!ocast) target_type = 0;
13196 if (!target_type) {
13197#ifdef SWIGRUNTIME_DEBUG
13198 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
13204 if (type == cast->
type) {
13205#ifdef SWIGRUNTIME_DEBUG
13206 printf(
"%s : self cast at pos [%li]\n", type->name, cast - first);
13208 if (cast - first) {
13226 if (cast - first) {
13234 for (tmp = first; tmp < cast; tmp++) {
13241 cast->
value = num_mapped - 1;
13243 num_mapped -= (int)(first - cast);
13244 if (num_mapped > 1) {
13250 first = type->cast;
13254 first->
next = cast;
13266#ifdef SWIGRUNTIME_DEBUG
13267 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
13271 printf(
"SWIG_InitializeModule: type %lu %s\n", (
unsigned long)i,
swig_module.type_initial[i]->name);
13272 while (cast->
type) {
13273 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
13277 printf(
"---- Total casts: %d\n",j);
13279 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
13291 static int init_run = 0;
13293 if (init_run)
return;
13301 for (cast =
head; (cast -
head) <=
head->value; cast++) {
13332#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
13338#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13340 int globalRegister = 0;
13348#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE)
13354#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13361#ifdef SWIG_LUA_MODULE_GLOBAL
13362 globalRegister = 1;
13366#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
13370#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
13378#if defined(SWIG_LUA_ELUA_EMULATE)
13381 SWIG_Lua_elua_emulate_register_clear(L);
13382 if(globalRegister) {
13384 lua_pushvalue(L,-2);
13391#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13411 " pl = plplotluac";
alias void function(PLINT, PLFLT *, PLFLT *) fill_func
void plSetUsage(PLCHAR_VECTOR program_string, PLCHAR_VECTOR usage_string)
void pltr2(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer pltr_data)
void pltr1(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer pltr_data)
void pltr0(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer PL_UNUSED(pltr_data))
void plwarn(PLCHAR_VECTOR errormsg)
static PLFLT value(double n1, double n2, double hue)
void plabort(PLCHAR_VECTOR errormsg)
void plMinMax2dGrid(PLFLT_MATRIX f, PLINT nx, PLINT ny, PLFLT *fnmax, PLFLT *fnmin)
PLINT plGetCursor(PLGraphicsIn *plg)
#define pl_setcontlabelformat
#define pl_setcontlabelparam
void *(* swig_converter_func)(void *, int *)
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L)
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
static int _wrap_ptex(lua_State *L)
static int _wrap_PLGraphicsIn_wX_get(lua_State *L)
static int _wrap_surf3dl(lua_State *L)
static int _wrap_scmap1(lua_State *L)
PLFLT ** read_double_Matrix(lua_State *L, int index, int *nx, int *ny)
static int _wrap_clear(lua_State *L)
SWIGRUNTIME void * SWIG_Lua_MustGetPtr(lua_State *L, int index, swig_type_info *type, int flags, int argnum, const char *func_name)
static int _wrap_szax(lua_State *L)
#define SWIG_DOSTRING_FAIL(S)
static int _wrap_wind(lua_State *L)
static swig_cast_info * swig_cast_initial[]
static int _wrap_PLGraphicsIn_button_get(lua_State *L)
void mylabel(PLINT axis, PLFLT value, char *label, PLINT length, PLPointer data)
static int _wrap_configtime(lua_State *L)
static int _wrap_sori(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L, int index, void **ptr, swig_type_info *type, int flags)
static int _wrap_mesh(lua_State *L)
static int _wrap_gyax(lua_State *L)
static int _wrap_box(lua_State *L)
#define SWIG_ALLOC_ARRAY(TYPE, LEN)
static int _wrap_spage(lua_State *L)
static int _wrap_mkstrm(lua_State *L)
SWIGRUNTIME void SWIG_Lua_SetModule(lua_State *L, swig_module_info *module)
static int _wrap_PLGraphicsIn_keysym_get(lua_State *L)
SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, int skip_check)
static swig_type_info _swigt__p_f_double_double_p_double_p_double_p_void__void
static int _wrap_PLGraphicsIn_subwindow_get(lua_State *L)
static int _wrap_rgbhls(lua_State *L)
static int _wrap_scmap1_range(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pusherrstring(lua_State *L, const char *str)
static int _wrap_plend(lua_State *L)
SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME, TYPE)
SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L)
static int _wrap_hlsrgb(lua_State *L)
SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns)
#define SWIG_CheckState(r)
static int _wrap_meridians(lua_State *L)
#define SWIG_fail_ptr(func_name, argnum, type)
static swig_cast_info _swigc__p_f_double_double__int[]
#define SWIG_NewMemberObj(L, ptr, sz, type)
static int _wrap_env0(lua_State *L)
static swig_cast_info _swigc__p_int[]
SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss)
static int _wrap_gcolbga(lua_State *L)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
static int _wrap_gvpd(lua_State *L)
void myct(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data)
SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss)
SWIGRUNTIME const char * SWIG_Lua_typename(lua_State *L, int tp)
static int _wrap_ssym(lua_State *L)
static swig_cast_info _swigc__p_double[]
static swig_lua_method swig_PLGraphicsIn_meta[]
#define SWIGTYPE_p_PLGraphicsIn
static int _wrap_plGetCursor(lua_State *L)
static int _wrap_gxax(lua_State *L)
void(* label_func)(PLINT, PLFLT, char *, PLINT, PLPointer)
static int _wrap_PLGraphicsIn_pY_set(lua_State *L)
static swig_lua_attribute swig_PLGraphicsIn_Sf_SwigStatic_attributes[]
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
static int _wrap_seed(lua_State *L)
static int _wrap_sdiplt(lua_State *L)
static int _wrap_psty(lua_State *L)
static swig_lua_attribute swig_PLGraphicsIn_attributes[]
static int _wrap_cont(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L, int index, void *ptr, size_t size, swig_type_info *type)
static int _wrap_scmap0a(lua_State *L)
static int _wrap_gradient(lua_State *L)
SWIGINTERN void SWIG_write_ptr_array(lua_State *L, void **array, int size, swig_type_info *type, int own)
static int _wrap_setcontlabelparam(lua_State *L)
SWIGINTERN int SWIG_CastCmpStruct(const void *pa, const void *pb)
SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info *SWIGUNUSED swig_type, int first_arg, swig_lua_base_iterator_func func, int *const ret)
void(* mapform_func)(PLINT, PLFLT *, PLFLT *)
void mypltr(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data)
static int _wrap_width(lua_State *L)
static int _wrap_hist(lua_State *L)
static int _wrap_text(lua_State *L)
#define SWIG_ConvertPtr(L, idx, ptr, type, flags)
static int _wrap_gspa(lua_State *L)
SWIGINTERN int SWIG_Lua_dostring(lua_State *L, const char *str)
static int _wrap_vpor(lua_State *L)
void(* pltr_func)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer)
static int _wrap_colorbar(lua_State *L)
static int _wrap_flush(lua_State *L)
static int _wrap_sym(lua_State *L)
static swig_cast_info _swigc__p_f_double_double_p_double_p_double_p_void__void[]
static int _wrap_PLGraphicsIn_state_get(lua_State *L)
static int _wrap_xormod(lua_State *L)
#define SWIG_fail_arg(func_name, argnum, type)
static int _wrap_spause(lua_State *L)
SWIGRUNTIME unsigned int SWIG_Hash(const char *str, unsigned int len)
#define SWIG_Lua_get_table(L, n)
static int _wrap_sdidev(lua_State *L)
static int _wrap_scmap1n(lua_State *L)
static int _wrap_setcontlabelformat(lua_State *L)
static int _wrap_gcmap1_range(lua_State *L)
#define SWIG_RUNTIME_VERSION
static int _wrap_sdimap(lua_State *L)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
static int _wrap_ssub(lua_State *L)
static int _wrap_new_PLGraphicsIn(lua_State *L)
static int _wrap_scmap1a(lua_State *L)
#define SWIG_Lua_add_function(L, n, f)
static int _wrap_abort(lua_State *L)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
static int _wrap_glevel(lua_State *L)
static int _wrap_PLGraphicsIn_dX_get(lua_State *L)
static int _wrap_pat(lua_State *L)
static char mylabel_funcstr[255]
static int _wrap_gchr(lua_State *L)
SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index)
static int _wrap_PLGraphicsIn_pY_get(lua_State *L)
static int _wrap_sfci(lua_State *L)
static int _wrap_shade(lua_State *L)
SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L)
static swig_type_info * swig_types[13]
static int _wrap_gpage(lua_State *L)
static int _wrap_plResetOpts(lua_State *L)
static swig_cast_info _swigc__p_f_int_p_double_p_double__void[]
static int _wrap_lightsource(lua_State *L)
static int _wrap_sfont(lua_State *L)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
static int _wrap_calc_world(lua_State *L)
static int _wrap_plot3dcl(lua_State *L)
static int _wrap_gvpw(lua_State *L)
static int _wrap_plOptUsage(lua_State *L)
static swig_module_info swig_module
static int _wrap_image(lua_State *L)
static const char * swig_PLGraphicsIn_base_names[]
static int _wrap_PLGraphicsIn_state_set(lua_State *L)
static swig_lua_class * swig_PLGraphicsIn_bases[]
static int _wrap_parseopts(lua_State *L)
static int _wrap_MinMax2dGrid(lua_State *L)
static swig_type_info _swigt__p_double
static int _wrap_gdiori(lua_State *L)
#define SWIG_SetModule(clientdata, pointer)
static int _wrap_famadv(lua_State *L)
#define SWIG_INIT_CLIENT_DATA_TYPE
static int _wrap_scolbga(lua_State *L)
static int _wrap_font(lua_State *L)
static int _wrap_gzax(lua_State *L)
static char mypltr_funcstr[255]
static int _wrap_scmap1la(lua_State *L)
static int _wrap_slabelfunc(lua_State *L)
#define SWIG_POINTER_RELEASE
static swig_lua_class * swig_SwigModule_classes[]
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGINTERN int SWIG_itable_size(lua_State *L, int index)
SWIGRUNTIME swig_module_info * SWIG_Lua_GetModule(lua_State *L)
static int _wrap_env(lua_State *L)
static int _wrap_PLGraphicsIn_string_get(lua_State *L)
static swig_type_info _swigt__p_p_char
#define lua_rawsetp(L, index, ptr)
static int _wrap_timefmt(lua_State *L)
static int _wrap_plend1(lua_State *L)
static int _wrap_box3(lua_State *L)
static int _wrap_map(lua_State *L)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
static int _wrap_gfam(lua_State *L)
static swig_type_info _swigt__p_p_double
#define SWIG_POINTER_CLEAR
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
static int _wrap_stripc(lua_State *L)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
static int _wrap_scmap0n(lua_State *L)
static int _wrap_errx(lua_State *L)
static int _wrap_sstrm(lua_State *L)
void mapform(PLINT n, PLFLT *x, PLFLT *y)
static int _wrap_gstrm(lua_State *L)
SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L)
static int _wrap_init(lua_State *L)
static int _wrap_sfam(lua_State *L)
static int _wrap_replot(lua_State *L)
SWIGINTERN void SWIG_Lua_add_variable(lua_State *L, const char *name, lua_CFunction getFn, lua_CFunction setFn)
static swig_lua_namespace * swig_SwigModule_namespaces[]
#define SWIG_check_num_args(func_name, a, b)
static swig_lua_class * swig_PLGraphicsIn_Sf_SwigStatic_classes[]
static int _wrap_svect(lua_State *L)
#define SWIG_LUA_CONSTTAB_INT(B, C)
static int _wrap_poin(lua_State *L)
static int _wrap_mapfill(lua_State *L)
SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L)
static int _wrap_scol0a(lua_State *L)
static int _wrap_PLGraphicsIn_string_set(lua_State *L)
static int _wrap_star(lua_State *L)
static int _wrap_fontld(lua_State *L)
static int _wrap_line(lua_State *L)
SWIGINTERN int SWIG_Lua_class_get(lua_State *L)
SWIGRUNTIME int SWIG_Lua_type(lua_State *L)
SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg)
#define SWIG_LUA_CONSTTAB_FLOAT(B, C)
PLFLT(* f2eval_func)(PLINT, PLINT, PLPointer)
static int _wrap_plClearOpts(lua_State *L)
static int _wrap_legend(lua_State *L)
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L)
static swig_cast_info _swigc__p_char[]
SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss)
static int _wrap_poin3(lua_State *L)
static int _wrap_plot3d(lua_State *L)
static swig_type_info _swigt__p_f_int_p_q_const__double_p_q_const__double__void
PLINT(* defined_func)(PLFLT, PLFLT)
static int _wrap_vasp(lua_State *L)
#define SWIG_NewPointerObj(L, ptr, type, owner)
static int _wrap_imagefr(lua_State *L)
static swig_cast_info _swigc__p_p_double[]
static int _wrap_gver(lua_State *L)
SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L, swig_type_info *type)
static int _wrap_scolbg(lua_State *L)
#define SWIG_FREE_ARRAY(PTR)
static int _wrap_PLGraphicsIn_keysym_set(lua_State *L)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static int _wrap_w3d(lua_State *L)
static swig_lua_const_info swig_SwigModule_constants[]
static int _wrap_PLGraphicsIn_dY_get(lua_State *L)
static char mapform_funcstr[255]
static int _wrap_stransform(lua_State *L)
SWIGINTERN void SWIG_Lua_class_register(lua_State *L, swig_lua_class *clss)
SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L, void *ptr, swig_type_info *type, int own)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
static int _wrap_scolor(lua_State *L)
static int _wrap_line3(lua_State *L)
SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L)
static swig_lua_const_info swig_PLGraphicsIn_Sf_SwigStatic_constants[]
void(* ct_func)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer)
#define SWIG_POINTER_NO_NULL
static const char * lua_tolstring(lua_State *L, int idx, size_t *len)
static int _wrap_gdidev(lua_State *L)
static int _wrap_axes(lua_State *L)
static int _wrap_PLGraphicsIn_type_get(lua_State *L)
#define lua_absindex(L, i)
static int _wrap_warn(lua_State *L)
SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns)
static int _wrap_randd(lua_State *L)
#define SWIG_NullReferenceError
static int _wrap_arc(lua_State *L)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
static int _wrap_stripa(lua_State *L)
static int _wrap_PLGraphicsIn_type_set(lua_State *L)
static int _wrap_join(lua_State *L)
static void swig_delete_PLGraphicsIn(void *obj)
static int _wrap_cpstrm(lua_State *L)
static int _wrap_gdiplt(lua_State *L)
#define SWIG_POINTER_DISOWN
SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L)
SWIGINTERN void ** SWIG_get_ptr_array_var(lua_State *L, int index, int *size, swig_type_info *type)
struct swig_type_info swig_type_info
static char myct_funcstr[255]
static int _wrap_gcompression(lua_State *L)
static int _wrap_string(lua_State *L)
SWIGINTERN int SWIG_Lua_class_disown(lua_State *L)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
static swig_type_info _swigt__p_PLGraphicsIn
SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L, swig_lua_class *clss)
static int _wrap_path(lua_State *L)
static swig_type_info _swigt__p_f_double_double__int
static int _wrap_PLGraphicsIn_subwindow_set(lua_State *L)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
static int _wrap_smaj(lua_State *L)
static int _wrap_gfci(lua_State *L)
static int _wrap_start(lua_State *L)
static int _wrap_meshc(lua_State *L)
static int _wrap_plot3dc(lua_State *L)
static int _wrap_PLGraphicsIn_wY_get(lua_State *L)
static int _wrap_ctime(lua_State *L)
SWIGINTERN int SWIG_read_ptr_array(lua_State *L, int index, void **array, int size, swig_type_info *type)
SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret)
static int _wrap_lsty(lua_State *L)
static int _wrap_gfnam(lua_State *L)
static int _wrap_bin(lua_State *L)
static int _wrap_mapline(lua_State *L)
static int _wrap_gcol0(lua_State *L)
static int _wrap_PLGraphicsIn_dX_set(lua_State *L)
SWIGINTERN int SWIG_Lua_class_set(lua_State *L)
SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx)
SWIGINTERN void SWIG_CastHashSort(swig_cast_info *cast, int size)
#define SWIG_GetModule(clientdata)
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L, void *ptr, size_t size, swig_type_info *type)
static int _wrap_PLGraphicsIn_wX_set(lua_State *L)
static int _wrap_bop(lua_State *L)
SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L)
static swig_cast_info _swigc__p_unsigned_int[]
static int _wrap_ptex3(lua_State *L)
static swig_type_info _swigt__p_int
static swig_lua_method swig_SwigModule_methods[]
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
static int _wrap_eop(lua_State *L)
SWIGRUNTIME void SWIG_PropagateClientData(void)
static swig_cast_info _swigc__p_f_int_double_p_char_int_p_void__void[]
static int _wrap_plSetUsage(lua_State *L)
#define lua_pushglobaltable(L)
static int _wrap_poly3(lua_State *L)
static swig_lua_method swig_PLGraphicsIn_Sf_SwigStatic_methods[]
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
#define LUA_ALLOC_ARRAY(TYPE, LEN)
static int _wrap_prec(lua_State *L)
static int _wrap_sdev(lua_State *L)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
#define SWIG_isptrtype(L, I)
static int _wrap_PLGraphicsIn_pX_set(lua_State *L)
#define SWIG_ERROR_RELEASE_NOT_OWNED
#define LUA_DECLARE_TYPEMAP_ARR_FN(NAME, TYPE)
static int _wrap_string3(lua_State *L)
static int _wrap_spal1(lua_State *L)
#define SWIG_TYPE_TABLE_NAME
static int _wrap_surf3d(lua_State *L)
static swig_type_info _swigt__p_unsigned_int
static swig_lua_namespace swig_PLGraphicsIn_Sf_SwigStatic
SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L, swig_lua_class *clss)
static int _wrap_spal0(lua_State *L)
static int _wrap_griddata(lua_State *L)
static swig_type_info _swigt__p_f_int_p_double_p_double__void
static int _wrap_adv(lua_State *L)
static int _wrap_gra(lua_State *L)
#define SWIG_contract_assert(expr, msg)
int(* swig_lua_base_iterator_func)(lua_State *, swig_type_info *, int, int *ret)
static int _wrap_smin(lua_State *L)
SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L)
static int _wrap_gcol0a(lua_State *L)
static int _wrap_vect(lua_State *L)
static swig_lua_namespace swig_SwigModule
#define LUA_FREE_ARRAY(PTR)
static int _wrap_lab(lua_State *L)
static swig_type_info _swigt__p_f_int_double_p_char_int_p_void__void
static int _wrap_setopt(lua_State *L)
static int _wrap_shades(lua_State *L)
static int _wrap_PLGraphicsIn_button_set(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pushferrstring(lua_State *L, const char *fmt,...)
static swig_type_info * swig_type_initial[]
static int _wrap_mapstring(lua_State *L)
static int _wrap_col1(lua_State *L)
static int _wrap_btime(lua_State *L)
SWIGINTERN int SWIG_table_size(lua_State *L, int index)
static int _wrap_mtex3(lua_State *L)
static int _wrap_sdiplz(lua_State *L)
static int _wrap_styl(lua_State *L)
static int _wrap_vsta(lua_State *L)
static swig_cast_info _swigc__p_PLGraphicsIn[]
static int _wrap_sfnam(lua_State *L)
static int _wrap_fill(lua_State *L)
static int _wrap_mtex(lua_State *L)
static int _wrap_scmap1l(lua_State *L)
static swig_cast_info _swigc__p_p_char[]
static int _wrap_erry(lua_State *L)
static swig_lua_attribute swig_SwigModule_attributes[]
static int _wrap_PLGraphicsIn_pX_get(lua_State *L)
static swig_type_info _swigt__p_char
static int _wrap_col0(lua_State *L)
static swig_lua_method swig_PLGraphicsIn_methods[]
static int _wrap_gfont(lua_State *L)
SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L)
void(* fill_func)(PLINT, const PLFLT *, const PLFLT *)
static int _wrap_svpa(lua_State *L)
static int _wrap_scmap0(lua_State *L)
static int _wrap_vpas(lua_State *L)
static int _wrap_schr(lua_State *L)
static int _wrap_sxax(lua_State *L)
static int _wrap_stripd(lua_State *L)
static int _wrap_syax(lua_State *L)
static int _wrap_gcolbg(lua_State *L)
static swig_lua_class _wrap_class_PLGraphicsIn
static int _wrap_scompression(lua_State *L)
static int _wrap_maptex(lua_State *L)
static int _wrap_PLGraphicsIn_dY_set(lua_State *L)
static swig_cast_info _swigc__p_f_int_p_q_const__double_p_q_const__double__void[]
static int _wrap_scol0(lua_State *L)
SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[])
static int _wrap_sesc(lua_State *L)
SWIGINTERN void ** SWIG_get_ptr_array_fixed(lua_State *L, int index, int size, swig_type_info *type)
static int _wrap_sdiori(lua_State *L)
static int _proxy__wrap_new_PLGraphicsIn(lua_State *L)
SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L, const char *cname)
static int _wrap_PLGraphicsIn_wY_set(lua_State *L)
SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss)
static int _wrap_gdev(lua_State *L)
#define SWIG_Lua_add_boolean(L, n, b)
static int _wrap_fill3(lua_State *L)
#define lua_rawgetp(L, index, ptr)
#define SWIGRUNTIMEINLINE
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
struct swig_cast_info * next
swig_converter_func converter
void(* destructor)(void *)
swig_lua_attribute * attributes
swig_lua_namespace * cls_static
struct swig_lua_class ** bases
swig_lua_method * metatable
lua_CFunction constructor
swig_lua_method * methods
swig_lua_method * ns_methods
swig_lua_attribute * ns_attributes
struct swig_lua_class ** ns_classes
swig_lua_const_info * ns_constants
struct swig_lua_namespace ** ns_namespaces
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast
void mapform(PLINT n, PLFLT *x, PLFLT *y)
static tclMatrixXtnsnDescr * head