Class CylindroidHolder
Represents a cylindrical tool holder for machining operations.
public class CylindroidHolder : IHolder, ITopoDisplayee, IGetAsmb, IGetTopoIndex, IAnchoredDisplayee, IGetRootAnchor, IDisplayee, IExpandToBox3d, IGetAnchoredDisplayeeList, IGetBuckleAnchorList, IMakeXmlSource, IAbstractNote, IGetFletchBuckle, IDuplicate, INameNote, IGetSolid, IDisposable, IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable
- Inheritance
-
CylindroidHolder
- Implements
- Inherited Members
- Extension Methods
Constructors
CylindroidHolder()
Ctor.
public CylindroidHolder()
CylindroidHolder(Cylindroid)
Ctor.
public CylindroidHolder(Cylindroid cylindroid)
Parameters
cylindroidCylindroidThe cylindroid geometry for this holder.
CylindroidHolder(XElement, string, string)
Initializes a new instance of the CylindroidHolder class from XML.
public CylindroidHolder(XElement src, string baseDirectory, string relFile)
Parameters
srcXElementThe XML element containing holder data.
baseDirectorystringThe base directory for resolving relative paths.
relFilestringThe relative file path.
Fields
XName
XML Name.
public static string XName
Field Value
Properties
AbstractNote
Gets a descriptive note or abstract about the object.
public string AbstractNote { get; }
Property Value
Branch
Gets the branch connecting the fletch buckle to the tail buckle.
public Branch Branch { 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
Cylindroid
Gets or sets the cylindroid geometry that defines this holder.
public Cylindroid Cylindroid { get; set; }
Property Value
GeomAnchor
Equivalent of GetTailBuckle().
public Anchor GeomAnchor { 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
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bindBindBind 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
disposingbool
Duplicate(params object[])
Creates a deep copy of the object, excluding any source file references.
public object Duplicate(params object[] res)
Parameters
resobject[]Optional parameters that may be needed during the duplication process
Returns
- object
A new instance that is a deep copy of the original object
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dstBox3dDestination box
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.
GetBuckleAnchorList()
Get buckle anchors.
public List<Anchor> GetBuckleAnchorList()
Returns
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
GetFletchBuckle()
Get fletch buckle anchor. the anchor that generally connect to fixed part such as ground and triggering(motor)-side.
public Anchor GetFletchBuckle()
Returns
- Anchor
buckle anchor
GetRootAnchor()
Get root anchor.
public Anchor GetRootAnchor()
Returns
- Anchor
root anchor.
GetSolid()
Gets the solid geometry object.
public Solid GetSolid()
Returns
- Solid
The solid geometry object.
GetTailBuckle()
Tool Buckle. Generally locate on free-end-side.
public Anchor GetTailBuckle()
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
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
UpdateByCylindroid()
Update Branch By Cylindroid. Call the function if the Cylindroid content changed.
public void UpdateByCylindroid()