OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
DevLamp.cpp File Reference
#include "DevLamp.h"
#include <string>
Include dependency graph for DevLamp.cpp:

Go to the source code of this file.

Functions

static Slic3r::DevLamp::LIGHT_EFFECT _light_effect_parse (std::string effect_str)

Function Documentation

◆ _light_effect_parse()

Slic3r::DevLamp::LIGHT_EFFECT _light_effect_parse ( std::string effect_str)
static
5{
6 if (effect_str.compare("on") == 0)
8 else if (effect_str.compare("off") == 0)
10 else if (effect_str.compare("flashing") == 0)
12
14}
@ LIGHT_EFFECT_OFF
Definition DevLamp.h:18
@ LIGHT_EFFECT_UNKOWN
Definition DevLamp.h:20
@ LIGHT_EFFECT_ON
Definition DevLamp.h:17
@ LIGHT_EFFECT_FLASHING
Definition DevLamp.h:19

References Slic3r::DevLamp::LIGHT_EFFECT_FLASHING, Slic3r::DevLamp::LIGHT_EFFECT_OFF, Slic3r::DevLamp::LIGHT_EFFECT_ON, and Slic3r::DevLamp::LIGHT_EFFECT_UNKOWN.

Referenced by Slic3r::DevLamp::SetChamberLight().

Here is the caller graph for this function: