RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Public Types | Public Member Functions | Public Attributes | List of all members
ramses::CategoryInfoUpdate Class Reference

Update of information about a DCSM category. Contains information like changes in size. Objects of this type will be provided by ramses callbacks and are used to give information on consumer side. Do not reuse objects on consumer side, since they track changes and would transmit these again if reused. More...

#include <CategoryInfoUpdate.h>

Inheritance diagram for ramses::CategoryInfoUpdate:
[legend]
Collaboration diagram for ramses::CategoryInfoUpdate:
[legend]

Public Types

enum class  Layout : uint32_t {
  Drive = 0 , Focus , Gallery , Autonomous ,
  Sport_Road , Sport_Track
}
 The possible layout values in the instrument cluster. More...
 

Public Member Functions

 CategoryInfoUpdate ()
 Default constructor with no data set. More...
 
 CategoryInfoUpdate (SizeInfo renderSize, Rect categoryRect, Rect safeRect, Layout layout)
 constructor for CategoryInfoUpdate More...
 
 CategoryInfoUpdate (SizeInfo renderSize, Rect categoryRect, Rect safeRect)
 constructor for CategoryInfoUpdate More...
 
 CategoryInfoUpdate (SizeInfo renderSize, Rect categoryRect)
 constructor for CategoryInfoUpdate More...
 
 ~CategoryInfoUpdate ()
 Destructor. More...
 
bool hasCategoryRectUpdate () const
 Check if object contains category rect update. More...
 
Rect getCategoryRect () const
 Get new category rect. Only valid when hasCategoryRectUpdate(). More...
 
status_t setCategoryRect (Rect rect)
 Set new category rect. More...
 
bool hasRenderSizeUpdate () const
 Check if object contains render size update. More...
 
SizeInfo getRenderSize () const
 Get new render size. Only valid when hasRenderSizeUpdate(). More...
 
status_t setRenderSize (SizeInfo sizeInfo)
 Set new render size. More...
 
bool hasSafeRectUpdate () const
 Check if object contains safe rect update. More...
 
Rect getSafeRect () const
 Get new safe rect. Only valid when hasSafeRectUpdate(). More...
 
status_t setSafeRect (Rect rect)
 Set new safe rect. More...
 
bool hasActiveLayoutUpdate () const
 Check if object contains active layout update. More...
 
Layout getActiveLayout () const
 Get new active layout. Only valid when hasActiveLayoutUpdate(). More...
 
status_t setActiveLayout (CategoryInfoUpdate::Layout layout)
 Set new active layout. More...
 
 CategoryInfoUpdate (CategoryInfoUpdateImpl &impl_)
 Constructor from impl. More...
 
 CategoryInfoUpdate (CategoryInfoUpdate &&other)=delete
 Deleted move constructor. More...
 
CategoryInfoUpdateoperator= (CategoryInfoUpdate &&other)=delete
 Deleted move assignment. More...
 
 CategoryInfoUpdate (const CategoryInfoUpdate &other)=delete
 Deleted copy constructor. More...
 
bool operator== (const CategoryInfoUpdate &rhs) const
 The equality comparison operator. More...
 
bool operator!= (const CategoryInfoUpdate &rhs) const
 The inequality comparison operator. More...
 
CategoryInfoUpdateoperator= (const CategoryInfoUpdate &other)=delete
 Deleted copy assignment. More...
 
- Public Member Functions inherited from ramses::StatusObject
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...
 
StatusObjectoperator= (const StatusObject &other)=delete
 Deleted copy assignment. More...
 

Public Attributes

CategoryInfoUpdateImpl & impl
 
- Public Attributes inherited from ramses::StatusObject
class StatusObjectImpl & impl
 

Additional Inherited Members

- Protected Member Functions inherited from ramses::StatusObject
 StatusObject (StatusObjectImpl &pimpl)
 Constructor for StatusObject. More...
 
virtual ~StatusObject ()
 Destructor of the StatusObject. More...
 

Detailed Description

Update of information about a DCSM category. Contains information like changes in size. Objects of this type will be provided by ramses callbacks and are used to give information on consumer side. Do not reuse objects on consumer side, since they track changes and would transmit these again if reused.

The object can be queried for all available data and when available can be extracted. See IDcsmProviderEventHandler::contentSizeChange() for more details.

Examples
ramses-example-dcsm-provider/src/main.cpp.

Member Enumeration Documentation

◆ Layout

enum ramses::CategoryInfoUpdate::Layout : uint32_t
strong

The possible layout values in the instrument cluster.

Enumerator
Drive 
Focus 
Gallery 
Autonomous 
Sport_Road 
Sport_Track 

Constructor & Destructor Documentation

◆ CategoryInfoUpdate() [1/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( )

Default constructor with no data set.

◆ CategoryInfoUpdate() [2/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( SizeInfo  renderSize,
Rect  categoryRect,
Rect  safeRect,
Layout  layout 
)

constructor for CategoryInfoUpdate

Parameters
renderSizethe new render size
categoryRectthe new category rect
safeRectthe new safe rect
layoutthe new active layout

◆ CategoryInfoUpdate() [3/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( SizeInfo  renderSize,
Rect  categoryRect,
Rect  safeRect 
)

constructor for CategoryInfoUpdate

Parameters
renderSizethe new render size
categoryRectthe new category rect
safeRectthe new safe rect

◆ CategoryInfoUpdate() [4/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( SizeInfo  renderSize,
Rect  categoryRect 
)

constructor for CategoryInfoUpdate

Parameters
renderSizethe new render size
categoryRectthe new category rect

◆ ~CategoryInfoUpdate()

ramses::CategoryInfoUpdate::~CategoryInfoUpdate ( )

Destructor.

◆ CategoryInfoUpdate() [5/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( CategoryInfoUpdateImpl &  impl_)
explicit

Constructor from impl.

Parameters
impl_impl

◆ CategoryInfoUpdate() [6/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( CategoryInfoUpdate &&  other)
delete

Deleted move constructor.

Parameters
otherunused

◆ CategoryInfoUpdate() [7/7]

ramses::CategoryInfoUpdate::CategoryInfoUpdate ( const CategoryInfoUpdate other)
delete

Deleted copy constructor.

Parameters
otherunused

Member Function Documentation

◆ getActiveLayout()

Layout ramses::CategoryInfoUpdate::getActiveLayout ( ) const

Get new active layout. Only valid when hasActiveLayoutUpdate().

Returns
The currently active layout.

◆ getCategoryRect()

Rect ramses::CategoryInfoUpdate::getCategoryRect ( ) const

Get new category rect. Only valid when hasCategoryRectUpdate().

Returns
rectangle describing the category dimensions
Examples
ramses-example-dcsm-provider/src/main.cpp.

◆ getRenderSize()

SizeInfo ramses::CategoryInfoUpdate::getRenderSize ( ) const

Get new render size. Only valid when hasRenderSizeUpdate().

Returns
the new render size

◆ getSafeRect()

Rect ramses::CategoryInfoUpdate::getSafeRect ( ) const

Get new safe rect. Only valid when hasSafeRectUpdate().

Returns
rectangle describing the safe dimensions

◆ hasActiveLayoutUpdate()

bool ramses::CategoryInfoUpdate::hasActiveLayoutUpdate ( ) const

Check if object contains active layout update.

Returns
true when has active layout update, false when not.

◆ hasCategoryRectUpdate()

bool ramses::CategoryInfoUpdate::hasCategoryRectUpdate ( ) const

Check if object contains category rect update.

Returns
true when has category rect update, false when not

◆ hasRenderSizeUpdate()

bool ramses::CategoryInfoUpdate::hasRenderSizeUpdate ( ) const

Check if object contains render size update.

Returns
true when has render size update, false when not

◆ hasSafeRectUpdate()

bool ramses::CategoryInfoUpdate::hasSafeRectUpdate ( ) const

Check if object contains safe rect update.

Returns
true when has safe rect update, false when not

◆ operator!=()

bool ramses::CategoryInfoUpdate::operator!= ( const CategoryInfoUpdate rhs) const

The inequality comparison operator.

Parameters
rhsThe instance to compare to
Returns
True if not same, false otherwise

◆ operator=() [1/2]

CategoryInfoUpdate& ramses::CategoryInfoUpdate::operator= ( CategoryInfoUpdate &&  other)
delete

Deleted move assignment.

Parameters
otherunused
Returns
unused

◆ operator=() [2/2]

CategoryInfoUpdate& ramses::CategoryInfoUpdate::operator= ( const CategoryInfoUpdate other)
delete

Deleted copy assignment.

Parameters
otherunused
Returns
unused

◆ operator==()

bool ramses::CategoryInfoUpdate::operator== ( const CategoryInfoUpdate rhs) const

The equality comparison operator.

Parameters
rhsThe instance to compare to
Returns
True if same, false otherwise

◆ setActiveLayout()

status_t ramses::CategoryInfoUpdate::setActiveLayout ( CategoryInfoUpdate::Layout  layout)

Set new active layout.

Parameters
layoutThe currently active layout.

The active layout provides information about the overall layout of the contents on the consumer side. Depending on the layout, provider might want to provide different visuals for his contents.

Returns
StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().

◆ setCategoryRect()

status_t ramses::CategoryInfoUpdate::setCategoryRect ( Rect  rect)

Set new category rect.

Defined as rectangle inside render size (offsetX, offsetY, width, height). The offset is relative to lower left corner of render size. This is the area where the content should be. It is OK if you render content outside of category rect, but such content will not be visible in the rendered result (except potentially during layout size transition).

Parameters
rectrectangle describing the new category dimensions
Returns
StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().

◆ setRenderSize()

status_t ramses::CategoryInfoUpdate::setRenderSize ( SizeInfo  sizeInfo)

Set new render size.

Defined as width and height. This can be thought of as the 'canvas' (display or offscreen render target) where content will be rendered.

Parameters
sizeInfothe new render size
Returns
StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().

◆ setSafeRect()

status_t ramses::CategoryInfoUpdate::setSafeRect ( Rect  rect)

Set new safe rect.

Parameters
rectrectangle describing the new safe dimensions

Defined as rectangle relative to render size (offsetX, offsetY, width, height). The offset is relative to lower left corner of render size. This is just a hint from consumer which gives some guarantee that safe rect is not covered by any other UI element on the display (if content actively shown).

Returns
StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().

Member Data Documentation

◆ impl

CategoryInfoUpdateImpl& ramses::CategoryInfoUpdate::impl

Stores internal data for implementation specifics of CategoryInfo


The documentation for this class was generated from the following file: