MCPcopy Create free account
hub / github.com/Kitware/VTK / ~vtkXYPlotActor

Method ~vtkXYPlotActor

Rendering/Annotation/vtkXYPlotActor.cxx:274–339  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

272
273//------------------------------------------------------------------------------
274vtkXYPlotActor::~vtkXYPlotActor()
275{
276 // Get rid of the list of array names.
277 int num = this->InputConnectionHolder->GetNumberOfInputConnections(0);
278 if (this->SelectedInputScalars)
279 {
280 for (int i = 0; i < num; ++i)
281 {
282 delete[] this->SelectedInputScalars[i];
283 this->SelectedInputScalars[i] = nullptr;
284 }
285 delete[] this->SelectedInputScalars;
286 this->SelectedInputScalars = nullptr;
287 }
288 this->SelectedInputScalarsComponent->Delete();
289 this->SelectedInputScalarsComponent = nullptr;
290
291 // Now we can get rid of the inputs.
292 this->InputConnectionHolder->Delete();
293 this->InputConnectionHolder = nullptr;
294
295 this->DataObjectInputConnectionHolder->Delete();
296
297 this->TitleMapper->Delete();
298 this->TitleMapper = nullptr;
299 this->TitleActor->Delete();
300 this->TitleActor = nullptr;
301
302 this->SetTitle(nullptr);
303 this->SetXTitle(nullptr);
304 this->SetXLabelFormat(nullptr);
305 this->SetYLabelFormat(nullptr);
306
307 this->InitializeEntries();
308
309 this->GlyphSource->Delete();
310 this->ClipPlanes->Delete();
311
312 this->ChartBoxActor->Delete();
313 this->ChartBoxMapper->Delete();
314 this->ChartBoxPolyData->Delete();
315
316 this->ChartBorderActor->Delete();
317 this->ChartBorderMapper->Delete();
318 this->ChartBorderPolyData->Delete();
319
320 this->ReferenceLinesActor->Delete();
321 this->ReferenceLinesMapper->Delete();
322 this->ReferenceLinesPolyData->Delete();
323
324 this->XComponent->Delete();
325 this->YComponent->Delete();
326
327 this->LinesOn->Delete();
328 this->PointsOn->Delete();
329
330 this->TitleTextProperty->Delete();
331 this->TitleTextProperty = nullptr;

Callers

nothing calls this directly

Calls 7

SetXLabelFormatMethod · 0.95
SetYLabelFormatMethod · 0.95
InitializeEntriesMethod · 0.95
SetXTitleMethod · 0.80
DeleteMethod · 0.65
SetTitleMethod · 0.45

Tested by

no test coverage detected