Class HierarchyTreeView
Tree view GUI for the MARS Simulation View hierarchy
Hierarchy to tree view starting code brought from
Inheritance
HierarchyTreeView
Syntax
public class HierarchyTreeView : TreeView
Constructors
HierarchyTreeView(TreeViewState, HierarchyState, Boolean, Boolean)
Declaration
public HierarchyTreeView(TreeViewState treeViewState, HierarchyState hierarchyState, bool isEnvironmentHierarchy, bool needsStateCached)
Parameters
Properties
horizontalOffset
Offset for tree view GUI drawing, used for horizontal scrolling
Declaration
public float horizontalOffset { get; protected set; }
Property Value
MaxHeight
Declaration
public float MaxHeight { get; set; }
Property Value
selectedRowY
Declaration
public float selectedRowY { get; set; }
Property Value
Methods
BuildRoot()
Declaration
protected override TreeViewItem BuildRoot()
Returns
Type |
Description |
TreeViewItem |
|
BuildRows(TreeViewItem)
Declaration
protected override IList<TreeViewItem> BuildRows(TreeViewItem treeRoot)
Parameters
Type |
Name |
Description |
TreeViewItem |
treeRoot |
|
Returns
Type |
Description |
IList<TreeViewItem> |
|
CacheState()
Declaration
DoubleClickedItem(Int32)
Declaration
protected override void DoubleClickedItem(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Declaration
public Vector2 DrawScrollingTreeView(Vector2 scrollPosition, ref bool scrollToSelected, bool enabled)
Parameters
Type |
Name |
Description |
Vector2 |
scrollPosition |
|
Boolean |
scrollToSelected |
|
Boolean |
enabled |
|
Returns
Finalize()
Declaration
protected void Finalize()
GetAncestors(Int32)
Declaration
protected override IList<int> GetAncestors(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
GetDescendantsThatHaveChildren(Int32)
Declaration
protected override IList<int> GetDescendantsThatHaveChildren(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
Declaration
public static void PingObjects(Transform[] selection)
Parameters
Type |
Name |
Description |
Transform[] |
selection |
|
RestoreState()
Declaration
public void RestoreState()
RowGUI(RowGUIArgs)
Declaration
protected override void RowGUI(RowGUIArgs args)
Parameters
Type |
Name |
Description |
RowGUIArgs |
args |
|
SelectionChanged(IList<Int32>)
Declaration
protected override void SelectionChanged(IList<int> selectedIds)
Parameters
UnsetPing()
Declaration
public static void UnsetPing()