OGS
MediaCreation.h File Reference

Detailed Description

Definition in file MediaCreation.h.

#include <map>
#include <memory>
#include <string>
#include <vector>
#include "BaseLib/Error.h"
Include dependency graph for MediaCreation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  MeshLib
 
namespace  MaterialLib
 

Functions

std::vector< int > MaterialLib::splitMaterialIdString (std::string const &material_id_string)
 
std::vector< int > MaterialLib::parseMaterialIdString (std::string const &material_id_string, MeshLib::PropertyVector< int > const *const material_ids)
 
template<typename T , typename CreateMedium >
requires std::convertible_to< decltype(std::declval<CreateMedium>()(std::declval<int>())), std::shared_ptr<T>>
void MaterialLib::createMediumForId (int const id, std::map< int, std::shared_ptr< T > > &media, std::vector< int > const &material_ids_of_this_medium, CreateMedium &&create_medium)