Constructor
new ExhibitionElementModel(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Filled with data loaded in ExhibitionProvider#load |
Members
(private) dataCompleter_ :Completer
- Description:
Completer is a helper which returns a promise. Its solved if all artwork info data is loaded.
- Source:
Completer is a helper which returns a promise. Its solved if all artwork info data is loaded.
Type:
- Completer
externUrl :string
- Description:
Defines whether an external application exists for the artwork. A corresponding button is then displayed in the frontend when the activation zone of the artwork is entered. On click a layer opens in which the external application is loaded in an iFrame.
- Source:
Defines whether an external application exists for the artwork. A corresponding button is then displayed in the frontend when the activation zone of the artwork is entered. On click a layer opens in which the external application is loaded in an iFrame.
Type:
- string
file3D :string
- Description:
Path of the uploaded glb file
- Source:
Path of the uploaded glb file
Type:
- string
fileHighres3D :string
- Description:
Optional path of the high resolution glb file uploaded
- Source:
Optional path of the high resolution glb file uploaded
Type:
- string
(nullable) id :number
- Description:
Unique identifier from the backend
- Source:
Unique identifier from the backend
Type:
- number
infos :Array.<ExhibitionElementInfoModel>
- Description:
List from information models that belong to this artwork. When entering the artwork, a corresponding info button is displayed. If more than one info model is included, a selection menu is created in the info layer before the content is displayed.
- Source:
List from information models that belong to this artwork. When entering the artwork, a corresponding info button is displayed. If more than one info model is included, a selection menu is created in the info layer before the content is displayed.
Type:
- Array.<ExhibitionElementInfoModel>
interactionArea :Rect
- Description:
Describes the area of the activation zone for a work of art. If height is set, a rectangle is used otherwise a circle (width corresponds to the radius).
- Source:
Describes the area of the activation zone for a work of art. If height is set, a rectangle is used otherwise a circle (width corresponds to the radius).
Type:
- Rect
orbitView :ExhibitionElementOrbitViewModel
- Description:
Defines if the possibility of an orbit view should be offered for the artwork. A corresponding button is then displayed in the frontend when entering the activation zone of the artwork. On click the control is changed to an orbit control around the artwork.
- Source:
Defines if the possibility of an orbit view should be offered for the artwork. A corresponding button is then displayed in the frontend when entering the activation zone of the artwork. On click the control is changed to an orbit control around the artwork.
Type:
position :THREE.Vector3
- Description:
Position within the exhibits
- Source:
Position within the exhibits
Type:
- THREE.Vector3
rotation :number
- Description:
Rotation within the exhibits
- Source:
Rotation within the exhibits
Type:
- number
Methods
(private) generateInfos_(result)
- Description:
Creates all ExhibitionElementInfoModel from the loaded data and save them in the model.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
result |
Array.<Object> |
loadInfos() → {Promise}
- Description:
Load the artwork info from the backend via the POST service
/get-exhibit-data
sending the uniqueexhibit-id
(corresponds to the model id). For local development, the URL parameterbackend=0
can be used to replace the request by loading every time the same test json filepublic/json/exhibit-info.json
.
- Source:
Returns:
- Type
- Promise