• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 10546434957

25 Aug 2024 11:09AM UTC coverage: 75.832% (-0.2%) from 75.987%
10546434957

push

github

web-flow
Merge pull request #428 from DomCR/UnknownNonGraphicalObject

Unknown None Graphical Object

4853 of 7047 branches covered (68.87%)

Branch coverage included in aggregate %.

54 of 62 new or added lines in 11 files covered. (87.1%)

69 existing lines in 25 files now uncovered.

19285 of 24784 relevant lines covered (77.81%)

33698.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.25
/src/ACadSharp/Objects/VisualStyle.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Objects
4
{
5
        /// <summary>
6
        /// Represents a <see cref="VisualStyle"/> object
7
        /// </summary>
8
        /// <remarks>
9
        /// Object name <see cref="DxfFileToken.ObjectVisualStyle"/> <br/>
10
        /// Dxf class name <see cref="DxfSubclassMarker.VisualStyle"/>
11
        /// </remarks>
12
        [DxfName(DxfFileToken.ObjectVisualStyle)]
13
        [DxfSubClass(DxfSubclassMarker.VisualStyle)]
14
        public class VisualStyle : NonGraphicalObject
15
        {
16
                /// <inheritdoc/>
UNCOV
17
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
18

19
                /// <inheritdoc/>
UNCOV
20
                public override string ObjectName => DxfFileToken.ObjectVisualStyle;
×
21

22
                /// <inheritdoc/>
23
                public override string SubclassMarker => DxfSubclassMarker.VisualStyle;
33,120✔
24

25
                /// <summary>
26
                /// Raster file name
27
                /// </summary>
28
                [DxfCodeValue(1)]
29
                public string RasterFile { get; set; }
768✔
30

31
                /// <summary>
32
                /// Description
33
                /// </summary>
34
                [DxfCodeValue(2)]
35
                public string Description { get; set; }
2,304✔
36

37
                /// <summary>
38
                /// Type
39
                /// </summary>
40
                [DxfCodeValue(70)]
41
                public int Type { get; set; }
3,072✔
42

43
                //71        Face lighting model
44
                //0 =Invisible
45
                //1 = Visible
46
                //2 = Phong
47
                //3 = Gooch
48
                [DxfCodeValue(71)]
49
                public FaceLightingModelType FaceLightingModel { get; set; }
1,536✔
50

51
                //72        Face lighting quality
52
                //0 = No lighting
53
                //1 = Per face lighting
54
                //2 = Per vertex lighting
55
                [DxfCodeValue(72)]
56
                public FaceLightingQualityType FaceLightingQuality { get; set; }
1,536✔
57

58
                //73        Face color mode
59
                //0 = No color
60
                //1 = Object color
61
                //2 = Background color
62
                //3 = Custom color
63
                //4 = Mono color
64
                //5 = Tinted
65
                //6 = Desaturated
66
                [DxfCodeValue(73)]
67
                public FaceColorMode FaceColorMode { get; set; }
1,536✔
68

69
                //90
70
                //Face modifiers
71
                //0 = No modifiers
72
                //1 = Opacity
73
                //2 = Specular
74
                [DxfCodeValue(90)]
75
                public FaceModifierType FaceModifiers { get; set; }
21,504✔
76

77
                /// <summary>
78
                /// Face opacity level
79
                /// </summary>
80
                [DxfCodeValue(40)]
81
                public double FaceOpacityLevel { get; set; }
9,216✔
82

83
                /// <summary>
84
                /// Face specular level
85
                /// </summary>
86
                [DxfCodeValue(41)]
87
                public double FaceSpecularLevel { get; set; }
1,536✔
88

89
                /// <summary>
90
                /// Color
91
                /// </summary>
92
                [DxfCodeValue(62, 63)]
93
                public Color Color { get; set; }
7,296✔
94

95
                /// <summary>
96
                /// Face style mono color
97
                /// </summary>
98
                [DxfCodeValue(421)]
99
                public Color FaceStyleMonoColor { get; set; }
×
100

101
                //74
102
                //Edge style model
103
                //0 = No edges
104
                //1 = Isolines
105
                //2 = Facet edges
106

107
                //91
108

109
                //Edge style
110

111
                //64
112

113
                //Edge intersection color
114

115
                //65
116

117
                //Edge obscured color
118

119
                //75
120

121
                //Edge obscured linetype
122

123
                //175
124

125
                //Edge intersection linetype
126

127
                //42
128

129
                //Edge crease angle
130

131
                //92
132

133
                //Edge modifiers
134

135
                //66
136

137
                //Edge color
138

139
                //43
140

141
                //Edge opacity level
142

143
                //76
144

145
                //Edge width
146

147
                //77
148

149
                //Edge overhang
150

151
                //78
152

153
                //Edge jitter
154

155
                //67
156

157
                //Edge silhouette color
158

159
                //79
160

161
                //Edge silhouette width
162

163
                //170
164

165
                //Edge halo gap
166

167
                //171
168

169
                //Number of edge isolines
170

171
                //174
172

173
                //Edge style apply flag
174

175
                //93
176

177
                //Display style display settings
178

179
                //44        Brightness
180

181
                //173        Shadow type
182

183
                /// <summary>
184
                /// Edge hide precision flag
185
                /// </summary>
186
                [DxfCodeValue(290)]
187
                public bool PrecisionFlag { get; set; }
11,520✔
188

189
                /// <summary>
190
                /// Internal use only flag
191
                /// </summary>
192
                [DxfCodeValue(291)]
193
                public bool InternalFlag { get; internal set; }
2,304✔
194
        }
195
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc