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

Method GetTextures

Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx:481–499  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

479
480//------------------------------------------------------------------------------
481std::vector<texinfo> vtkOpenGLPolyDataMapper::GetTextures(vtkActor* actor)
482{
483 std::vector<texinfo> res;
484
485 if (this->ColorTextureMap)
486 {
487 res.emplace_back(this->InternalColorTexture, "colortexture");
488 }
489 if (actor->GetTexture())
490 {
491 res.emplace_back(actor->GetTexture(), "actortexture");
492 }
493 auto textures = actor->GetProperty()->GetAllTextures();
494 for (const auto& ti : textures)
495 {
496 res.emplace_back(ti.second, ti.first);
497 }
498 return res;
499}
500
501//------------------------------------------------------------------------------
502bool vtkOpenGLPolyDataMapper::HaveTCoords(vtkPolyData* poly)

Callers 6

GetNumberOfTexturesMethod · 0.95
ReplaceShaderLightMethod · 0.95
ReplaceShaderTCoordMethod · 0.95
ReplaceShaderNormalMethod · 0.95

Calls 3

emplace_backMethod · 0.45
GetTextureMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected