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

Method FreeLayoutStorage

Rendering/Annotation/vtkScalarBarActor.cxx:2107–2132  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2105
2106//------------------------------------------------------------------------------
2107void vtkScalarBarActor::FreeLayoutStorage()
2108{
2109 // Delete previously constructed objects
2110 if (this->P->Viewport && this->P->Viewport->GetVTKWindow())
2111 {
2112 vtkWindow* win = this->P->Viewport->GetVTKWindow();
2113 if (!this->P->TextActors.empty())
2114 {
2115 vtkScalarBarActorInternal::ActorVector::iterator it;
2116 for (it = this->P->TextActors.begin(); it != this->P->TextActors.end(); ++it)
2117 {
2118 (*it)->ReleaseGraphicsResources(win);
2119 }
2120 }
2121 for (size_t i = 0; i < this->P->AnnotationLabels.size(); ++i)
2122 {
2123 this->P->AnnotationLabels[i]->ReleaseGraphicsResources(win);
2124 }
2125 }
2126
2127 this->P->TextActors.clear();
2128 this->P->TextActorAnchors.clear();
2129 this->P->AnnotationLabels.clear();
2130 this->P->AnnotationAnchors.clear();
2131 this->P->AnnotationColors.clear();
2132}
2133
2134//------------------------------------------------------------------------------
2135void vtkScalarBarActor::SizeTitle(double* titleSize, int* size, vtkViewport* viewport)

Callers 1

RebuildLayoutMethod · 0.95

Calls 7

GetVTKWindowMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected