VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
simulationObjectEditorImpl
uiAggregateLoadoutsElement.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2018 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#include "
simulationObjectEditorImpl/simulationObjectEditorImplDefines.h
"
12
#include "
simulationObjectEditorImpl/uiAggregateElements.h
"
13
#include <
vrfutil/assembliesReaderWriter.h
>
14
15
class
DtComponentSystemDefinition
;
16
17
class
DT_DLL_simulationObjectEditorimpl
DtUiAggregateLoadoutsElement
:
public
DtUiAggregateElement
18
{
19
Q_OBJECT
20
21
public
:
23
DtUiAggregateLoadoutsElement
(
makVrv::DtDe
&);
24
26
virtual
~
DtUiAggregateLoadoutsElement
();
27
28
static
DtUiElement
*
CreatorFunction
(
makVrv::DtDe
&);
29
30
protected
:
31
virtual
void
updateAvailableItems();
32
virtual
void
removeSystem(
DtComponentSystemDefinition
*);
33
34
virtual
void
initializeCombo
(
DtUiTableWidgetComboBox
*);
35
virtual
void
setFromParameters
(
const
std::vector<DtReaderWriter*>& parentRw);
36
virtual
std::string
type
()
const
{
return
"Loadouts"
; };
37
38
virtual
void
processUiEvent
(
const
DtUiElementEvent
& e);
39
virtual
void
fillInTableFromSelection
(
DtReaderWriter
* rw);
40
41
virtual
DtAssembliesReaderWriter::RwRootNode
*
rootNodeFor
(
const
std::string& keyword)
const
;
42
virtual
DtAssembliesReaderWriter::RwRootNode
*
rollupRootNodeFor
(
const
std::string& keyword)
const
;
43
virtual
DtAssembliesReaderWriter::RwRootNode
* addAssemblyItem(
const
std::string& keyword)
const
;
44
45
protected
:
46
struct
LoadoutItem
47
{
48
LoadoutItem
() {};
49
LoadoutItem
(
const
DtString
& c,
const
DtString
& t) : category(c), type(t) {};
50
LoadoutItem
(
const
LoadoutItem
& orig) : category(orig.category), type(orig.type) {};
51
52
DtString
category;
53
DtString
type
;
54
};
55
56
std::map<std::string, std::string>
mySystemLoadoutItems
;
57
std::map<std::string, LoadoutItem>
myLoadoutItems
;
58
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)