Lexis  1.1.0
Vocabulary of events and shared objects for BBP and HBP software
lexis::render::Viewport Class Reference
+ Inheritance diagram for lexis::render::Viewport:
+ Collaboration diagram for lexis::render::Viewport:

Public Member Functions

uint32_t * getSize ()
 Get a pointer to the Size fixed size array. More...
 
const uint32_t * getSize () const
 
std::vector< uint32_t > getSizeVector () const
 
void setSize (uint32_t value[2])
 Set the value of the Size fixed size array from a uint32_t*. More...
 
void setSize (const std::vector< uint32_t > &value)
 Set the value of the Size fixed size array object from a std::vector< uint32_t >. More...
 
size_t getSizeSize () const
 
 Viewport (const std::vector< uint32_t > &sizeValue)
 
 Viewport (const Viewport &rhs)
 
 Viewport (Viewport &&rhs) noexcept
 
 Viewport (const ::zerobuf::Zerobuf &rhs)
 
 Viewport (::zerobuf::AllocatorPtr allocator)
 
Viewportoperator= (const Viewport &rhs)
 
Viewportoperator= (Viewport &&rhs)
 
std::string getSchema () const final
 
std::string getTypeName () const final
 
::zerobuf::uint128_t getTypeIdentifier () const final
 
size_t getZerobufStaticSize () const final
 
size_t getZerobufNumDynamics () const final
 
void _parseJSON (const Json::Value &json) final
 
void _createJSON (Json::Value &json) const final
 

Static Public Member Functions

static std::string ZEROBUF_SCHEMA ()
 
static std::string ZEROBUF_TYPE_NAME ()
 
::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER ()
 
static size_t ZEROBUF_STATIC_SIZE ()
 
static size_t ZEROBUF_NUM_DYNAMICS ()
 
static ConstViewportPtr create (const void *data, const size_t size)
 

Detailed Description

Definition at line 18 of file viewport.h.

Member Function Documentation

uint32_t* lexis::render::Viewport::getSize ( )

Get a pointer to the Size fixed size array.

Warning
: If the pointer is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a pointer to the Size fixed size array object (uint32_t*).
void lexis::render::Viewport::setSize ( uint32_t  value[2])

Set the value of the Size fixed size array from a uint32_t*.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea 2-length uint32_t array with the data to be set
void lexis::render::Viewport::setSize ( const std::vector< uint32_t > &  value)

Set the value of the Size fixed size array object from a std::vector< uint32_t >.

notifyChanged() is internally called after the change has been done.

Parameters
valuea std::vector< uint32_t > with the data to be set

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