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

Method SetShaftType

Rendering/Annotation/vtkAxesActor.cxx:467–489  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

465
466//------------------------------------------------------------------------------
467void 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//------------------------------------------------------------------------------
492void vtkAxesActor::SetTipType(int type)

Callers 1

ShallowCopyMethod · 0.95

Calls 2

UpdatePropsMethod · 0.95
ModifiedMethod · 0.45

Tested by

no test coverage detected