VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEffectControllerFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 
16 #include <boost/unordered_map.hpp>
17 #include <string>
18 #include <vector>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtEffectControllerCreator;
24  class DtOsgEffectTextureController;
25  class DtOsgFileCache;
26  class DtOsgShaderManager;
27 
33  {
34  public:
35 
37  static DtEffectControllerFactory& instance(DtDe& de);
38 
39  static void registerInstance(DtDe& de, DtEffectControllerFactory* anInstance);
40 
42  virtual ~DtEffectControllerFactory();
43 
46  virtual void registerCreator(const std::string& name, DtEffectControllerCreator* creator);
47 
49  virtual DtOsgEffectTextureController* create(const std::string& name, const DtOsgFileCache& fileCache) const;
50 
51  typedef std::vector<DtOsgEffectTextureController*> ControllerVec;
52 
54  virtual ControllerVec createAll(const DtOsgFileCache& fileCache) const;
55 
56  protected:
60 
61  protected:
62  typedef boost::unordered_map<std::string, DtEffectControllerCreator*> RegistrationMap;
63 
66  };
67 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)