FunctionArguments

References
[IoId("00000000-f527-49d9-8caf-a632c5555bfb")] public sealed class FunctionArguments : IStorable
Collection of all function arguments.

Constructors

FunctionArguments

#
public FunctionArguments()

FunctionArguments

#
public FunctionArguments(
reader
)

Properties

All

#
Enumerate over all defined parameters.
public IEnumerable<Argument> All { get; }

AllScalars

#
Enumerate over all defined scalar parameters.
public IEnumerable<ScalarArgument> AllScalars { get; }

AllSelectedVectors

#
Enumerate over all selected vector parameters.
public IEnumerable<VectorArgument> AllSelectedVectors { get; }

AllVectors

#
Enumerate over all defined vector parameters.
public IEnumerable<VectorArgument> AllVectors { get; }

Count

#
Gets the number of parameters.
public int Count { get; }

ScalarCount

#
Gets the number of scalar parameters.
public int ScalarCount { get; }

VectorCount

#
Gets the number of vector parameters.
public int VectorCount { get; }

Visible

#
Gets or sets whether the arguments are visible in the function editor.
public bool Visible { get; set; }

Indexers

this[]

#
Get the parameter with the specified identifier.
public Argument this[
id
] { get; }

this[]

#
Get the parameter with the specified index.
public Argument this[
index
] { get; }

Methods

AddReferent

#
Add a referenced scalar to this collection.
public ScalarArgument AddReferent(
index,
parentIndex,
nomen,
initial,
referent
)

AddScalar

#
Add a scalar to this collection.
public ScalarArgument AddScalar(
index,
parentIndex,
nomen,
initial
)

AddVector

#
Add a vector to this collection.
public VectorArgument AddVector(
index,
parentIndex,
nomen,
initial,
GripShape
shape = GripShape.OpenDisc,
flourish = GripFlourish.None
)

AddVector

#
Add a vector to this collection.
public VectorArgument AddVector(
index,
nomen,
initial
)

AdjustReferent

#
Adjust an operand based on new linking data.
public void AdjustReferent(
index,
function,
source
)

AdjustReferent

#
Adjust an operand based on new linking data.
public void AdjustReferent(
index,
source
)

AdjustScalar

#
Adjust a scalar based on its origin value and a given offset.
public void AdjustScalar(
index,
Index of scalar to move.
value
New value.
)

AdjustVectors

#
Adjust all specified vectors by some motion. The vectors are moved from their origin points, not their current points.
public void AdjustVectors(
dxdy,
Horizontal and vertical movement in graph coordinates.
int[]
filter
List of vector indices to affect.
)

AdjustVectors

#
Adjust all selected vectors by some motion. The vectors are moved from their origin points, not their current points.
public void AdjustVectors(
dxdy
Horizontal and vertical movement in graph coordinates.
)

Clear

#
Delete all arguments.
public void Clear()

Contains

#
Tests whether a certain scalar is defined in this collection.
public bool Contains(
Argument
parameter
)

Contains

#
Tests whether a certain scalar index is defined in this collection.
public bool Contains(
index
)

Delete

#
Delete a specific operand.
public void Delete(
index,
includeChildren
)

DeselectAll

#
Deselect all vector grips.
public void DeselectAll()

FindScalar

#
Find the scalar with the given index.
public ScalarArgument FindScalar(
index
)

FindScalar

#
Find the scalar with the given index.
public ScalarArgument FindScalar(
PointF
point
)

FindVector

#
Find the vector with the given index.
public VectorArgument FindVector(
index
)

FindVector

#
Find the vector at the given point.
public VectorArgument FindVector(
PointF
point
)

LowestUnusedIndex

#
Gets the lowest, non-negative unused argument index.
public int LowestUnusedIndex()

OnArgumentsAdded

#
public void OnArgumentsAdded(
params int[]
parameters
)

OnArgumentsChanged

#
public void OnArgumentsChanged(
params int[]
parameters
)

OnArgumentsRemoved

#
public void OnArgumentsRemoved(
params int[]
parameters
)

PickSelect

#
Perform a vector grip pick selection in graph coordinates.
public void PickSelect()

RevertToSavedStates

#
Revert all vectors and scalars in this collection to their original values.
public void RevertToSavedStates()

SelectAll

#
Select all vector grips.
public void SelectAll()

Store

#
public void Store(
writer
)
Store

UpdateReferents

#
Update all referents that link to the given ui with the new UI function.
public void UpdateReferents()

UpdateSavedStates

#
Set all vector and scalar origins to their current values.
public void UpdateSavedStates()

VectorAt

#
Find the vector grip closest to a given coordinate.
public VectorArgument VectorAt(
point,
Search point.
radius
Search radius.
)
Vector at or near point, if any.

VectorBounds

#
Gets the boundingbox of all the vector arguments.
public bool VectorBounds(
out double
x0,
out double
x1,
out double
y0,
out double
y1
)
True if there's a valid bounding box, otherwise false.

WindowSelect

#
Perform a vector grip window selection in graph coordinates.
public void WindowSelect()

Events

ArgumentsAdded

#
Raised whenever one or more arguments are added.
public event EventHandler<ArgumentEventArgs> ArgumentsAdded

ArgumentsChanged

#
Raised whenever one or more arguments are changed.
public event EventHandler<ArgumentEventArgs> ArgumentsChanged

ArgumentsRemoved

#
Raised whenever one or more arguments are removed.
public event EventHandler<ArgumentEventArgs> ArgumentsRemoved