------------------------------------------------------------------------------
| 2865 | |
| 2866 | //------------------------------------------------------------------------------ |
| 2867 | void vtkXYPlotActor::AddUserCurvesPoint(double c_dbl, double x, double y) |
| 2868 | { |
| 2869 | int c = static_cast<int>(c_dbl); |
| 2870 | if (this->ActiveCurveIndex != c) |
| 2871 | { |
| 2872 | vtkPolyData* dataObj = vtkPolyData::New(); |
| 2873 | dataObj->GetFieldData()->AddArray(this->ActiveCurve); |
| 2874 | this->AddDataObjectInput(dataObj); |
| 2875 | this->SetDataObjectXComponent(this->ActiveCurveIndex, 0); |
| 2876 | this->SetDataObjectYComponent(this->ActiveCurveIndex, 1); |
| 2877 | dataObj->Delete(); |
| 2878 | this->ActiveCurve = vtkSmartPointer<vtkDoubleArray>::New(); |
| 2879 | this->ActiveCurve->SetNumberOfComponents(2); |
| 2880 | this->ActiveCurveIndex = c; |
| 2881 | } |
| 2882 | this->ActiveCurve->InsertNextTuple2(x, y); |
| 2883 | this->Modified(); |
| 2884 | } |
| 2885 | |
| 2886 | //------------------------------------------------------------------------------ |
| 2887 | void vtkXYPlotActor::RemoveAllActiveCurves() |
nothing calls this directly
no test coverage detected