The Arnold Patch object is responsible for the communication between the Arnold renderer and the Lumiverse devices. The major part of communication is done with help of an ArnoldInterface object. SimulationPatch handles parsing Json and passing info to ArnoldInterface.
More...
#include <SimulationPatch.h>
|
virtual void | updateLight (set< Device * > devices)=0 |
| Gets the progress of current frame in percentage. More...
|
|
virtual void | loadLight (Device *d_ptr)=0 |
| Loads a arnold light node. This function is also used to update a light node. More...
|
|
virtual void | loadJSON (const JSONNode data) |
| Loads data from a parsed JSON object. More...
|
|
virtual bool | renderLoop ()=0 |
| Calls Arnold render function. This function runs in a separate thread.
|
|
virtual void | bindRenderLoop () |
|
The Arnold Patch object is responsible for the communication between the Arnold renderer and the Lumiverse devices. The major part of communication is done with help of an ArnoldInterface object. SimulationPatch handles parsing Json and passing info to ArnoldInterface.
- See also
- ArnoldInterface, DistributedArnoldInterface, ArnoldAnimationPatch
Lumiverse::SimulationPatch::SimulationPatch |
( |
const JSONNode |
data | ) |
|
void Lumiverse::SimulationPatch::deleteDevice |
( |
string |
id | ) |
|
|
virtual |
Called when a device is deleted from the Rig.
Patches should clean up information about the device in question.
Implements Lumiverse::Patch.
virtual float* Lumiverse::SimulationPatch::getBufferPointer |
( |
| ) |
|
|
inlinevirtual |
Gets the pointer to the frame buffer.
- Returns
- The pointer to the frame buffer.
Reimplemented in Lumiverse::ArnoldPatch.
virtual int Lumiverse::SimulationPatch::getHeight |
( |
| ) |
|
|
pure virtual |
virtual string Lumiverse::SimulationPatch::getType |
( |
| ) |
|
|
inlinevirtual |
virtual int Lumiverse::SimulationPatch::getWidth |
( |
| ) |
|
|
pure virtual |
bool Lumiverse::SimulationPatch::isUpdateRequired |
( |
set< Device * > |
devices | ) |
|
|
virtual |
Checks if any device connected with this patch has updated parameters or metadata.
- Parameters
-
- Returns
- If there is any update.
void Lumiverse::SimulationPatch::loadJSON |
( |
const JSONNode |
data | ) |
|
|
protectedvirtual |
virtual void Lumiverse::SimulationPatch::loadLight |
( |
Device * |
d_ptr | ) |
|
|
protectedpure virtual |
void Lumiverse::SimulationPatch::onDeviceChanged |
( |
Device * |
d | ) |
|
|
virtual |
Callback function for devices.
This function is registered to all devices by the rig. Only devices in the list will change the state of patch.
- Parameters
-
d | The device which calls this function. |
void Lumiverse::SimulationPatch::rerender |
( |
| ) |
|
|
virtual |
Manually schedule a re-rendering.
This new rendering task may not be done immediately. This function just sets on the flag for rendering.
Reimplemented in Lumiverse::ArnoldAnimationPatch.
JSONNode Lumiverse::SimulationPatch::toJSON |
( |
| ) |
|
|
virtual |
void Lumiverse::SimulationPatch::update |
( |
set< Device * > |
devices | ) |
|
|
virtual |
virtual void Lumiverse::SimulationPatch::updateLight |
( |
set< Device * > |
devices | ) |
|
|
protectedpure virtual |
Gets the progress of current frame in percentage.
- Returns
- The percent.
Resets the arnold light node with updated parameters of deices. This function updates light node for renderer.
- Parameters
-
Implemented in Lumiverse::ArnoldPatch, and Lumiverse::ArnoldPatch.
The documentation for this class was generated from the following files:
- LumiverseCore/Simulation/SimulationPatch.h
- LumiverseCore/Simulation/SimulationPatch.cpp