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

Method CreateNewRotatedHyperTree

Filters/General/vtkAxisAlignedTransformFilter.cxx:598–613  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

596
597//------------------------------------------------------------------------------
598vtkSmartPointer<vtkHyperTree> vtkAxisAlignedTransformFilter::CreateNewRotatedHyperTree(
599 vtkHyperTreeGrid* htg, vtkHyperTree* dest, const std::vector<unsigned int>& permutation)
600{
601 int branchFactor = dest->GetBranchFactor();
602 int dimension = dest->GetDimension();
603
604 vtkNew<vtkHyperTree> newTree;
605 newTree->Initialize(branchFactor, dimension);
606
607 vtkNew<vtkHyperTreeGridNonOrientedCursor> cursor;
608 cursor->Initialize(htg, dest->GetTreeIndex(), false);
609
610 this->CopyAndRotate(dest, newTree, 0, 0, permutation, 0, cursor);
611
612 return newTree;
613}
614
615//------------------------------------------------------------------------------
616void vtkAxisAlignedTransformFilter::ComputeCellScale(vtkDataArray* xCoords, vtkDataArray* yCoords,

Callers 1

ProcessHTGMethod · 0.95

Calls 3

CopyAndRotateMethod · 0.95
GetDimensionMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected