VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtWindowFactory_H_
11 #define DtWindowFactory_H_
12 
13 #include <vrvCore/vrvCore.h>
16 
17 namespace makVrv
18 {
19  class DtWindow;
20  class DtWindowCreator;
21  class DtDe;
22 
27  {
28 
29  typedef DtWindow* (*DtWindowCreatorFunction)(DtDe&, DtWindowConfiguration&);
30 
31  public:
32 
35  static DtWindowFactory& instance(DtDe& de);
36 
38  virtual ~DtWindowFactory();
39 
41  DtWindow* createWindow(DtDe& de,DtWindowConfiguration& wc);
42 
44  void setCreator(int index, DtWindowCreator* creator);
45 
46  protected:
47 
50 
51  protected:
52 
53  typedef std::map<int, DtWindowCreator*> CreatorFunctionMap;
55 
56  };
57 }
58 
59 #endif
60 
61 
Abstract Base class.
Definition: DtWindow.h:25
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
A creator class for DtWindow instances.
Definition: DtWindow.h:130
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
Contains makVrv::DtVirtualBaseClass class.
Component which makes windows. This is not subclassed so there are no virtual methods.
Definition: DtWindowFactory.h:26
CreatorFunctionMap myCreatorFunctionMap
Definition: DtWindowFactory.h:54
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Contains makVrv::DtWindowConfiguration class.
std::map< int, DtWindowCreator * > CreatorFunctionMap
Definition: DtWindowFactory.h:53
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)