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

Method SetTotalLength

Rendering/Annotation/vtkAxesActor.cxx:380–398  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

378
379//------------------------------------------------------------------------------
380void vtkAxesActor::SetTotalLength(double x, double y, double z)
381{
382 if (this->TotalLength[0] != x || this->TotalLength[1] != y || this->TotalLength[2] != z)
383 {
384 this->TotalLength[0] = x;
385 this->TotalLength[1] = y;
386 this->TotalLength[2] = z;
387
388 if (x < 0.0 || y < 0.0 || z < 0.0)
389 {
390 vtkGenericWarningMacro("One or more axes lengths are < 0 \
391 and may produce unexpected results.");
392 }
393
394 this->Modified();
395
396 this->UpdateProps();
397 }
398}
399
400//------------------------------------------------------------------------------
401void vtkAxesActor::SetNormalizedShaftLength(double x, double y, double z)

Calls 2

UpdatePropsMethod · 0.95
ModifiedMethod · 0.45