CFx SDK Documentation  2020SP3
FxBIMMaterialLibrary.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "FxBIM.h"
4 #include "FxBIMMaterial.h"
5 
6 class CFxBIMMaterialLibraryImpl;
7 
9 typedef std::shared_ptr< CFxBIMMaterialLibrary > CFxBIMMaterialLibraryPtr;
10 
12 {
13  friend class CFxBIMMaterialLibraryImpl;
14 public:
16 
18 
19  virtual Error Load( const OdString& fileName );
20  virtual Error Unload( const OdString& fileName );
21 
22  virtual Error Save() const;
23 
24  virtual std::vector< OdString > LoadedFiles() const;
25 
26  virtual std::vector< CFxBIMMaterialPtr > MaterialsAll() const;
27  virtual std::vector< CFxBIMMaterialPtr > MaterialsByFile( const OdString& fileName ) const;
28 
30  virtual Error AddMaterial( CFxBIMMaterialPtr pMaterial );
31 
32 protected:
34 
35 protected:
36  std::shared_ptr< CFxBIMMaterialLibraryImpl > m_pImpl;
37 };
OdString
Definition: OdString.h:95
CFxBIMMaterialLibrary::CFxBIMMaterialLibrary
CFxBIMMaterialLibrary()
Error
Error
Definition: FxBIM.h:18
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
CFxBIMMaterialLibrary::Load
virtual Error Load(const OdString &fileName)
CFxBIMMaterialLibrary::~CFxBIMMaterialLibrary
virtual ~CFxBIMMaterialLibrary()
CFxBIMMaterialLibrary::AddMaterial
virtual Error AddMaterial(CFxBIMMaterialPtr pMaterial)
FXBIM_API
#define FXBIM_API
Definition: FxBIM.h:4
CFxBIMMaterialLibrary::Get
static CFxBIMMaterialLibraryPtr Get()
CFxBIMMaterialLibrary
Definition: FxBIMMaterialLibrary.h:12
CFxBIMMaterialLibraryPtr
std::shared_ptr< CFxBIMMaterialLibrary > CFxBIMMaterialLibraryPtr
Definition: FxBIMMaterialLibrary.h:8
OdSmartPtr
Definition: SmartPtr.h:58
CFxBIMObject
Definition: FxBIM.h:131
CFxBIMMaterialLibrary::MaterialsByFile
virtual std::vector< CFxBIMMaterialPtr > MaterialsByFile(const OdString &fileName) const
FxBIMMaterial.h
CFxBIMMaterialLibrary::GetMaterial
virtual CFxBIMMaterialPtr GetMaterial(const OdString &name)
CFxBIMMaterialLibrary::MaterialsAll
virtual std::vector< CFxBIMMaterialPtr > MaterialsAll() const
FxBIM.h
CFxBIMMaterialLibrary::m_pImpl
std::shared_ptr< CFxBIMMaterialLibraryImpl > m_pImpl
Definition: FxBIMMaterialLibrary.h:36
CFxBIMMaterialLibrary::LoadedFiles
virtual std::vector< OdString > LoadedFiles() const
CFxBIMMaterialLibrary::Unload
virtual Error Unload(const OdString &fileName)
CFxBIMMaterialLibrary::Save
virtual Error Save() const