public override int Initialize(int count = 1) { if (!Initialized) { m_ChromaTag = m_ChromaFilter.Tag; } return base.Initialize(count); }
public static FilterTag Append(this FilterTag tag, FilterTag newTag) { if (tag != null && newTag != null) newTag.AddInputLabel(tag); return newTag ?? tag; }
public bool ConnectedTo(FilterTag tag) { return (m_Index < tag.m_Index) ? tag.HasAncestor(this) : HasAncestor(tag); }
public bool HasAncestor(FilterTag ancestor) { return (this == ancestor) || ( m_Index > ancestor.m_Index && m_InputTags.Any(t => t.HasAncestor(ancestor))); }
public void AddInputLabel(FilterTag tag) { m_InputTags.Add(tag); }