18 table->AddColumn(arrX);
20 arrC->SetName(
"cosine");
21 table->AddColumn(arrC);
23 arrS->SetName(
"sine");
24 table->AddColumn(arrS);
26 arrS2->SetName(
"tangent");
27 table->AddColumn(arrS2);
30 float inc = 7.5 / (numPoints - 1);
31 table->SetNumberOfRows(numPoints);
32 for (
int i = 0; i < numPoints; ++i)
34 table->SetValue(i, 0, i * inc);
35 table->SetValue(i, 1, cos(i * inc));
36 table->SetValue(i, 2, sin(i * inc));
37 table->SetValue(i, 3, tan(i * inc) + 0.5);
Allocate and hold a VTK object.
Hold a reference to a vtkObjectBase instance.