MeVisLab Resolution Independence API
SoMetaInformationMapQt.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2013, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef SO_META_INFORMATION_MAP_QT_H
14 #define SO_META_INFORMATION_MAP_QT_H
15 
17 
18 #include "SoMetaInformationMap.h"
19 
20 #include <QVariantMap>
21 
24 {
25 public:
28  void set(const char* key, float value) override;
29  void set(const char* key, double value) override;
30  void set(const char* key, int value) override;
31  void set(const char* key, const std::string& value) override;
32  void set(const char* key, const SbString& value) override;
33  void set(const char* key, const SbVec2f& value) override;
34  void set(const char* key, const SbVec3f& value) override;
35  void set(const char* key, const SbVec4f& value) override;
36  void set(const char* key, const SbMatrix& value) override;
37  void set(const char* key, const char* data, size_t size) override;
39 
41  void clear();
42 
44  const QVariantMap& getValues();
45 
46 private:
47  QVariantMap _values;
48 };
49 
50 #endif
#define INVENTORGUIWRAPPER_API
Library initialization interface of the inventor GUI wrapper.
Implements the SoMetaInformationMap using a QVariantMap as underlying storage.
void set(const char *key, double value) override
void set(const char *key, const char *data, size_t size) override
void clear()
clear previous render state
void set(const char *key, const SbMatrix &value) override
void set(const char *key, const SbVec2f &value) override
void set(const char *key, const std::string &value) override
void set(const char *key, const SbVec3f &value) override
void set(const char *key, float value) override
void set(const char *key, int value) override
void set(const char *key, const SbString &value) override
const QVariantMap & getValues()
get the current render state
void set(const char *key, const SbVec4f &value) override
SoMetaInformationMap allows to record information on the current render state.