#include <c4d_graphview.h>
Contains helper functions for controlling node evaluation. Cannot be instantiated.
Public Member Functions | |
| void | SetCalculationTable (GvCalcTable *t) |
| Bool | AddNodeToCalculationTable (GvNode *node, Bool force_add=false) |
| Bool | CalculateTable (GvCalc *calc) |
| Int32 | GetCpuID () |
| void | IncrementID () |
| void | SetError (GvCalcError error) |
| GvCalcError | GetError () |
| void | SetState (GvCalcState state) |
| GvCalcState | GetState () |
| Bool | IsIterationPath () |
Private Member Functions | |
| GvRun () | |
| ~GvRun () | |
|
private |
|
private |
| void SetCalculationTable | ( | GvCalcTable * | t | ) |
Attaches a calculation table.
| [in] | t | The calculation table to attach. The caller owns the pointed table. |
Marks a node to be calculated with the next CalculateTable(). A node is only added once. Equivalent to GvCalcTable::AddNodeToTable().
| [in] | node | The node to add. The caller owns the pointed node. |
| [in] | force_add | true to disable checks for recursion and iteration. Should never be used under normal circumstances. |
Calculates all nodes added to the calculation table.
| [in] | calc | The calculation helper. The caller owns the pointed calculation helper. |
| Int32 GetCpuID | ( | ) |
Retrieves the ID of the calculated CPU.
| void IncrementID | ( | ) |
Increments the run ID. Used to check if a port is already calculated.
| void SetError | ( | GvCalcError | error | ) |
Sets the error flag.
| [in] | error | The error flag: GvError |
| GvCalcError GetError | ( | ) |
Gets the error flag.
| void SetState | ( | GvCalcState | state | ) |
Sets the failure state.
| [in] | state | The failure state: GvCalcState |
| GvCalcState GetState | ( | ) |
Gets the failure state.
| Bool IsIterationPath | ( | ) |
Checks if the current calculation is an iteration (a recalculation of a part of the graph).