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

Method ComputeBounds

Rendering/WebGPU/vtkWebGPUComputePointCloudMapper.cxx:111–130  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

109
110//------------------------------------------------------------------------------
111void vtkWebGPUComputePointCloudMapper::ComputeBounds()
112{
113 // Caching the input so that it can be reused by the function that uploads
114 this->Internals->CachedInput = this->GetInput();
115
116 this->InvokeEvent(vtkCommand::StartEvent, nullptr);
117 if (!this->Static)
118 {
119 this->GetInputAlgorithm()->Update();
120 }
121 this->InvokeEvent(vtkCommand::EndEvent, nullptr);
122 if (!this->Internals->CachedInput)
123 {
124 vtkMath::UninitializeBounds(this->Bounds);
125 return;
126 }
127
128 // Only considering the bounds of the points, not the cells
129 this->Internals->CachedInput->GetPoints()->GetBounds(this->Bounds);
130}

Callers

nothing calls this directly

Calls 7

UninitializeBoundsFunction · 0.85
InvokeEventMethod · 0.80
GetInputMethod · 0.45
UpdateMethod · 0.45
GetInputAlgorithmMethod · 0.45
GetBoundsMethod · 0.45
GetPointsMethod · 0.45

Tested by

no test coverage detected