30 float inc = 7.5 / (numPoints - 1);
32 for (
int i = 0; i < numPoints; ++i)
37 table->
SetValue(i, 3, tan(i * inc) + 0.5);
void SetValue(vtkIdType row, vtkIdType col, vtkVariant value)
Set a value in the table by row and column index as a variant.
void SetNumberOfRows(vtkIdType)
Set the number of rows in the table.
virtual void SetName(const char *)
Set/get array's name.
void AddColumn(vtkAbstractArray *arr)
Add a column to the table.