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

Method SetTextProperty

Rendering/Core/vtkLabeledContourMapper.cxx:337–346  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

335
336//------------------------------------------------------------------------------
337void vtkLabeledContourMapper::SetTextProperty(vtkTextProperty* tprop)
338{
339 if (this->TextProperties->GetNumberOfItems() != 1 ||
340 this->TextProperties->GetItemAsObject(0) != tprop)
341 {
342 this->TextProperties->RemoveAllItems();
343 this->TextProperties->AddItem(tprop);
344 this->Modified();
345 }
346}
347
348//------------------------------------------------------------------------------
349void vtkLabeledContourMapper::SetTextProperties(vtkTextPropertyCollection* coll)

Callers 1

BuildLabelMethod · 0.45

Calls 5

GetItemAsObjectMethod · 0.80
GetNumberOfItemsMethod · 0.45
RemoveAllItemsMethod · 0.45
AddItemMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected