Interface ICamApiMcdNodeIterator
Depth-first iterator over an MCD tree, mirroring the geometry-tree iterator shape. After GetNodes the iterator points at the root; use MoveToChild / MoveToSibling / MoveToParent to navigate, Current to read the node.
Namespace: CAMAPI.TechOperation
Assembly: CAMAPI.TechOperation.dll
Syntax
[Guid("DB232E5F-19C3-4F0D-8867-5A57A1D0EC27")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamApiMcdNodeIterator
Methods
Current()
Get the node the iterator currently points at. Returns nil if the underlying tree is empty or the iterator was invalidated by a recalculation.
Declaration
ICamApiMcdNode Current()
Returns
| Type | Description |
|---|---|
| ICamApiMcdNode |
MoveToChild()
Move to the first child of the current node. Returns false if there is no child.
Declaration
bool MoveToChild()
Returns
| Type | Description |
|---|---|
| bool |
MoveToParent()
Move to the parent of the current node. Returns false if the current node is the root.
Declaration
bool MoveToParent()
Returns
| Type | Description |
|---|---|
| bool |
MoveToSibling()
Move to the next sibling of the current node. Returns false if there is no next sibling.
Declaration
bool MoveToSibling()
Returns
| Type | Description |
|---|---|
| bool |
Reset()
Reset the iterator back to the root of the tree.
Declaration
void Reset()