OP_InputChangeHelper Class Reference

#include <OP_InputChangeHelper.h>

List of all members.

Public Member Functions

void resetChangedSourceFlags ()
 Mark all inputs as dirty. This is the default.
void inputConnectChanged (const OP_Node &node, int which_input)
bool useInput (const OP_Node &node, unsigned idx, bool &changed, bool force)
bool checkChangedSourceFlags (const OP_Node &node, unsigned idx, bool &changed)


Detailed Description

Definition at line 42 of file OP_InputChangeHelper.h.


Member Function Documentation

bool OP_InputChangeHelper::checkChangedSourceFlags ( const OP_Node node,
unsigned  idx,
bool &  changed 
) [inline]

Similar to useInput() except it doesn't affect the flags. It's used to simply query whether the given input has changed. Returns false if there's errors on the input. "changed" is updated.

Definition at line 91 of file OP_InputChangeHelper.h.

void OP_InputChangeHelper::inputConnectChanged ( const OP_Node node,
int  which_input 
) [inline]

Mark the given input as dirty. NOTE: Users of this class should override OP_Node::inputConnectChanged() to call this.

Definition at line 55 of file OP_InputChangeHelper.h.

void OP_InputChangeHelper::resetChangedSourceFlags (  )  [inline]

Mark all inputs as dirty. This is the default.

Definition at line 47 of file OP_InputChangeHelper.h.

bool OP_InputChangeHelper::useInput ( const OP_Node node,
unsigned  idx,
bool &  changed,
bool  force 
) [inline]

Use the given input on the node. This updates source flags to mark the input as now clean, returning whether the input changes. If force is true, then we treat the input as always dirty. Returns false if input has errors and we'll add an input error in that case.

Definition at line 68 of file OP_InputChangeHelper.h.


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

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