MeshLib Documentation
Loading...
Searching...
No Matches
MR::SceneColors Struct Reference

#include <MRSceneColors.h>

Public Types

enum  Type {
  SelectedObjectMesh , UnselectedObjectMesh , SelectedObjectPoints , UnselectedObjectPoints ,
  SelectedObjectLines , UnselectedObjectLines , SelectedObjectVoxels , UnselectedObjectVoxels ,
  SelectedObjectDistanceMap , UnselectedObjectDistanceMap , BackFaces , Labels ,
  Edges , Points , SelectedFaces , SelectedEdges ,
  SelectedPoints , SelectedFeatures , UnselectedFeatures , FeatureBackFaces ,
  SelectedFeatureDecorations , UnselectedFeatureDecorations , SelectedMeasurements , UnselectedMeasurements ,
  Count
}
 

Static Public Member Functions

static MRMESH_API const Colorget (Type type)
 
static MRMESH_API void set (Type type, const Color &color)
 
static MRMESH_API const char * getName (Type type)
 

Detailed Description

This singleton struct contains default colors for scene objects

Member Enumeration Documentation

◆ Type

Enumerator
SelectedObjectMesh 
UnselectedObjectMesh 
SelectedObjectPoints 
UnselectedObjectPoints 
SelectedObjectLines 
UnselectedObjectLines 
SelectedObjectVoxels 
UnselectedObjectVoxels 
SelectedObjectDistanceMap 
UnselectedObjectDistanceMap 
BackFaces 
Labels 
Edges 
Points 
SelectedFaces 
SelectedEdges 
SelectedPoints 
SelectedFeatures 
UnselectedFeatures 
FeatureBackFaces 
SelectedFeatureDecorations 
UnselectedFeatureDecorations 
SelectedMeasurements 
UnselectedMeasurements 
Count 

Member Function Documentation

◆ get()

static MRMESH_API const Color & MR::SceneColors::get ( Type type)
static

◆ getName()

static MRMESH_API const char * MR::SceneColors::getName ( Type type)
static

◆ set()

static MRMESH_API void MR::SceneColors::set ( Type type,
const Color & color )
static

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