示例#1
0
 public OutlinerMaterial(OutlinerScene scene, Int32 handle, Int32 parentHandle, String name, String type)
 {
     Scene = scene;
     Handle = handle;
     ParentHandle = parentHandle;
     Name = name;
     Type = type;
 }
示例#2
0
        public OutlinerLayer(OutlinerScene scene, Int32 handle, Int32 parentHandle, String name, Boolean isActive, Boolean isHidden, Boolean isFrozen, Boolean boxMode)
        {
            Scene = scene;
            Handle = handle;
            ParentHandle = parentHandle;
            Name = name;
            IsActive = isActive;

            IsHidden = isHidden;
            IsFrozen = isFrozen;
            BoxMode = boxMode;
        }
示例#3
0
        public OutlinerObject(OutlinerScene scene, Int32 objectNr, Int32 handle, Int32 parentHandle, Int32 layerHandle, Int32 materialHandle,
            String name, String objClass, String objSuperClass,
            Boolean isGroupHead, Boolean isGroupMember,
            Boolean isHidden, Boolean isFrozen, Boolean boxMode)
        {
            Scene = scene;
            ObjectNr = objectNr;

            Handle = handle;
            ParentHandle = parentHandle;
            LayerHandle = layerHandle;
            MaterialHandle = materialHandle;

            Name = name;
            Class = objClass;
            SuperClass = objSuperClass;

            IsGroupHead = isGroupHead;
            IsGroupMember = isGroupMember;

            IsHidden = isHidden;
            IsFrozen = isFrozen;
            BoxMode = boxMode;
        }
示例#4
0
 public TreeDragDropHandler(Outliner.TreeView tree, OutlinerScene data)
     : base(tree, null)
 {
     Data = data;
 }
示例#5
0
      public TreeView()
      {
         InitializeComponent();

         this.SetStyle(ControlStyles.UserPaint, true);
         this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
         this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

         AllowDrop = true;

         Scene = new OutlinerScene();
         Style = new TreeStyle(this);
         Filter = new OutlinerFilter(this);

         ListMode = OutlinerListMode.Hierarchy;

         IconClickAction = IconClickAction.Hide;
         ShowNodeHideButton = true;
         InvertNodeHideButton = false;
         ShowNodeFreezeButton = true;
         ShowNodeBoxModeButton = false;

         HighlighLastSelectedObject = false;

         AutoExpandHierarchy = false;
         AutoExpandLayer = false;
         AutoExpandMaterial = false;

         ExpandHierarchyKey = Keys.Control;
         DragMouseButton = MouseButtons.Middle;
         DoubleClickAction = DoubleClickAction.Rename;


         _treeNodes = new Dictionary<OutlinerNode, TreeNode>();
         _selectedNodes = new HashSet<OutlinerNode>();
         _expandedNodeHandles = new HashSet<Int32>();

         _treeDragDropHandler = new TreeDragDropHandler(this, Scene);

         _updateTimer = new Timer();
         _updateTimer.Interval = 40;
         _updateTimer.Tick += new EventHandler(updateTimer_Tick);

         _sortTimer = new Timer();
         _sortTimer.Interval = 60;
         _sortTimer.Tick += new EventHandler(sortTimer_Tick);

         _updateWaitingForSort = false;

         _ensureSelectionVisibleTimer = new Timer();
         _ensureSelectionVisibleTimer.Interval = 50;
         _ensureSelectionVisibleTimer.Tick += new EventHandler(_ensureSelectionVisibleTimer_Tick);
         _ensureSelectionVisibleAction = EnsureSelectionVisibleAction.None;
         _ensureSelectionVisibleWaitingForSort = false;
      }