Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoJavaScriptEngine Class Reference

The SoJavaScriptEngine class is yet to be documented. More...

#include <Inventor/misc/SoJavaScriptEngine.h>

Inheritance diagram for SoJavaScriptEngine:
SoScriptEngine

Public Member Functions

void addHandler (const SoType &type, SoJSWrapperInitFunc *init, SoJSfield2jsvalFunc *field2jsval, SoJSjsval2field2Func *jsval2field)
 
void enableAutoNodeUnref (SbBool onoff)
 
virtual SbBool executeFile (const SbName &filename) const
 
virtual SbBool executeFunction (const SbName &name, int argc, const SoField *argv, SoField *rval=NULL) const
 
virtual SbBool executeScript (const SbName &name, const SbString &script) const
 
SbBool field2jsval (const SoField *f, jsval *v) const
 
SbBool getAutoNodeUnrefState (void) const
 
JSContextgetContext (void) const
 
JSObjectgetGlobal (void) const
 
virtual SbBool getScriptField (const SbName &name, SoField *f) const
 
virtual SbBool hasScriptField (const SbName &name) const
 
SbBool jsval2field (const jsval v, SoField *f) const
 
virtual SbBool setScriptField (const SbName &name, const SoField *f) const
 
virtual SbBool unsetScriptField (const SbName &name) const
 

Static Public Member Functions

static SbBool debug (void)
 
static SoJavaScriptEnginegetEngine (JSContext *cx)
 
static JSRuntimegetRuntime (void)
 
static SbBool init (uint32_t maxbytes=4194304)
 
static void shutdown (void)
 

Protected Member Functions

void setContext (JSContext *context)
 
void setGlobal (JSObject *global)
 

Static Protected Member Functions

static void setRuntime (JSRuntime *runtime)
 

Detailed Description

The SoJavaScriptEngine class is yet to be documented.

Since
Coin 2.0

Member Function Documentation

◆ executeFile()

virtual SbBool SoJavaScriptEngine::executeFile ( const SbName & filename) const
virtual

Implements SoScriptEngine.

◆ executeFunction()

virtual SbBool SoJavaScriptEngine::executeFunction ( const SbName & name,
int argc,
const SoField * argv,
SoField * rval = NULL ) const
virtual

Implements SoScriptEngine.

◆ executeScript()

virtual SbBool SoJavaScriptEngine::executeScript ( const SbName & name,
const SbString & script ) const
virtual

Implements SoScriptEngine.

◆ getScriptField()

virtual SbBool SoJavaScriptEngine::getScriptField ( const SbName & name,
SoField * f ) const
virtual

Implements SoScriptEngine.

◆ hasScriptField()

virtual SbBool SoJavaScriptEngine::hasScriptField ( const SbName & name) const
virtual

Implements SoScriptEngine.

◆ setScriptField()

virtual SbBool SoJavaScriptEngine::setScriptField ( const SbName & name,
const SoField * f ) const
virtual

Implements SoScriptEngine.

◆ unsetScriptField()

virtual SbBool SoJavaScriptEngine::unsetScriptField ( const SbName & name) const
virtual

Implements SoScriptEngine.


The documentation for this class was generated from the following file: