SA_WebService
Summary
A web service manager responible to send saved plan on the server.
Constructor
SA_WebService
Syntax
SA_WebService
(
-
core
-
options
Summary
Parameters:
-
core
CoreThe main engine.
-
options
ObjectA dictionary that contains options.
Item Index
Methods
Methods
_sendToServer
Syntax
_sendToServer
(
private
-
plan
-
success
-
error
Summary
Checks if the user is connected and send a plan to the server.
destroy
Syntax
destroy
()
Summary
Method called when the component is destroyeddisable
Syntax
disable
()
Summary
Disables the componentenable
Syntax
enable
()
Summary
Enables the componentgetTargeted
Syntax
Summary
Finds out if the given position is over an element handled by the componentParameters:
-
vector
VectorA position, usually the cursor's one.
Returns:
Object:
The targeted element, or null if nothing is found.
initialize
Syntax
initialize
()
Summary
Method called when Wanaplan is initialized. You don't need to call this method manually.onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
context
StringThe new context
save
Syntax
save
(
-
plans
-
success
-
error
Summary
Save plans on the server.