Class GeneralXyzabcMachineTool
General implementation of an XYZABC machine tool.
public class GeneralXyzabcMachineTool : IXyzabcMachineTool, IDisplayee, IGetCollisionIndexPairs, IXyzabcChain, IGetXyzabcChain, IMachiningChain, IGetAsmb, IGetAnchor, IGetTopoIndex, IMakeXmlSource, IGetAnchorToSolidDictionary, IGetAnchoredDisplayeeList, IExpandToBox3d, INameNote
- Inheritance
-
GeneralXyzabcMachineTool
- Implements
- Inherited Members
- Extension Methods
Constructors
GeneralXyzabcMachineTool(IXyzabcChain)
Initializes a new instance of the GeneralXyzabcMachineTool class.
public GeneralXyzabcMachineTool(IXyzabcChain xyzabcChain)
Parameters
xyzabcChain
IXyzabcChainXYZABC chain to use.
GeneralXyzabcMachineTool(XElement, string)
Initializes a new instance of the GeneralXyzabcMachineTool class from XML.
public GeneralXyzabcMachineTool(XElement src, string baseDirectory)
Parameters
Fields
XName
Name of XML element.
public static string XName
Field Value
Properties
CollisionIndexPairs
Collection of collision index pairs for collision detection.
public HashSet<CollisionIndexPair> CollisionIndexPairs { get; }
Property Value
EnableAutoGeneratingCollisionIndexPairsOnXmlLoaded
Gets or sets whether to automatically generate collision index pairs when loaded from XML.
public bool EnableAutoGeneratingCollisionIndexPairsOnXmlLoaded { get; set; }
Property Value
McCodes
Gets the machine coordinate code sequence for decoding the MC array.
public string[] McCodes { get; }
Property Value
- string[]
McTransformers
Gets the machine coordinate transformers.
public IDynamicRegular[] McTransformers { get; }
Property Value
Name
Gets or sets the name of the object.
public string Name { get; set; }
Property Value
Note
Gets or sets the descriptive note for the object.
public string Note { get; set; }
Property Value
TableAnchor
Anchor to attach fixture or workpiece. The anchor is the same as IXyzabcChain.Hi.Numerical.Xyzabc.IXyzabcChain.GetTableBuckle.
public Anchor TableAnchor { get; }
Property Value
ToolAnchor
Anchor to attach tool. The anchor is the same as IXyzabcChain.Hi.Numerical.Xyzabc.IXyzabcChain.GetToolBuckle.
public Anchor ToolAnchor { get; }
Property Value
XyzabcChain
XYZABC chain for this machine tool.
public IXyzabcChain XyzabcChain { get; }
Property Value
XyzabcChainFile
File path for XYZABC chain.
public string XyzabcChainFile { get; set; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
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
GetAnchor()
Get key anchor. (i.e. root anchor)
public Anchor GetAnchor()
Returns
- Anchor
key anchor
GetAnchorToSolidDictionary()
public Dictionary<Anchor, Solid> GetAnchorToSolidDictionary()
Returns
- Dictionary<Anchor, Solid>
A dictionary where keys are anchors and values are their associated solids.
GetAnchoredDisplayeeList()
Gets a list of anchored displayable objects.
public List<IAnchoredDisplayee> GetAnchoredDisplayeeList()
Returns
- List<IAnchoredDisplayee>
A list of IAnchoredDisplayee objects
GetAsmb()
Gets the key asmb.
public Asmb GetAsmb()
Returns
- Asmb
The key asmb.
GetCollisionIndexPairs()
Gets a collection of collision index pairs for collision detection.
public IEnumerable<CollisionIndexPair> GetCollisionIndexPairs()
Returns
- IEnumerable<CollisionIndexPair>
A collection of CollisionIndexPair objects.
GetMachiningChain()
public IMachiningChain GetMachiningChain()
Returns
GetMcCodeTransformerDictionary()
public Dictionary<string, IDynamicRegular> GetMcCodeTransformerDictionary()
Returns
GetTableBuckle()
Gets the table buckle anchor point.
public IGetAnchor GetTableBuckle()
Returns
- IGetAnchor
The table buckle anchor point.
GetToolBuckle()
Gets the tool buckle anchor point.
public IGetAnchor GetToolBuckle()
Returns
- IGetAnchor
The tool buckle anchor point.
GetTransformerA()
Get transformer A.
public DynamicRotation GetTransformerA()
Returns
- DynamicRotation
transformer A
GetTransformerB()
Get transformer B.
public DynamicRotation GetTransformerB()
Returns
- DynamicRotation
transformer B
GetTransformerC()
Get transformer C.
public DynamicRotation GetTransformerC()
Returns
- DynamicRotation
transformer C
GetTransformerX()
Get transformer X.
public DynamicTranslation GetTransformerX()
Returns
- DynamicTranslation
transformer X
GetTransformerY()
Get transformer Y.
public DynamicTranslation GetTransformerY()
Returns
- DynamicTranslation
transformer Y
GetTransformerZ()
Get transformer Z.
public DynamicTranslation GetTransformerZ()
Returns
- DynamicTranslation
transformer Z
GetXyzabcChain()
Get IXyzabcChain.
public IXyzabcChain GetXyzabcChain()
Returns
GetXyzabcMachineTool()
public GeneralXyzabcMachineTool GetXyzabcMachineTool()
Returns
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
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.