18 #ifndef PRTX_DATABACKEND_H_ 19 #define PRTX_DATABACKEND_H_ 21 #include "prtx/prtx.h" 22 #include "prtx/Types.h" 24 #include "prtx/Content.h" 25 #include "prtx/Texture.h" 26 #include "prtx/Geometry.h" 28 #include "prtx/ResolveMap.h" 29 #include "prtx/Table.h" 31 #include "prt/Status.h" 32 #include "prt/Cache.h" 48 using BinaryVectorPtr = std::shared_ptr<BinaryVector>;
51 using CTStringPtr = std::shared_ptr<CTString>;
63 namespace DataBackend {
std::shared_ptr< Texture > TexturePtr
shared Texture pointer
Definition: Texture.h:37
CTStringPtr resolveText(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)
std::vector< uint8_t > BinaryVector
vector to hold binary data
Definition: Types.h:37
std::shared_ptr< Material > MaterialPtr
shared Material pointer
Definition: DataBackend.h:45
bool isCached(prt::Cache *cache, prt::ContentType ct, const prtx::URIPtr &uri)
Definition: Material.h:202
The Procedural Runtime eXtension namespace. The prtx namespace contains the tools to extend the Proce...
Definition: AnnotationBuilder.h:35
std::shared_ptr< URI > URIPtr
shared pointer implementation of prtx::URI
Definition: URI.h:37
std::shared_ptr< Geometry > GeometryPtr
shared Geometry pointer
Definition: DebugUtils.h:37
ContentType
Definition: ContentType.h:28
std::vector< MeshPtr > MeshPtrVector
vector of shared Mesh pointers
Definition: DataBackend.h:42
std::vector< MaterialPtr > MaterialPtrVector
vector of shared Material pointers
Definition: DataBackend.h:46
BinaryVectorPtr resolveBinaryData(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)
Definition: /ResolveMap.h:40
void readURI(const prtx::URIPtr &uri, BinaryVector &data)
CGBPtr resolveCGB(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr)
std::shared_ptr< Mesh > MeshPtr
shared Mesh pointer
Definition: DataBackend.h:41
GeometryPtr resolveGeometry(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)
TexturePtr resolveTexture(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)
void resolveMaterial(prt::Cache *cache, MaterialPtrVector &materials, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)
Definition: CTString.h:35
TablePtr resolveTable(prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr)