#include <COP2_SampleGenerator.h>

Public Member Functions | |
| virtual TIL_Sequence * | cookSequenceInfo (OP_ERROR &error) |
| *} | |
Static Public Member Functions | |
| static OP_Node * | myConstructor (OP_Network *, const char *, OP_Operator *) |
Static Public Attributes | |
| static OP_TemplatePair | myTemplatePair |
| static OP_VariablePair | myVariablePair |
| static PRM_Template | myTemplateList [] |
| static CH_LocalVariable | myVariableList [] |
Protected Member Functions | |
| virtual COP2_ContextData * | newContextData (const TIL_Plane *, int, float t, int xres, int yres, int thread, int max_threads) |
| Evaluate parms and stash data for cooking in a COP2_ContextData object. | |
| virtual OP_ERROR | generateTile (COP2_Context &context, TIL_TileList *tilelist) |
| Create the image data for a single tile list - multithreaded call. | |
| virtual | ~COP2_SampleGenerator () |
This HDK example demonstrates how to generate image data in COPs. It generates random white noise.
Definition at line 42 of file COP2_SampleGenerator.h.
| COP2_SampleGenerator::~COP2_SampleGenerator | ( | ) | [protected, virtual] |
| TIL_Sequence * COP2_SampleGenerator::cookSequenceInfo | ( | OP_ERROR & | error | ) | [virtual] |
*}
Determine frame range, image composition and other sequence info
This method computes the resolution, frame range and planes & formats used during the cook. All of these parms are non-animatable. It is called first during a cook, or when the information is requested from a node. Just because cookSequenceInfo is called, it does not mean that a cook is about to start.
Reimplemented from COP2_Generator.
Definition at line 98 of file COP2_SampleGenerator.C.
| OP_ERROR COP2_SampleGenerator::generateTile | ( | COP2_Context & | context, | |
| TIL_TileList * | tilelist | |||
| ) | [protected, virtual] |
Create the image data for a single tile list - multithreaded call.
Implements COP2_Generator.
Definition at line 272 of file COP2_SampleGenerator.C.
| OP_Node * COP2_SampleGenerator::myConstructor | ( | OP_Network * | net, | |
| const char * | name, | |||
| OP_Operator * | op | |||
| ) | [static] |
Definition at line 72 of file COP2_SampleGenerator.C.
| COP2_ContextData * COP2_SampleGenerator::newContextData | ( | const TIL_Plane * | , | |
| int | , | |||
| float | t, | |||
| int | xres, | |||
| int | yres, | |||
| int | thread, | |||
| int | max_threads | |||
| ) | [protected, virtual] |
Evaluate parms and stash data for cooking in a COP2_ContextData object.
Reimplemented from COP2_Node.
Definition at line 228 of file COP2_SampleGenerator.C.
Initial value:
{
PRM_Template(PRM_SWITCHER, 3, &PRMswitcherName, switcher),
PRM_Template(PRM_INT_J, TOOL_PARM, 1, &names[0], PRMoneDefaults),
PRM_Template(PRM_RGB_J, TOOL_PARM, 4, &names[1], PRMoneDefaults),
PRM_Template(),
}
Reimplemented from COP2_Generator.
Definition at line 51 of file COP2_SampleGenerator.h.
*{ Static lists to define parameters and local variables
Reimplemented from COP2_Generator.
Definition at line 49 of file COP2_SampleGenerator.h.
Reimplemented from COP2_Generator.
Definition at line 52 of file COP2_SampleGenerator.h.
Reimplemented from COP2_Generator.
Definition at line 50 of file COP2_SampleGenerator.h.
1.5.9