Class StepColorNode
- Namespace
- Hi.MachiningProcs
- Assembly
- HiNc.dll
A node of a StepColorTree: a StepColorGroup or a StepColorLeaf. The nodes of a list are tried in order; the first whose When holds takes the step — a leaf gives it its color, a group hands it to the group's own children, where only they are tried. A node without a condition takes every step that reaches it: the list's “otherwise”.
public abstract class StepColorNode
- Inheritance
-
StepColorNode
- Derived
- Inherited Members
- Extension Methods
Fields
IdLimit
The ids are below this: 1 ≤ Id < 2^20.
public const int IdLimit = 1048576
Field Value
Properties
Id
The number the node is known by: the value of the tree's step property is the id of the leaf a step falls into. 1 ≤ Id < IdLimit. 0 is a node not numbered yet: StepColorTree numbers it from NextId when the tree is written, cloned or compiled, so a tree built in a script needs no ids; a number is never given to a second node.
public int Id { get; set; }
Property Value
IsOtherwise
Whether the node takes every step that reaches it.
public bool IsOtherwise { get; }
Property Value
Name
The name shown. User text, not translated.
public string Name { get; set; }
Property Value
When
The condition; null is “otherwise”, which takes every step that reaches the node.
public StepColorCondition When { get; set; }
Property Value
Methods
Clone()
A deep copy, ids included.
public abstract StepColorNode Clone()