1 #ifndef INCLUDE_ONCE_845F48B0_96A7_4917_936D_B8A24F58D657 2 #define INCLUDE_ONCE_845F48B0_96A7_4917_936D_B8A24F58D657 9 enum class PhaseFunctionType
16 inline QString toString(PhaseFunctionType type)
20 case PhaseFunctionType::General:
return "general";
21 case PhaseFunctionType::Achromatic:
return "achromatic";
22 case PhaseFunctionType::Smooth:
return "smooth";
24 return QString(
"bad type %1").arg(static_cast<int>(type));
27 inline PhaseFunctionType parsePhaseFunctionType(QString
const& type, QString
const& filename,
const int lineNumber)
29 if(type==
"general")
return PhaseFunctionType::General;
30 if(type==
"achromatic")
return PhaseFunctionType::Achromatic;
31 if(type==
"smooth")
return PhaseFunctionType::Smooth;
32 throw ParsingError(filename, lineNumber, QObject::tr(
"bad phase function type %1").arg(type));
35 enum SingleScatteringRenderMode
42 constexpr
const char* singleScatteringRenderModeNames[SSRM_COUNT]={
"on-the-fly",
"precomputed"};
43 inline QString toString(SingleScatteringRenderMode mode) {
return singleScatteringRenderModeNames[mode]; }