Class UniformContourTray
- Namespace
- Hi.Milling.FluteContours
- Assembly
- HiMech.dll
Represents a uniform contour tray for milling tool flutes.
public class UniformContourTray : IContourTray, IMakeXmlSource, IExpandToBox3d, IUpdateByContent, IClearCache
- Inheritance
-
UniformContourTray
- Implements
- Inherited Members
- Extension Methods
Constructors
UniformContourTray()
Initializes a new instance of the UniformContourTray class.
public UniformContourTray()
UniformContourTray(XElement, string, params object[])
Ctor.
public UniformContourTray(XElement src, string baseDirectory, params object[] res)
Parameters
src
XElementXML
baseDirectory
stringBase directory path for resolving relative paths
res
object[]Additional optional resources
Properties
BaselineContourShiftAngle_deg
Gets or sets the baseline contour shift angle in degrees.
public double BaselineContourShiftAngle_deg { get; set; }
Property Value
BaselineOneContour
Gets or sets the baseline contour.
public FluteContour BaselineOneContour { get; set; }
Property Value
TrackNum
Gets or sets the number of tracks in the contour tray.
public int TrackNum { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
ClearCache()
Clears any cached data held by the implementing object.
public void ClearCache()
Duplicate(IGetZrList)
Creates a duplicate of this contour tray with the specified ZR list host.
public IContourTray Duplicate(IGetZrList zrListHost)
Parameters
zrListHost
IGetZrListThe ZR list host to use for the duplicate
Returns
- IContourTray
A new contour tray instance
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box
GetFluteContourList()
Gets the list of flute contours contained in this tray.
public List<FluteContour> GetFluteContourList()
Returns
- List<FluteContour>
A list of flute contours.
GetFluteNum()
Gets the number of flutes.
public virtual int GetFluteNum()
Returns
- int
The number of flutes.
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
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state
UpdateByContent()
Updates the object based on its current content.
public void UpdateByContent()