Katana Plug-in APIs 0.1
Public Member Functions

Foundry::Katana::NewChannelMessage_v2 Class Reference

The NewChannelMessage_v2 class encapsulates the message sent to Katana indicating that a new channel should be reserved in the Catalog for a given frame. More...

#include <NewChannelMessage.h>

Inheritance diagram for Foundry::Katana::NewChannelMessage_v2:
Foundry::Katana::NewChannelMessage Foundry::Katana::Message

List of all members.

Public Member Functions

 NewChannelMessage_v2 (const uint8_t *frameID, uint16_t channelID=0, PixelLayout pixelLayout=ARGB, uint32_t height=0, uint32_t width=0, int xorigin=0, int yorigin=0, float sampleRate1=0.0, float sampleRate2=0.0, uint32_t dataSize=0)
 Create a new instance of a NewChannelMessage specifying a pointer to a 16 byte array that will contain a unique frame ID.
 NewChannelMessage_v2 (const NewFrameMessage &frame, uint16_t channelID=0, PixelLayout pixelLayout=ARGB, uint32_t height=0, uint32_t width=0, int xorigin=0, int yorigin=0, float sampleRate1=0.0, float sampleRate2=0.0, uint32_t dataSize=0)
 Create a new instance of NewChannelMessage_v2 message using an existing NewFrame object to obtain the unique frame ID.
virtual ~NewChannelMessage_v2 ()
 Destroy the NewChannelMessage_v2 instance.
void setPixelLayout (PixelLayout pixelLayout)

Detailed Description

The NewChannelMessage_v2 class encapsulates the message sent to Katana indicating that a new channel should be reserved in the Catalog for a given frame.

The NewChannelMessage message should be sent down the KatanaPipe after a NewFrame message has been sent as the NewFrame message will reserve the frame in the Catalog.

A channel represents a given output pass by a renderer, such as the primary colour pass, id pass, depth pass P pass etc. The channel also defines the pixel layout of subsequent DataMessages.

Each NewChannelMessage object must be created with with reference to a valid unique frame ID so Katana will know which frame the channel belongs to.


Constructor & Destructor Documentation

Foundry::Katana::NewChannelMessage_v2::NewChannelMessage_v2 ( const uint8_t *  frameID,
uint16_t  channelID = 0,
PixelLayout  pixelLayout = ARGB,
uint32_t  height = 0,
uint32_t  width = 0,
int  xorigin = 0,
int  yorigin = 0,
float  sampleRate1 = 0.0,
float  sampleRate2 = 0.0,
uint32_t  dataSize = 0 
)

Create a new instance of a NewChannelMessage specifying a pointer to a 16 byte array that will contain a unique frame ID.

The default for other values will create a new channel belonging to the specified frame with all values set to 0 and an empty string for the channel name.

Parameters:
[in]frameIDa pointer to a 16 byte array containing a unique 128 bit frame ID.
[in]channelIDan ID number to identify this channel within the frame. (This can just be sequential from zero).
[in]pixelLayoutthe order of components for all pixels.
[in]heightthe height of this channel in pixels.
[in]widththe width of this channel in pixels.
[in]xoriginthe x origin of this channel relative to the frame's x origin
[in]yoriginthe y origin of this channel relative to the frame's y origin.
[in]sampleRate1sampleRate1
[in]sampleRate2sampleRate2
[in]dataSizethe size - in bytes - of a single pixel of data for this channel.
See also:
setChannelName()
Foundry::Katana::NewChannelMessage_v2::NewChannelMessage_v2 ( const NewFrameMessage frame,
uint16_t  channelID = 0,
PixelLayout  pixelLayout = ARGB,
uint32_t  height = 0,
uint32_t  width = 0,
int  xorigin = 0,
int  yorigin = 0,
float  sampleRate1 = 0.0,
float  sampleRate2 = 0.0,
uint32_t  dataSize = 0 
)

Create a new instance of NewChannelMessage_v2 message using an existing NewFrame object to obtain the unique frame ID.

The default constructor will create a new channel belonging to the specified frame with all values set to 0 and an empty string for the channel name.

Note: the NewChannelMessage_v2 object will NOT maintain a reference to NewFrameMessage or assume ownership of it.

Parameters:
[in]framean existing NewFrameMessage object
[in]channelIDan ID number to identify this channel within the frame. (This can just be sequential from zero).
[in]pixelLayoutthe order of components for all pixels.
[in]heightthe height of this channel in pixels.
[in]widththe width of this channel in pixels.
[in]xoriginthe x origin of this channel relative to the frame's x origin
[in]yoriginthe y origin of this channel relative to the frame's y origin.
[in]sampleRate1sampleRate1
[in]sampleRate2sampleRate2
[in]dataSizethe size - in bytes - of a single pixel of data for this channel.
See also:
setChannelName()

Member Function Documentation

void Foundry::Katana::NewChannelMessage_v2::setPixelLayout ( PixelLayout  pixelLayout)

Sets the pixel layout for all DataMessages that will be sent by the renderer for this channel/AOV.

Parameters:
pixelLayoutthe pixel layout that will be sent.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator