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

Method LoadDataSet

Rendering/VolumeOpenGL2/vtkMultiBlockVolumeMapper.cxx:208–234  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

206
207//------------------------------------------------------------------------------
208void vtkMultiBlockVolumeMapper::LoadDataSet(vtkRenderer* ren, vtkVolume* vol)
209{
210 this->ClearMappers();
211
212 auto input = this->GetDataObjectInput();
213 if (auto inputTree = vtkDataObjectTree::SafeDownCast(input))
214 {
215 this->CreateMappers(inputTree, ren, vol);
216 }
217 else if (auto inputImage = vtkImageData::SafeDownCast(input))
218 {
219 vtkSmartVolumeMapper* mapper = this->CreateMapper();
220 mapper->SetInputData(inputImage);
221 this->Mappers.push_back(mapper);
222 }
223 else if (auto inputRectGrid = vtkRectilinearGrid::SafeDownCast(input))
224 {
225 vtkSmartVolumeMapper* mapper = this->CreateMapper();
226 mapper->SetInputData(inputRectGrid);
227 this->Mappers.push_back(mapper);
228 }
229 else
230 {
231 vtkErrorMacro(
232 "Cannot handle input of type '" << (input ? input->GetClassName() : "(nullptr)") << "'.");
233 }
234}
235
236//------------------------------------------------------------------------------
237void vtkMultiBlockVolumeMapper::CreateMappers(

Callers 1

RenderMethod · 0.95

Calls 7

ClearMappersMethod · 0.95
CreateMappersMethod · 0.95
CreateMapperMethod · 0.95
GetDataObjectInputMethod · 0.45
SetInputDataMethod · 0.45
push_backMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected