MeshLib Documentation
Loading...
Searching...
No Matches
MR::ViewerSettingsManager Class Reference

#include <MRViewerSettingsManager.h>

+ Inheritance diagram for MR::ViewerSettingsManager:

Public Types

enum class  ObjType {
  Mesh = 0 , Lines , Points , Voxels ,
  DistanceMap , Count
}
 

Public Member Functions

MRVIEWER_API ViewerSettingsManager ()
 
virtual MRVIEWER_API int loadInt (const std::string &name, int def) override
 
virtual MRVIEWER_API void saveInt (const std::string &name, int value) override
 
virtual MRVIEWER_API std::string loadString (const std::string &name, const std::string &def) override
 
virtual MRVIEWER_API void saveString (const std::string &name, const std::string &value) override
 
virtual MRVIEWER_API bool loadBool (const std::string &name, bool def) override
 
virtual MRVIEWER_API void saveBool (const std::string &name, bool value) override
 
virtual MRVIEWER_API void resetSettings (Viewer &) override
 
virtual MRVIEWER_API void loadSettings (Viewer &viewer) override
 
virtual MRVIEWER_API void saveSettings (const Viewer &viewer) override
 
MRVIEWER_API const std::string & getLastExtention (ObjType objType)
 
MRVIEWER_API void setLastExtention (ObjType objType, std::string ext)
 
- Public Member Functions inherited from MR::IViewerSettingsManager
virtual ~IViewerSettingsManager ()=default
 

Member Enumeration Documentation

◆ ObjType

Enumerator
Mesh 
Lines 
Points 
Voxels 
DistanceMap 
Count 

Constructor & Destructor Documentation

◆ ViewerSettingsManager()

MRVIEWER_API MR::ViewerSettingsManager::ViewerSettingsManager ( )

Member Function Documentation

◆ getLastExtention()

MRVIEWER_API const std::string & MR::ViewerSettingsManager::getLastExtention ( ObjType objType)

◆ loadBool()

virtual MRVIEWER_API bool MR::ViewerSettingsManager::loadBool ( const std::string & name,
bool def )
overridevirtual

◆ loadInt()

virtual MRVIEWER_API int MR::ViewerSettingsManager::loadInt ( const std::string & name,
int def )
overridevirtual

◆ loadSettings()

virtual MRVIEWER_API void MR::ViewerSettingsManager::loadSettings ( Viewer & viewer)
overridevirtual

◆ loadString()

virtual MRVIEWER_API std::string MR::ViewerSettingsManager::loadString ( const std::string & name,
const std::string & def )
overridevirtual

◆ resetSettings()

virtual MRVIEWER_API void MR::ViewerSettingsManager::resetSettings ( Viewer & )
overridevirtual

◆ saveBool()

virtual MRVIEWER_API void MR::ViewerSettingsManager::saveBool ( const std::string & name,
bool value )
overridevirtual

◆ saveInt()

virtual MRVIEWER_API void MR::ViewerSettingsManager::saveInt ( const std::string & name,
int value )
overridevirtual

◆ saveSettings()

virtual MRVIEWER_API void MR::ViewerSettingsManager::saveSettings ( const Viewer & viewer)
overridevirtual

◆ saveString()

virtual MRVIEWER_API void MR::ViewerSettingsManager::saveString ( const std::string & name,
const std::string & value )
overridevirtual

◆ setLastExtention()

MRVIEWER_API void MR::ViewerSettingsManager::setLastExtention ( ObjType objType,
std::string ext )

The documentation for this class was generated from the following file: