HDK_Sample::COP2_SampleGenerator Class Reference

Simple COP generator example for the HDK. More...

#include <COP2_SampleGenerator.h>

Inheritance diagram for HDK_Sample::COP2_SampleGenerator:

COP2_Generator COP2_MaskOp COP2_PixelBase COP2_Node OP_Network OP_Node OP_Parameters OP_NetworkBoxItem PRM_ParmOwner

List of all members.

Public Member Functions

virtual TIL_SequencecookSequenceInfo (OP_ERROR &error)
 *}

Static Public Member Functions

static OP_NodemyConstructor (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_ContextDatanewContextData (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 ()


Detailed Description

Simple COP generator example for the HDK.

This HDK example demonstrates how to generate image data in COPs. It generates random white noise.

Examples:

COP2/COP2_SampleGenerator.C.

Definition at line 42 of file COP2_SampleGenerator.h.


Constructor & Destructor Documentation

COP2_SampleGenerator::~COP2_SampleGenerator (  )  [protected, virtual]

Examples:
COP2/COP2_SampleGenerator.h.

Definition at line 86 of file COP2_SampleGenerator.C.


Member Function Documentation

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.

Examples:
COP2/COP2_SampleGenerator.C, and COP2/COP2_SampleGenerator.h.

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.

Examples:
COP2/COP2_SampleGenerator.C, and COP2/COP2_SampleGenerator.h.

Definition at line 272 of file COP2_SampleGenerator.C.

OP_Node * COP2_SampleGenerator::myConstructor ( OP_Network net,
const char *  name,
OP_Operator op 
) [static]

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.

Examples:
COP2/COP2_SampleGenerator.C, and COP2/COP2_SampleGenerator.h.

Definition at line 228 of file COP2_SampleGenerator.C.


Member Data Documentation

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.

Examples:
COP2/COP2_SampleGenerator.h.

Definition at line 51 of file COP2_SampleGenerator.h.

*{ Static lists to define parameters and local variables

Reimplemented from COP2_Generator.

Examples:
COP2/COP2_SampleGenerator.C, and COP2/COP2_SampleGenerator.h.

Definition at line 49 of file COP2_SampleGenerator.h.

Reimplemented from COP2_Generator.

Examples:
COP2/COP2_SampleGenerator.h.

Definition at line 52 of file COP2_SampleGenerator.h.

Reimplemented from COP2_Generator.

Examples:
COP2/COP2_SampleGenerator.C, and COP2/COP2_SampleGenerator.h.

Definition at line 50 of file COP2_SampleGenerator.h.


The documentation for this class was generated from the following files:

Generated on Fri May 25 00:10:56 2012 for HDK by  doxygen 1.5.9