RAMSES Documentation  27.0.130
Information for RAMSES users and developers
DcsmMetadataCreator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2019 BMW AG
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_DCSMMETADATACREATOR_H
10 #define RAMSES_DCSMMETADATACREATOR_H
11 
15 #include <string>
16 
17 namespace ramses
18 {
30  {
31  public:
34 
37 
47  status_t setPreviewImagePng(const void* data, size_t dataLength);
48 
57  status_t setPreviewDescription(std::u32string previewDescription);
58 
66  status_t setWidgetOrder(int32_t widgetOrder);
67 
75  status_t setWidgetBackgroundID(int32_t backgroundID);
76 
84  status_t setWidgetHUDLineID(int32_t hudLineID);
85 
93  status_t setCarModel(int32_t carModel);
94 
103  status_t setCarModelView(const CarModelViewMetadata& viewMetadata, const AnimationInformation& timingInfo);
104 
114 
122  status_t setCarModelVisibility(bool visibility);
123 
133 
141  status_t setStreamID(int32_t streamID);
142 
151 
162 
172 
182 
188 
195 
200  DcsmMetadataCreator(const DcsmMetadataCreator& other) = delete;
201 
208 
212  class DcsmMetadataCreatorImpl& impl;
213  };
214 }
215 
216 #endif
#define RAMSES_API
Definition: APIExport.h:35
Class to create DCSM metadata object to be used in DcsmProvider.
Definition: DcsmMetadataCreator.h:30
status_t setCarModel(int32_t carModel)
Set car model metadata entry. Requests car model to be put into widget at consumer side.
DcsmMetadataCreator & operator=(DcsmMetadataCreator &&other)=delete
Deleted move assignment.
DcsmMetadataCreator & operator=(const DcsmMetadataCreator &other)=delete
Deleted copy assignment.
status_t setExclusiveBackground(bool state)
Set the exclusive background metadata entry. Requests to show widget exclusively without other overla...
status_t setPreviewImagePng(const void *data, size_t dataLength)
Set preview image metadata entry. Data must point to a valid in memory representation of a PNG file f...
status_t setCarModelVisibility(bool visibility)
Set car model visibility metadata entry. Requests car model visibility at consumer side.
status_t setLayoutAvailability(uint8_t flags)
Set widget layout dependency to the given M Modes.
status_t setDisplayedDataFlags(uint32_t flags)
Set displayed data flags metadata entry.
status_t setContentFlippedVertically(bool state)
Set the contentFlippedVertically metadata entry. Requests to show widget mirrored on Y-axis.
~DcsmMetadataCreator()
Destructor.
status_t setWidgetBackgroundID(int32_t backgroundID)
Set widget background ID metadata entry. Requests specific background at consumer side.
status_t setPreviewDescription(std::u32string previewDescription)
Set preview description metadata entry. Must be a valid utf32 string.
status_t setStreamID(int32_t streamID)
Set the streamID metadata entry. Requests to start/show specified stream.
status_t setWidgetOrder(int32_t widgetOrder)
Set widget order metadata entry. Used to determine order within a dcsm category.
status_t setCarModelView(const CarModelViewMetadata &viewMetadata, const AnimationInformation &timingInfo)
Set car model view metadata entry. Requests car model view parameters at consumer side.
status_t setConfiguratorPriority(uint8_t priority)
Set the widget configurator priority for this dcsm content.
status_t setWidgetHUDLineID(int32_t hudLineID)
Set widget hud line ID metadata entry. Requests specific HUD line style at consumer side.
class DcsmMetadataCreatorImpl & impl
Definition: DcsmMetadataCreator.h:212
DcsmMetadataCreator()
Constructor.
DcsmMetadataCreator(const DcsmMetadataCreator &other)=delete
Deleted copy constructor.
status_t setCarModelViewExtended(const CarModelViewMetadataExtended &viewMetadata)
Set car model view extended metadata entry. Provides additional values for setCarModelView()
DcsmMetadataCreator(DcsmMetadataCreator &&other)=delete
Deleted move constructor.
The StatusObject provides status message handling.
Definition: StatusObject.h:22
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
uint32_t status_t
Status is a handle to the result of an API call.
Definition: RamsesFrameworkTypes.h:26
Definition: DcsmApiTypes.h:152
Struct containing extended metadata about car model views It's an extension for CarModelViewMetadata.
Definition: CarModelViewMetadata.h:75
Struct containing metadata about car model views.
Definition: CarModelViewMetadata.h:20