MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneColors.h File Reference
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Color MR_Color
 
typedef struct MR_SceneColors MR_SceneColors
 
typedef enum MR_SceneColors_Type MR_SceneColors_Type
 

Enumerations

enum  MR_SceneColors_Type {
  MR_SceneColors_Type_SelectedObjectMesh = 0 , MR_SceneColors_Type_UnselectedObjectMesh = 1 , MR_SceneColors_Type_SelectedObjectPoints = 2 , MR_SceneColors_Type_UnselectedObjectPoints = 3 ,
  MR_SceneColors_Type_SelectedObjectLines = 4 , MR_SceneColors_Type_UnselectedObjectLines = 5 , MR_SceneColors_Type_SelectedObjectVoxels = 6 , MR_SceneColors_Type_UnselectedObjectVoxels = 7 ,
  MR_SceneColors_Type_SelectedObjectDistanceMap = 8 , MR_SceneColors_Type_UnselectedObjectDistanceMap = 9 , MR_SceneColors_Type_BackFaces = 10 , MR_SceneColors_Type_Labels = 11 ,
  MR_SceneColors_Type_Edges = 12 , MR_SceneColors_Type_Points = 13 , MR_SceneColors_Type_SelectedFaces = 14 , MR_SceneColors_Type_SelectedEdges = 15 ,
  MR_SceneColors_Type_SelectedPoints = 16 , MR_SceneColors_Type_SelectedFeatures = 17 , MR_SceneColors_Type_UnselectedFeatures = 18 , MR_SceneColors_Type_FeatureBackFaces = 19 ,
  MR_SceneColors_Type_SelectedFeatureDecorations = 20 , MR_SceneColors_Type_UnselectedFeatureDecorations = 21 , MR_SceneColors_Type_SelectedMeasurements = 22 , MR_SceneColors_Type_UnselectedMeasurements = 23 ,
  MR_SceneColors_Type_SelectedTemporaryMeasurements = 24 , MR_SceneColors_Type_UnselectedTemporaryMeasurements = 25 , MR_SceneColors_Type_Count = 26
}
 

Functions

MRC_API const MR_ColorMR_SceneColors_get (MR_SceneColors_Type type)
 
MRC_API void MR_SceneColors_set (MR_SceneColors_Type type, const MR_Color *color)
 
MRC_API const char * MR_SceneColors_getName (MR_SceneColors_Type type)
 Generated from a method of class MR::SceneColors named getName.
 
MRC_API const MR_SceneColorsMR_SceneColors_OffsetPtr (const MR_SceneColors *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_SceneColorsMR_SceneColors_OffsetMutablePtr (MR_SceneColors *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 

Typedef Documentation

◆ MR_Color

typedef struct MR_Color MR_Color

◆ MR_SceneColors

This singleton struct contains default colors for scene objects Generated from class MR::SceneColors.

◆ MR_SceneColors_Type

Enumeration Type Documentation

◆ MR_SceneColors_Type

Enumerator
MR_SceneColors_Type_SelectedObjectMesh 
MR_SceneColors_Type_UnselectedObjectMesh 
MR_SceneColors_Type_SelectedObjectPoints 
MR_SceneColors_Type_UnselectedObjectPoints 
MR_SceneColors_Type_SelectedObjectLines 
MR_SceneColors_Type_UnselectedObjectLines 
MR_SceneColors_Type_SelectedObjectVoxels 
MR_SceneColors_Type_UnselectedObjectVoxels 
MR_SceneColors_Type_SelectedObjectDistanceMap 
MR_SceneColors_Type_UnselectedObjectDistanceMap 
MR_SceneColors_Type_BackFaces 
MR_SceneColors_Type_Labels 
MR_SceneColors_Type_Edges 
MR_SceneColors_Type_Points 
MR_SceneColors_Type_SelectedFaces 
MR_SceneColors_Type_SelectedEdges 
MR_SceneColors_Type_SelectedPoints 
MR_SceneColors_Type_SelectedFeatures 
MR_SceneColors_Type_UnselectedFeatures 
MR_SceneColors_Type_FeatureBackFaces 
MR_SceneColors_Type_SelectedFeatureDecorations 
MR_SceneColors_Type_UnselectedFeatureDecorations 
MR_SceneColors_Type_SelectedMeasurements 
MR_SceneColors_Type_UnselectedMeasurements 
MR_SceneColors_Type_SelectedTemporaryMeasurements 
MR_SceneColors_Type_UnselectedTemporaryMeasurements 
MR_SceneColors_Type_Count 

Function Documentation

◆ MR_SceneColors_get()

MRC_API const MR_Color * MR_SceneColors_get ( MR_SceneColors_Type type)

Generated from a method of class MR::SceneColors named get. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneColors_getName()

MRC_API const char * MR_SceneColors_getName ( MR_SceneColors_Type type)

Generated from a method of class MR::SceneColors named getName.

◆ MR_SceneColors_OffsetMutablePtr()

MRC_API MR_SceneColors * MR_SceneColors_OffsetMutablePtr ( MR_SceneColors * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_SceneColors_OffsetPtr()

MRC_API const MR_SceneColors * MR_SceneColors_OffsetPtr ( const MR_SceneColors * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_SceneColors_set()

MRC_API void MR_SceneColors_set ( MR_SceneColors_Type type,
const MR_Color * color )

Generated from a method of class MR::SceneColors named set. Parameter color can not be null. It is a single object.