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

Method Initialize

Rendering/Annotation/vtkBarChartActor.cxx:154–172  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

152//------------------------------------------------------------------------------
153// Free-up axes and related stuff
154void vtkBarChartActor::Initialize()
155{
156 if (this->BarActors)
157 {
158 for (int i = 0; i < this->N; i++)
159 {
160 this->BarMappers[i]->Delete();
161 this->BarActors[i]->Delete();
162 }
163 delete[] this->BarMappers;
164 this->BarMappers = nullptr;
165 delete[] this->BarActors;
166 this->BarActors = nullptr;
167 }
168
169 this->N = 0;
170 delete[] this->Heights;
171 this->Heights = nullptr;
172}
173
174//------------------------------------------------------------------------------
175// Plot scalar data for each input dataset.

Callers 15

~vtkBarChartActorMethod · 0.95
PlaceAxesMethod · 0.95
BuildTicksPolyDataMethod · 0.45
ConfigureFrameMethod · 0.45
ConfigureScalarBarMethod · 0.45
ConfigureNanSwatchMethod · 0.45
ConfigureAnnotationsMethod · 0.45
BuildLeaderMethod · 0.45
RequestDataMethod · 0.45

Calls 1

DeleteMethod · 0.65

Tested by 15

TestRadialGrid2DFunction · 0.36
TestLegendBoxActor2Function · 0.36
TestLegendBoxActorFunction · 0.36
TestLegendScaleActorFunction · 0.36
TestPolarAxes2DDefaultFunction · 0.36
TestSpiderPlotActorFunction · 0.36
TestNumberOfLabelsFunction · 0.36
TestSnapLabelsFunction · 0.36
TestNumberOfMinorTicksFunction · 0.36
TestRulerModeFunction · 0.36