Class CoatingMaterial
Represents a coating material used in cutting tools.
public class CoatingMaterial : CutterMaterial, ISurfaceMaterial, IStructureMaterial, IMakeXmlSource, IDuplicate, INameNote, IToXElement
- Inheritance
-
CoatingMaterial
- Implements
- Inherited Members
- Extension Methods
Constructors
CoatingMaterial()
Initializes a new instance of the CoatingMaterial class.
public CoatingMaterial()
CoatingMaterial(CoatingMaterial)
Initializes a new instance of the CoatingMaterial class by copying from another instance.
public CoatingMaterial(CoatingMaterial src)
Parameters
src
CoatingMaterialThe source coating material to copy from.
CoatingMaterial(XElement)
Initializes a new instance of the CoatingMaterial class from XML data.
public CoatingMaterial(XElement src)
Parameters
src
XElementThe XML element containing coating material data.
Properties
DefaultFrictionCoefficient
Gets the default friction coefficient for coating materials.
public static double DefaultFrictionCoefficient { get; }
Property Value
PreferedThickness_mm
Gets or sets the preferred thickness of the coating in millimeters.
public double PreferedThickness_mm { get; set; }
Property Value
PreferedThickness_um
Gets or sets the preferred thickness of the coating in micrometers.
public double PreferedThickness_um { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
Duplicate(params object[])
public object Duplicate(params object[] res)
Parameters
res
object[]
Returns
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public override XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
exhibitionOnly
boolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory
is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.
ToXElement()
Get the XElement to represent the object.
public override XElement ToXElement()