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

Method SetNormalizedLabelPosition

Rendering/Annotation/vtkAxesActor.cxx:445–464  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

443
444//------------------------------------------------------------------------------
445void vtkAxesActor::SetNormalizedLabelPosition(double x, double y, double z)
446{
447 if (this->NormalizedLabelPosition[0] != x || this->NormalizedLabelPosition[1] != y ||
448 this->NormalizedLabelPosition[2] != z)
449 {
450 this->NormalizedLabelPosition[0] = x;
451 this->NormalizedLabelPosition[1] = y;
452 this->NormalizedLabelPosition[2] = z;
453
454 if (x < 0.0 || y < 0.0 || z < 0.0)
455 {
456 vtkGenericWarningMacro("One or more label positions are < 0 \
457 and may produce unexpected results.");
458 }
459
460 this->Modified();
461
462 this->UpdateProps();
463 }
464}
465
466//------------------------------------------------------------------------------
467void vtkAxesActor::SetShaftType(int type)

Callers 2

ShallowCopyMethod · 0.95
vtkGetVectorMacroFunction · 0.80

Calls 2

UpdatePropsMethod · 0.95
ModifiedMethod · 0.45

Tested by

no test coverage detected