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

Method GetTextures

Rendering/OpenGL2/vtkOpenGLLowMemoryPolyDataMapper.cxx:2988–3006  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2986
2987//------------------------------------------------------------------------------
2988std::vector<vtkOpenGLLowMemoryPolyDataMapper::TextureInfo>
2989vtkOpenGLLowMemoryPolyDataMapper::GetTextures(vtkActor* actor)
2990{
2991 std::vector<TextureInfo> result;
2992 if (this->ColorTextureMap)
2993 {
2994 result.emplace_back(this->InternalColorTexture, "colortexture");
2995 }
2996 if (actor->GetTexture())
2997 {
2998 result.emplace_back(actor->GetTexture(), "actortexture");
2999 }
3000 auto textures = actor->GetProperty()->GetAllTextures();
3001 for (const auto& ti : textures)
3002 {
3003 result.emplace_back(ti.second, ti.first);
3004 }
3005 return result;
3006}
3007
3008//------------------------------------------------------------------------------
3009std::pair<std::string, std::string>

Callers 4

ReplaceShaderTCoordMethod · 0.95
SetShaderParametersMethod · 0.95
GetNumberOfTexturesMethod · 0.95
UpdatePBRStateCacheMethod · 0.95

Calls 3

emplace_backMethod · 0.45
GetTextureMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected