![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
Class representing DCSM consumer side. More...
#include <DcsmConsumer.h>
Public Member Functions | |
status_t | dispatchEvents (IDcsmConsumerEventHandler &handler) |
Calls handler functions synchronously in the caller context for DCSM events which were received asynchronously. This function must be called regularly to avoid buffer overflow of the internal queue. More... | |
status_t | assignContentToConsumer (ContentID contentID, const CategoryInfoUpdate &categoryInfo) |
Exclusively assign an offered content to this consumer. Sends a DCSM canvasSizeEvent for the given content ID. May only be called for offered content IDs. More... | |
status_t | contentSizeChange (ContentID contentID, const CategoryInfoUpdate &categoryInfo, AnimationInformation animationInformation) |
Send a DCSM contentSizeEvent for the given content ID. May only be called on assigned content IDs. Informs provider about canvas size change so it can adapt its content if needed. To allow a smooth transition animation start and end timestamp can be given during which the size change should be applied. More... | |
status_t | contentStateChange (ContentID contentID, EDcsmState state, AnimationInformation animationInformation) |
Send a DCSM contentStateChange for the given content ID. May only be called on assigned content IDs. Requests switch to a different content state from provider side. For more information refer to EDcsmState enum and DCSM documentation. More... | |
status_t | acceptStopOffer (ContentID contentID, AnimationInformation animationInformation) |
Accept a provider requesting to stop offering a content assigned to this consumer. May only be called as an answer to contentStopOfferRequest callback. The content may not be used after the given animation time any longer and also may not be assigned again until offered again. More... | |
status_t | sendContentStatus (ContentID contentID, DcsmStatusMessage const &message) |
Send a message to the provider of the content assigned to this consumer. More... | |
DcsmConsumer ()=delete | |
Deleted default constructor. More... | |
DcsmConsumer (const DcsmConsumer &other)=delete | |
Deleted copy constructor. More... | |
DcsmConsumer & | operator= (const DcsmConsumer &other)=delete |
Deleted copy assignment. More... | |
DcsmConsumer (DcsmConsumerImpl &impl_) | |
Constructor from impl. More... | |
~DcsmConsumer () override | |
Destructor. More... | |
![]() | |
status_t | validate () const |
Generates verbose validation of the object. More... | |
const char * | getValidationReport (EValidationSeverity minSeverity=EValidationSeverity_Info) const |
Provides verbose report in human readable form generated by validate. More... | |
const char * | getStatusMessage (status_t status) const |
Get the string description for a status provided by a RAMSES API function. More... | |
StatusObject (const StatusObject &other)=delete | |
Deleted copy constructor. More... | |
StatusObject & | operator= (const StatusObject &other)=delete |
Deleted copy assignment. More... | |
Public Attributes | |
DcsmConsumerImpl & | impl |
![]() | |
class StatusObjectImpl & | impl |
Additional Inherited Members | |
![]() | |
StatusObject (StatusObjectImpl &pimpl) | |
Constructor for StatusObject. More... | |
virtual | ~StatusObject () |
Destructor of the StatusObject. More... | |
Class representing DCSM consumer side.
|
delete |
Deleted default constructor.
|
delete |
Deleted copy constructor.
other | unused |
|
explicit |
Constructor from impl.
impl_ | impl |
|
override |
Destructor.
status_t ramses::DcsmConsumer::acceptStopOffer | ( | ContentID | contentID, |
AnimationInformation | animationInformation | ||
) |
Accept a provider requesting to stop offering a content assigned to this consumer. May only be called as an answer to contentStopOfferRequest callback. The content may not be used after the given animation time any longer and also may not be assigned again until offered again.
contentID | content for which the stopOffer is being accepted |
animationInformation | start and end times of the transition. May be null for immediate change. |
status_t ramses::DcsmConsumer::assignContentToConsumer | ( | ContentID | contentID, |
const CategoryInfoUpdate & | categoryInfo | ||
) |
Exclusively assign an offered content to this consumer. Sends a DCSM canvasSizeEvent for the given content ID. May only be called for offered content IDs.
contentID | content to assign to this consumer |
categoryInfo | expected size of the assigned category |
status_t ramses::DcsmConsumer::contentSizeChange | ( | ContentID | contentID, |
const CategoryInfoUpdate & | categoryInfo, | ||
AnimationInformation | animationInformation | ||
) |
Send a DCSM contentSizeEvent for the given content ID. May only be called on assigned content IDs. Informs provider about canvas size change so it can adapt its content if needed. To allow a smooth transition animation start and end timestamp can be given during which the size change should be applied.
This method has to be called after this consumer is assigned for the content and every time the rendering viewport size for this content changes while it is still using the content.
contentID | content which is affected by the canvas size change |
categoryInfo | expected size after the transition |
animationInformation | start and end times of the transition. May be null for immediate change. |
status_t ramses::DcsmConsumer::contentStateChange | ( | ContentID | contentID, |
EDcsmState | state, | ||
AnimationInformation | animationInformation | ||
) |
Send a DCSM contentStateChange for the given content ID. May only be called on assigned content IDs. Requests switch to a different content state from provider side. For more information refer to EDcsmState enum and DCSM documentation.
contentID | content for which the state is about to change |
state | expected content state after the transition |
animationInformation | start and end times of the transition. May be null for immediate change. |
status_t ramses::DcsmConsumer::dispatchEvents | ( | IDcsmConsumerEventHandler & | handler | ) |
Calls handler functions synchronously in the caller context for DCSM events which were received asynchronously. This function must be called regularly to avoid buffer overflow of the internal queue.
handler | User class that implements the callbacks that can be triggered if a corresponding event happened. Check IDcsmConsumerEventHandler documentation for more details. |
|
delete |
Deleted copy assignment.
other | unused |
status_t ramses::DcsmConsumer::sendContentStatus | ( | ContentID | contentID, |
DcsmStatusMessage const & | message | ||
) |
Send a message to the provider of the content assigned to this consumer.
contentID | Content for which the message should be sent. |
message | An implementation of DcsmStatusMessage, containing data to be carried to the provider. |
DcsmConsumerImpl& ramses::DcsmConsumer::impl |
Stores internal data for implementation specifics of DcsmConsumer