creaContours_lib
Main Page
Namespaces
Classes
Files
File List
File Members
ConceptDataWrap.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 "
ConceptDataWrap.h
"
31
32
//----------------------------------------------------------------------------------------------------------------
33
// Class implementation
34
//----------------------------------------------------------------------------------------------------------------
38
//------------------------------------------------------------------------------------------------------------
39
// Includes
40
//------------------------------------------------------------------------------------------------------------
41
42
43
//------------------------------------------------------------------------------------------------------------
44
// Constructors & Destructors
45
//------------------------------------------------------------------------------------------------------------
46
47
ConceptDataWrap :: ConceptDataWrap
(std::string theName)
48
{
49
_minValue
= -1;
50
_maxValue
= -1;
51
_minShow
= -1;
52
_maxShow
= -1;
53
_actual
= -1;
54
_name
= theName;
55
}
56
57
ConceptDataWrap :: ~ConceptDataWrap
()
58
{
59
60
}
61
//------------------------------------------------------------------------------------------------------------
62
// Attributes getters and setters
63
//------------------------------------------------------------------------------------------------------------
64
74
void
ConceptDataWrap :: fillData
( std::string theName,
int
minRepresent,
int
maxRepresent,
int
minShowed,
int
maxShowed,
int
actualShow )
75
{
76
_name
= theName;
77
_minValue
= minRepresent;
78
_maxValue
= maxRepresent;
79
_minShow
= minShowed;
80
_maxShow
= maxShowed;
81
_actual
= actualShow;
82
}
83
84
85
std::string
ConceptDataWrap :: getName
()
86
{
87
return
_name
;
88
}
89
90
int
ConceptDataWrap :: getMinShowedValue
()
91
{
92
return
_minShow
;
93
}
94
95
int
ConceptDataWrap :: getMaxShowedValue
()
96
{
97
return
_maxShow
;
98
}
99
100
void
ConceptDataWrap :: setMinValue
(
int
theMin)
101
{
102
_minValue
= theMin;
103
}
104
105
int
ConceptDataWrap :: getMinValue
()
106
{
107
return
_minValue
;
108
}
109
110
void
ConceptDataWrap :: setMaxValue
(
int
theMax)
111
{
112
_maxValue
= theMax;
113
}
114
115
int
ConceptDataWrap :: getMaxValue
()
116
{
117
return
_maxValue
;
118
}
119
120
void
ConceptDataWrap :: setActualValue
(
int
theActual)
121
{
122
_actual
= theActual;
123
}
124
125
int
ConceptDataWrap :: getActualValue
()
126
{
127
return
_actual
;
128
}
129
130
bool
ConceptDataWrap :: isEmpty
()
131
{
132
return
_actual
== -1;
133
}
134
//------------------------------------------------------------------------------------------------------------
135
// Other functional methods
136
//------------------------------------------------------------------------------------------------------------
137
138
//------------------------------------------------------------------------------------------------------------
139
// Private methods
140
//------------------------------------------------------------------------------------------------------------
141
142
//------------------------------------------------------------------------------------------------------------
143
// Creational and initialization methods
144
//------------------------------------------------------------------------------------------------------------
145
146
147
//------------------------------------------------------------------------------------------------------------
148
// Attributtes
149
//------------------------------------------------------------------------------------------------------------
150
151
creatools_source
creaContours
lib
Interface_ManagerContour_NDimensions
ConceptDataWrap.cxx
Generated by
1.8.3.1