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

Method SetText

Rendering/Annotation/vtkCornerAnnotation.cxx:693–708  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

691
692//------------------------------------------------------------------------------
693void vtkCornerAnnotation::SetText(int i, const char* text)
694{
695 if (i < 0 || i >= NumTextPositions)
696 {
697 return;
698 }
699
700 if (!text || (this->CornerText[i] && (!strcmp(this->CornerText[i], text))))
701 {
702 return;
703 }
704 delete[] this->CornerText[i];
705 this->CornerText[i] = new char[strlen(text) + 1];
706 strcpy(this->CornerText[i], text);
707 this->Modified();
708}
709
710//------------------------------------------------------------------------------
711const char* vtkCornerAnnotation::GetText(int i)

Callers 7

ClearAllTextsMethod · 0.95
CopyAllTextsFromMethod · 0.95
SetAllTextsMethod · 0.95
UpdatePropsMethod · 0.45
TestCornerAnnotationFunction · 0.45
SetInputTextMethod · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by 2

TestCornerAnnotationFunction · 0.36