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

Method GetColor

Rendering/Core/vtkProperty.cxx:267–272  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Return composite color of object (ambient + diffuse + specular). Return value is a pointer to rgb values.

Source from the content-addressed store, hash-verified

265// Return composite color of object (ambient + diffuse + specular). Return value
266// is a pointer to rgb values.
267double* vtkProperty::GetColor()
268{
269 vtkProperty::ComputeCompositeColor(this->Color, this->Ambient, this->AmbientColor, this->Diffuse,
270 this->DiffuseColor, this->Specular, this->SpecularColor);
271 return this->Color;
272}
273
274//------------------------------------------------------------------------------
275// Copy composite color of object (ambient + diffuse + specular) into array

Callers 7

DeepCopyMethod · 0.45
DeepCopyMethod · 0.45
GetBackgroundColorMethod · 0.45
HighlightActor2DMethod · 0.45
ShallowCopyMethod · 0.45
TestOLTFunction · 0.45
TestOLTFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestOLTFunction · 0.36
TestOLTFunction · 0.36