VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtItemsListInterface.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2026 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 #include <vrvCore/DtElementEntry.h>
17 
18 #include <vrvUtil/DtUnicode.h>
19 
20 namespace makVrv
21 {
26  {
27  public:
28 
34  virtual void addSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType,
35  const std::string& displayName, int index, const std::string& icon) = 0;
36 
44  virtual void addSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType,
45  const std::string& displayName, int index, double r, double g , double b ) = 0;
46 
55  virtual void addSubTypeItem(const DtElementAttributes::ElementSubtypes& subType, DtElementID elementId, const std::string& displayName) = 0;
56 
59  virtual bool hasSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType) = 0;
60 
66  virtual void addTypeTopLevelItem(const DtElementEntry::ElementType& type, const std::string& displayName, int index,
67  const std::string& icon) = 0;
68 
77  virtual void addTypeItem(const DtElementEntry::ElementType& type, DtElementID elementId, const std::string& displayName) = 0;
78 
81  virtual bool hasTypeTopLevelItem(const DtElementEntry::ElementType& type) = 0;
82 
84  virtual void sortItems() = 0;
85 
87  virtual void removeItem(DtElementID id) = 0;
88 
92  virtual void renameItem(DtElementID id, const std::string& newName) = 0;
93 
96  virtual void updateItemIcon(DtElementID id) = 0;
97 
101  virtual void updateItemSubType(DtElementID id, int subType) = 0;
102 
104  virtual void setSelectedItems(const DtSelectionManager::IdSet& selected,
105  const DtSelectionManager::IdSet& deselected) = 0;
106 
108  virtual void updateElementsParent( DtElementID elementId, DtElementID parentId ) = 0;
109 
112  virtual void updateElementDisplayState( DtElementID elementId, int displayState ) = 0;
113 
115  virtual void refreshAllIcons() = 0;
116 
117  public:
118 
119  boost::signalslib::signal<void(DtElementID)> signal_itemAttachRequested;
120  boost::signalslib::signal<void (std::vector<DtElementID>)> signal_itemSelectionChanged;
121  };
122 }
Contains makVrv:DtSelectionManager class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
ElementSubtypes
Definition: DtElementAttributes.h:59
Interface for display the objects, terrains, observers in the scene in a list. Used by DtObjectsListW...
Definition: DtItemsListInterface.h:25
ElementType
Definition: DtElementEntry.h:26
Contains makVrv::DtElementAttributes class.
boost::signalslib::signal< void(DtElementID)> signal_itemAttachRequested
Definition: DtItemsListInterface.h:119
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
Contains makVrv::DtElementEntry class.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)