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

Method GetEntryColor

Rendering/Annotation/vtkLegendBoxActor.cxx:533–543  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

531
532//------------------------------------------------------------------------------
533double* vtkLegendBoxActor::GetEntryColor(int i)
534{
535 if (i < 0 || i >= this->NumberOfEntries)
536 {
537 return nullptr;
538 }
539 else
540 {
541 return vtkArrayDownCast<vtkDoubleArray>(this->Colors)->GetPointer(i * 3);
542 }
543}
544
545//------------------------------------------------------------------------------
546// Release any graphics resources that are being consumed by this actor.

Callers 9

CreatePlotDataMethod · 0.80
GetPlotColorMethod · 0.80
PlaceAxesMethod · 0.80
GetBarColorMethod · 0.80
ShallowCopyMethod · 0.80
PlaceAxesMethod · 0.80
GetPieceColorMethod · 0.80
PlaceAxesMethod · 0.80
GetPlotColorMethod · 0.80

Calls 1

GetPointerMethod · 0.45

Tested by

no test coverage detected