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

Method SetEntrySymbol

Rendering/Annotation/vtkLegendBoxActor.cxx:409–428  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

407
408//------------------------------------------------------------------------------
409void vtkLegendBoxActor::SetEntrySymbol(int i, vtkPolyData* symbol)
410{
411 if (i >= 0 && i < this->NumberOfEntries)
412 {
413 if (this->Symbol[i] == symbol)
414 {
415 return;
416 }
417 if (this->Symbol[i])
418 {
419 this->Symbol[i]->Delete();
420 }
421 this->Symbol[i] = symbol;
422 if (this->Symbol[i])
423 {
424 this->Symbol[i]->Register(this);
425 }
426 this->Modified();
427 }
428}
429
430//------------------------------------------------------------------------------
431void vtkLegendBoxActor::SetEntryIcon(int i, vtkImageData* icon)

Callers 7

SetEntryMethod · 0.95
ShallowCopyMethod · 0.95
RenderOpaqueGeometryMethod · 0.80
SetPlotSymbolMethod · 0.80
PlaceAxesMethod · 0.80
PlaceAxesMethod · 0.80
PlaceAxesMethod · 0.80

Calls 3

DeleteMethod · 0.65
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected