------------------------------------------------------------------------------
| 382 | |
| 383 | //------------------------------------------------------------------------------ |
| 384 | void vtkTextActor::SetTextProperty(vtkTextProperty* p) |
| 385 | { |
| 386 | if (this->TextProperty == p) |
| 387 | { |
| 388 | return; |
| 389 | } |
| 390 | if (this->TextProperty) |
| 391 | { |
| 392 | this->TextProperty->UnRegister(this); |
| 393 | this->TextProperty = nullptr; |
| 394 | } |
| 395 | this->TextProperty = p; |
| 396 | if (this->TextProperty) |
| 397 | { |
| 398 | this->TextProperty->Register(this); |
| 399 | this->ScaledTextProperty->ShallowCopy(this->TextProperty); |
| 400 | } |
| 401 | this->Modified(); |
| 402 | } |
| 403 | |
| 404 | //------------------------------------------------------------------------------ |
| 405 | void vtkTextActor::ShallowCopy(vtkProp* prop) |