Panel [email protected] 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /******************************************************************************/
  2. template<int i> void PanelImageEditor::LightEnabled(Params &p, C Str &t) {p.lights[i].enabled =TextBool(t); p.base.lights[i].enabled .getUTC();}
  3. template<int i> void PanelImageEditor::LightAngle(Params &p, C Str &t) {p.lights[i].angle =TextVec2(t); p.base.lights[i].angle .getUTC();}
  4. template<int i> void PanelImageEditor::LightIntensity(Params &p, C Str &t) {p.lights[i].intensity =TextFlt (t); p.base.lights[i].intensity .getUTC();}
  5. template<int i> void PanelImageEditor::LightBack(Params &p, C Str &t) {p.lights[i].back =TextFlt (t); p.base.lights[i].back .getUTC();}
  6. template<int i> void PanelImageEditor::LightHighlight(Params &p, C Str &t) {p.lights[i].highlight =TextFlt (t); p.base.lights[i].highlight .getUTC();}
  7. template<int i> void PanelImageEditor::LightHighlightCut(Params &p, C Str &t) {p.lights[i].highlight_cut =TextFlt (t); p.base.lights[i].highlight_cut .getUTC();}
  8. template<int i> void PanelImageEditor::LightSpecular(Params &p, C Str &t) {p.lights[i].specular =TextFlt (t); p.base.lights[i].specular .getUTC();}
  9. template<int i> void PanelImageEditor::LightSpecularBack(Params &p, C Str &t) {p.lights[i].specular_back =TextFlt (t); p.base.lights[i].specular_back .getUTC();}
  10. template<int i> void PanelImageEditor::LightSpecularExp(Params &p, C Str &t) {p.lights[i].specular_exp =TextFlt (t); p.base.lights[i].specular_exp .getUTC();}
  11. template<int i> void PanelImageEditor::LightSpecularHighlight(Params &p, C Str &t) {p.lights[i].specular_highlight =TextFlt (t); p.base.lights[i].specular_highlight .getUTC();}
  12. template<int i> void PanelImageEditor::LightSpecularHighlightCut(Params &p, C Str &t) {p.lights[i].specular_highlight_cut=TextFlt (t); p.base.lights[i].specular_highlight_cut.getUTC();}
  13. template<int i> void PanelImageEditor::SectionSize(Params &p, C Str &t) {p.sections[i].size =TextFlt(t); p.base.sections[i].size .getUTC();}
  14. template<int i> void PanelImageEditor::SectionTopOffset(Params &p, C Str &t) {p.sections[i].top_offset=TextFlt(t); p.base.sections[i].top_offset.getUTC();}
  15. template<int i> void PanelImageEditor::SectionRoundDepth(Params &p, C Str &t) {p.sections[i].round_depth =TextFlt (t); p.base.sections[i].round_depth .getUTC();}
  16. template<int i> void PanelImageEditor::SectionOuterDepth(Params &p, C Str &t) {p.sections[i].outer_depth =TextFlt (t); p.base.sections[i].outer_depth .getUTC();}
  17. template<int i> void PanelImageEditor::SectionInnerDepth(Params &p, C Str &t) {p.sections[i].inner_depth =TextFlt (t); p.base.sections[i].inner_depth .getUTC();}
  18. template<int i> void PanelImageEditor::SectionInnerDistance(Params &p, C Str &t) {p.sections[i].inner_distance=TextFlt (t); p.base.sections[i].inner_distance.getUTC();}
  19. template<int i> void PanelImageEditor::SectionSmoothDepth(Params &p, C Str &t) {p.sections[i].smooth_depth =TextVec2(t); p.base.sections[i].smooth_depth .getUTC();}
  20. template<int i> void PanelImageEditor::SectionSpecular(Params &p, C Str &t) {p.sections[i].specular =TextFlt (t); p.base.sections[i].specular .getUTC();}
  21. template<int i> void PanelImageEditor::SectionColor(Params &p, C Str &t) {p.sections[i].color =TextVec4(t); p.base.sections[i].color .getUTC();}
  22. template<int i> void PanelImageEditor::SectionOuterColor(Params &p, C Str &t) {p.sections[i].outer_color =TextVec4(t); p.base.sections[i].outer_color .getUTC();}
  23. template<int i> void PanelImageEditor::SectionInnerColor(Params &p, C Str &t) {p.sections[i].inner_color =TextVec4(t); p.base.sections[i].inner_color .getUTC();}
  24. template<int i> void PanelImageEditor::SectionColorTop(Params &p, C Str &t) {p.sections[i].color_top =TextVec4(t); p.base.sections[i].color_top .getUTC();}
  25. template<int i> void PanelImageEditor::SectionColorBottom(Params &p, C Str &t) {p.sections[i].color_bottom =TextVec4(t); p.base.sections[i].color_bottom .getUTC();}
  26. template<int i> void PanelImageEditor::SectionColorLeft(Params &p, C Str &t) {p.sections[i].color_left =TextVec4(t); p.base.sections[i].color_left .getUTC();}
  27. template<int i> void PanelImageEditor::SectionColorRight(Params &p, C Str &t) {p.sections[i].color_right =TextVec4(t); p.base.sections[i].color_right .getUTC();}
  28. template<int i> void PanelImageEditor::SectionOuterBorderColor(Params &p, C Str &t) {p.sections[i].outer_border_color=TextVec4(t); p.base.sections[i].outer_border_color.getUTC();}
  29. template<int i> void PanelImageEditor::SectionInnerBorderColor(Params &p, C Str &t) {p.sections[i].inner_border_color=TextVec4(t); p.base.sections[i].inner_border_color.getUTC();}
  30. template<int i> void PanelImageEditor::SectionPrevBorderColor(Params &p, C Str &t) {p.sections[i]. prev_border_color=TextVec4(t); p.base.sections[i]. prev_border_color.getUTC();}
  31. template<int i> Str PanelImageEditor::SectionDepthOverlay(C Params &p ) {return Proj.elmFullName(p.base.sections[i].depth_overlay_id);}
  32. template<int i> void PanelImageEditor::SectionDepthOverlay(Params &p, C Str &t) { p.base.sections[i].depth_overlay_id=Proj.findElmImageID(t); p.base.sections[i].depth_overlay.getUTC();}
  33. template<int i> void PanelImageEditor::SectionDepthOverlayBlur(Params &p, C Str &t) {p.sections[i].depth_overlay_params.blur =TextInt (t); p.base.sections[i].depth_overlay_params.blur .getUTC();}
  34. template<int i> void PanelImageEditor::SectionDepthOverlayBlurClamp(Params &p, C Str &t) {p.sections[i].depth_overlay_params.blur_clamp=TextBool(t); p.base.sections[i].depth_overlay_params.blur_clamp.getUTC();}
  35. template<int i> void PanelImageEditor::SectionDepthOverlayUVScale(Params &p, C Str &t) {p.sections[i].depth_overlay_params.uv_scale =TextFlt (t); p.base.sections[i].depth_overlay_params.uv_scale .getUTC();}
  36. template<int i> void PanelImageEditor::SectionDepthOverlayUVOffset(Params &p, C Str &t) {p.sections[i].depth_overlay_params.uv_offset =TextVec2(t); p.base.sections[i].depth_overlay_params.uv_offset .getUTC();}
  37. template<int i> void PanelImageEditor::SectionDepthOverlayIntensity(Params &p, C Str &t) {p.sections[i].depth_overlay_params.intensity =TextFlt (t); p.base.sections[i].depth_overlay_params.intensity .getUTC();}
  38. template<int i> void PanelImageEditor::SectionDepthOverlayMode(Params &p, C Str &t) {p.sections[i].depth_overlay_params.mode =(PanelImageParams::ImageParams::MODE)TextInt(t); p.base.sections[i].depth_overlay_params.mode.getUTC();}
  39. template<int i> void PanelImageEditor::SectionDepthNoiseBlur(Params &p, C Str &t) {p.sections[i].depth_noise.blur =TextInt(t); p.base.sections[i].depth_noise.blur .getUTC();}
  40. template<int i> void PanelImageEditor::SectionDepthNoiseUVScale(Params &p, C Str &t) {p.sections[i].depth_noise.uv_scale =TextFlt(t); p.base.sections[i].depth_noise.uv_scale .getUTC();}
  41. template<int i> void PanelImageEditor::SectionDepthNoiseIntensity(Params &p, C Str &t) {p.sections[i].depth_noise.intensity=TextFlt(t); p.base.sections[i].depth_noise.intensity.getUTC();}
  42. template<int i> void PanelImageEditor::SectionDepthNoiseMode(Params &p, C Str &t) {p.sections[i].depth_noise.mode =(PanelImageParams::ImageParams::MODE)TextInt(t); p.base.sections[i].depth_noise.mode.getUTC();}
  43. template<int i> Str PanelImageEditor::SectionColorOverlay(C Params &p ) {return Proj.elmFullName(p.base.sections[i].color_overlay_id);}
  44. template<int i> void PanelImageEditor::SectionColorOverlay(Params &p, C Str &t) { p.base.sections[i].color_overlay_id=Proj.findElmImageID(t); p.base.sections[i].color_overlay.getUTC();}
  45. template<int i> void PanelImageEditor::SectionColorOverlayBlur(Params &p, C Str &t) {p.sections[i].color_overlay_params.blur =TextInt (t); p.base.sections[i].color_overlay_params.blur .getUTC();}
  46. template<int i> void PanelImageEditor::SectionColorOverlayBlurClamp(Params &p, C Str &t) {p.sections[i].color_overlay_params.blur_clamp=TextBool(t); p.base.sections[i].color_overlay_params.blur_clamp.getUTC();}
  47. template<int i> void PanelImageEditor::SectionColorOverlayUVScale(Params &p, C Str &t) {p.sections[i].color_overlay_params.uv_scale =TextFlt (t); p.base.sections[i].color_overlay_params.uv_scale .getUTC();}
  48. template<int i> void PanelImageEditor::SectionColorOverlayUVOffset(Params &p, C Str &t) {p.sections[i].color_overlay_params.uv_offset =TextVec2(t); p.base.sections[i].color_overlay_params.uv_offset .getUTC();}
  49. template<int i> void PanelImageEditor::SectionColorOverlayUVWarp(Params &p, C Str &t) {p.sections[i].color_overlay_params.uv_warp =TextFlt (t); p.base.sections[i].color_overlay_params.uv_warp .getUTC();}
  50. template<int i> void PanelImageEditor::SectionColorOverlayIntensity(Params &p, C Str &t) {p.sections[i].color_overlay_params.intensity =TextFlt (t); p.base.sections[i].color_overlay_params.intensity .getUTC();}
  51. template<int i> void PanelImageEditor::SectionColorOverlayMode(Params &p, C Str &t) {p.sections[i].color_overlay_params.mode =(PanelImageParams::ImageParams::MODE)TextInt(t); p.base.sections[i].color_overlay_params.mode.getUTC();}
  52. template<int i> void PanelImageEditor::SectionColorNoiseBlur(Params &p, C Str &t) {p.sections[i].color_noise.blur =TextInt(t); p.base.sections[i].color_noise.blur .getUTC();}
  53. template<int i> void PanelImageEditor::SectionColorNoiseUVScale(Params &p, C Str &t) {p.sections[i].color_noise.uv_scale =TextFlt(t); p.base.sections[i].color_noise.uv_scale .getUTC();}
  54. template<int i> void PanelImageEditor::SectionColorNoiseUVWarp(Params &p, C Str &t) {p.sections[i].color_noise.uv_warp =TextFlt(t); p.base.sections[i].color_noise.uv_warp .getUTC();}
  55. template<int i> void PanelImageEditor::SectionColorNoiseIntensity(Params &p, C Str &t) {p.sections[i].color_noise.intensity=TextFlt(t); p.base.sections[i].color_noise.intensity.getUTC();}
  56. template<int i> void PanelImageEditor::SectionColorNoiseMode(Params &p, C Str &t) {p.sections[i].color_noise.mode =(PanelImageParams::ImageParams::MODE)TextInt(t); p.base.sections[i].color_noise.mode.getUTC();}
  57. template<int i> Str PanelImageEditor::SectionReflection(C Params &p ) {return Proj.elmFullName(p.base.sections[i].reflection_id);}
  58. template<int i> void PanelImageEditor::SectionReflection(Params &p, C Str &t) { p.base.sections[i].reflection_id=Proj.findElmImageID(t); p.base.sections[i].reflection.getUTC();}
  59. template<int i> void PanelImageEditor::SectionReflectionIntensity(Params &p, C Str &t) {p.sections[i].reflection_intensity=TextFlt(t); p.base.sections[i].reflection_intensity.getUTC();}
  60. /******************************************************************************/