------------------------------------------------------------------------------
| 2105 | |
| 2106 | //------------------------------------------------------------------------------ |
| 2107 | void 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 | //------------------------------------------------------------------------------ |
| 2135 | void vtkScalarBarActor::SizeTitle(double* titleSize, int* size, vtkViewport* viewport) |
no test coverage detected