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

Method SetNormalizedTipLength

Rendering/Annotation/vtkAxesActor.cxx:423–442  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

421
422//------------------------------------------------------------------------------
423void vtkAxesActor::SetNormalizedTipLength(double x, double y, double z)
424{
425 if (this->NormalizedTipLength[0] != x || this->NormalizedTipLength[1] != y ||
426 this->NormalizedTipLength[2] != z)
427 {
428 this->NormalizedTipLength[0] = x;
429 this->NormalizedTipLength[1] = y;
430 this->NormalizedTipLength[2] = z;
431
432 if (x < 0.0 || x > 1.0 || y < 0.0 || y > 1.0 || z < 0.0 || z > 1.0)
433 {
434 vtkGenericWarningMacro("One or more normalized tip lengths \
435 are < 0 or > 1 and may produce unexpected results.");
436 }
437
438 this->Modified();
439
440 this->UpdateProps();
441 }
442}
443
444//------------------------------------------------------------------------------
445void vtkAxesActor::SetNormalizedLabelPosition(double x, double y, double z)

Callers 7

ShallowCopyMethod · 0.95
TestAxesActorFunction · 0.80
vtkGetVectorMacroFunction · 0.80

Calls 2

UpdatePropsMethod · 0.95
ModifiedMethod · 0.45