Class MultiFormRakeFaceCuttingPara
- Namespace
- Hi.MillingForces.RakeFaceCuttingParas
- Assembly
- HiMech.dll
Represents a multi-form rake face cutting parameter set that can handle multiple flute forms. Internal Use Only.
public class MultiFormRakeFaceCuttingPara : ICuttingPara, IGetCuttingPara, IMakeXmlSource, INameNote
- Inheritance
-
MultiFormRakeFaceCuttingPara
- Implements
- Inherited Members
- Extension Methods
Constructors
MultiFormRakeFaceCuttingPara(int)
Initializes a new instance of the MultiFormRakeFaceCuttingPara class with the specified number of flute forms.
public MultiFormRakeFaceCuttingPara(int fluteFormNum)
Parameters
fluteFormNumintThe number of flute forms to initialize.
MultiFormRakeFaceCuttingPara(XElement, string)
Initializes a new instance of the MultiFormRakeFaceCuttingPara class from XML data.
public MultiFormRakeFaceCuttingPara(XElement src, string baseDirectory)
Parameters
srcXElementThe source XML element.
baseDirectorystringThe base directory for resolving relative paths.
Properties
ElementNum
Gets the total number of elements in this parameter set.
public int ElementNum { get; }
Property Value
FluteFormNum
Gets the number of flute forms in this parameter set.
public int FluteFormNum { get; }
Property Value
LocalRakeFaceCuttingParas
Gets or sets the array of local rake face cutting parameters for each flute form.
public RakeFaceCuttingPara[] LocalRakeFaceCuttingParas { get; set; }
Property Value
Name
Gets or sets the name of this parameter set.
public string Name { get; set; }
Property Value
Note
Gets or sets additional notes about this parameter set.
public string Note { get; set; }
Property Value
XName
Gets the XML element name for this type.
public static string XName { get; }
Property Value
XmlSourceFile
Gets or sets the XML source file path.
public string XmlSourceFile { get; set; }
Property Value
Methods
CloneTemplate()
Creates a clone of this parameter set as a template.
public ICuttingPara CloneTemplate()
Returns
- ICuttingPara
A cloned instance of this parameter set.
GenUnitParas()
Generates a list of unit cutting parameters.
public List<ICuttingPara> GenUnitParas()
Returns
- List<ICuttingPara>
A list of unit cutting parameters.
GetCuttingPara()
Gets this instance as an ICuttingPara.
public ICuttingPara GetCuttingPara()
Returns
- ICuttingPara
This instance.
GetElementByIndex(int)
Gets the value of an element at the specified index.
public double GetElementByIndex(int elementIndex)
Parameters
elementIndexintThe index of the element to get.
Returns
- double
The value of the element at the specified index.
GetLocalRakeFaceCuttingPara(int)
Gets the local rake face cutting parameters for the specified flute index.
public RakeFaceCuttingPara GetLocalRakeFaceCuttingPara(int fluteIndex)
Parameters
fluteIndexintThe zero-based index of the flute.
Returns
- RakeFaceCuttingPara
The rake face cutting parameters for the specified flute.
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state
SetElementByIndex(int, double)
Sets the value of an element at the specified index.
public void SetElementByIndex(int elementIndex, double v)
Parameters
ToString()
Returns a string representation of this parameter set.
public override string ToString()
Returns
- string
A string containing the name and note of this parameter set.
ToTemplateXElement()
Get XElement for templating.
public XElement ToTemplateXElement()