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

Method SetNormalizedShaftLength

Rendering/Annotation/vtkAxesActor.cxx:401–420  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

399
400//------------------------------------------------------------------------------
401void vtkAxesActor::SetNormalizedShaftLength(double x, double y, double z)
402{
403 if (this->NormalizedShaftLength[0] != x || this->NormalizedShaftLength[1] != y ||
404 this->NormalizedShaftLength[2] != z)
405 {
406 this->NormalizedShaftLength[0] = x;
407 this->NormalizedShaftLength[1] = y;
408 this->NormalizedShaftLength[2] = z;
409
410 if (x < 0.0 || x > 1.0 || y < 0.0 || y > 1.0 || z < 0.0 || z > 1.0)
411 {
412 vtkGenericWarningMacro("One or more normalized shaft lengths \
413 are < 0 or > 1 and may produce unexpected results.");
414 }
415
416 this->Modified();
417
418 this->UpdateProps();
419 }
420}
421
422//------------------------------------------------------------------------------
423void vtkAxesActor::SetNormalizedTipLength(double x, double y, double z)

Calls 2

UpdatePropsMethod · 0.95
ModifiedMethod · 0.45