autograph module
This module simplifies creation and organization of graphs.
It allows creating function graphs with an interface based on overloaded operators rather than explicitly connecting
nodes. For instance, if a and b are two nodes, a*b will generate the ‘mul’ node and connect a and b to ‘mul’.
It also contains functionality for automatically laying out graphs of all types.
Content included in autograph module:
- ag_functions module: Definition of the function context and the mathematical operations
FunctionContextFunctionContext.input_parameter()FunctionContext.variable()FunctionContext.constant()FunctionContext.import_external_function()FunctionContext.import_local_function()FunctionContext.generate()FunctionContext.dot()FunctionContext.sqrt()FunctionContext.atan2()FunctionContext.abs_of()FunctionContext.log()FunctionContext.exp()FunctionContext.log2()FunctionContext.pow2()FunctionContext.floor()FunctionContext.ceil()FunctionContext.cos()FunctionContext.sin()FunctionContext.tan()FunctionContext.rand()FunctionContext.cartesian()FunctionContext.max_of()FunctionContext.maximum()FunctionContext.min_of()FunctionContext.minimum()FunctionContext.clamp()FunctionContext.lerp()FunctionContext.swizzle_float1()FunctionContext.swizzle_float2()FunctionContext.swizzle_float3()FunctionContext.swizzle_float4()FunctionContext.swizzle_int1()FunctionContext.swizzle_int2()FunctionContext.swizzle_int3()FunctionContext.swizzle_int4()FunctionContext.expand_to_int2()FunctionContext.expand_to_int3()FunctionContext.expand_to_int4()FunctionContext.expand_to_float2()FunctionContext.expand_to_float3()FunctionContext.expand_to_float4()FunctionContext.expand()FunctionContext.cast_to_float1()FunctionContext.cast_to_float2()FunctionContext.cast_to_float3()FunctionContext.cast_to_float4()FunctionContext.auto_cast_to_float()FunctionContext.cast_to_int1()FunctionContext.cast_to_int2()FunctionContext.cast_to_int3()FunctionContext.cast_to_int4()FunctionContext.auto_cast_to_int()FunctionContext.if_else()FunctionContext.seq()FunctionContext.sequence()FunctionContext.set_var()FunctionContext.create_color_sampler()FunctionContext.create_gray_sampler()FunctionContext.create_passthrough()FunctionContext.normalize()
generate_function()
- ag_types module: Definition of all data types used by the automatic generation of function graph
- ag_layout module: Functions for automatically laying out graphs