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

Method Initialize

Rendering/Annotation/vtkPieChartActor.cxx:180–198  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Free-up axes and related stuff

Source from the content-addressed store, hash-verified

178//------------------------------------------------------------------------------
179// Free-up axes and related stuff
180void vtkPieChartActor::Initialize()
181{
182 if (this->PieceActors)
183 {
184 for (int i = 0; i < this->N; i++)
185 {
186 this->PieceMappers[i]->Delete();
187 this->PieceActors[i]->Delete();
188 }
189 delete[] this->PieceMappers;
190 this->PieceMappers = nullptr;
191 delete[] this->PieceActors;
192 this->PieceActors = nullptr;
193 }
194
195 this->N = 0;
196 this->Total = 0.0;
197 delete[] this->Fractions;
198}
199
200//------------------------------------------------------------------------------
201// Plot scalar data for each input dataset.

Callers 2

~vtkPieChartActorMethod · 0.95
PlaceAxesMethod · 0.95

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected