creaContours_lib
Main Page
Namespaces
Classes
Files
File List
File Members
InstantMembersNameList.cxx
Go to the documentation of this file.
1
/*# ---------------------------------------------------------------------
2
#
3
# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4
# pour la Sant�)
5
# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6
# Previous Authors : Laurent Guigues, Jean-Pierre Roux
7
# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8
#
9
# This software is governed by the CeCILL-B license under French law and
10
# abiding by the rules of distribution of free software. You can use,
11
# modify and/ or redistribute the software under the terms of the CeCILL-B
12
# license as circulated by CEA, CNRS and INRIA at the following URL
13
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14
# or in the file LICENSE.txt.
15
#
16
# As a counterpart to the access to the source code and rights to copy,
17
# modify and redistribute granted by the license, users are provided only
18
# with a limited warranty and the software's author, the holder of the
19
# economic rights, and the successive licensors have only limited
20
# liability.
21
#
22
# The fact that you are presently reading this means that you have had
23
# knowledge of the CeCILL-B license and that you accept its terms.
24
# ------------------------------------------------------------------------ */
25
26
27
//----------------------------------------------------------------------------------------------------------------
28
// Class definition include
29
//----------------------------------------------------------------------------------------------------------------
30
#include "
InstantMembersNameList.h
"
31
32
//----------------------------------------------------------------------------------------------------------------
33
// Class implementation
34
//----------------------------------------------------------------------------------------------------------------
37
//------------------------------------------------------------------------------------------------------------
38
// Constructors & Destructors
39
//------------------------------------------------------------------------------------------------------------
40
41
/*
42
* Create the InstantMembersNameList with empty data pointers
43
*/
44
InstantMembersNameList :: InstantMembersNameList
()
45
{
46
actualAxeNamesWrapp
=
new
NameWrapper
(
""
,
""
);
47
actualSourceImageNamesWrapp
=
new
NameWrapper
(
""
,
""
);
48
actualSectionImageNamesWrapp
=
new
NameWrapper
(
""
,
""
);
49
actualOutlineNamesWrapp
=
new
NameWrapper
(
""
,
""
);
50
}
51
52
/*
53
* Destroys the InstantMembersNameList
54
*/
55
InstantMembersNameList :: ~InstantMembersNameList
()
56
{
57
clean
();
58
outlinesNamesVector
.clear();
59
axesNamesVector
.clear();
60
}
61
62
//------------------------------------------------------------------------------------------------------------
63
// Methods
64
//------------------------------------------------------------------------------------------------------------
65
/*
66
* Sets the actual outline names pair
67
* @param thekeyName The key name asigned to the actual outline
68
* @param theRealName The real name asigned to the actual outline
69
*/
70
void
InstantMembersNameList :: setActualOutline
(std::string thekeyName, std::string theRealName )
71
{
72
actualOutlineNamesWrapp
->
setWrappingPair
(thekeyName, theRealName);
73
}
74
75
/*
76
* Sets the actual axes names pair
77
* @param thekeyName The key name asigned to the actual outline
78
* @param theRealName The real name asigned to the actual outline
79
*/
80
void
InstantMembersNameList :: addOutlineName
(std::string thekeyName, std::string theRealName)
81
{
82
NameWrapper
* outlineWrap =
new
NameWrapper
(thekeyName, theRealName);
83
outlinesNamesVector
.push_back(outlineWrap);
84
}
85
86
/*
87
* Sets the actual axes names pair
88
* @param thekeyName The key name asigned to the actual axe
89
* @param theRealName The real name asigned to the actual axe
90
*/
91
void
InstantMembersNameList :: setActualAxeWrap
(std::string thekeyName, std::string theRealName)
92
{
93
actualAxeNamesWrapp
-> setWrappingPair(thekeyName, theRealName);
94
}
95
96
/*
97
* Gets the actual axes key name
98
* @return actualAxeKeyName The key name asigned to the actual axe
99
*/
100
std::string
InstantMembersNameList :: getActualAxeKeyName
()
101
{
102
return
actualAxeNamesWrapp
->
getKeyName
();
103
}
104
105
/*
106
* Gets the actual axes key name
107
* @return actualSourceImageKeyName The key name asigned to the actual axe
108
*/
109
std::string
InstantMembersNameList :: getActualSourceImageKeyName
()
110
{
111
return
actualSourceImageNamesWrapp
->
getKeyName
();
112
}
113
114
/*
115
* Gets the actual axes key name
116
* @return actualSectionImageKeyName The key name asigned to the actual axe
117
*/
118
std::string
InstantMembersNameList :: getActualSectionImageKeyName
()
119
{
120
return
actualSourceImageNamesWrapp
->
getKeyName
();
121
}
122
123
/*
124
* Gets the vector of the key names of currect instant outlines
125
* @return vectorPairedNames The vector with the pair of outline names wrapping
126
*/
127
std::vector<NameWrapper *>
InstantMembersNameList :: getOutlinesNamesVector
()
128
{
129
return
outlinesNamesVector
;
130
}
131
132
/*
133
* Sets the actualSourceImage names pair
134
* @param thekeyName The key name asigned to the actual outline
135
* @param theRealName The real name asigned to the actual outline
136
*/
137
void
InstantMembersNameList :: setActualSourceImageNamesWrapp
(std::string thekeyName, std::string theRealName)
138
{
139
actualSourceImageNamesWrapp
=
new
NameWrapper
(thekeyName,theRealName);
140
}
141
142
/*
143
* Sets the actualSectionImage names pair
144
* @param thekeyName The key name asigned to the actual outline
145
* @param theRealName The real name asigned to the actual outline
146
*/
147
void
InstantMembersNameList :: setActualSectionImageNamesWrapp
(std::string thekeyName, std::string theRealName)
148
{
149
actualSectionImageNamesWrapp
=
new
NameWrapper
(thekeyName,theRealName);
150
}
151
152
/*
153
* Cleans the vector and the information of the instant members wrapping
154
*/
155
void
InstantMembersNameList :: clean
()
156
{
157
158
/*
159
if(!outlinesNamesVector.empty())
160
{while(outlinesNamesVector.size()>0)
161
outlinesNamesVector.pop_back();
162
}
163
if ( !axesNamesVector.empty())
164
{
165
while(axesNamesVector.size()>0)
166
axesNamesVector.pop_back();
167
}
168
*/
169
outlinesNamesVector
.clear();
170
axesNamesVector
.clear();
171
/*
172
delete actualAxeNamesWrapp;
173
delete actualSourceImageNamesWrapp;
174
delete actualSectionImageNamesWrapp;
175
delete actualOutlineNamesWrapp;*/
176
}
177
178
creatools_source
creaContours
lib
kernel_ManagerContour_NDimensions
InstantMembersNameList.cxx
Generated by
1.8.3.1