MCPcopy Create free account
hub / github.com/Kitware/VTK / InitializeEntries

Method InitializeEntries

Rendering/Annotation/vtkXYPlotActor.cxx:342–371  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

340
341//------------------------------------------------------------------------------
342void vtkXYPlotActor::InitializeEntries()
343{
344 if (this->NumberOfInputs > 0)
345 {
346 for (int i = 0; i < this->NumberOfInputs; i++)
347 {
348 this->PlotData[i]->Delete();
349 this->PlotGlyph[i]->Delete();
350 this->PlotAppend[i]->Delete();
351 this->PlotMapper[i]->Delete();
352 this->PlotActor[i]->Delete();
353 } // for all entries
354
355 delete[] this->PlotData;
356 this->PlotData = nullptr;
357
358 delete[] this->PlotGlyph;
359 this->PlotGlyph = nullptr;
360
361 delete[] this->PlotAppend;
362 this->PlotAppend = nullptr;
363
364 delete[] this->PlotMapper;
365 this->PlotMapper = nullptr;
366
367 delete[] this->PlotActor;
368 this->PlotActor = nullptr;
369 this->NumberOfInputs = 0;
370 } // if entries have been defined
371}
372
373//------------------------------------------------------------------------------
374bool vtkXYPlotActor::DoesConnectionMatch(int i, vtkAlgorithmOutput* in)

Callers 2

~vtkXYPlotActorMethod · 0.95
CreatePlotDataMethod · 0.95

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected