Class Fixture
Represents a fixture used to hold workpieces during machining operations.
public class Fixture : IGetSolid, IMakeXmlSource, IDisplayee, IExpandToBox3d, IGetAnchoredDisplayeeList, IGetAsmb, IGetAnchor, IGetTopoIndex, IDisposable, IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable
- Inheritance
-
Fixture
- Implements
- Inherited Members
- Extension Methods
Constructors
Fixture()
Initializes a new instance of the Fixture class.
public Fixture()
Fixture(XElement, string, string)
Initializes a new instance of the Fixture class from XML.
public Fixture(XElement src, string baseDirectory, string relFile)
Parameters
src
XElementThe XML element containing fixture data.
baseDirectory
stringThe base directory for resolving relative paths.
relFile
stringThe relative file path.
Fields
XName
Name for XML IO.
public static string XName
Field Value
Properties
Asmb
Gets the assembly that contains the fixture components.
public Asmb Asmb { get; }
Property Value
CollidableName
Gets the name of the collidable object.
public string CollidableName { get; }
Property Value
CollisionFlag
Gets or sets the collision flag.
public CollisionFlag CollisionFlag { get; set; }
Property Value
Geom
public IGetStl Geom { get; set; }
Property Value
GeomAnchor
public Anchor GeomAnchor { get; }
Property Value
GeomToTableBranch
public Branch GeomToTableBranch { get; }
Property Value
GeomToTableTransformer
Transformer from Geometry origin to table (machine tool side) origin.
public ITransformer GeomToTableTransformer { get; set; }
Property Value
GeomToWorkpieceBranch
public Branch GeomToWorkpieceBranch { get; }
Property Value
GeomToWorkpieceTransformer
Transformer from Geometry origin to workpiece origin.
public ITransformer GeomToWorkpieceTransformer { get; set; }
Property Value
Solid
Gets the solid representation of the fixture.
public Solid Solid { get; }
Property Value
TableBuckle
Table buckle. Root. Solid anchor.
public Anchor TableBuckle { get; }
Property Value
ThemeColor
public static Vec3d ThemeColor { get; }
Property Value
WorkpieceBuckle
Gets the workpiece buckle anchor point.
public Anchor WorkpieceBuckle { get; }
Property Value
Methods
ClearGeomCache()
public void ClearGeomCache()
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
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
GetAnchoredCollidableNode()
Gets the anchored collidable node associated with this object.
public IAnchoredCollidableNode GetAnchoredCollidableNode()
Returns
- IAnchoredCollidableNode
The anchored collidable node.
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.
GetCollidableAnchor()
Gets the anchor associated with this collidable leaf.
public Anchor GetCollidableAnchor()
Returns
- Anchor
The anchor for this collidable leaf.
GetCollidee()
Get ICollidee.
public ICollidee GetCollidee()
Returns
GetSolid()
Gets the solid geometry object.
public Solid GetSolid()
Returns
- Solid
The solid geometry object.
MakeXmlSource(string, string, bool)
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, 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.
SetWorkpieceTransformationToGeomTopCenter()
Sets the workpiece transformation to position it at the top center of the fixture.
public void SetWorkpieceTransformationToGeomTopCenter()