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

Method SetEntryColor

Rendering/Annotation/vtkLegendBoxActor.cxx:468–481  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

466
467//------------------------------------------------------------------------------
468void vtkLegendBoxActor::SetEntryColor(int i, double color[3])
469{
470 if (i >= 0 && i < this->NumberOfEntries)
471 {
472 double oldColor[3];
473 this->Colors->GetTuple(i, oldColor);
474
475 if (oldColor[0] != color[0] || oldColor[1] != color[1] || oldColor[2] != color[2])
476 {
477 this->Colors->SetTuple3(i, color[0], color[1], color[2]);
478 this->Modified();
479 }
480 }
481}
482
483//------------------------------------------------------------------------------
484void vtkLegendBoxActor::SetEntryColor(int i, double r, double g, double b)

Callers 6

SetEntryMethod · 0.95
ShallowCopyMethod · 0.95
SetPlotColorMethod · 0.80
SetBarColorMethod · 0.80
SetPieceColorMethod · 0.80
SetPlotColorMethod · 0.80

Calls 3

SetTuple3Method · 0.80
GetTupleMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected