------------------------------------------------------------------------------
| 2986 | |
| 2987 | //------------------------------------------------------------------------------ |
| 2988 | std::vector<vtkOpenGLLowMemoryPolyDataMapper::TextureInfo> |
| 2989 | vtkOpenGLLowMemoryPolyDataMapper::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 | //------------------------------------------------------------------------------ |
| 3009 | std::pair<std::string, std::string> |
no test coverage detected