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

#include <MRSceneSettings.h>

Public Types

enum class  BoolType { UseDefaultScenePropertiesOnDeserialization , Count }
 
enum class  FloatType {
  FeaturePointsAlpha , FeatureLinesAlpha , FeatureMeshAlpha , FeatureSubPointsAlpha ,
  FeatureSubLinesAlpha , FeatureSubMeshAlpha , FeatureLineWidth , FeatureSubLineWidth ,
  FeaturePointSize , FeatureSubPointSize , AmbientCoefSelectedObj , Count
}
 
enum class  ShadingMode { AutoDetect , Smooth , Flat }
 Mesh faces shading mode. More...
 

Static Public Member Functions

static MRMESH_API void reset ()
 
static MRMESH_API bool get (BoolType type)
 
static MRMESH_API float get (FloatType type)
 
static MRMESH_API void set (BoolType type, bool value)
 
static MRMESH_API void set (FloatType type, float value)
 
static MRMESH_API ShadingMode getDefaultShadingMode ()
 
static MRMESH_API void setDefaultShadingMode (ShadingMode mode)
 
static MRMESH_API const CNCMachineSettingsgetCNCMachineSettings ()
 
static MRMESH_API void setCNCMachineSettings (const CNCMachineSettings &settings)
 

Detailed Description

This singleton struct contains default settings for scene objects

Member Enumeration Documentation

◆ BoolType

enum class MR::SceneSettings::BoolType
strong
Enumerator
UseDefaultScenePropertiesOnDeserialization 

on deserialization replace object properties with default values from SceneSettings and SceneColors

Count 

total count

◆ FloatType

enum class MR::SceneSettings::FloatType
strong
Enumerator
FeaturePointsAlpha 
FeatureLinesAlpha 
FeatureMeshAlpha 
FeatureSubPointsAlpha 
FeatureSubLinesAlpha 
FeatureSubMeshAlpha 
FeatureLineWidth 
FeatureSubLineWidth 
FeaturePointSize 
FeatureSubPointSize 
AmbientCoefSelectedObj 
Count 

◆ ShadingMode

enum class MR::SceneSettings::ShadingMode
strong

Mesh faces shading mode.

Enumerator
AutoDetect 
Smooth 
Flat 

Member Function Documentation

◆ get() [1/2]

static MRMESH_API bool MR::SceneSettings::get ( BoolType type)
static

◆ get() [2/2]

static MRMESH_API float MR::SceneSettings::get ( FloatType type)
static

◆ getCNCMachineSettings()

static MRMESH_API const CNCMachineSettings & MR::SceneSettings::getCNCMachineSettings ( )
static

◆ getDefaultShadingMode()

static MRMESH_API ShadingMode MR::SceneSettings::getDefaultShadingMode ( )
static

Default shading mode for new mesh objects, or imported form files Tools may consider this setting when creating new meshes AutoDetect: choose depending of file format and mesh shape, fallback to smooth

◆ reset()

static MRMESH_API void MR::SceneSettings::reset ( )
static

◆ set() [1/2]

static MRMESH_API void MR::SceneSettings::set ( BoolType type,
bool value )
static

◆ set() [2/2]

static MRMESH_API void MR::SceneSettings::set ( FloatType type,
float value )
static

◆ setCNCMachineSettings()

static MRMESH_API void MR::SceneSettings::setCNCMachineSettings ( const CNCMachineSettings & settings)
static

◆ setDefaultShadingMode()

static MRMESH_API void MR::SceneSettings::setDefaultShadingMode ( ShadingMode mode)
static

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