VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtVrfScenarioRemapFunctions.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtVrfScenarioRemapFunction.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
11
13
14
#pragma once
15
16
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
17
#include <
vrvUtil/DtVirtualBaseClass.h
>
18
19
#include <
vrfutil/scenario.h
>
20
21
class
DtSimulationAddress;
22
class
QWidget
;
23
24
namespace
makVrv
25
{
26
class
DtDe;
27
}
28
29
namespace
makVrf
30
{
31
class
DtRemappingDialog;
32
33
class
DT_DLL_VRFGUICOREQT
DtVrfScenarioRemapFunction
34
{
35
public
:
36
38
DtVrfScenarioRemapFunction
(
makVrv::DtDe
& de,
QWidget
* parent);
39
41
virtual
~
DtVrfScenarioRemapFunction
();
42
43
public
:
44
virtual
DtRemappingFcn
remappingFunction() = 0;
45
46
protected
:
47
makVrv::DtDe
&
myDe
;
48
};
49
50
class
DT_DLL_VRFGUICOREQT
DtVrfScenarioRemapFunctionCreator
51
{
52
public
:
53
virtual
DtVrfScenarioRemapFunction
* create(
makVrv::DtDe
&,
QWidget
* parent) = 0;
54
};
55
56
class
DT_DLL_VRFGUICOREQT
DtVrfScenarioRemapFactory
:
public
makVrv::DtVirtualBaseClass
57
{
58
public
:
60
DtVrfScenarioRemapFactory
(
makVrv::DtDe
&);
61
62
virtual
~
DtVrfScenarioRemapFactory
();
63
65
static
DtVrfScenarioRemapFactory
& instance(
makVrv::DtDe
& de);
66
70
virtual
DtVrfScenarioRemapFunction
* createRemapFunction(
const
std::string&,
QWidget
* parent);
71
73
virtual
void
addRemappingFunction(
const
std::string&,
DtVrfScenarioRemapFunctionCreator
*);
74
virtual
void
removeRemappingFunction(
const
std::string&);
75
76
protected
:
77
typedef
std::map<std::string, DtVrfScenarioRemapFunctionCreator*>
DtRemappingCreatorMap
;
78
79
DtRemappingCreatorMap
myRemappingFunctions
;
80
makVrv::DtDe
&
myDe
;
81
};
82
83
class
DT_DLL_VRFGUICOREQT
DtRemapMissingBackends
:
public
DtVrfScenarioRemapFunction
84
{
85
public
:
87
DtRemapMissingBackends
(
makVrv::DtDe
& de,
QWidget
* parent);
88
90
virtual
~
DtRemapMissingBackends
();
91
92
public
:
93
virtual
DtRemappingFcn
remappingFunction();
94
95
protected
:
96
static
bool
remapMissingBackends(
DtBackendMap
* map,
void
* usr);
97
virtual
bool
processRemapMissingBackends(
DtBackendMap
* map);
98
99
virtual
DtRemappingDialog
* createRemappingDialog(
makVrv::DtDe
&,
DtBackendMap
*,
QWidget
*);
100
101
protected
:
102
QWidget
*
myParent
;
103
};
104
105
class
DT_DLL_VRFGUICOREQT
DtRemapMissingBackendsCreator
:
public
DtVrfScenarioRemapFunctionCreator
106
{
107
public
:
108
virtual
DtVrfScenarioRemapFunction
* create(
makVrv::DtDe
&,
QWidget
* parent);
109
};
110
111
class
DT_DLL_VRFGUICOREQT
DtAutoRemapMissingBackends
:
public
DtVrfScenarioRemapFunction
112
{
113
public
:
115
DtAutoRemapMissingBackends
(
makVrv::DtDe
& de,
QWidget
* parent);
116
118
virtual
~
DtAutoRemapMissingBackends
();
119
120
public
:
121
virtual
DtRemappingFcn
remappingFunction();
122
123
protected
:
124
static
bool
autoRemapMissingBackends(
DtBackendMap
* map,
void
* usr);
125
virtual
bool
processAutoRemapMissingBackends(
DtBackendMap
* map);
126
128
virtual
void
getRemappingAddress(DtSimulationAddress& remapAddress);
129
};
130
131
class
DT_DLL_VRFGUICOREQT
DtAutoRemapMissingBackendsCreator
:
public
DtVrfScenarioRemapFunctionCreator
132
{
133
public
:
134
virtual
DtVrfScenarioRemapFunction
* create(
makVrv::DtDe
&,
QWidget
* parent);
135
};
136
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)