MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewerTitle.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3#include <string>
4
5namespace MR
6{
9
10
13class MRVIEWER_CLASS ViewerTitle
14{
15public:
16 ViewerTitle() = default;
17 virtual ~ViewerTitle() = default;
18
20 MRVIEWER_API void setAppName( std::string appName );
21
23 MRVIEWER_API void setVersion( std::string version );
24
26 MRVIEWER_API void setSceneName( std::string sceneName );
27
29 MRVIEWER_API virtual std::string compose() const;
30protected:
32 MRVIEWER_API void update_();
33
34 std::string appName_;
35 std::string version_;
36 std::string sceneName_;
37
38private:
39 std::string composed_;
40};
41
42}
Definition MRViewerTitle.h:14
std::string version_
Definition MRViewerTitle.h:35
MRVIEWER_API void update_()
called when something changes, composes new title and apply it to window
MRVIEWER_API void setSceneName(std::string sceneName)
Name of current scene.
MRVIEWER_API void setVersion(std::string version)
Version of application.
std::string sceneName_
Definition MRViewerTitle.h:36
virtual ~ViewerTitle()=default
MRVIEWER_API void setAppName(std::string appName)
Name of the application.
ViewerTitle()=default
std::string appName_
Definition MRViewerTitle.h:34
virtual MRVIEWER_API std::string compose() const
this function is called from update_ compose resulting name
only for bindings generation
Definition MRCameraOrientationPlugin.h:8