------------------------------------------------------------------------------
| 515 | |
| 516 | //------------------------------------------------------------------------------ |
| 517 | void vtkAxesActor::UpdateProps() |
| 518 | { |
| 519 | this->CylinderSource->SetRadius(this->CylinderRadius); |
| 520 | this->CylinderSource->SetResolution(this->CylinderResolution); |
| 521 | |
| 522 | this->ConeSource->SetResolution(this->ConeResolution); |
| 523 | this->ConeSource->SetRadius(this->ConeRadius); |
| 524 | |
| 525 | this->SphereSource->SetThetaResolution(this->SphereResolution); |
| 526 | this->SphereSource->SetPhiResolution(this->SphereResolution); |
| 527 | this->SphereSource->SetRadius(this->SphereRadius); |
| 528 | |
| 529 | switch (this->ShaftType) |
| 530 | { |
| 531 | case vtkAxesActor::CYLINDER_SHAFT: |
| 532 | (vtkPolyDataMapper::SafeDownCast(this->XAxisShaft->GetMapper())) |
| 533 | ->SetInputConnection(this->CylinderSource->GetOutputPort()); |
| 534 | break; |
| 535 | case vtkAxesActor::LINE_SHAFT: |
| 536 | (vtkPolyDataMapper::SafeDownCast(this->XAxisShaft->GetMapper())) |
| 537 | ->SetInputConnection(this->LineSource->GetOutputPort()); |
| 538 | break; |
| 539 | case vtkAxesActor::USER_DEFINED_SHAFT: |
| 540 | (vtkPolyDataMapper::SafeDownCast(this->XAxisShaft->GetMapper())) |
| 541 | ->SetInputData(this->UserDefinedShaft); |
| 542 | } |
| 543 | |
| 544 | switch (this->TipType) |
| 545 | { |
| 546 | case vtkAxesActor::CONE_TIP: |
| 547 | (vtkPolyDataMapper::SafeDownCast(this->XAxisTip->GetMapper())) |
| 548 | ->SetInputConnection(this->ConeSource->GetOutputPort()); |
| 549 | break; |
| 550 | case vtkAxesActor::SPHERE_TIP: |
| 551 | (vtkPolyDataMapper::SafeDownCast(this->XAxisTip->GetMapper())) |
| 552 | ->SetInputConnection(this->SphereSource->GetOutputPort()); |
| 553 | break; |
| 554 | case vtkAxesActor::USER_DEFINED_TIP: |
| 555 | (vtkPolyDataMapper::SafeDownCast(this->XAxisTip->GetMapper())) |
| 556 | ->SetInputData(this->UserDefinedTip); |
| 557 | } |
| 558 | |
| 559 | vtkPolyDataMapper::SafeDownCast(this->XAxisTip->GetMapper())->GetInputAlgorithm()->Update(); |
| 560 | vtkPolyDataMapper::SafeDownCast(this->XAxisShaft->GetMapper())->GetInputAlgorithm()->Update(); |
| 561 | |
| 562 | if (this->GetUserTransform()) |
| 563 | { |
| 564 | this->XAxisShaft->SetUserTransform(nullptr); |
| 565 | this->YAxisShaft->SetUserTransform(nullptr); |
| 566 | this->ZAxisShaft->SetUserTransform(nullptr); |
| 567 | this->XAxisTip->SetUserTransform(nullptr); |
| 568 | this->YAxisTip->SetUserTransform(nullptr); |
| 569 | this->ZAxisTip->SetUserTransform(nullptr); |
| 570 | } |
| 571 | |
| 572 | double scale[3]; |
| 573 | double bounds[6]; |
| 574 |
no test coverage detected