302 X=vtkSmartPointer<vtkDoubleArray>::New();
303 Y=vtkSmartPointer<vtkDoubleArray>::New();
304 X->SetNumberOfTuples(2);
305 Y->SetNumberOfTuples(2);
306 curve=vtkSmartPointer<vtkRectilinearGrid>::New();
307 curve->SetXCoordinates(
X);
308 curve->GetPointData()->SetScalars(
Y);
309 curve->SetDimensions(2, 1, 1);
310 plot->AddDataSetInput(
curve);
311 plot->SetPlotColor(
ds_num, rgb);
312 plot->SetPlotLines(
ds_num, 1);
313 plot->SetPlotPoints(
ds_num,0);
vtkSmartPointer< vtkRectilinearGrid > curve
vtkSmartPointer< vtkDoubleArray > X
vtkSmartPointer< vtkDoubleArray > Y