HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_FrameUtils Class Reference

#include <PDG_FrameUtils.h>

Public Types

using BatchSplitArray = UT_Array< PDG_WorkItemArray >
 

Static Public Member Functions

static void batchWorkItemsByFrame (BatchSplitArray &batches, PDG_WorkItemArray &missing_items, const PDG_WorkItemArray &work_items, const PDG_NodeArray *input_nodes, bool save_missing=true)
 
static bool detectFrameRange (fpreal &start, fpreal &end, fpreal &step, const PDG_WorkItemArray &work_items, exint step_precision=100)
 
static bool detectFrameRange (fpreal &start, fpreal &end, fpreal &step, const UT_FprealArray &frames, exint step_precision=100)
 

Detailed Description

Utiliy class for working with work items over a frame range

Definition at line 23 of file PDG_FrameUtils.h.

Member Typedef Documentation

Array of arrays of workitems, used when splitting a list of work items into batches by frame.

Definition at line 28 of file PDG_FrameUtils.h.

Member Function Documentation

static void PDG_FrameUtils::batchWorkItemsByFrame ( BatchSplitArray batches,
PDG_WorkItemArray missing_items,
const PDG_WorkItemArray work_items,
const PDG_NodeArray input_nodes,
bool  save_missing = true 
)
static

Batches work items by frame. Iterates over a list of work items and attempts to extract N contiguous lists that span an increasing frame range.

static bool PDG_FrameUtils::detectFrameRange ( fpreal start,
fpreal end,
fpreal step,
const PDG_WorkItemArray work_items,
exint  step_precision = 100 
)
static

Detects the start, end, and step frame range values from a list of work items. Ignores work items that are missing a frame range.

static bool PDG_FrameUtils::detectFrameRange ( fpreal start,
fpreal end,
fpreal step,
const UT_FprealArray frames,
exint  step_precision = 100 
)
static

Detects the start, end, and step frame range values from a list of frame values.


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