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

Method CreateMapper

Rendering/VolumeOpenGL2/vtkMultiBlockVolumeMapper.cxx:313–344  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

311
312//------------------------------------------------------------------------------
313vtkSmartVolumeMapper* vtkMultiBlockVolumeMapper::CreateMapper()
314{
315 vtkSmartVolumeMapper* mapper = vtkSmartVolumeMapper::New();
316
317 mapper->SetRequestedRenderMode(this->RequestedRenderMode);
318 mapper->SelectScalarArray(this->ArrayName);
319 mapper->SelectScalarArray(this->ArrayId);
320 mapper->SetScalarMode(this->ScalarMode);
321 mapper->SetArrayAccessMode(this->ArrayAccessMode);
322 mapper->SetVectorMode(this->VectorMode);
323 mapper->SetVectorComponent(this->VectorComponent);
324 mapper->SetBlendMode(this->GetBlendMode());
325 mapper->SetCropping(this->GetCropping());
326 mapper->SetCroppingRegionFlags(this->GetCroppingRegionFlags());
327 mapper->SetCroppingRegionPlanes(this->GetCroppingRegionPlanes());
328 mapper->SetTransfer2DYAxisArray(this->Transfer2DYAxisArray);
329 mapper->SetGlobalIlluminationReach(this->GlobalIlluminationReach);
330 mapper->SetVolumetricScatteringBlending(this->VolumetricScatteringBlending);
331 mapper->SetComputeNormalFromOpacity(this->ComputeNormalFromOpacity);
332 mapper->UseJitteringOn();
333
334 vtkOpenGLGPUVolumeRayCastMapper* glMapper =
335 vtkOpenGLGPUVolumeRayCastMapper::SafeDownCast(mapper->GetGPUMapper());
336
337 if (glMapper != nullptr)
338 {
339 glMapper->SetComputeNormalFromOpacity(this->ComputeNormalFromOpacity);
340 glMapper->SetGlobalIlluminationReach(this->GlobalIlluminationReach);
341 glMapper->SetVolumetricScatteringBlending(this->VolumetricScatteringBlending);
342 }
343 return mapper;
344}
345
346//------------------------------------------------------------------------------
347void vtkMultiBlockVolumeMapper::ReleaseGraphicsResources(vtkWindow* window)

Callers 2

LoadDataSetMethod · 0.95
CreateMappersMethod · 0.95

Calls 15

GetBlendModeMethod · 0.80
GetCroppingMethod · 0.80
NewFunction · 0.50
SelectScalarArrayMethod · 0.45
SetScalarModeMethod · 0.45

Tested by

no test coverage detected