GvRun Class Reference Graph View

#include <c4d_graphview.h>

详细描述

Contains helper functions for controlling node evaluation. Cannot be instantiated.

公共成员函数

void  SetCalculationTable ( GvCalcTable *t)
Bool   AddNodeToCalculationTable ( GvNode *node, Bool force_add=false)
Bool   CalculateTable ( GvCalc *calc)
Int32   GetCpuID (void)
void  IncrementID (void)
void  SetError ( GvCalcError error)
GvCalcError   GetError (void)
void  SetState ( GvCalcState state)
GvCalcState   GetState (void)
Bool   IsIterationPath (void)

私有成员函数

  GvRun ()
  ~GvRun ()

构造函数 & 析构函数文档编制

◆  GvRun()

GvRun () private

◆  ~GvRun()

~ GvRun () private

成员函数文档编制

◆  SetCalculationTable()

void SetCalculationTable ( GvCalcTable t )

Attaches a calculation table.

参数
[in] t The calculation table to attach. The caller owns the pointed table.

◆  AddNodeToCalculationTable()

Bool AddNodeToCalculationTable ( GvNode node ,
Bool   force_add = false  
)

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.
返回
true if the node was added to the calculation table, otherwise false .

◆  CalculateTable()

Bool CalculateTable ( GvCalc calc )

Calculates all nodes added to the calculation table.

参数
[in] calc The calculation helper. The caller owns the pointed calculation helper.
返回
true if the table was calculated, otherwise false .

◆  GetCpuID()

Int32 GetCpuID ( void  )

Retrieves the ID of the calculated CPU.

返回
The CPU ID. Normally 0 .

◆  IncrementID()

void IncrementID ( void  )

Increments the run ID. Used to check if a port is already calculated.

◆  SetError()

void SetError ( GvCalcError   error )

Sets the error flag.

参数
[in] error The error flag: GvError

◆  GetError()

GvCalcError GetError ( void  )

Gets the error flag.

返回
The error flag: GvError

◆  SetState()

void SetState ( GvCalcState   state )

Sets the failure state.

参数
[in] state The failure state: GvCalcState

◆  GetState()

GvCalcState GetState ( void  )

Gets the failure state.

返回
The failure state: GvCalcState

◆  IsIterationPath()

Bool IsIterationPath ( void  )

Checks if the current calculation is an iteration (a recalculation of a part of the graph).

返回
true if this is an iteration path, otherwise false .