private ILUT getNewLUT(LUTType lutType, IDoseObject dose, List <ContourInfo> contourList)
        {
            switch (lutType)
            {
            case LUTType.Contour:
                var contourLUT = new ContourLUT();
                var norm       = dose.Grid.GetNormalisationAmount();
                contourLUT.Create(contourList, dose.Grid.MaxVoxel.Value * dose.Grid.Scaling, dose.Grid.GetNormalisationAmount());
                return(contourLUT);

            case LUTType.Heat:
                var heatLUT = new HeatLUT();
                if (dose.Grid.ValueUnit == Unit.Gamma)
                {
                    heatLUT.Level  = .5f;
                    heatLUT.Window = 1;
                }
                else
                {
                    heatLUT.Level  = 0;
                    heatLUT.Window = 6;
                }
                return(heatLUT);
            }
            return(null);
        }
Пример #2
0
    public static Texture2D LoadLUT(LUTType type)
    {
        switch (type)
        {
        case LUTType.TransformInv_DisneyDiffuse: return(LoadLUT(s_LUTTransformInv_DisneyDiffuse));

        case LUTType.TransformInv_GGX: return(LoadLUT(s_LUTTransformInv_GGX));

        case LUTType.AmpDiffAmpSpecFresnel: return(LoadLUT(s_LUTAmplitude_DisneyDiffuse, s_LUTAmplitude_GGX, s_LUTFresnel_GGX));
        }

        return(null);
    }
 private ILUT getNewLUT(LUTType lutType, IDoseObject dose)
 {
     return(getNewLUT(lutType, dose, Workspace.Workspace.Current.ContourInfo));
 }