------------------------------------------------------------------------------
| 226 | |
| 227 | //------------------------------------------------------------------------------ |
| 228 | bool vtkLabeledContourPolyDataItem::Paint(vtkContext2D* painter) |
| 229 | { |
| 230 | if (!this->CheckInputs()) |
| 231 | { |
| 232 | return false; |
| 233 | } |
| 234 | |
| 235 | if (!this->LabelVisibility) |
| 236 | { |
| 237 | return this->Superclass::Paint(painter); |
| 238 | } |
| 239 | |
| 240 | if (this->CheckRebuild()) |
| 241 | { |
| 242 | double startPrep = vtkTimerLog::GetUniversalTime(); |
| 243 | |
| 244 | this->Reset(); |
| 245 | |
| 246 | if (!this->PrepareRender()) |
| 247 | { |
| 248 | return false; |
| 249 | } |
| 250 | |
| 251 | if (!this->PlaceLabels()) |
| 252 | { |
| 253 | return false; |
| 254 | } |
| 255 | |
| 256 | if (!this->ResolveLabels()) |
| 257 | { |
| 258 | return false; |
| 259 | } |
| 260 | |
| 261 | if (!this->CreateLabels()) |
| 262 | { |
| 263 | return false; |
| 264 | } |
| 265 | |
| 266 | this->Internal->PrepareTime = vtkTimerLog::GetUniversalTime() - startPrep; |
| 267 | this->LabelBuildTime.Modified(); |
| 268 | } |
| 269 | |
| 270 | double startRender = vtkTimerLog::GetUniversalTime(); |
| 271 | |
| 272 | this->Superclass::Paint(painter); |
| 273 | |
| 274 | if (!this->RenderLabels(painter)) |
| 275 | { |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | this->Internal->RenderTime = vtkTimerLog::GetUniversalTime() - startRender; |
| 280 | |
| 281 | return true; |
| 282 | } |
| 283 | |
| 284 | //------------------------------------------------------------------------------ |
| 285 | void vtkLabeledContourPolyDataItem::SetTextProperty(vtkTextProperty* tprop) |
nothing calls this directly
no test coverage detected