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

Method InitializeEntries

Rendering/Annotation/vtkLegendBoxActor.cxx:155–217  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

153
154//------------------------------------------------------------------------------
155void vtkLegendBoxActor::InitializeEntries()
156{
157 int i;
158
159 if (this->Size > 0)
160 {
161 this->Colors->Delete();
162 for (i = 0; i < this->Size; i++)
163 {
164 if (this->Symbol[i])
165 {
166 this->Symbol[i]->Delete();
167 }
168 this->Transform[i]->Delete();
169 this->SymbolTransform[i]->Delete();
170 this->SymbolMapper[i]->Delete();
171 this->SymbolActor[i]->Delete();
172 if (this->TextMapper[i])
173 {
174 this->TextMapper[i]->Delete();
175 this->TextActor[i]->Delete();
176 }
177
178 if (this->IconImage[i])
179 {
180 this->IconImage[i]->Delete();
181 }
182
183 this->Icon[i]->Delete();
184 this->IconTransform[i]->Delete();
185 this->IconTransformFilter[i]->Delete();
186 this->IconMapper[i]->Delete();
187 this->IconActor[i]->Delete();
188 } // for all entries
189 delete[] this->Symbol;
190 this->Symbol = nullptr;
191 delete[] this->Transform;
192 this->Transform = nullptr;
193 delete[] this->SymbolTransform;
194 this->SymbolTransform = nullptr;
195 delete[] this->SymbolMapper;
196 this->SymbolMapper = nullptr;
197 delete[] this->SymbolActor;
198 this->SymbolActor = nullptr;
199 delete[] this->TextMapper;
200 this->TextMapper = nullptr;
201 delete[] this->TextActor;
202 this->TextActor = nullptr;
203
204 delete[] this->IconImage;
205 this->IconImage = nullptr;
206 delete[] this->Icon;
207 this->Icon = nullptr;
208 delete[] this->IconActor;
209 this->IconActor = nullptr;
210 delete[] this->IconMapper;
211 this->IconMapper = nullptr;
212 delete[] this->IconTransform;

Callers 2

~vtkLegendBoxActorMethod · 0.95
SetNumberOfEntriesMethod · 0.95

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected