Class SweetHome3DJSApplication
Defined in: SweetHome3DJSApplication.js.
Constructor Attributes | Constructor Name and Description |
---|---|
HomeApplication implementation for JavaScript. |
Method Attributes | Method Name and Description |
---|---|
createHomeController(home)
Create the
HomeController which controls the given home . |
|
getHomeController(home)
Returns the
HomeController associated to the given home . |
|
Returns the view factory which will create the views associated to their controllers.
|
Class Detail
SweetHome3DJSApplication()
HomeApplication
implementation for JavaScript.
Author: Emmanuel Puybaret, Renaud Pawlak.
- Parameters:
- {{furnitureCatalogURLs: string[],
furnitureResourcesURLBase: string,
texturesCatalogURLs: string[],
texturesResourcesURLBase: string,
readHomeURL: string,
writeHomeEditsURL|writeHomeURL: string,
closeHomeURL: string,
writeResourceURL: string,
readResourceURL: string,
writePreferencesURL: string,
readPreferencesURL: string,
writePreferencesResourceURL: string,
readPreferencesResourceURL: string,
pingURL: string,
autoWriteDelay: number,
trackedHomeProperties: string[],
autoWriteTrackedStateChange: boolean,
defaultUserLanguage: string,
writeCacheResourceURL: string,
readCacheResourceURL: string,
listCacheResourcesURL: string,
listHomesURL: string,
deleteHomeURL: string,
autoRecovery: boolean,
autoRecoveryDatabase: string,
autoRecoveryObjectstore: string,
silentAutoRecovery: boolean,
compressionLevel: number,
includeAllContent: boolean,
writeDataType: string,
writeHomeWithWorker: boolean,
defaultHomeName: string,
writingObserver: {writeStarted: Function,
writeSucceeded: Function,
writeFailed: Function,
connectionFound: Function,
connectionLost: Function}} [configuration]
the URLs of resources and services required on server
(if undefined, will use local files for testing).
If writePreferencesResourceURL / readPreferencesResourceURL is missing,
writeResourceURL / readResourceURL will be used.
If writeHomeEditsURL and readHomeURL are missing, application recorder will be
an instance of
HomeRecorder
. If writeHomeEditsURL is missing, application recorder will be an instance ofDirectHomeRecorder
. Auto recovery not available for incremental recorder.
Method Detail
createHomeController(home)
Create the
HomeController
which controls the given home
.
- Parameters:
- {Home} home
{HomeController}
getHomeController(home)
Returns the
HomeController
associated to the given home
.
- Parameters:
- home
- Returns:
- {HomeController}
{Object}
getViewFactory()
Returns the view factory which will create the views associated to their controllers.
- Returns:
- {Object}