------------------------------------------------------------------------------
| 718 | |
| 719 | //------------------------------------------------------------------------------ |
| 720 | bool vtkLabeledContourPolyDataItem::RenderLabels(vtkContext2D* painter) |
| 721 | { |
| 722 | double pos[3]; |
| 723 | |
| 724 | for (vtkIdType i = 0; i < this->NumberOfUsedTextActors; ++i) |
| 725 | { |
| 726 | this->TextActors[i]->GetPosition(pos); |
| 727 | char* s = this->TextActors[i]->GetInput(); |
| 728 | |
| 729 | this->Internal->currentTextProp->ShallowCopy(this->TextActors[i]->GetTextProperty()); |
| 730 | this->Internal->currentTextProp->SetOrientation(this->LabelHelpers[i]->orientation); |
| 731 | |
| 732 | painter->ApplyTextProp(this->Internal->currentTextProp); |
| 733 | painter->DrawString((float)pos[0], (float)pos[1], s); |
| 734 | } |
| 735 | |
| 736 | return true; |
| 737 | } |
| 738 | |
| 739 | //------------------------------------------------------------------------------ |
| 740 | bool vtkLabeledContourPolyDataItem::AllocateTextActors(vtkIdType num) |
no test coverage detected