VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMenuAssembler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtMenuAssembler_H_
11 #define DtMenuAssembler_H_
12 
13 #include <vrvCore/vrvCore.h>
15 #include <vrvCore/DtMenuPath.h>
16 
17 #include <stack>
18 
19 namespace makVrv
20 {
21  class DtMenuConfiguration;
22  class DtMenuPath;
23  class DtDe;
24 
28  {
29  public:
30 
31  friend class DtMenuAssemblerCreator;
32 
34  static DtMenuAssembler& instance(DtDe&);
35 
37  virtual ~DtMenuAssembler();
38 
40  virtual void assemble(const DtMenuConfiguration& configuration);
41 
42  protected:
43 
44  DtMenuAssembler(DtDe& de);
45 
47  void assembleMenuPath(const DtMenuPath& menuPath,
48  const DtMenuConfiguration& configuration);
49 
51  virtual void assembleMenu(const DtMenuPath& menuPath);
52 
54  virtual void assembleMenuItem(const DtMenuPath& menuPath);
55 
56  protected:
57 
58  std::stack<DtMenuPath> myMenuStack;
59 
61 
62  };
63 
69  {
70  public:
71 
73  static DtMenuAssemblerCreator& instance(DtDe& de);
74 
76  static void registerInstance(DtDe& de, DtMenuAssemblerCreator* creator);
77 
79  virtual ~DtMenuAssemblerCreator();
80 
82  virtual DtMenuAssembler* create(DtDe& de);
83 
84  protected:
85 
88  };
89 }
90 
91 #endif
92 
Virtual base class.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtMenuAssembler.h:60
Contains makVrv::DtMenuPath class.
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
a Class which represents a menu path.
Definition: DtMenuPath.h:27
std::stack< DtMenuPath > myMenuStack
Definition: DtMenuAssembler.h:58
A configuration of the menu layout.
Definition: DtMenuConfiguration.h:24
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
The base class implementation of a Menu Assembler.
Definition: DtMenuAssembler.h:27
The Menu assembler creator class allows the menu assembler to be replaced by a subclass via a plugin...
Definition: DtMenuAssembler.h:68
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)