Nuke binary plugins  14.0.8
DD::Image::RandomBoxes Class Reference

Vector of boxes with member functions. More...

Public Member Functions

void generateUnsorted (RandomSequence &lrRandGenerator, int lNumBoxes, int lTotalWidth, int lTotalHeight, int lBoxSize)
 Generate a given number of boxes with random parameters (note: must be sorted before use)
 
void draw (const float *lpSrcRowStart, int lY, int lX, int lRight, Channel lChannel, float *lpDest) const
 Draw the boxes to the given output data.
 
void mergeFrom (const RandomBoxes &lrOther)
 
void sort ()
 Sort the boxes by y position.
 

Friends

struct GenerateBox
 

Detailed Description

Vector of boxes with member functions.

Member Function Documentation

void DD::Image::RandomBoxes::mergeFrom ( const RandomBoxes lrOther)

Copy in the boxes from another object and add to the current vector, without sorting. The combined group of boxes will use this object's box size. This doesn't check for duplicates, but that should be rare and insignificant unless the same range is merged in twice.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com