|
Katana Plug-in APIs 0.1
|
The NewFrameMessage class encapsulates the message sent to the Katana Catalog Server (KCS) to specify that a new frame should be reserved in the Catalog. More...
#include <NewFrameMessage.h>
Public Member Functions | |
| NewFrameMessage (float frameTime=0.0, uint32_t height=0, uint32_t width=0, int xorigin=0, int yorigin=0) | |
| Create a new NewFrameMessage. | |
| virtual | ~NewFrameMessage () |
| Destroy the NewFrameMessage object. | |
| int | setFrameName (const std::string &name) |
| Set the human readable name that will appear in the name column of the Katana Catalog. | |
| void | setFrameTime (float time) |
| Set the frame time. | |
| void | setFrameDimensions (uint32_t width, uint32_t height) |
| Set the width and height of this frame. | |
| void | setFrameOrigin (int ox, int oy) |
| Set the origin of this frame. | |
| const uint8_t * | frameUUID () const |
| Get the unique identifier for this frame. | |
The NewFrameMessage class encapsulates the message sent to the Katana Catalog Server (KCS) to specify that a new frame should be reserved in the Catalog.
The NewFrameMessage should be sent down the KatanaPipe first to reserve a frame in the Catalog. A frame may contain zero or more channels. Channels then contain the actual data output by the renderer.
A frame represents the collection of these channels at a point in time.
Each NewFrameMessage object will be created with a unique 128 bit identifier that will identify the frame being rendered to Katana.
| Foundry::Katana::NewFrameMessage::NewFrameMessage | ( | float | frameTime = 0.0, |
| uint32_t | height = 0, |
||
| uint32_t | width = 0, |
||
| int | xorigin = 0, |
||
| int | yorigin = 0 |
||
| ) |
Create a new NewFrameMessage.
The default constructor will create a NewFrameMessage object with a unique frame id and all other values initialised to 0.
The frame's name will be initialised to an empty string.
| [in] | frameTime | the point in time this frame represents |
| [in] | height | the height in pixels of this frame |
| [in] | width | the width in pixels of this frame |
| [in] | xorigin | the xorigin relative to the lower left corner of the screen |
| [in] | yorigin | the yorigin relative to the lower left corner of the screen. |
| const uint8_t* Foundry::Katana::NewFrameMessage::frameUUID | ( | ) | const |
Get the unique identifier for this frame.
| void Foundry::Katana::NewFrameMessage::setFrameDimensions | ( | uint32_t | width, |
| uint32_t | height | ||
| ) |
Set the width and height of this frame.
| [in] | width | the width of this frame in pixels |
| [in] | height | the height of this frame in pixels |
| int Foundry::Katana::NewFrameMessage::setFrameName | ( | const std::string & | name | ) |
Set the human readable name that will appear in the name column of the Katana Catalog.
The maximum number of characters that can be specified in name is 8000.
| [in] | name | the name that will be sent to the KCS and appear in the Catalog |
| void Foundry::Katana::NewFrameMessage::setFrameOrigin | ( | int | ox, |
| int | oy | ||
| ) |
Set the origin of this frame.
| [in] | ox | the x origin relative to the lower left corner of the screen |
| [in] | oy | the y origin relative to the lower left corner of the screen. |
| void Foundry::Katana::NewFrameMessage::setFrameTime | ( | float | time | ) |
Set the frame time.
| [in] | time | the point in time this frame represents. |
1.7.3