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

Method Render

Rendering/VolumeOpenGL2/vtkMultiBlockUnstructuredGridVolumeMapper.cxx:70–94  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

68
69//------------------------------------------------------------------------------
70void vtkMultiBlockUnstructuredGridVolumeMapper::Render(vtkRenderer* ren, vtkVolume* vol)
71{
72 vtkDataObject* dataObj = this->GetDataObjectInput();
73 if (dataObj->GetMTime() != this->BlockLoadingTime)
74 {
75 vtkDebugMacro("Reloading data blocks!");
76 this->LoadDataSet();
77 this->BlockLoadingTime = dataObj->GetMTime();
78 }
79
80 vol->GetModelToWorldMatrix(this->TempMatrix4x4);
81 this->SortMappers(ren, this->TempMatrix4x4);
82
83 for (auto& mapper : this->Mappers)
84 {
85 int unused = 0;
86 auto input = mapper->GetInput();
87 auto scalars = vtkAbstractMapper::GetScalars(
88 input, this->ScalarMode, this->ArrayAccessMode, this->ArrayId, this->ArrayName, unused);
89 if (scalars != nullptr)
90 {
91 mapper->Render(ren, vol);
92 }
93 }
94}
95
96//------------------------------------------------------------------------------
97void vtkMultiBlockUnstructuredGridVolumeMapper::SortMappers(

Callers

nothing calls this directly

Calls 8

LoadDataSetMethod · 0.95
SortMappersMethod · 0.95
GetModelToWorldMatrixMethod · 0.80
RenderMethod · 0.65
GetScalarsClass · 0.50
GetDataObjectInputMethod · 0.45
GetMTimeMethod · 0.45
GetInputMethod · 0.45

Tested by

no test coverage detected