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

Method PrintSelf

Common/DataModel/vtkAnnotationLayers.cxx:160–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void vtkAnnotationLayers::PrintSelf(ostream& os, vtkIndent indent)
161{
162 this->Superclass::PrintSelf(os, indent);
163
164 vtkIndent next = indent.GetNextIndent();
165 for (unsigned int a = 0; a < this->GetNumberOfAnnotations(); ++a)
166 {
167 os << next << "Annotation " << a << ":";
168 vtkAnnotation* ann = this->GetAnnotation(a);
169 if (ann)
170 {
171 os << "\n";
172 ann->PrintSelf(os, next.GetNextIndent());
173 }
174 else
175 {
176 os << "(none)\n";
177 }
178 }
179 os << indent << "CurrentAnnotation: ";
180 if (this->CurrentAnnotation)
181 {
182 os << "\n";
183 this->CurrentAnnotation->PrintSelf(os, indent.GetNextIndent());
184 }
185 else
186 {
187 os << "(none)\n";
188 }
189}
190
191vtkAnnotationLayers* vtkAnnotationLayers::GetData(vtkInformation* info)
192{

Callers

nothing calls this directly

Calls 3

GetAnnotationMethod · 0.95
GetNextIndentMethod · 0.80

Tested by

no test coverage detected