OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GraphicsPickerCollectionManager.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
12
13// std header
14#include <map>
15
16namespace ot {
17
20 public:
23
24 void setCurrentOwner(const BasicServiceInformation& _owner) { m_currentOwner = _owner; };
25 const BasicServiceInformation& getCurrentOwner(void) const { return m_currentOwner; };
26
27 void addCollection(const GraphicsPickerCollectionCfg& _collection, const BasicServiceInformation& _owner);
28 void addCollections(const std::list<GraphicsPickerCollectionCfg*>& _collections, const BasicServiceInformation& _owner);
29 const std::list<GraphicsPickerCollectionCfg*>& getCollections(const BasicServiceInformation& _owner) const;
30
31 void clear(void);
32
33 private:
34 GraphicsPickerCollectionCfg& getOwnerRootCollection(const BasicServiceInformation& _owner);
35 const GraphicsPickerCollectionCfg& getOwnerRootCollection(const BasicServiceInformation& _owner) const;
36
37 BasicServiceInformation m_currentOwner;
38 std::map<BasicServiceInformation, GraphicsPickerCollectionCfg> m_collections;
39 GraphicsPickerCollectionCfg m_emptyCollection;
40 };
41
42}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The BasicServiceInformation class is used to hold a service name and type. The BasicServiceInformatio...
Definition BasicServiceInformation.h:21
Definition GraphicsPickerCollectionCfg.h:20
Definition GraphicsPickerCollectionManager.h:18
virtual ~GraphicsPickerCollectionManager()
Definition GraphicsPickerCollectionManager.h:22
const BasicServiceInformation & getCurrentOwner(void) const
Definition GraphicsPickerCollectionManager.h:25
GraphicsPickerCollectionManager()
Definition GraphicsPickerCollectionManager.h:21
void setCurrentOwner(const BasicServiceInformation &_owner)
Definition GraphicsPickerCollectionManager.h:24
Definition Connector.h:8