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

Method ReadProperty

IO/MINC/vtkMNIObjectReader.cxx:336–354  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

334
335//------------------------------------------------------------------------------
336int vtkMNIObjectReader::ReadProperty(vtkProperty* property)
337{
338 vtkFloatArray* tmpArray = vtkFloatArray::New();
339
340 int status = this->ParseValues(tmpArray, 5);
341
342 if (status != 0)
343 {
344 property->SetAmbient(tmpArray->GetValue(0));
345 property->SetDiffuse(tmpArray->GetValue(1));
346 property->SetSpecular(tmpArray->GetValue(2));
347 property->SetSpecularPower(tmpArray->GetValue(3));
348 property->SetOpacity(tmpArray->GetValue(4));
349 }
350
351 tmpArray->Delete();
352
353 return status;
354}
355
356//------------------------------------------------------------------------------
357int vtkMNIObjectReader::ReadLineThickness(vtkProperty* property)

Callers 1

ReadPolygonObjectMethod · 0.95

Calls 9

ParseValuesMethod · 0.95
SetSpecularPowerMethod · 0.80
NewFunction · 0.70
DeleteMethod · 0.65
SetAmbientMethod · 0.45
GetValueMethod · 0.45
SetDiffuseMethod · 0.45
SetSpecularMethod · 0.45
SetOpacityMethod · 0.45

Tested by

no test coverage detected