17 virtual int loadInt(
const std::string& name,
int def = 0 ) = 0;
18 virtual void saveInt(
const std::string& name,
int value ) = 0;
20 virtual std::string
loadString(
const std::string& name,
const std::string& def =
"" ) = 0;
21 virtual void saveString(
const std::string& name,
const std::string& value ) = 0;
23 virtual bool loadBool(
const std::string& name,
bool def =
false ) = 0;
24 virtual void saveBool(
const std::string& name,
bool value ) = 0;
36 MRVIEWER_API
virtual int loadInt(
const std::string& name,
int def )
override;
37 MRVIEWER_API
virtual void saveInt(
const std::string& name,
int value )
override;
38 MRVIEWER_API
virtual std::string
loadString(
const std::string& name,
const std::string& def )
override;
39 MRVIEWER_API
virtual void saveString(
const std::string& name,
const std::string& value )
override;
40 MRVIEWER_API
virtual bool loadBool(
const std::string& name,
bool def )
override;
41 MRVIEWER_API
virtual void saveBool(
const std::string& name,
bool value )
override;
59 std::vector<std::string> lastExtentions_;
Points
Definition MRObjectLinesHolder.h:10
Definition MRDistanceMap.h:24
Definition MRViewerSettingsManager.h:13
virtual bool loadBool(const std::string &name, bool def=false)=0
virtual ~IViewerSettingsManager()=default
virtual void loadSettings(Viewer &)=0
virtual void saveString(const std::string &name, const std::string &value)=0
virtual void saveBool(const std::string &name, bool value)=0
virtual void resetSettings(Viewer &)=0
virtual int loadInt(const std::string &name, int def=0)=0
virtual std::string loadString(const std::string &name, const std::string &def="")=0
virtual void saveSettings(const Viewer &)=0
virtual void saveInt(const std::string &name, int value)=0
Definition MRViewerSettingsManager.h:32
virtual MRVIEWER_API void saveBool(const std::string &name, bool value) override
ObjType
Definition MRViewerSettingsManager.h:48
virtual MRVIEWER_API int loadInt(const std::string &name, int def) override
virtual MRVIEWER_API void saveString(const std::string &name, const std::string &value) override
virtual MRVIEWER_API void resetSettings(Viewer &) override
virtual MRVIEWER_API void saveInt(const std::string &name, int value) override
MRVIEWER_API ViewerSettingsManager()
virtual MRVIEWER_API bool loadBool(const std::string &name, bool def) override
virtual MRVIEWER_API void saveSettings(const Viewer &viewer) override
virtual MRVIEWER_API std::string loadString(const std::string &name, const std::string &def) override
virtual MRVIEWER_API void loadSettings(Viewer &viewer) override
MRVIEWER_API void setLastExtention(ObjType objType, std::string ext)
MRVIEWER_API const std::string & getLastExtention(ObjType objType)
Definition MRCameraOrientationPlugin.h:8
Definition Viewer.dox.py:1
Definition MRMesh/MRMesh.h:23