MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdateProps

Method UpdateProps

Rendering/Annotation/vtkAxesActor.cxx:517–703  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

515
516//------------------------------------------------------------------------------
517void 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

Callers 11

vtkAxesActorMethod · 0.95
RenderOpaqueGeometryMethod · 0.95
RenderOverlayMethod · 0.95
SetTotalLengthMethod · 0.95
SetShaftTypeMethod · 0.95
SetTipTypeMethod · 0.95

Calls 15

SetThetaResolutionMethod · 0.80
SetPhiResolutionMethod · 0.80
GetMapperMethod · 0.80
RotateZMethod · 0.80
RotateXMethod · 0.80
SetCaptionMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
SetRadiusMethod · 0.45
SetResolutionMethod · 0.45
SetInputConnectionMethod · 0.45
GetOutputPortMethod · 0.45

Tested by

no test coverage detected