Interface ICamApiVisualObjectIterator
Tree iterator over the visual objects of a view manager. Objects form a logical grouping tree via the Parent passed to CreateVisualObject (grouping for enumeration only - it does not nest transforms, visibility or lifetime), so traversal follows child / sibling / parent links; Reset returns to the root. Mirrors ICAMAPIGeometryTreeNodeIterator.
Namespace: CAMAPI.ViewPort
Assembly: CAMAPI.ViewPort.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("4CC71D07-3678-46DA-B2A3-658A688B0B1C")]
public interface ICamApiVisualObjectIterator
Methods
Current()
The visual object at the current position.
Declaration
ICamApiVisualObject Current()
Returns
| Type | Description |
|---|---|
| ICamApiVisualObject |
MoveToChild()
Move to the first child of the current object. False if it has none.
Declaration
bool MoveToChild()
Returns
| Type | Description |
|---|---|
| bool |
MoveToParent()
Move to the parent of the current object. False at the root.
Declaration
bool MoveToParent()
Returns
| Type | Description |
|---|---|
| bool |
MoveToSibling()
Move to the next sibling of the current object. False if it is the last.
Declaration
bool MoveToSibling()
Returns
| Type | Description |
|---|---|
| bool |
Reset()
Reset the iterator to the root of the scene.
Declaration
void Reset()