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

Method SetEntryIcon

Rendering/Annotation/vtkLegendBoxActor.cxx:431–450  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

429
430//------------------------------------------------------------------------------
431void vtkLegendBoxActor::SetEntryIcon(int i, vtkImageData* icon)
432{
433 if (i >= 0 && i < this->NumberOfEntries)
434 {
435 if (this->IconImage[i] == icon)
436 {
437 return;
438 }
439 if (this->IconImage[i])
440 {
441 this->IconImage[i]->Delete();
442 }
443 this->IconImage[i] = icon;
444 if (this->IconImage[i])
445 {
446 this->IconImage[i]->Register(this);
447 }
448 this->Modified();
449 }
450}
451
452//------------------------------------------------------------------------------
453void vtkLegendBoxActor::SetEntryString(int i, const char* string)

Callers 1

SetEntryMethod · 0.95

Calls 3

DeleteMethod · 0.65
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected