1#ifndef COIN_SOJAVASCRIPTENGINE_H
2#define COIN_SOJAVASCRIPTENGINE_H
36#include <Inventor/misc/SoScriptEngine.h>
37#include <Inventor/C/glue/spidermonkey.h>
38#include <Inventor/lists/SbList.h>
42#define COIN_JAVASCRIPT_RUNTIME_MAXBYTES 4194304
58 virtual SbBool executeScript(
const SbName & name,
60 virtual SbBool executeFile(
const SbName & filename)
const;
61 virtual SbBool executeFunction(
const SbName &name,
int argc,
65 virtual SbBool setScriptField(
const SbName & name,
const SoField * f)
const;
66 virtual SbBool unsetScriptField(
const SbName & name)
const;
67 virtual SbBool getScriptField(
const SbName & name,
SoField * f)
const;
68 virtual SbBool hasScriptField(
const SbName & name)
const;
76 void enableAutoNodeUnref(SbBool
onoff);
77 SbBool getAutoNodeUnrefState(
void)
const;
79 static SbBool init(uint32_t
maxbytes = COIN_JAVASCRIPT_RUNTIME_MAXBYTES);
80 static void shutdown(
void);
81 static SbBool debug(
void);
87 void addHandler(
const SoType & type, SoJSWrapperInitFunc * init,
88 SoJSfield2jsvalFunc * field2jsval,
89 SoJSjsval2field2Func * jsval2field);
97 class SoJavaScriptEngineP * pimpl;
98 friend class SoJavaScriptEngineP;
The SbList class is a template container class for lists.
Definition SbList.h:70
The SbName class stores strings by reference.
Definition SbName.h:40
The SbString class is a string class with convenience functions for string operations.
Definition SbString.h:52
The SoField class is the top-level abstract base class for fields.
Definition SoField.h:47
The SoJavaScriptEngine class is yet to be documented.
Definition SoJavaScriptEngine.h:52
Definition SoScriptEngine.h:40
The SoType class is the basis for the runtime type system in Coin.
Definition SoType.h:59