< Summary

Line coverage
100%
Covered lines: 27
Uncovered lines: 0
Coverable lines: 27
Total lines: 60
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
.ctor(...)100%11100%
get_FileName()100%11100%
get_IsHorizontalBlendingEnabled()100%11100%
get_IsVerticalBlendingEnabled()100%11100%
get_BumpMultiplier()100%11100%
get_Boost()100%11100%
get_IsColorCorrectionEnabled()100%11100%
get_IsClampingEnabled()100%11100%
get_ScalarChannel()100%11100%
get_ModifierBase()100%11100%
get_ModifierGain()100%11100%
get_Offset()100%11100%
get_Scale()100%11100%
get_Turbulence()100%11100%
get_TextureResolution()100%11100%

File(s)

https://raw.githubusercontent.com/JeremyAnsel/JeremyAnsel.Media.WavefrontObj/dbbfcd213b7c54f49194f82fcd56e790cca193c3/JeremyAnsel.Media.WavefrontObj/JeremyAnsel.Media.WavefrontObj/ObjMaterialMap.cs

#LineLine coverage
 1// <copyright file="ObjMaterialMap.cs" company="Jérémy Ansel">
 2// Copyright (c) 2017, 2019 Jérémy Ansel
 3// </copyright>
 4// <license>
 5// Licensed under the MIT license. See LICENSE.txt
 6// </license>
 7
 8namespace JeremyAnsel.Media.WavefrontObj
 9{
 10    [System.Diagnostics.DebuggerDisplay("Material Map:{FileName}")]
 11    public class ObjMaterialMap
 12    {
 41713        public ObjMaterialMap()
 14        {
 41715            this.IsHorizontalBlendingEnabled = true;
 41716            this.IsVerticalBlendingEnabled = true;
 41717            this.ScalarChannel = ObjMapChannel.Luminance;
 41718            this.ModifierBase = 0.0f;
 41719            this.ModifierGain = 1.0f;
 41720            this.Offset = new ObjVector3(0.0f, 0.0f, 0.0f);
 41721            this.Scale = new ObjVector3(1.0f, 1.0f, 1.0f);
 41722            this.Turbulence = new ObjVector3(0.0f, 0.0f, 0.0f);
 41723        }
 24
 25        public ObjMaterialMap(string? fileName)
 9926            :this()
 27        {
 9928            this.FileName = fileName;
 9929        }
 30
 45631        public string? FileName { get; set; }
 32
 53433        public bool IsHorizontalBlendingEnabled { get; set; }
 34
 53435        public bool IsVerticalBlendingEnabled { get; set; }
 36
 11437        public float BumpMultiplier { get; set; }
 38
 11439        public float Boost { get; set; }
 40
 11441        public bool IsColorCorrectionEnabled { get; set; }
 42
 11443        public bool IsClampingEnabled { get; set; }
 44
 59145        public ObjMapChannel ScalarChannel { get; set; }
 46
 53447        public float ModifierBase { get; set; }
 48
 53149        public float ModifierGain { get; set; }
 50
 56151        public ObjVector3 Offset { get; set; }
 52
 56153        public ObjVector3 Scale { get; set; }
 54
 56155        public ObjVector3 Turbulence { get; set; }
 56
 11457        public int TextureResolution { get; set; }
 58    }
 59}
 60