< Summary

Line coverage
100%
Covered lines: 33
Uncovered lines: 0
Coverable lines: 33
Total lines: 76
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_Name()100%11100%
get_AmbientColor()100%11100%
get_DiffuseColor()100%11100%
get_EmissiveColor()100%11100%
get_SpecularColor()100%11100%
get_TransmissionColor()100%11100%
get_IlluminationModel()100%11100%
get_DissolveFactor()100%11100%
get_IsHaloDissolve()100%11100%
get_SpecularExponent()100%11100%
get_Sharpness()100%11100%
get_OpticalDensity()100%11100%
get_IsAntiAliasingEnabled()100%11100%
get_AmbientMap()100%11100%
get_DiffuseMap()100%11100%
get_EmissiveMap()100%11100%
get_SpecularMap()100%11100%
get_SpecularExponentMap()100%11100%
get_DissolveMap()100%11100%
get_DecalMap()100%11100%
get_DispMap()100%11100%
get_BumpMap()100%11100%
get_ReflectionMap()100%11100%

File(s)

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

#LineLine coverage
 1// <copyright file="ObjMaterial.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:{Name}")]
 11    public class ObjMaterial
 12    {
 80113        public ObjMaterial()
 14        {
 80115            this.ReflectionMap = new ObjMaterialReflectionMap();
 16
 80117            this.IlluminationModel = 2;
 80118            this.DissolveFactor = 1.0f;
 80119            this.Sharpness = 60;
 80120            this.OpticalDensity = 1.0f;
 80121        }
 22
 23        public ObjMaterial(string? name)
 19224            : this()
 25        {
 19226            this.Name = name;
 19227        }
 28
 124529        public string? Name { get; set; }
 30
 35431        public ObjMaterialColor? AmbientColor { get; set; }
 32
 31833        public ObjMaterialColor? DiffuseColor { get; set; }
 34
 31835        public ObjMaterialColor? EmissiveColor { get; set; }
 36
 31837        public ObjMaterialColor? SpecularColor { get; set; }
 38
 31839        public ObjMaterialColor? TransmissionColor { get; set; }
 40
 100541        public int IlluminationModel { get; set; }
 42
 101443        public float DissolveFactor { get; set; }
 44
 20445        public bool IsHaloDissolve { get; set; }
 46
 20147        public float SpecularExponent { get; set; }
 48
 100549        public int Sharpness { get; set; }
 50
 100551        public float OpticalDensity { get; set; }
 52
 21053        public bool IsAntiAliasingEnabled { get; set; }
 54
 74455        public ObjMaterialMap? AmbientMap { get; set; }
 56
 20757        public ObjMaterialMap? DiffuseMap { get; set; }
 58
 20759        public ObjMaterialMap? EmissiveMap { get; set; }
 60
 20761        public ObjMaterialMap? SpecularMap { get; set; }
 62
 20763        public ObjMaterialMap? SpecularExponentMap { get; set; }
 64
 20765        public ObjMaterialMap? DissolveMap { get; set; }
 66
 20767        public ObjMaterialMap? DecalMap { get; set; }
 68
 20769        public ObjMaterialMap? DispMap { get; set; }
 70
 20771        public ObjMaterialMap? BumpMap { get; set; }
 72
 225673        public ObjMaterialReflectionMap ReflectionMap { get; private set; }
 74    }
 75}
 76