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

Method AllocateUseSet

Rendering/Volume/vtkUnstructuredGridVolumeZSweepMapper.cxx:2815–2833  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2813
2814//------------------------------------------------------------------------------
2815void vtkUnstructuredGridVolumeZSweepMapper::AllocateUseSet(vtkIdType size)
2816{
2817 if (this->UseSet != nullptr)
2818 {
2819 if (size > static_cast<vtkIdType>(this->UseSet->Vector.size()))
2820 {
2821 delete this->UseSet;
2822 this->UseSet = new vtkUseSet(size);
2823 }
2824 else
2825 {
2826 this->UseSet->Clear();
2827 }
2828 }
2829 else
2830 {
2831 this->UseSet = new vtkUseSet(size);
2832 }
2833}
2834
2835//------------------------------------------------------------------------------
2836void vtkUnstructuredGridVolumeZSweepMapper::AllocateVertices(vtkIdType size)

Callers 1

BuildUseSetsMethod · 0.95

Calls 2

sizeMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected