COP2_Node Class Reference

#include <COP2_Node.h>

Inheritance diagram for COP2_Node:

OP_Network OP_Node OP_Parameters OP_NetworkBoxItem PRM_ParmOwner COP2_MultiBase COP2_PixelBase COP2_Python COP2_TimingBase HDK_Sample::COP2_MultiInputWipe COP2_MaskOp COP2_Generator COP2_KeyBase COP2_PixelOp HDK_Sample::COP2_FullImageFilter HDK_Sample::COP2_SampleFilter COP2_Ramp COP2_RotoShape HDK_Sample::COP2_SampleGenerator COP2_ChromaKey COP2_ColorReplace COP2_LumaKey COP2_ColorCurve COP2_Levels HDK_Sample::COP2_PixelAdd

List of all members.

Public Member Functions

virtual OP_ERROR open (short &key, int clear_errors=0)
bool isOpen () const
virtual void close (short key)
TIL_SequencegetSequenceInfo (OP_ERROR *error=0)
const TIL_SequenceinputInfo (int input)
float getSequenceTime () const
COP2_ImageSourcegetImageSource ()
virtual void forceRecook (bool evensmartcache=false)
int cookToRaster (TIL_Raster *raster, OP_Context &, const TIL_Plane *plane, int array_index=0, int subregion=1, int clear=1, float black=0.0F, float white=1.0F, int compindex=-1, int ignore_bwpoints=0, const int *comp_map=0, float gamma=1.0F, bool interactive=false)
int cookToRaster (TIL_Raster *raster, OP_Context &, const TIL_Plane *plane, int array_index, int xstart, int ystart, int xend, int yend, int subregion=1, int clear=1, float black=0.0F, float white=1.0F, int compindex=-1, int ignore_bwpoints=0, const int *comp_map=0, float gamma=1.0F, bool interactive=false, UT_PtrArray< TIL_Raster * > *tiles=0, int tile_index=0, TIL_TileMPlay *=0, bool cleanup_after=true)
int cookToRaster (UT_PtrArray< TIL_Raster * > &rasters, UT_PtrArray< OP_Context * > &contexts, UT_PtrArray< const TIL_Plane * > &planes, UT_IntArray &array_index, UT_PtrArray< const int * > &comp_map, UT_RefArray< UT_InclusiveRect > &bounds, int subregion=1, int clear=1, float black=0.0F, float white=1.0F, int compindex=-1, int ignore_bwpoints=0, float gamma=1.0F, bool interactive=false, UT_PtrArray< TIL_Raster * > *tiles=0, int tile_index=0, TIL_TileMPlay *=0, bool cleanup_after=true)
void computePlaneCookParms (COP2_PlaneCookParms &plane_parms, OP_Context &context, const TIL_Plane *rplane, int array_index, TIL_Raster *raster, int thread_index, const int *compmap, int xstart, int ystart, int xend, int yend, bool flipbook, UT_PtrArray< TIL_Tile * > *tile_list)
bool isPlaneCached (const TIL_Plane &refplane, int array_index, float time, int xres, int yres, int xstart, int ystart, int xend, int yend, bool flipbook)
bool isPlaneCached (COP2_Context &context, const TIL_Plane &refplane, int xstart, int ystart, int xend, int yend, bool flipbook)
void checkpointCachedTilesForPlane (const TIL_Plane &refplane, int array_index, float time, int xres, int yres, int xstart, int ystart, int xend, int yend, bool flipbook, UT_PtrArray< TIL_Tile * > &tile_list)
void checkpointCachedTilesForPlane (COP2_Context &context, const TIL_Plane &refplane, int xstart, int ystart, int xend, int yend, bool flipbook, UT_PtrArray< TIL_Tile * > &tile_list)
float mapTimeIntoSequence (float time)
int cookToFile (const UT_StringArray &filenames, const IMG_TileOptions *, const TIL_Sequence *scope, const UT_IntArray &image_index, const char *uselut=0, float gamma=1.0F, UT_InclusiveRect *bounds=0, bool single_frame=false, bool thread_io=false, bool env_map=false, bool use_progress_dialog=true)
int cookToFile (const UT_StringArray &filenames, const IMG_TileOptions *, OP_Context &context, const UT_IntArray &image_index, const char *cplane, const char *aplane=0, const char *uselut=0, float gamma=1.0F, UT_InclusiveRect *bounds=0, bool single_frame=false, bool thread_io=false, bool env_map=false, bool use_progress_dialog=true)
void waitForLastFile ()
int cookFlipbook (const TIL_Sequence &info, int step=1, float gamma=1.0f, const char *lut=0, bool startnew=true, bool(*updateCallback)(void *)=0, void *updateEntity=0, bool write_houdini_frame=true, const char *session_label=NULL)
virtual UT_TokenStringgetImageIdentifier (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread)
COP2_ContextgetContextData (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, bool force_bounds=true)
void getImageBounds (const TIL_Plane *plane, int array, float t, int xres, int yres, int thread, int &x1, int &y1, int &x2, int &y2)
void getImageBounds (COP2_Context &context, int &x1, int &y1, int &x2, int &y2)
bool getInputBounds (int input, COP2_Context &context, int &x1, int &y1, int &x2, int &y2)
bool getInputBounds (int input, const TIL_Plane *plane, int array, float t, int xres, int yres, int thread, int &x1, int &y1, int &x2, int &y2)
bool isTileAlignedWithInput (int input, COP2_Context &context, int tilex, int tiley, COP2_Node *with_node=0)
bool isTileAlignedWithInput (int input, const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, int tilex, int tiley, COP2_Node *with_node=0)
bool isTileAlignedWithInputAtTime (int input, COP2_Context &context, int tilex, int tiley, float input_time, COP2_Node *with_node=0)
bool isInputTileAlignedWithContext (int input, const TIL_Plane *plane, int tilex, int tiley, COP2_Context &context, COP2_Node *with_node=0)
bool arePlanesAligned (COP2_Context &context, const TIL_Plane *plane1, int aindex1, const TIL_Plane *plane2, int aindex2, int tilex, int tiley)
bool isInputPlaneCompatible (COP2_Context &context, int input_num)
bool getInputBoundsDiff (int input, COP2_Context &context, int &dx, int &dy)
virtual float getTimeTransform (int input, float t)
virtual void getInputRes (int input, float t, const OP_Context &context, OP_Context &icontext)
virtual float remapTime (float t)
virtual bool isTimeModifier () const
virtual bool isSlowOperation () const
virtual bool isTimeDepOperation ()
virtual bool isGPUAssisted (const TIL_Plane &, int, float, int, int, int)
virtual bool isGenerator () const
virtual bool isPixelBased () const
virtual int getMaskInput () const
void getScaleFactors (int xres, int yres, float &sx, float &sy) const
float getXScaleFactor (int xres) const
float getYScaleFactor (int yres) const
TIL_PlanegetPreviewPlane (int &index)
int getPreviewPlane (int &pindex, int &aindex)
int isFollowingParent (const COP2_Node *parent)
void setPreviewPlane (int pindex, int aindex=0)
void parentPreviewChanged ()
virtual int isSingleThreadedCop () const
void clearTilesInCache ()
virtual bool doesFrameExist (int, bool=true)
int isAnythingLocked () const
int isPlaneLocked (const TIL_Plane *p) const
int isSequenceLocked (float t)
int isPlaneLocked (const TIL_Plane *p, float t)
int lockPlane (const TIL_Plane *p, float t)
int lockPlanes (float t)
int unlockPlane (const TIL_Plane *p, float t)
int unlockPlanes (float t)
int unlockAll ()
void enableDiskCache (bool enable)
bool isDiskCacheEnabled () const
virtual void setColorSelection (float *col, int size, bool accum)
void tileRemoved (TIL_Tile *removed)
bool isCookAborted (int thread_index)
bool isInterrupted (int threadidx)
void setInterrupted (int threadidx)
virtual OP_ERROR getErrorSeverity ()
virtual OP_ERROR error ()
virtual UT_TokenStringgetParmHashCode (OP_Context &context, int group_mask=1)
virtual void getPixelFunction (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, COP2_PixelFunction *&function, bool concatenate, bool dependent_too)
virtual void getImageTransform (COP2_Context &context, COP2_TransformParms &parms, COP2_Node *&source, int &input_index)
bool getPixelValue (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int x, int y, float *color)
bool getPixelValueByUV (const char *plane_name, double u, double v, bool interpolate, UT_FloatArray &vals)
bool getPixelColorValueByUV (COP2_ColorComponent comp, double u, double v, bool interpolate, float &val)
COP2_ThreadPref getThreadPref () const
virtual void getMaxNumThreadsInCook (COP2_Context &, int &plane, int &node, int &op) const
virtual bool onlyCookInMainThread () const
int getThreadIndex ()
void buildPlaneMenu (PRM_Name *items, int maxsize, bool useinput=false, bool planes_only=false, bool comps_only=false, bool wild=true, int input=0, bool nocoloralpha=false)
virtual const char * getChildType () const
virtual const char * getOpType () const
virtual OP_OpTypeId getChildTypeID () const
virtual OP_OpTypeId getOpTypeID () const
int64 getMemoryUsage ()
virtual unsigned disableParms ()
virtual OP_DATA_TYPE getCookedDataType () const
virtual void * getCookedData (OP_Context &)
virtual int getNetOverviewColor (UT_Color &color)
virtual void opChanged (OP_EventType type, void *data)
virtual void getNodeSpecificInfoText (OP_Context &context, int verbose, UT_WorkBuffer &text)
void inputRes (int input, float t, int xres, int yres, int &i_xres, int &i_yres)
void processTile (COP2_ThreadCookParms *p)
void setInputBlocked (bool blocked, int thread)
void removeRegions ()
virtual int getNumInputsToOpen () const
virtual COP2_NodegetInputToOpen (int i)
virtual void getInputDependenciesForOutputArea (COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
COP2_CheckpointWrapper * getCheckpointWrapper ()
void setCheckpointWrapper (COP2_CheckpointWrapper *wrapper)
virtual void modifyViewMatrix (int input, COP2_Context &context, UT_Matrix4 &matrix, float zoom)
virtual COP2_NodeselectInput (int px, int py, const char *plane_name, int array_index)
virtual fpreal getW () const
 Node position/scale is used by the UI.
virtual fpreal getH () const
 Node position/scale is used by the UI.
virtual unsigned referenceAllParameters (OP_Parameters *from)
virtual OP_ERROR setup (float t, int xres, int yres, int max_threads, bool doinput=true)
OP_ERROR cookTile (TIL_TileList *&, float t, int xres, int yres, int thread_index, int max_threads)
void recursivelyCleanUp ()
void cleanUpCookContexts ()
void cleanUpAllRegions ()
void bumpCookSerial ()
int getCookSerial ()

Static Public Member Functions

static void setNodeTimingTable (COP2_DebugTimingTable *table)
static void tileRemovalCallback (void *parent, TIL_Tile *removed)
static void setUpdateCallback (void(*callback)(float, bool, bool))
static void setViewerCallback (void(*viewer)(COP2_Node *, void *, TIL_ViewerType), void *data)
static void setCookPosition (float u, float v)
static void abortCook ()
static bool isCookAborted ()
static void resetAbortFlag ()
static bool isCooking ()
static TIL_TileCachegetCache ()
static TIL_ProxyManagergetProxyManager ()
static TIL_TileManagergetTileManager ()
static void setWorkingThreadId (int thread_index)
static void clearWorkingThreadId (int thread_index)
static void buildPlanePreviewMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildScopeMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildPlaneScopeMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildScopeMenuNoColAlpha (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildPlaneMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildCompMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildInputScopeMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildInputPlaneMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static void buildInputCompMenu (void *, PRM_Name *, int, const PRM_SpareData *, PRM_Parm *)
static const char * getColorPlaneName ()
static const char * getAlphaPlaneName ()
static const char * getMaskPlaneName ()
static const char * getDepthPlaneName ()
static const char * getLumPlaneName ()
static const char * getBumpPlaneName ()
static const char * getPointPlaneName ()
static const char * getNormalPlaneName ()
static const char * getVelocityPlaneName ()
static int dumpCache (void *me, int i, float t, const PRM_Template *)
static void printMe (void *me, ostream &os)
static void addToFileLoadTime (float t)
static void initializeExpressions ()
static void initializeCache ()
static void buildOperatorTable (OP_OperatorTable &table)
static void installCommands ()
static void resetBadMissingFrames ()
static void setFileProxyReduce (float rx, float ry)
static void getFileProxyReduce (float &rx, float &ry)

Static Public Attributes

static OP_TemplatePair myTemplatePair
static OP_VariablePair myVariablePair
static PRM_Template myTemplateList []
static CH_LocalVariable myVariableList []

Protected Member Functions

 COP2_Node (OP_Network *net, const char *name, OP_Operator *entry)
virtual ~COP2_Node ()
virtual OP_ERROR cookMe (OP_Context &)
virtual bool cook (OP_Context &)
virtual OP_ERROR bypassMe (OP_Context &, int &)
void setVariableUseFullRes (bool onoff)
virtual float getVariableValue (int index, int thread)
virtual void getMyExternalReferences (UT_StringArray &reflist, UT_StringArray *nodelist=0, bool collapse=false, bool check_missing=false, bool show_missing_only=false)
void launchViewer (TIL_ViewerType view)
void addError (int code, const char *msg=0)
void addSystemError (const char *msg=0)
void addWarning (int code, const char *msg=0)
void addSystemWarning (const char *msg=0)
void addMessage (int code, const char *msg=0)
void addCookError (int code, const char *msg=0)
void addCookSystemError (const char *msg=0)
void addCookWarning (int code, const char *msg=0)
void addCookSystemWarning (int code, const char *msg=0)
void addCookMessage (int code, const char *msg=0)
virtual int isScaledImageDifferent () const
virtual void inputOpenFailed (int)
virtual COP2_ThreadPref getThreadPreference () const
virtual const char * getOperationInfo ()
virtual TIL_SequencecookSequenceInfo (OP_ERROR &error)=0
bool isInputBlocked (int thread)
TIL_TileListinputTile (int input_index, COP2_Context &context, const TIL_Plane *plane, int array_index, float t, int xstart, int ystart, OP_ERROR *err=0, int block=1, bool *mask=0, COP2_Node *fromtile=0, bool correctorig=true, bool *blocked=0, bool *was_corrected=0)
TIL_TileListinputTile (int input_index, COP2_Context &context, int xstart, int ystart, OP_ERROR *err=0, int block=1, bool *mask=0, bool *blocked=0, bool *was_corrected=0)
TIL_TileListinputTile (int input, COP2_Context &context, TIL_TileList *mytile, float t, OP_ERROR *err=0, int block=1, bool *mask=0, bool *blocked=0, bool *was_corrected=0)
TIL_TileListinputTile (int input, COP2_Context &context, TIL_TileList *mytile, OP_ERROR *err=0, int block=1, bool *mask=0, bool *blocked=0, bool *was_corrected=0)
bool copyInput (int input, COP2_Context &context, TIL_TileList *tilelist, float t, OP_ERROR *err=0, int block=1, bool *mask=0)
bool copyInput (int input, COP2_Context &context, TIL_TileList *mytile, OP_ERROR *err=0, int block=1, bool *mask=0)
TIL_TileListpassInputTile (int input_index, COP2_Context &context, const TIL_Plane *plane, int array_index, float t, int xstart, int ystart, int block, bool *blocked, bool *mask, COP2_Node *fromTile=0)
void releaseTile (TIL_TileList *&, bool reset=false)
TIL_RegioninputRegion (int input_index, COP2_Context &context, const TIL_Plane *plane, int array_index, float t, int xstart, int ystart, int xend, int yend, TIL_RegionExtend hold=TIL_BLACK, int share=1, void *regionmem[PLANE_MAX_VECTOR_SIZE]=0, bool correct_aspect=true, bool correct_bounds=true, int scan_alignment=0)
TIL_RegioninputRegion (int input_index, COP2_Context &context, int xstart, int ystart, int xend, int yend, TIL_RegionExtend hold=TIL_BLACK, int share=1, void *regionmem[PLANE_MAX_VECTOR_SIZE]=0, bool correct_aspect=true, bool correct_bounds=true, int scan_alignment=0)
TIL_RegioninputRegion (int input_index, COP2_Context &context, const TIL_Plane *plane, int array_index, float t, TIL_TileList *tilelist, int xshift=0, int yshift=0, int copy=0, TIL_RegionExtend hold=TIL_BLACK)
TIL_RegioninputRegion (int input_index, COP2_Context &context, TIL_TileList *tilelist, int xshift=0, int yshift=0, int copy=0, TIL_RegionExtend hold=TIL_BLACK)
TIL_RegionoutputRegion (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, int xstart, int ystart, int xend, int yend, int share=1, int rindex=0, int alignment=0)
TIL_RegionoutputRegion (COP2_Context &context, int xstart, int ystart, int xend, int yend, int share=1, int rindex=0, int alignment=0)
TIL_RegionoutputRegion (const TIL_Plane *plane, const TIL_Plane *ref_plane, int array_index, float t, int xres, int yres, int thread, int xstart, int ystart, int xend, int yend, int share=1, int rindex=0, int alignment=0)
void scaleInput (int input, COP2_Context &context, const TIL_Plane *plane, int array_index, float t, UT_FilterType xfilter, UT_FilterType yfilter, TIL_TileList *tilelist)
TIL_RegiontransformRegion (int input, COP2_Context &context, const TIL_Plane *plane, int aindex, float t, int xres, int yres, int xstart, int ystart, int xend, int yend, const COP2_TransformParms &parms, bool input_aspect_adjust=true, bool streak_off_frame=false)
bool transformRegion (int input, COP2_Context &context, TIL_Region *region, const COP2_TransformParms &parms, bool input_aspect_adjust=true, bool bounds_in_canvas_space=true, bool streak_off_frame=false)
bool isFullTransform (int input, COP2_Context &context, const COP2_TransformParms &cparms, bool input_aspect_adjust=true, COP2_Node **source_node=0, int *source_index=0, float *aspectx1=0, float *aspectx2=0, float *aspecty1=0, float *aspecty2=0, COP2_TransformParms *prepped_parms=0)
TIL_RegiontransformBlurRegion (int input, COP2_Context &context, const TIL_Plane *plane, int aindex, float t, int xres, int yres, int xstart, int ystart, int xend, int yend, float amount, float bias, UT_PtrArray< const COP2_TransformParms * > &parms, bool deformation=false)
bool transformBlurRegion (int input, COP2_Context &context, TIL_Region *region, float amount, float bias, UT_PtrArray< const COP2_TransformParms * > &parms, bool deformation=false, bool bounds_in_canvas_space=true)
bool translateRegion (COP2_Context &context, COP2_Node &source_node, int source_input, TIL_Region *region, float tx, float ty, TIL_RegionExtend hold, bool bounds_in_canvas_space, bool streak_off_frame)
bool fullTransformRegion (COP2_Context &context, COP2_Node &source_node, int source_input, TIL_Region *region, COP2_TransformParms &parms, float haspect, float input_haspect, float vaspect, float input_vaspect, bool bounds_in_canvas_space)
UT_Matrix4 getShiftedInverseTransformMatrix (COP2_Context &context, COP2_Node &source_node, int source_input, const TIL_Plane *iplane, int array_index, const COP2_TransformParms &parms, int &dx, int &dy)
void prepareTransformParms (COP2_Context &context, COP2_TransformParms &parms, COP2_Node *&source_node, int &source_index, bool input_aspect_adjust)
void adjustPivotParms (int input_index, COP2_TransformParms &parms, bool input_aspect_adjust)
void copyAndPrepareTransformParms (const UT_PtrArray< const COP2_TransformParms * > &source_parms, UT_PtrArray< COP2_TransformParms * > &dest_parms)
void extractFromOutputRegion (TIL_TileList *tiles, TIL_Region *output)
void releaseRegion (TIL_Region *, int output=0)
TIL_TileListrequestWorkingTiles (COP2_Context &context, const TIL_Plane *plane, int array_index, float t, int xstart, int ystart, int *cache_flag=0, int ignore_bypass=0, int block=0)
void releaseWorkingTiles (TIL_TileList *list)
virtual void passThroughTiles (COP2_Context &context, const TIL_Plane *plane, int array_index, float t, int xstart, int ystart, TIL_TileList *&tile, int block=1, bool *mask=0, bool *blocked=0)
virtual int passThrough (COP2_Context &context, const TIL_Plane *plane, int comp_index, int array_index, float t, int xstart, int ystart)
TIL_TileListgetBlackTile (const TIL_Plane *plane, int aindex, float t, int xres, int yres, int thread, int xstart, int ystart, bool *mask=0)
virtual OP_ERROR cookMyTile (COP2_Context &context, TIL_TileList *tiles)
OP_ERROR cookFullImage (COP2_Context &context, TIL_TileList *tiles, COP2_FullImageCB callback, UT_Lock &fullimagelock, bool use_float)
void lockParms (bool lock)
virtual COP2_ContextDatanewContextData (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, int max_threads)
COP2_ContextgetContext (const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread)
bool copyInputBounds (int input, COP2_Context &context, int *x1=0, int *y1=0, int *x2=0, int *y2=0)
virtual void computeImageBounds (COP2_Context &context)
virtual bool isFrameScoped (int)
virtual int scope (UT_String &)
virtual int frameScope (UT_String &)
virtual OP_ERROR save (ostream &os, const OP_SaveFlags &flags, const char *pathPrefix)
virtual OP_ERROR saveIntrinsic (ostream &os, const OP_SaveFlags &flags)
virtual bool load (UT_IStream &is, const char *extension, const char *path=0)
bool getTileInFP (TIL_TileList *tilelist, float *&dest, int index, void *dtile=0)
void writeFPtoTile (TIL_TileList *tilelist, float *&src, int index)
UT_InterruptgetInterrupt ()
void setCOPColoring (COP2_OpColorType type, bool enable)
void getOvercookStats (int &redone, int &total)
void clearOvercookStats ()
void ensureSequenceContainsColorAndAlpha ()
virtual void cleanUpInputsRecursively ()
const COP2_CookAreaInfogetAreaInfo (COP2_Context &context) const
void makeOutputAreaDependOnAllInputAreas (COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
void makeOutputAreaDependOnInputAreas (int input, COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
COP2_CookAreaInfomakeOutputAreaDependOnInputPlane (int input, const char *planename, int array_index, float t, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
COP2_CookAreaInfomakeOutputAreaDependOnMyPlane (int input, COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
void getInputAreasForCollapsedTransformInputs (COP2_Context &context, const COP2_TransformParms &transform_parms, COP2_CookAreaInfo &output_area, COP2_CookAreaList &uncollapsed_input_areas, COP2_CookAreaList &needed_areas, bool input_aspect_adjust, bool clear_uncollapse_list)
virtual bool allowPartiallyScopedPlanes () const
void registerVolatileParm (const char *name, PRM_Callback c, bool ignore_missing=false)
void deAnimateFollowChanRef (const char *parmname, int vecidx)
void getDependencyInfo (OP_Context &context, UT_WorkBuffer &text)
void swapParm (const char *name1, const char *name2, int vsize)
void swapStringParm (const char *name1, const char *name2, int vsize)

Static Protected Member Functions

static unsigned int getCookScore (float cooktime)
static void scaleImageArea (float sx, float sy, int ix1, int iy1, int ix2, int iy2, int &x1, int &y1, int &x2, int &y2)

Protected Attributes

UT_ErrorManager myCookErrorManager
TIL_Sequence mySequence
int myCopOpenCount
unsigned char myCopRecurseFlag:1
unsigned char myFramesAllScopedFlag:1
int myInterruptFlags
int myInputBlockFlags
COP2_ThreadPref myThreadPreference

Friends

class COP2_CookScheduler
class COP2_VexVariableMap
class COP2_PixelOp
class COP2_VexOp
class COP2_MaskOp


Detailed Description

Examples:

COP2/COP2_FullImageFilter.C, and COP2/COP2_FullImageFilter.h.

Definition at line 81 of file COP2_Node.h.


Constructor & Destructor Documentation

COP2_Node::COP2_Node ( OP_Network net,
const char *  name,
OP_Operator entry 
) [protected]

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


Member Function Documentation

static void COP2_Node::abortCook (  )  [static]

void COP2_Node::addCookError ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addCookMessage ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addCookSystemError ( const char *  msg = 0  )  [protected]

void COP2_Node::addCookSystemWarning ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addCookWarning ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addError ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addMessage ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::addSystemError ( const char *  msg = 0  )  [protected]

void COP2_Node::addSystemWarning ( const char *  msg = 0  )  [protected]

static void COP2_Node::addToFileLoadTime ( float  t  )  [static]

void COP2_Node::addWarning ( int  code,
const char *  msg = 0 
) [protected]

void COP2_Node::adjustPivotParms ( int  input_index,
COP2_TransformParms parms,
bool  input_aspect_adjust 
) [protected]

virtual bool COP2_Node::allowPartiallyScopedPlanes (  )  const [inline, protected, virtual]

Definition at line 1217 of file COP2_Node.h.

bool COP2_Node::arePlanesAligned ( COP2_Context context,
const TIL_Plane plane1,
int  aindex1,
const TIL_Plane plane2,
int  aindex2,
int  tilex,
int  tiley 
)

static void COP2_Node::buildCompMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildInputCompMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildInputPlaneMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildInputScopeMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildOperatorTable ( OP_OperatorTable table  )  [static]

void COP2_Node::buildPlaneMenu ( PRM_Name items,
int  maxsize,
bool  useinput = false,
bool  planes_only = false,
bool  comps_only = false,
bool  wild = true,
int  input = 0,
bool  nocoloralpha = false 
)

static void COP2_Node::buildPlaneMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildPlanePreviewMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildPlaneScopeMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildScopeMenu ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

static void COP2_Node::buildScopeMenuNoColAlpha ( void *  ,
PRM_Name ,
int  ,
const PRM_SpareData ,
PRM_Parm  
) [static]

void COP2_Node::bumpCookSerial (  )  [inline]

Definition at line 1255 of file COP2_Node.h.

virtual OP_ERROR COP2_Node::bypassMe ( OP_Context ,
int &   
) [inline, protected, virtual]

Implements OP_Node.

Definition at line 666 of file COP2_Node.h.

void COP2_Node::checkpointCachedTilesForPlane ( COP2_Context context,
const TIL_Plane refplane,
int  xstart,
int  ystart,
int  xend,
int  yend,
bool  flipbook,
UT_PtrArray< TIL_Tile * > &  tile_list 
)

void COP2_Node::checkpointCachedTilesForPlane ( const TIL_Plane refplane,
int  array_index,
float  time,
int  xres,
int  yres,
int  xstart,
int  ystart,
int  xend,
int  yend,
bool  flipbook,
UT_PtrArray< TIL_Tile * > &  tile_list 
)

void COP2_Node::cleanUpAllRegions (  ) 

void COP2_Node::cleanUpCookContexts (  ) 

virtual void COP2_Node::cleanUpInputsRecursively (  )  [protected, virtual]

void COP2_Node::clearOvercookStats (  )  [protected]

void COP2_Node::clearTilesInCache (  ) 

static void COP2_Node::clearWorkingThreadId ( int  thread_index  )  [static]

virtual void COP2_Node::close ( short  key  )  [virtual]

virtual void COP2_Node::computeImageBounds ( COP2_Context context  )  [protected, virtual]

void COP2_Node::computePlaneCookParms ( COP2_PlaneCookParms plane_parms,
OP_Context context,
const TIL_Plane rplane,
int  array_index,
TIL_Raster raster,
int  thread_index,
const int *  compmap,
int  xstart,
int  ystart,
int  xend,
int  yend,
bool  flipbook,
UT_PtrArray< TIL_Tile * > *  tile_list 
)

virtual bool COP2_Node::cook ( OP_Context context  )  [protected, virtual]

Cook this node's data. Returns true upon success, false otherwise.

Upon failure, use OP_Parameters::error() and OP_Parameters::getErrorMessages() to determine reason.

Reimplemented from OP_Node.

int COP2_Node::cookFlipbook ( const TIL_Sequence info,
int  step = 1,
float  gamma = 1.0f,
const char *  lut = 0,
bool  startnew = true,
bool(*)(void *)  updateCallback = 0,
void *  updateEntity = 0,
bool  write_houdini_frame = true,
const char *  session_label = NULL 
)

OP_ERROR COP2_Node::cookFullImage ( COP2_Context context,
TIL_TileList tiles,
COP2_FullImageCB  callback,
UT_Lock fullimagelock,
bool  use_float 
) [protected]

virtual OP_ERROR COP2_Node::cookMe ( OP_Context  )  [inline, protected, virtual]

Implements OP_Node.

Definition at line 664 of file COP2_Node.h.

virtual OP_ERROR COP2_Node::cookMyTile ( COP2_Context context,
TIL_TileList tiles 
) [protected, virtual]

virtual TIL_Sequence* COP2_Node::cookSequenceInfo ( OP_ERROR error  )  [protected, pure virtual]

OP_ERROR COP2_Node::cookTile ( TIL_TileList *&  ,
float  t,
int  xres,
int  yres,
int  thread_index,
int  max_threads 
)

int COP2_Node::cookToFile ( const UT_StringArray filenames,
const IMG_TileOptions ,
OP_Context context,
const UT_IntArray image_index,
const char *  cplane,
const char *  aplane = 0,
const char *  uselut = 0,
float  gamma = 1.0F,
UT_InclusiveRect bounds = 0,
bool  single_frame = false,
bool  thread_io = false,
bool  env_map = false,
bool  use_progress_dialog = true 
)

int COP2_Node::cookToFile ( const UT_StringArray filenames,
const IMG_TileOptions ,
const TIL_Sequence scope,
const UT_IntArray image_index,
const char *  uselut = 0,
float  gamma = 1.0F,
UT_InclusiveRect bounds = 0,
bool  single_frame = false,
bool  thread_io = false,
bool  env_map = false,
bool  use_progress_dialog = true 
)

int COP2_Node::cookToRaster ( UT_PtrArray< TIL_Raster * > &  rasters,
UT_PtrArray< OP_Context * > &  contexts,
UT_PtrArray< const TIL_Plane * > &  planes,
UT_IntArray array_index,
UT_PtrArray< const int * > &  comp_map,
UT_RefArray< UT_InclusiveRect > &  bounds,
int  subregion = 1,
int  clear = 1,
float  black = 0.0F,
float  white = 1.0F,
int  compindex = -1,
int  ignore_bwpoints = 0,
float  gamma = 1.0F,
bool  interactive = false,
UT_PtrArray< TIL_Raster * > *  tiles = 0,
int  tile_index = 0,
TIL_TileMPlay = 0,
bool  cleanup_after = true 
)

int COP2_Node::cookToRaster ( TIL_Raster raster,
OP_Context ,
const TIL_Plane plane,
int  array_index,
int  xstart,
int  ystart,
int  xend,
int  yend,
int  subregion = 1,
int  clear = 1,
float  black = 0.0F,
float  white = 1.0F,
int  compindex = -1,
int  ignore_bwpoints = 0,
const int *  comp_map = 0,
float  gamma = 1.0F,
bool  interactive = false,
UT_PtrArray< TIL_Raster * > *  tiles = 0,
int  tile_index = 0,
TIL_TileMPlay = 0,
bool  cleanup_after = true 
)

int COP2_Node::cookToRaster ( TIL_Raster raster,
OP_Context ,
const TIL_Plane plane,
int  array_index = 0,
int  subregion = 1,
int  clear = 1,
float  black = 0.0F,
float  white = 1.0F,
int  compindex = -1,
int  ignore_bwpoints = 0,
const int *  comp_map = 0,
float  gamma = 1.0F,
bool  interactive = false 
)

void COP2_Node::copyAndPrepareTransformParms ( const UT_PtrArray< const COP2_TransformParms * > &  source_parms,
UT_PtrArray< COP2_TransformParms * > &  dest_parms 
) [protected]

bool COP2_Node::copyInput ( int  input,
COP2_Context context,
TIL_TileList mytile,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0 
) [protected]

bool COP2_Node::copyInput ( int  input,
COP2_Context context,
TIL_TileList tilelist,
float  t,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0 
) [protected]

bool COP2_Node::copyInputBounds ( int  input,
COP2_Context context,
int *  x1 = 0,
int *  y1 = 0,
int *  x2 = 0,
int *  y2 = 0 
) [protected]

void COP2_Node::deAnimateFollowChanRef ( const char *  parmname,
int  vecidx 
) [protected]

virtual unsigned COP2_Node::disableParms (  )  [virtual]

virtual bool COP2_Node::doesFrameExist ( int  ,
bool  = true 
) [inline, virtual]

Definition at line 392 of file COP2_Node.h.

static int COP2_Node::dumpCache ( void *  me,
int  i,
float  t,
const PRM_Template  
) [static]

void COP2_Node::enableDiskCache ( bool  enable  ) 

void COP2_Node::ensureSequenceContainsColorAndAlpha (  )  [protected]

virtual OP_ERROR COP2_Node::error (  )  [inline, virtual]

void COP2_Node::extractFromOutputRegion ( TIL_TileList tiles,
TIL_Region output 
) [protected]

virtual void COP2_Node::forceRecook ( bool  evensmartcache = false  )  [virtual]

Mark this node as needing a full recook. If 'evensmartcache' is true, a recook will occur even if all the parameters match in this node and all its inputs (only valid for COP2_Node).

Reimplemented from OP_Node.

virtual int COP2_Node::frameScope ( UT_String  )  [inline, protected, virtual]

Reimplemented in COP2_Generator, and COP2_PixelBase.

Definition at line 1135 of file COP2_Node.h.

bool COP2_Node::fullTransformRegion ( COP2_Context context,
COP2_Node source_node,
int  source_input,
TIL_Region region,
COP2_TransformParms parms,
float  haspect,
float  input_haspect,
float  vaspect,
float  input_vaspect,
bool  bounds_in_canvas_space 
) [protected]

static const char* COP2_Node::getAlphaPlaneName (  )  [static]

const COP2_CookAreaInfo* COP2_Node::getAreaInfo ( COP2_Context context  )  const [protected]

TIL_TileList* COP2_Node::getBlackTile ( const TIL_Plane plane,
int  aindex,
float  t,
int  xres,
int  yres,
int  thread,
int  xstart,
int  ystart,
bool *  mask = 0 
) [protected]

static const char* COP2_Node::getBumpPlaneName (  )  [static]

static TIL_TileCache* COP2_Node::getCache (  )  [static]

COP2_CheckpointWrapper* COP2_Node::getCheckpointWrapper (  )  [inline]

Definition at line 636 of file COP2_Node.h.

virtual const char* COP2_Node::getChildType ( void   )  const [inline, virtual]

Reimplemented from OP_Network.

Definition at line 575 of file COP2_Node.h.

virtual OP_OpTypeId COP2_Node::getChildTypeID (  )  const [inline, virtual]

Implements OP_Network.

Definition at line 578 of file COP2_Node.h.

static const char* COP2_Node::getColorPlaneName (  )  [static]

COP2_Context* COP2_Node::getContext ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread 
) [protected]

COP2_Context* COP2_Node::getContextData ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
bool  force_bounds = true 
)

virtual void* COP2_Node::getCookedData ( OP_Context  )  [inline, virtual]

Reimplemented from OP_Node.

Definition at line 586 of file COP2_Node.h.

virtual OP_DATA_TYPE COP2_Node::getCookedDataType ( void   )  const [inline, virtual]

Implements OP_Node.

Definition at line 585 of file COP2_Node.h.

static unsigned int COP2_Node::getCookScore ( float  cooktime  )  [static, protected]

int COP2_Node::getCookSerial (  )  [inline]

Definition at line 1256 of file COP2_Node.h.

void COP2_Node::getDependencyInfo ( OP_Context context,
UT_WorkBuffer text 
) [protected]

static const char* COP2_Node::getDepthPlaneName (  )  [static]

virtual OP_ERROR COP2_Node::getErrorSeverity (  )  [inline, virtual]

Reimplemented from OP_Parameters.

Definition at line 449 of file COP2_Node.h.

static void COP2_Node::getFileProxyReduce ( float &  rx,
float &  ry 
) [static]

virtual fpreal COP2_Node::getH (  )  const [virtual]

Node position/scale is used by the UI.

Reimplemented from OP_Node.

void COP2_Node::getImageBounds ( COP2_Context context,
int &  x1,
int &  y1,
int &  x2,
int &  y2 
) [inline]

Definition at line 1686 of file COP2_Node.h.

void COP2_Node::getImageBounds ( const TIL_Plane plane,
int  array,
float  t,
int  xres,
int  yres,
int  thread,
int &  x1,
int &  y1,
int &  x2,
int &  y2 
)

virtual UT_TokenString* COP2_Node::getImageIdentifier ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread 
) [virtual]

COP2_ImageSource* COP2_Node::getImageSource (  )  [inline]

Definition at line 100 of file COP2_Node.h.

virtual void COP2_Node::getImageTransform ( COP2_Context context,
COP2_TransformParms parms,
COP2_Node *&  source,
int &  input_index 
) [virtual]

void COP2_Node::getInputAreasForCollapsedTransformInputs ( COP2_Context context,
const COP2_TransformParms transform_parms,
COP2_CookAreaInfo output_area,
COP2_CookAreaList uncollapsed_input_areas,
COP2_CookAreaList needed_areas,
bool  input_aspect_adjust,
bool  clear_uncollapse_list 
) [protected]

bool COP2_Node::getInputBounds ( int  input,
const TIL_Plane plane,
int  array,
float  t,
int  xres,
int  yres,
int  thread,
int &  x1,
int &  y1,
int &  x2,
int &  y2 
)

bool COP2_Node::getInputBounds ( int  input,
COP2_Context context,
int &  x1,
int &  y1,
int &  x2,
int &  y2 
) [inline]

Examples:
COP2/COP2_MultiInputWipe.C.

Definition at line 1677 of file COP2_Node.h.

bool COP2_Node::getInputBoundsDiff ( int  input,
COP2_Context context,
int &  dx,
int &  dy 
)

virtual void COP2_Node::getInputDependenciesForOutputArea ( COP2_CookAreaInfo output_area,
const COP2_CookAreaList input_areas,
COP2_CookAreaList needed_areas 
) [virtual]

virtual void COP2_Node::getInputRes ( int  input,
float  t,
const OP_Context context,
OP_Context icontext 
) [virtual]

Reimplemented from OP_Node.

virtual COP2_Node* COP2_Node::getInputToOpen ( int  i  )  [inline, virtual]

Definition at line 622 of file COP2_Node.h.

UT_Interrupt* COP2_Node::getInterrupt (  )  [protected]

static const char* COP2_Node::getLumPlaneName (  )  [static]

virtual int COP2_Node::getMaskInput (  )  const [inline, virtual]

Reimplemented in COP2_Generator, and COP2_MaskOp.

Definition at line 359 of file COP2_Node.h.

static const char* COP2_Node::getMaskPlaneName (  )  [static]

virtual void COP2_Node::getMaxNumThreadsInCook ( COP2_Context ,
int &  plane,
int &  node,
int &  op 
) const [inline, virtual]

Reimplemented in COP2_PixelOp, COP2_Python, and HDK_Sample::COP2_FullImageFilter.

Definition at line 511 of file COP2_Node.h.

int64 COP2_Node::getMemoryUsage ( void   )  [inline]

Definition at line 581 of file COP2_Node.h.

virtual void COP2_Node::getMyExternalReferences ( UT_StringArray reflist,
UT_StringArray nodelist = 0,
bool  collapse = false,
bool  check_missing = false,
bool  show_missing_only = false 
) [protected, virtual]

Reimplemented from OP_Node.

virtual int COP2_Node::getNetOverviewColor ( UT_Color color  )  [virtual]

Reimplemented from OP_Node.

virtual void COP2_Node::getNodeSpecificInfoText ( OP_Context context,
int  verbose,
UT_WorkBuffer text 
) [virtual]

Reimplemented from OP_Node.

static const char* COP2_Node::getNormalPlaneName (  )  [static]

virtual int COP2_Node::getNumInputsToOpen (  )  const [inline, virtual]

Definition at line 621 of file COP2_Node.h.

virtual const char* COP2_Node::getOperationInfo (  )  [protected, virtual]

Reimplemented in HDK_Sample::COP2_SampleFilter.

virtual const char* COP2_Node::getOpType ( void   )  const [inline, virtual]

Implements OP_Node.

Definition at line 576 of file COP2_Node.h.

virtual OP_OpTypeId COP2_Node::getOpTypeID (  )  const [inline, virtual]

This returns the OP_OpTypeId which corresponds to this node type. Management nodes will return the type they really are, which is likely different than the network they currently reside in.

Implements OP_Node.

Definition at line 579 of file COP2_Node.h.

void COP2_Node::getOvercookStats ( int &  redone,
int &  total 
) [protected]

virtual UT_TokenString& COP2_Node::getParmHashCode ( OP_Context context,
int  group_mask = 1 
) [virtual]

Reimplemented from OP_Node.

bool COP2_Node::getPixelColorValueByUV ( COP2_ColorComponent  comp,
double  u,
double  v,
bool  interpolate,
float &  val 
)

virtual void COP2_Node::getPixelFunction ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
COP2_PixelFunction *&  function,
bool  concatenate,
bool  dependent_too 
) [virtual]

Reimplemented in COP2_PixelOp.

bool COP2_Node::getPixelValue ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  x,
int  y,
float *  color 
)

bool COP2_Node::getPixelValueByUV ( const char *  plane_name,
double  u,
double  v,
bool  interpolate,
UT_FloatArray vals 
)

static const char* COP2_Node::getPointPlaneName (  )  [static]

int COP2_Node::getPreviewPlane ( int &  pindex,
int &  aindex 
)

TIL_Plane* COP2_Node::getPreviewPlane ( int &  index  ) 

static TIL_ProxyManager* COP2_Node::getProxyManager (  )  [static]

void COP2_Node::getScaleFactors ( int  xres,
int  yres,
float &  sx,
float &  sy 
) const

TIL_Sequence* COP2_Node::getSequenceInfo ( OP_ERROR error = 0  ) 

float COP2_Node::getSequenceTime (  )  const

UT_Matrix4 COP2_Node::getShiftedInverseTransformMatrix ( COP2_Context context,
COP2_Node source_node,
int  source_input,
const TIL_Plane iplane,
int  array_index,
const COP2_TransformParms parms,
int &  dx,
int &  dy 
) [protected]

int COP2_Node::getThreadIndex (  ) 

COP2_ThreadPref COP2_Node::getThreadPref (  )  const [inline]

Definition at line 502 of file COP2_Node.h.

virtual COP2_ThreadPref COP2_Node::getThreadPreference (  )  const [inline, protected, virtual]

Reimplemented in COP2_Generator, COP2_MultiBase, and COP2_PixelBase.

Definition at line 710 of file COP2_Node.h.

bool COP2_Node::getTileInFP ( TIL_TileList tilelist,
float *&  dest,
int  index,
void *  dtile = 0 
) [protected]

static TIL_TileManager* COP2_Node::getTileManager (  )  [static]

virtual float COP2_Node::getTimeTransform ( int  input,
float  t 
) [virtual]

Reimplemented from OP_Node.

virtual float COP2_Node::getVariableValue ( int  index,
int  thread 
) [protected, virtual]

Reimplemented from OP_Parameters.

static const char* COP2_Node::getVelocityPlaneName (  )  [static]

virtual fpreal COP2_Node::getW (  )  const [virtual]

Node position/scale is used by the UI.

Reimplemented from OP_Node.

float COP2_Node::getXScaleFactor ( int  xres  )  const

float COP2_Node::getYScaleFactor ( int  yres  )  const

static void COP2_Node::initializeCache (  )  [static]

static void COP2_Node::initializeExpressions (  )  [static]

const TIL_Sequence* COP2_Node::inputInfo ( int  input  ) 

virtual void COP2_Node::inputOpenFailed ( int   )  [inline, protected, virtual]

Definition at line 707 of file COP2_Node.h.

TIL_Region * COP2_Node::inputRegion ( int  input_index,
COP2_Context context,
TIL_TileList tilelist,
int  xshift = 0,
int  yshift = 0,
int  copy = 0,
TIL_RegionExtend  hold = TIL_BLACK 
) [inline, protected]

Definition at line 1632 of file COP2_Node.h.

TIL_Region* COP2_Node::inputRegion ( int  input_index,
COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
TIL_TileList tilelist,
int  xshift = 0,
int  yshift = 0,
int  copy = 0,
TIL_RegionExtend  hold = TIL_BLACK 
) [protected]

TIL_Region * COP2_Node::inputRegion ( int  input_index,
COP2_Context context,
int  xstart,
int  ystart,
int  xend,
int  yend,
TIL_RegionExtend  hold = TIL_BLACK,
int  share = 1,
void *  regionmem[PLANE_MAX_VECTOR_SIZE] = 0,
bool  correct_aspect = true,
bool  correct_bounds = true,
int  scan_alignment = 0 
) [inline, protected]

Definition at line 1643 of file COP2_Node.h.

TIL_Region* COP2_Node::inputRegion ( int  input_index,
COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
int  xstart,
int  ystart,
int  xend,
int  yend,
TIL_RegionExtend  hold = TIL_BLACK,
int  share = 1,
void *  regionmem[PLANE_MAX_VECTOR_SIZE] = 0,
bool  correct_aspect = true,
bool  correct_bounds = true,
int  scan_alignment = 0 
) [protected]

void COP2_Node::inputRes ( int  input,
float  t,
int  xres,
int  yres,
int &  i_xres,
int &  i_yres 
)

TIL_TileList * COP2_Node::inputTile ( int  input,
COP2_Context context,
TIL_TileList mytile,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0,
bool *  blocked = 0,
bool *  was_corrected = 0 
) [inline, protected]

Definition at line 1608 of file COP2_Node.h.

TIL_TileList * COP2_Node::inputTile ( int  input,
COP2_Context context,
TIL_TileList mytile,
float  t,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0,
bool *  blocked = 0,
bool *  was_corrected = 0 
) [inline, protected]

Definition at line 1621 of file COP2_Node.h.

TIL_TileList * COP2_Node::inputTile ( int  input_index,
COP2_Context context,
int  xstart,
int  ystart,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0,
bool *  blocked = 0,
bool *  was_corrected = 0 
) [inline, protected]

Definition at line 1596 of file COP2_Node.h.

TIL_TileList* COP2_Node::inputTile ( int  input_index,
COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
int  xstart,
int  ystart,
OP_ERROR err = 0,
int  block = 1,
bool *  mask = 0,
COP2_Node fromtile = 0,
bool  correctorig = true,
bool *  blocked = 0,
bool *  was_corrected = 0 
) [protected]

static void COP2_Node::installCommands (  )  [static]

int COP2_Node::isAnythingLocked (  )  const

bool COP2_Node::isCookAborted ( int  thread_index  ) 

static bool COP2_Node::isCookAborted (  )  [static]

static bool COP2_Node::isCooking (  )  [static]

bool COP2_Node::isDiskCacheEnabled (  )  const [inline]

Definition at line 418 of file COP2_Node.h.

int COP2_Node::isFollowingParent ( const COP2_Node parent  ) 

virtual bool COP2_Node::isFrameScoped ( int   )  [inline, protected, virtual]

Reimplemented in COP2_PixelBase.

Definition at line 1131 of file COP2_Node.h.

bool COP2_Node::isFullTransform ( int  input,
COP2_Context context,
const COP2_TransformParms cparms,
bool  input_aspect_adjust = true,
COP2_Node **  source_node = 0,
int *  source_index = 0,
float *  aspectx1 = 0,
float *  aspectx2 = 0,
float *  aspecty1 = 0,
float *  aspecty2 = 0,
COP2_TransformParms prepped_parms = 0 
) [protected]

virtual bool COP2_Node::isGenerator (  )  const [inline, virtual]

Reimplemented in COP2_Generator.

Definition at line 356 of file COP2_Node.h.

virtual bool COP2_Node::isGPUAssisted ( const TIL_Plane ,
int  ,
float  ,
int  ,
int  ,
int   
) [inline, virtual]

Reimplemented in COP2_PixelOp.

Definition at line 350 of file COP2_Node.h.

bool COP2_Node::isInputBlocked ( int  thread  )  [protected]

bool COP2_Node::isInputPlaneCompatible ( COP2_Context context,
int  input_num 
)

bool COP2_Node::isInputTileAlignedWithContext ( int  input,
const TIL_Plane plane,
int  tilex,
int  tiley,
COP2_Context context,
COP2_Node with_node = 0 
)

bool COP2_Node::isInterrupted ( int  threadidx  ) 

bool COP2_Node::isOpen (  )  const [inline]

Definition at line 87 of file COP2_Node.h.

virtual bool COP2_Node::isPixelBased (  )  const [inline, virtual]

Reimplemented in COP2_Generator, and COP2_PixelBase.

Definition at line 357 of file COP2_Node.h.

bool COP2_Node::isPlaneCached ( COP2_Context context,
const TIL_Plane refplane,
int  xstart,
int  ystart,
int  xend,
int  yend,
bool  flipbook 
)

bool COP2_Node::isPlaneCached ( const TIL_Plane refplane,
int  array_index,
float  time,
int  xres,
int  yres,
int  xstart,
int  ystart,
int  xend,
int  yend,
bool  flipbook 
)

int COP2_Node::isPlaneLocked ( const TIL_Plane p,
float  t 
)

int COP2_Node::isPlaneLocked ( const TIL_Plane p  )  const

virtual int COP2_Node::isScaledImageDifferent (  )  const [inline, protected, virtual]

Definition at line 704 of file COP2_Node.h.

int COP2_Node::isSequenceLocked ( float  t  ) 

virtual int COP2_Node::isSingleThreadedCop (  )  const [inline, virtual]

Definition at line 384 of file COP2_Node.h.

virtual bool COP2_Node::isSlowOperation (  )  const [inline, virtual]

Reimplemented in COP2_PixelOp, COP2_Python, and COP2_TimingBase.

Definition at line 348 of file COP2_Node.h.

bool COP2_Node::isTileAlignedWithInput ( int  input,
const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
int  tilex,
int  tiley,
COP2_Node with_node = 0 
)

bool COP2_Node::isTileAlignedWithInput ( int  input,
COP2_Context context,
int  tilex,
int  tiley,
COP2_Node with_node = 0 
)

bool COP2_Node::isTileAlignedWithInputAtTime ( int  input,
COP2_Context context,
int  tilex,
int  tiley,
float  input_time,
COP2_Node with_node = 0 
)

virtual bool COP2_Node::isTimeDepOperation (  )  [inline, virtual]

Reimplemented in COP2_PixelBase, and COP2_TimingBase.

Definition at line 349 of file COP2_Node.h.

virtual bool COP2_Node::isTimeModifier (  )  const [inline, virtual]

Reimplemented in COP2_Generator, COP2_Python, and COP2_TimingBase.

Definition at line 344 of file COP2_Node.h.

void COP2_Node::launchViewer ( TIL_ViewerType  view  )  [protected]

virtual bool COP2_Node::load ( UT_IStream is,
const char *  extension,
const char *  path = 0 
) [protected, virtual]

Reimplemented from OP_Network.

void COP2_Node::lockParms ( bool  lock  )  [inline, protected]

Definition at line 1668 of file COP2_Node.h.

int COP2_Node::lockPlane ( const TIL_Plane p,
float  t 
)

int COP2_Node::lockPlanes ( float  t  ) 

void COP2_Node::makeOutputAreaDependOnAllInputAreas ( COP2_CookAreaInfo output_area,
const COP2_CookAreaList input_areas,
COP2_CookAreaList needed_areas 
) [protected]

void COP2_Node::makeOutputAreaDependOnInputAreas ( int  input,
COP2_CookAreaInfo output_area,
const COP2_CookAreaList input_areas,
COP2_CookAreaList needed_areas 
) [protected]

COP2_CookAreaInfo* COP2_Node::makeOutputAreaDependOnInputPlane ( int  input,
const char *  planename,
int  array_index,
float  t,
const COP2_CookAreaList input_areas,
COP2_CookAreaList needed_areas 
) [protected]

COP2_CookAreaInfo* COP2_Node::makeOutputAreaDependOnMyPlane ( int  input,
COP2_CookAreaInfo output_area,
const COP2_CookAreaList input_areas,
COP2_CookAreaList needed_areas 
) [protected]

float COP2_Node::mapTimeIntoSequence ( float  time  ) 

virtual void COP2_Node::modifyViewMatrix ( int  input,
COP2_Context context,
UT_Matrix4 matrix,
float  zoom 
) [virtual]

Reimplemented in COP2_MaskOp.

virtual COP2_ContextData* COP2_Node::newContextData ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
int  max_threads 
) [protected, virtual]

virtual bool COP2_Node::onlyCookInMainThread (  )  const [inline, virtual]

Definition at line 518 of file COP2_Node.h.

virtual void COP2_Node::opChanged ( OP_EventType  type,
void *  data 
) [virtual]

Reimplemented from OP_Node.

virtual OP_ERROR COP2_Node::open ( short &  key,
int  clear_errors = 0 
) [virtual]

TIL_Region* COP2_Node::outputRegion ( const TIL_Plane plane,
const TIL_Plane ref_plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
int  xstart,
int  ystart,
int  xend,
int  yend,
int  share = 1,
int  rindex = 0,
int  alignment = 0 
) [protected]

TIL_Region* COP2_Node::outputRegion ( COP2_Context context,
int  xstart,
int  ystart,
int  xend,
int  yend,
int  share = 1,
int  rindex = 0,
int  alignment = 0 
) [protected]

TIL_Region * COP2_Node::outputRegion ( const TIL_Plane plane,
int  array_index,
float  t,
int  xres,
int  yres,
int  thread,
int  xstart,
int  ystart,
int  xend,
int  yend,
int  share = 1,
int  rindex = 0,
int  alignment = 0 
) [inline, protected]

Definition at line 1658 of file COP2_Node.h.

void COP2_Node::parentPreviewChanged (  ) 

TIL_TileList* COP2_Node::passInputTile ( int  input_index,
COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
int  xstart,
int  ystart,
int  block,
bool *  blocked,
bool *  mask,
COP2_Node fromTile = 0 
) [protected]

virtual int COP2_Node::passThrough ( COP2_Context context,
const TIL_Plane plane,
int  comp_index,
int  array_index,
float  t,
int  xstart,
int  ystart 
) [protected, virtual]

virtual void COP2_Node::passThroughTiles ( COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
int  xstart,
int  ystart,
TIL_TileList *&  tile,
int  block = 1,
bool *  mask = 0,
bool *  blocked = 0 
) [protected, virtual]

void COP2_Node::prepareTransformParms ( COP2_Context context,
COP2_TransformParms parms,
COP2_Node *&  source_node,
int &  source_index,
bool  input_aspect_adjust 
) [protected]

static void COP2_Node::printMe ( void *  me,
ostream &  os 
) [static]

void COP2_Node::processTile ( COP2_ThreadCookParms p  ) 

void COP2_Node::recursivelyCleanUp (  ) 

virtual unsigned COP2_Node::referenceAllParameters ( OP_Parameters from  )  [virtual]

Reimplemented from OP_Parameters.

void COP2_Node::registerVolatileParm ( const char *  name,
PRM_Callback  c,
bool  ignore_missing = false 
) [protected]

void COP2_Node::releaseRegion ( TIL_Region ,
int  output = 0 
) [protected]

void COP2_Node::releaseTile ( TIL_TileList *&  ,
bool  reset = false 
) [protected]

void COP2_Node::releaseWorkingTiles ( TIL_TileList list  )  [protected]

virtual float COP2_Node::remapTime ( float  t  )  [virtual]

void COP2_Node::removeRegions (  ) 

TIL_TileList* COP2_Node::requestWorkingTiles ( COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
int  xstart,
int  ystart,
int *  cache_flag = 0,
int  ignore_bypass = 0,
int  block = 0 
) [protected]

static void COP2_Node::resetAbortFlag (  )  [static]

static void COP2_Node::resetBadMissingFrames (  )  [static]

virtual OP_ERROR COP2_Node::save ( ostream &  os,
const OP_SaveFlags flags,
const char *  pathPrefix 
) [protected, virtual]

Reimplemented from OP_Node.

virtual OP_ERROR COP2_Node::saveIntrinsic ( ostream &  os,
const OP_SaveFlags flags 
) [protected, virtual]

Reimplemented from OP_Node.

static void COP2_Node::scaleImageArea ( float  sx,
float  sy,
int  ix1,
int  iy1,
int  ix2,
int  iy2,
int &  x1,
int &  y1,
int &  x2,
int &  y2 
) [static, protected]

void COP2_Node::scaleInput ( int  input,
COP2_Context context,
const TIL_Plane plane,
int  array_index,
float  t,
UT_FilterType  xfilter,
UT_FilterType  yfilter,
TIL_TileList tilelist 
) [protected]

virtual int COP2_Node::scope ( UT_String  )  [inline, protected, virtual]

Reimplemented in COP2_Generator, and COP2_PixelBase.

Definition at line 1134 of file COP2_Node.h.

virtual COP2_Node* COP2_Node::selectInput ( int  px,
int  py,
const char *  plane_name,
int  array_index 
) [virtual]

void COP2_Node::setCheckpointWrapper ( COP2_CheckpointWrapper *  wrapper  )  [inline]

Definition at line 638 of file COP2_Node.h.

virtual void COP2_Node::setColorSelection ( float *  col,
int  size,
bool  accum 
) [virtual]

static void COP2_Node::setCookPosition ( float  u,
float  v 
) [static]

void COP2_Node::setCOPColoring ( COP2_OpColorType  type,
bool  enable 
) [protected]

static void COP2_Node::setFileProxyReduce ( float  rx,
float  ry 
) [static]

void COP2_Node::setInputBlocked ( bool  blocked,
int  thread 
)

void COP2_Node::setInterrupted ( int  threadidx  ) 

static void COP2_Node::setNodeTimingTable ( COP2_DebugTimingTable table  )  [static]

void COP2_Node::setPreviewPlane ( int  pindex,
int  aindex = 0 
)

virtual OP_ERROR COP2_Node::setup ( float  t,
int  xres,
int  yres,
int  max_threads,
bool  doinput = true 
) [virtual]

static void COP2_Node::setUpdateCallback ( void(*)(float, bool, bool)  callback  )  [static]

void COP2_Node::setVariableUseFullRes ( bool  onoff  )  [protected]

static void COP2_Node::setViewerCallback ( void(*)(COP2_Node *, void *, TIL_ViewerType viewer,
void *  data 
) [static]

static void COP2_Node::setWorkingThreadId ( int  thread_index  )  [static]

void COP2_Node::swapParm ( const char *  name1,
const char *  name2,
int  vsize 
) [protected]

void COP2_Node::swapStringParm ( const char *  name1,
const char *  name2,
int  vsize 
) [protected]

static void COP2_Node::tileRemovalCallback ( void *  parent,
TIL_Tile removed 
) [static]

void COP2_Node::tileRemoved ( TIL_Tile removed  ) 

bool COP2_Node::transformBlurRegion ( int  input,
COP2_Context context,
TIL_Region region,
float  amount,
float  bias,
UT_PtrArray< const COP2_TransformParms * > &  parms,
bool  deformation = false,
bool  bounds_in_canvas_space = true 
) [protected]

TIL_Region* COP2_Node::transformBlurRegion ( int  input,
COP2_Context context,
const TIL_Plane plane,
int  aindex,
float  t,
int  xres,
int  yres,
int  xstart,
int  ystart,
int  xend,
int  yend,
float  amount,
float  bias,
UT_PtrArray< const COP2_TransformParms * > &  parms,
bool  deformation = false 
) [protected]

bool COP2_Node::transformRegion ( int  input,
COP2_Context context,
TIL_Region region,
const COP2_TransformParms parms,
bool  input_aspect_adjust = true,
bool  bounds_in_canvas_space = true,
bool  streak_off_frame = false 
) [protected]

TIL_Region* COP2_Node::transformRegion ( int  input,
COP2_Context context,
const TIL_Plane plane,
int  aindex,
float  t,
int  xres,
int  yres,
int  xstart,
int  ystart,
int  xend,
int  yend,
const COP2_TransformParms parms,
bool  input_aspect_adjust = true,
bool  streak_off_frame = false 
) [protected]

bool COP2_Node::translateRegion ( COP2_Context context,
COP2_Node source_node,
int  source_input,
TIL_Region region,
float  tx,
float  ty,
TIL_RegionExtend  hold,
bool  bounds_in_canvas_space,
bool  streak_off_frame 
) [protected]

int COP2_Node::unlockAll (  ) 

int COP2_Node::unlockPlane ( const TIL_Plane p,
float  t 
)

int COP2_Node::unlockPlanes ( float  t  ) 

void COP2_Node::waitForLastFile (  ) 

void COP2_Node::writeFPtoTile ( TIL_TileList tilelist,
float *&  src,
int  index 
) [protected]


Friends And Related Function Documentation

friend class COP2_CookScheduler [friend]

Definition at line 1588 of file COP2_Node.h.

friend class COP2_MaskOp [friend]

Definition at line 1592 of file COP2_Node.h.

friend class COP2_PixelOp [friend]

Definition at line 1590 of file COP2_Node.h.

friend class COP2_VexOp [friend]

Definition at line 1591 of file COP2_Node.h.

friend class COP2_VexVariableMap [friend]

Definition at line 1589 of file COP2_Node.h.


Member Data Documentation

Definition at line 700 of file COP2_Node.h.

int COP2_Node::myCopOpenCount [protected]

Definition at line 1259 of file COP2_Node.h.

unsigned char COP2_Node::myCopRecurseFlag [protected]

Definition at line 1260 of file COP2_Node.h.

unsigned char COP2_Node::myFramesAllScopedFlag [protected]

Definition at line 1260 of file COP2_Node.h.

Definition at line 1263 of file COP2_Node.h.

int COP2_Node::myInterruptFlags [protected]

Definition at line 1262 of file COP2_Node.h.

Definition at line 1264 of file COP2_Node.h.


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

Generated on Mon Jan 28 00:48:10 2013 for HDK by  doxygen 1.5.9