EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Specifiche Pagina 210

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 304
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 209
CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 210
SoObjectInterface
When you add a JavaScript class with SoServerInterface.addClass(), you must provide this interface.
JavaScript calls the provided functions to interact with objects of the new class.
The
SoObjectInterface is an array of function pointers defined as follows:
SoObjectInterface {
SoObjectInitialize_f initialize;
SoObjectPut_f put;
SoObjectGet_f get;
SoObjectCall_f call;
SoObjectValueOf_f valueOf;
SoObjectToString_f toString;
SoObjectFinalize_f finalize;
}
eval()
ESerror_t eval (SohServer hServer, char* string, TaggedData* pTaggedData);
hServer
The SoHServer reference for this shared library, as passed to your global
ESClientInterface()
function on initialization.
string
A string containing the JavaScript expression to evaluate.
pTaggedData
A pointer to a TaggedData object in which to return the result of evaluation.
Calls the JavaScript interpreter to evaluate a JavaScript expression.
Returns an error code,
kESErrOK on success.
taggedDataInit()
ESerror_t taggedDataInit (SoHSever hServer, TaggedData* pTaggedData);
hServer
The SoHServer reference for this shared library, as passed to your global
ESClientInterface()
function on initialization.
pTaggedData
A pointer to the TaggedData.
Initializes a TaggedData
structure.
Returns an error code,
kESErrOK on success.
taggedDataFree()
ESerror_t setClientData (SoHServer hServer, TaggedData* pTaggedData);
hServer
The SoHServer reference for this shared library, as passed to your global
ESClientInterface()
function on initialization.
pTaggedData
A pointer to the TaggedData.
Frees memory being used by a TaggedData
structure.
Returns an error code,
kESErrOK on success.
Vedere la pagina 209
1 2 ... 205 206 207 208 209 210 211 212 213 214 215 ... 303 304

Commenti su questo manuale

Nessun commento