9 #ifndef RAMSES_DCSMCONTENTCONTROL_H
10 #define RAMSES_DCSMCONTENTCONTROL_H
19 class RamsesFramework;
20 class IDcsmContentControlEventHandler;
21 class IRendererEventHandler;
22 class DcsmStatusMessage;
370 friend class RamsesRendererImpl;
#define RAMSES_API
Definition: APIExport.h:35
Update of information about a DCSM category. Contains information like changes in size....
Definition: CategoryInfoUpdate.h:29
DcsmContentControl provides way to interact with both Dcsm (as consumer) and renderer content control...
Definition: DcsmContentControl.h:70
status_t showContent(ContentID contentID, AnimationInformation timingInfo)
Shows the content. The content must be ready to be shown - see ramses::DcsmContentControl::requestCon...
status_t unlinkData(ContentID consumerContentID, dataConsumerId_t consumerId)
Removes an existing link between data provider and consumer (linkData) or offscreen buffer and consum...
status_t setCategoryInfo(Category categoryId, const CategoryInfoUpdate &categoryInfo, AnimationInformation timingInfo)
Sets new category info for given category.
status_t hideContent(ContentID contentID, AnimationInformation timingInfo)
Hides the content. The content must be shown.
status_t removeContentCategory(Category category)
Remove a content category.
DcsmContentControl()=delete
Deleted default constructor.
status_t requestContentReady(ContentID contentID, uint64_t timeOut)
Requests that the provided content is ready to show.
status_t linkContentToTextureConsumer(ContentID contentID, ContentID consumerContentID, dataConsumerId_t consumerId)
Creates a data link between given content as texture and a consumer data slot defined in Ramses scene...
status_t releaseContent(ContentID contentID, AnimationInformation timingInfo)
Stops using content.
status_t assignContentToDisplayBuffer(ContentID contentID, displayBufferId_t displayBuffer, int32_t renderOrder=0)
Redirects rendering output of a content to a display buffer.
status_t linkData(ContentID providerContentID, dataProviderId_t providerId, ContentID consumerContentID, dataConsumerId_t consumerId)
Creates a data link between data slots defined in Ramses scene.
status_t handlePickEvent(ContentID contentID, float bufferNormalizedCoordX, float bufferNormalizedCoordY)
status_t addContentCategory(Category category, displayId_t display, const CategoryInfoUpdate &categoryInformation)
Add a content category.
status_t linkOffscreenBuffer(displayBufferId_t offscreenBufferId, ContentID consumerContentID, dataConsumerId_t consumerId)
Creates a data link between offscreen buffer and a consumer data slot defined in Ramses scene.
DcsmContentControl & operator=(const DcsmContentControl &other)=delete
Deleted copy assignment.
class DcsmContentControlImpl & m_impl
Implementation.
Definition: DcsmContentControl.h:366
DcsmContentControl(const DcsmContentControl &)=delete
Deleted copy constructor.
status_t update(uint64_t timeStampNow, IDcsmContentControlEventHandler &eventHandler)
Do one update cycle which flushes any pending commands, dispatches events from both Dcsm and renderer...
status_t sendContentStatus(ContentID contentID, DcsmStatusMessage const &message)
Send a message to the provider of the content assigned to this content control.
status_t acceptStopOffer(ContentID contentID, AnimationInformation timingInfo)
Stops using given content and accepts the request from provider.
The base class of a message to be sent from DCSM consumer to provider.
Definition: DcsmStatusMessage.h:28
Callback handler interface for events emitted by ramses::DcsmContentControl.
Definition: IDcsmContentControlEventHandler.h:32
The StatusObject provides status message handling.
Definition: StatusObject.h:22
Helper class to create strongly typed values out of various types.
Definition: StronglyTypedValue.h:23
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
constexpr ramses::ContentID consumerContentID
Definition: main.cpp:77
constexpr ramses::ContentID providerContentID
Definition: main.cpp:76