Table

class itasca.table.Table

Objects of this type should not be created (instantiated) directly in Python. Use the module functions that return instances of this type.

add(value: vec2) → None.

Add a new entry to the end of the table.

clear() → None.

Clear the table.

id() → int.

Get the id of the table.

insert(value: vec2) → None.

Insert a new entry into the table.

label() → string.

Get the label of the table.

name() → string.

Get the name of the table.

set_label(value: string) → None.

Set the label of a table entry.

set_value(index: int, value: vec2) → None.

Set the vector of x/y values of a table entry. i is the index of the table entry to be modified.

set_x(index: int, value: float) → None.

Set the x-value of a table entry. i is the index of the table entry to be modified.

set_y(index: int, value: float) → None.

Set the y-value of a table entry. i is the index of the table entry to be modified.

size() → int.

Get the size of the table.

slope_at(x: float, logx: bool, logy: bool) → float.

Get the slope at a specific x-coordinate.

sort() → None.

Sort the table by x-values.

value(index: int) → vec2.

Get the vector of x/y values of a table entry. i is the index of the table entry to be read.

value_at(x: float, logx: bool, logy: bool) → float.

Get the y-value at a specific x-coordinate.

x(index: int) → float.

Get the x-value of a table entry. i is the index of the table entry to be read.

y(index: int) → float.

Get the y-value of a table entry. i is the index of the table entry to be read.