c4d_graphview_enum.h File Reference

Typedefs

typedef GvError GvCalcError
 
typedef GvError GvIoError
 

Enumerations

enum  GvError {
  GV_IO_ERR_NONE ,
  GV_CALC_ERR_NONE ,
  GV_CALC_ERR_NO_MEMORY ,
  GV_CALC_ERR_UNDEFINED ,
  GV_CALC_ERR_UNKNOWN_TYPE ,
  GV_CALC_ERR_NOT_IMPLEMENTED ,
  GV_CALC_ERR_NOT_INITIALIZED ,
  GV_CALC_ERR_NOT_VALID ,
  GV_CALC_ERR_NO_OUTPORT ,
  GV_CALC_ERR_NOT_CONNECTED ,
  GV_CALC_ERR_NO_PORT ,
  GV_CALC_ERR_DIVISION_BY_ZERO ,
  GV_CALC_ERR_TYPE_MISMATCH ,
  GV_CALC_ERR_INIT_FAILED ,
  GV_CALC_ERR_QUERY_FAILED ,
  GV_CALC_ERR_CALCULATION_FAILED ,
  GV_CALC_ERR_PARAMETER ,
  GV_IO_ERR_NO_MEMORY ,
  GV_IO_ERR_FILE_NOT_FOUND ,
  GV_IO_ERR_READ ,
  GV_IO_ERR_WRITE ,
  GV_IO_ERR_NOT_A_GROUPNODE ,
  GV_NR_OF_SYSTEM_ERRORS ,
  GV_CALC_ERR_USER_DEFINED
}
 
enum  GvValueFlags {
  GV_CALC_NOP ,
  GV_CALC_CLR ,
  GV_CALC_SET ,
  GV_CALC_ADD ,
  GV_CALC_SUB ,
  GV_CALC_MUL ,
  GV_CALC_DIV ,
  GV_CALC_MOD ,
  GV_CALC_CRS ,
  GV_CALC_INV ,
  GV_CALC_NEG ,
  GV_CALC_CMP ,
  GV_CALC_EQU ,
  GV_CALC_NIL ,
  GV_CALC_STR ,
  GV_CALC_MIX ,
  GV_CALC_ABS ,
  GV_CALC_ADR ,
  GV_CALC_SUR ,
  GV_CALC_MUR ,
  GV_CALC_DIR ,
  GV_CALC_DEF ,
  GV_CALC_DOT ,
  GV_CALC_STD
}
 
enum  GvDataOptions {
  GV_DATA_OPTIONS_NONE ,
  GV_DATA_OPTIONS_SHOW_UNDEFINED ,
  GV_DATA_OPTIONS_HIDE_NOT_EDITABLE
}
 

Typedef Documentation

◆ GvCalcError

Typedef for calculation errors.

◆ GvIoError

typedef GvError GvIoError

Typedef for I/O errors.

Enumeration Type Documentation

◆ GvError

enum GvError

XPresso error codes.

Enumerator
GV_IO_ERR_NONE 

No I/O error.

GV_CALC_ERR_NONE 

No calculation error.

GV_CALC_ERR_NO_MEMORY 

Out of memory error.

GV_CALC_ERR_UNDEFINED 

Undefined error.

GV_CALC_ERR_UNKNOWN_TYPE 

Unknown type error.

GV_CALC_ERR_NOT_IMPLEMENTED 

Not implemented error.

GV_CALC_ERR_NOT_INITIALIZED 

Not initialized error.

GV_CALC_ERR_NOT_VALID 

Not valid error.

GV_CALC_ERR_NO_OUTPORT 

No output error.

GV_CALC_ERR_NOT_CONNECTED 

Not connected error.

GV_CALC_ERR_NO_PORT 

No port error.

GV_CALC_ERR_DIVISION_BY_ZERO 

Division by zero error.

GV_CALC_ERR_TYPE_MISMATCH 

Type mismatch error.

GV_CALC_ERR_INIT_FAILED 

Init failed error.

GV_CALC_ERR_QUERY_FAILED 

Query failed error.

GV_CALC_ERR_CALCULATION_FAILED 

Calculation failed error.

GV_CALC_ERR_PARAMETER 

Bad parameter error.

GV_IO_ERR_NO_MEMORY 

No memory I/O error.

GV_IO_ERR_FILE_NOT_FOUND 

File not found I/O error.

GV_IO_ERR_READ 

Read I/O error.

GV_IO_ERR_WRITE 

Write I/O error.

GV_IO_ERR_NOT_A_GROUPNODE 

Not a group node I/O error.

GV_NR_OF_SYSTEM_ERRORS 

Number of system errors.

GV_CALC_ERR_USER_DEFINED 

All user defined errors must be above this ID.

◆ GvValueFlags

XPresso calculation flags.

Enumerator
GV_CALC_NOP 

No calculation.

GV_CALC_CLR 

Clear: ((TYPE*)dest)[cpu_id] = 0

GV_CALC_SET 

Set: ((TYPE*)dest)[cpu_id] = source1[cpu_id]

GV_CALC_ADD 

Add: ((TYPE*)dest)[cpu_id] = source1[cpu_id] + source2[cpu_id]

GV_CALC_SUB 

Subtract: ((TYPE*)dest)[cpu_id] = source1[cpu_id] - source2[cpu_id]

GV_CALC_MUL 

Multiply: ((TYPE*)dest)[cpu_id] = source1[cpu_id] * source2[cpu_id]

GV_CALC_DIV 

Divide: ((TYPE*)dest)[cpu_id] = source1[cpu_id] / source2[cpu_id]

GV_CALC_MOD 

Modulo: ((TYPE*)dest)[cpu_id] = source1[cpu_id] % source2[cpu_id]

GV_CALC_CRS 

Cross product: ((TYPE*)dest)[cpu_id] = source1[cpu_id] x source2[cpu_id]

GV_CALC_INV 

Invert: ((TYPE*)dest)[cpu_id] = 1 / source1[cpu_id]

GV_CALC_NEG 

Negate: ((TYPE*)dest)[cpu_id] = -source1[cpu_id]

GV_CALC_CMP 

Compare: ((Int32*)dest)[cpu_id] = source1[cpu_id] <, ==, > source2[cpu_id] => -1, 0, 1

GV_CALC_EQU 

Equal: ((Bool*)dest)[cpu_id] = source1[cpu_id] == source2[cpu_id]

GV_CALC_NIL 

Is null: ((Bool*)dest)[cpu_id] = source1[cpu_id] == 0

GV_CALC_STR 

Print: *((String*)dest) = String(source1[cpu_id])

GV_CALC_MIX 

Mix: ((TYPE*)dest)[cpu_id] = source1[cpu_id] * parm1 + source2[cpu] * (1 - parm1)

GV_CALC_ABS 

Absolute value: ((TYPE*)dest)[cpu_id] = Abs(source1[cpu_id])

GV_CALC_ADR 

Add real: ((TYPE*)dest)[cpu_id] = source1[cpu_id] + parm1

GV_CALC_SUR 

Subtract real: ((TYPE*)dest)[cpu_id] = source1[cpu_id] - parm1

GV_CALC_MUR 

Multiply real: ((TYPE*)dest)[cpu_id] = source1[cpu_id] * parm1

GV_CALC_DIR 

Divide real: ((TYPE*)dest)[cpu_id] = source1[cpu_id] / parm1

GV_CALC_DEF 

Set real: ((TYPE*)dest)[cpu_id] = (TYPE)parm1

GV_CALC_DOT 

Dot product: ((Float*)dest)[cpu_id] = source1[cpu_id] * source2[cpu_id]

GV_CALC_STD 

A combination of GV_CALC_CLR and GV_CALC_SET. Must be implemented.

◆ GvDataOptions

XPresso data types filtering options.

See also
GvWorld::GetDataTypes
Enumerator
GV_DATA_OPTIONS_NONE 

No flags.

GV_DATA_OPTIONS_SHOW_UNDEFINED 

Show undefined.

GV_DATA_OPTIONS_HIDE_NOT_EDITABLE 

Hide not editable.