|
Katana Plug-in APIs 0.1
|
Template Render Plugin. More...
#include <TemplateRenderPlugin.h>
Public Member Functions | |
| int | start () |
| int | pause () |
| int | resume () |
| int | stop () |
| int | startLiveEditing () |
| int | stopLiveEditing () |
| int | processControlCommand (const std::string &command) |
| int | queueDataUpdates (FnKat::GroupAttribute updateAttribute) |
| int | applyPendingDataUpdates () |
| bool | hasPendingDataUpdates () const |
| void | configureDiskRenderOutputProcess (FnKat::Render::DiskRenderOutputProcess &diskRenderOutputProcess, const std::string &outputName, const std::string &outputPath, const std::string &renderMethodName, const float &frameTime) const |
Template Render Plugin.
| int CompanyName::Katana::TemplateRenderPlugin::applyPendingDataUpdates | ( | ) | [virtual] |
Apply one or more live data updates which have been processed by queueDataUpdates. This provides an opportunity to process and queue live update attributes in the update thread and then flush them in the main thread.
This function is called if hasPendingDataUpdates returns true.
Reimplemented from Foundry::Katana::Render::RenderBase.
| void CompanyName::Katana::TemplateRenderPlugin::configureDiskRenderOutputProcess | ( | FnKat::Render::DiskRenderOutputProcess & | diskRenderOutputProcess, |
| const std::string & | outputName, | ||
| const std::string & | outputPath, | ||
| const std::string & | renderMethodName, | ||
| const float & | frameTime | ||
| ) | const [virtual] |
Provide Katana with information on how to process a given render output which has been defined in a Katana scene using the RenderOutputDefine node. This is only applicable during disk render where the function is called for each render output (port) on the render node.
| diskRenderOutputProcess | Defines the render action for a given render output as well as pre- and post-commands used in the render process. |
| outputName | The name of the render output (as defined in the corresponding RenderOutputDefine node). |
| outputPath | The target location for the render output. |
| renderMethodName | The render method used to launch the render. |
| frameTime | The current frame time. |
Reimplemented from Foundry::Katana::Render::RenderBase.
| bool CompanyName::Katana::TemplateRenderPlugin::hasPendingDataUpdates | ( | ) | const [virtual] |
Inform the render process whether it has to flush and apply live updates.
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::pause | ( | ) | [virtual] |
Interrupt and pause the render process but does not terminate it.
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::processControlCommand | ( | const std::string & | command | ) | [virtual] |
Process a custom live render control command which has been triggered by the user in the live update tab.
| command | Live render control command |
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::queueDataUpdates | ( | FnKat::GroupAttribute | updateAttribute | ) | [virtual] |
Process a data update during live render. The update is based on an attribute convention where an update for a single scene graph location is encapsulated by a GroupAttribute. Each attribute update contains the following:
| updateAttribute | A group attribute containing one or more update attributes. |
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::resume | ( | ) | [virtual] |
Resume a paused render.
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::start | ( | ) | [virtual] |
Start a render by traversing the scene graph using FnScenegraphIterator and interpret the locations and attributes into the renderer's language. This function is called at the start of each frame to be rendered. It is possible that this will be called multiple times during the lifetime of the plug-in.
Implements Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::startLiveEditing | ( | ) | [virtual] |
Start the live render process. Data updates and control commands will follow.
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::stop | ( | ) | [virtual] |
Called at the end of each frame that is rendered. It is possible that this will be called multiple times during the lifetime of the plug-in.
Reimplemented from Foundry::Katana::Render::RenderBase.
| int CompanyName::Katana::TemplateRenderPlugin::stopLiveEditing | ( | ) | [virtual] |
Stop the live render process. No further data updates or control commands should be expected.
Reimplemented from Foundry::Katana::Render::RenderBase.
1.7.3