Interface IMechanism
A mechanism: a key Asmb holding the anchors and branches, a root anchor the kinematics are measured from, and the dictionary of the solids hung on those anchors. Every mechanism type — the stand-alone GeneralMechanism, the machining chains (IMachiningChain) and the two equipment faces — owns those three members itself and exposes them through this contract, so one topology editor, one XML reader/writer (MechanismXml) and one solid-sharing rule (MechanismSolidShare) serve them all. Which anchors and branches play which role (the buckles, the axes) is each mechanism's own business: plain properties the user sets, named and persisted by the mechanism itself.
Invariants (pinned by the mechanism invariant tests): the root anchor is inside the key assembly (an equipment with no chain mounted may report a null root); every key of the solid dictionary is reachable from the root; the dictionary returned is the live instance, edited in place, never a copy. The displayee list defaults to the anchors plus the solids that have one; implementers with their own display convention (a solid-only machine, a theme-colored fixture) override it.
public interface IMechanism : ITopo, IGetAsmb, IGetAnchor, IGetTopoIndex, IGetAnchoredDisplayeeList, IGetAnchorToSolidDictionary
- Inherited Members
- Extension Methods
Methods
GetAnchors()
Every anchor inside the key assembly at any depth, in DescendantAnchors() order; empty when there is no assembly.
IEnumerable<Anchor> GetAnchors()
Returns
- IEnumerable<Anchor>
The anchors of this mechanism.