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

Method ApplyCellScale

Filters/General/vtkAxisAlignedTransformFilter.cxx:634–657  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

632
633//------------------------------------------------------------------------------
634void vtkAxisAlignedTransformFilter::ApplyCellScale(
635 vtkHyperTreeGridNonOrientedCursor* cursor, double scales[3])
636{
637 if (cursor->IsMasked())
638 {
639 cursor->ToParent();
640 return;
641 }
642
643 cursor->GetTree()->InitializeScales(scales, true);
644
645 if (!cursor->IsLeaf())
646 {
647 for (int i = 0; i < cursor->GetTree()->GetNumberOfChildren(); ++i)
648 {
649 cursor->ToChild(i);
650 this->ApplyCellScale(cursor, scales);
651 }
652 }
653 if (!cursor->IsRoot())
654 {
655 cursor->ToParent();
656 }
657}
658
659//----------------------------------------------------------------------------
660int vtkAxisAlignedTransformFilter::GetRotatedId(

Callers 1

ProcessHTGMethod · 0.95

Calls 8

InitializeScalesMethod · 0.80
IsMaskedMethod · 0.45
ToParentMethod · 0.45
GetTreeMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
IsRootMethod · 0.45

Tested by

no test coverage detected