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) 2021 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 
19 #include <vrvUtil/DtUnicode.h>
20 
21 namespace makVrv
22 {
27  {
28  public:
29 
35  virtual void addSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType,
36  const std::string& displayName, int index, const std::string& icon) = 0;
37 
45  virtual void addSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType,
46  const std::string& displayName, int index, double r, double g , double b ) = 0;
47 
56  virtual void addSubTypeItem(const DtElementAttributes::ElementSubtypes& subType, DtElementID elementId, const std::string& displayName) = 0;
57 
60  virtual bool hasSubTypeTopLevelItem(const DtElementAttributes::ElementSubtypes& subType) = 0;
61 
67  virtual void addTypeTopLevelItem(const DtElementEntry::ElementType& type, const std::string& displayName, int index,
68  const std::string& icon) = 0;
69 
78  virtual void addTypeItem(const DtElementEntry::ElementType& type, DtElementID elementId, const std::string& displayName) = 0;
79 
82  virtual bool hasTypeTopLevelItem(const DtElementEntry::ElementType& type) = 0;
83 
85  virtual void sortItems() = 0;
86 
88  virtual void removeItem(DtElementID id) = 0;
89 
92  virtual void renameItem(DtElementID id, const std::string& newName) = 0;
93 
96  virtual void updateItemDamageState(DtElementID id, EntityStateListener::DamageState damageState) = 0;
97 
100  virtual void updateItemSubType(DtElementID id, int subType) = 0;
101 
103  virtual void setSelectedItems(const DtSelectionManager::IdSet& selected,
104  const DtSelectionManager::IdSet& deselected) = 0;
105 
106  public:
107 
108  boost::signalslib::signal<void(DtElementID)> signal_itemAttachRequested;
109  boost::signalslib::signal<void (std::vector<DtElementID>)> signal_itemSelectionChanged;
110  };
111 }
DamageState
Definition: DtEntityStateListener.h:64
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:57
Contains makVrv:DtEntityStateListener class.
Interface for display the objects, terrains, observers in the scene in a list. Used by DtObjectsListW...
Definition: DtItemsListInterface.h:26
ElementType
Definition: DtElementEntry.h:26
Contains makVrv::DtElementAttributes class.
boost::signalslib::signal< void(DtElementID)> signal_itemAttachRequested
Definition: DtItemsListInterface.h:108
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
Contains makVrv::DtElementEntry class.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)