VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVisualizerAttributeEditorFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <boost/unordered_map.hpp>
14 
15 class QWidget;
16 
17 namespace makVrv
18 {
19  class DtVisualizerAttributeEditor;
20  class DtVisualizerAttributeEditorInterface;
21  class DtVisualizerAttributeEditorCreator;
22 
25  public DtVirtualBaseClass
26  {
27  public:
28 
30  static DtVisualizerAttributeEditorFactory& instance(DtDe&);
31 
34 
36  virtual void registerVisualizerCreator(
38 
40  DtVisualizerAttributeEditor* createEditor(const std::string& attrName,
41  const std::string& attrClassName, QWidget* parent) const;
42 
43  protected:
45 
46  protected:
47  //Maps from attribute type to creator map.
48  typedef boost::unordered_map<std::string,
50 
51  //Maps from attribute name to a map of type to creator.
52  typedef boost::unordered_map<std::string, AttributeTypeToCreatorMap>
54 
57  };
58 }
59 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
boost::unordered_map< std::string, AttributeTypeToCreatorMap > AttributeNameToTypeCreatorMap
Definition: DtVisualizerAttributeEditorFactory.h:53
boost::unordered_map< std::string, DtVisualizerAttributeEditorCreator * > AttributeTypeToCreatorMap
Definition: DtVisualizerAttributeEditorFactory.h:49
Contains makVrv::DtVirtualBaseClass class.
Base class for the Qt based visualizer attribute editor.
Definition: DtVisualizerAttributeEditor.h:107
DtDe & myDe
Definition: DtVisualizerAttributeEditorFactory.h:55
AttributeNameToTypeCreatorMap myCreatorMap
Definition: DtVisualizerAttributeEditorFactory.h:56
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:76
Definition: DtVisualizerAttributeEditorFactory.h:24
Abstract creator class for visualizer attributes.
Definition: DtVisualizerAttributeEditor.h:181

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)