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

Method SetAxisColor

Interaction/Widgets/vtkCameraOrientationRepresentation.cxx:747–759  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

745
746//-----------------------------------------------------------------------------
747void vtkCameraOrientationRepresentation::SetAxisColor(int ax, double color[3])
748{
749 double* currColor = this->GetAxisColor(ax);
750 if (currColor[0] != color[0] || currColor[1] != color[1] || currColor[2] != color[2])
751 {
752 double bgcolor[3] = { 0.9 * color[0], 0.9 * color[1], 0.9 * color[2] };
753 this->AxesColors->SetTypedTuple(ax, color);
754 this->AxisVectorTextProperties[ax][to_underlying(HandleDirType::Plus)]->SetBackgroundColor(
755 color);
756 this->AxisVectorTextProperties[ax][to_underlying(HandleDirType::Minus)]->SetBackgroundColor(
757 bgcolor);
758 }
759}
760
761//-----------------------------------------------------------------------------
762void vtkCameraOrientationRepresentation::SetXAxisColor(double r, double g, double b)

Callers 3

SetXAxisColorMethod · 0.95
SetYAxisColorMethod · 0.95
SetZAxisColorMethod · 0.95

Calls 4

GetAxisColorMethod · 0.95
to_underlyingFunction · 0.85
SetTypedTupleMethod · 0.45
SetBackgroundColorMethod · 0.45

Tested by

no test coverage detected