------------------------------------------------------------------------------
| 465 | |
| 466 | //------------------------------------------------------------------------------ |
| 467 | void vtkAxesActor::SetShaftType(int type) |
| 468 | { |
| 469 | if (this->ShaftType != type) |
| 470 | { |
| 471 | if (type < vtkAxesActor::CYLINDER_SHAFT || type > vtkAxesActor::USER_DEFINED_SHAFT) |
| 472 | { |
| 473 | vtkErrorMacro("Undefined axes shaft type."); |
| 474 | return; |
| 475 | } |
| 476 | |
| 477 | if (type == vtkAxesActor::USER_DEFINED_SHAFT && this->UserDefinedShaft == nullptr) |
| 478 | { |
| 479 | vtkErrorMacro("Set the user defined shaft before changing the type."); |
| 480 | return; |
| 481 | } |
| 482 | |
| 483 | this->ShaftType = type; |
| 484 | |
| 485 | this->Modified(); |
| 486 | |
| 487 | this->UpdateProps(); |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | //------------------------------------------------------------------------------ |
| 492 | void vtkAxesActor::SetTipType(int type) |
no test coverage detected