Class CodeXyzabcMachineTool
For legacy compatible. Use GeneralXyzabcMachineTool instead.
public class CodeXyzabcMachineTool : IXyzabcMachineTool, IDisplayee, IGetCollisionIndexPairs, IXyzabcChain, IGetXyzabcChain, IMachiningChain, IGetAsmb, IGetAnchor, IGetTopoIndex, IMakeXmlSource, IGetAnchorToSolidDictionary, IGetAnchoredDisplayeeList, IExpandToBox3d, INameNote
- Inheritance
-
CodeXyzabcMachineTool
- Implements
- Inherited Members
- Extension Methods
Constructors
CodeXyzabcMachineTool(CodeXyzabcChain)
Initializes a new instance of the CodeXyzabcMachineTool class.
public CodeXyzabcMachineTool(CodeXyzabcChain xyzabcChain)
Parameters
xyzabcChain
CodeXyzabcChainThe XYZABC chain instance.
CodeXyzabcMachineTool(XElement, string)
Initializes a new instance of the CodeXyzabcMachineTool class from XML.
public CodeXyzabcMachineTool(XElement src, string baseDirectory)
Parameters
src
XElementThe XML source element.
baseDirectory
stringThe base directory for resolving relative paths.
Properties
CollisionIndexPairs
Gets or sets the collection of collision index pairs.
public HashSet<CollisionIndexPair> CollisionIndexPairs { get; set; }
Property Value
EnableAutoGeneratingCollisionIndexPairsOnXmlLoaded
Gets or sets whether to automatically generate collision index pairs when loading from XML.
public bool EnableAutoGeneratingCollisionIndexPairsOnXmlLoaded { get; set; }
Property Value
McCodes
Gets the machine codes array.
public string[] McCodes { get; }
Property Value
- string[]
McTransformers
Gets the machine transformers array.
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
XName
Name of XML element.
public static string XName { get; }
Property Value
XyzabcChain
Gets the XYZABC chain instance.
public IXyzabcChain XyzabcChain { get; }
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
GenerateCollisionIndexPairs()
Generates collision index pairs for the machine tool components.
public void GenerateCollisionIndexPairs()
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 CodeXyzabcMachineTool 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.