]> Creatis software - creaContours.git/blob - lib/Interface_ManagerContour_NDimensions/ConceptDataWrap.cxx
8f58218e69f00ec8216514ae47d46012264b1098
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / ConceptDataWrap.cxx
1
2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "ConceptDataWrap.h"
6
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file ConceptDataWrap.cxx */
11
12
13 //------------------------------------------------------------------------------------------------------------
14 // Includes
15 //------------------------------------------------------------------------------------------------------------
16
17
18         //------------------------------------------------------------------------------------------------------------
19         // Constructors & Destructors
20         //------------------------------------------------------------------------------------------------------------
21
22 ConceptDataWrap :: ConceptDataWrap(std::string theName)
23         {
24                 _minValue = -1;
25                 _maxValue = -1;
26                 _minShow = -1;
27                 _maxShow = -1;
28                 _actual = -1;
29                 _name = theName;
30         }
31
32         ConceptDataWrap :: ~ConceptDataWrap()
33         {
34
35         }
36         //------------------------------------------------------------------------------------------------------------
37         //  Attributes getters and setters
38         //------------------------------------------------------------------------------------------------------------
39
40         /**
41         * Sets the data concept values and name
42         * @param theName The name of the concept 
43         * @param minRepresent The minRepresent value of the concept 
44         * @param maxRepresent The maxRepresent value of the concept 
45         * @param minShowed The minShowed value of the concept 
46         * @param maxShowed The maxShowed value of the concept 
47         * @param actualShow The actualShow value of the concept 
48         */
49         void ConceptDataWrap :: fillData( std::string theName, int minRepresent, int maxRepresent, int minShowed, int maxShowed, int actualShow )
50         {
51                 _name = theName;
52                 _minValue = minRepresent;
53                 _maxValue = maxRepresent;
54                 _minShow = minShowed;
55                 _maxShow = maxShowed;
56                 _actual = actualShow;
57         }
58
59
60         std::string ConceptDataWrap :: getName()
61         {
62                 return _name;
63         }
64
65         int ConceptDataWrap :: getMinShowedValue()
66         {
67                 return _minShow;
68         }
69
70         int ConceptDataWrap :: getMaxShowedValue()
71         {
72                 return _maxShow;
73         }
74
75         void ConceptDataWrap :: setMinValue(int theMin)
76         {
77                 _minValue = theMin;
78         }
79
80         int  ConceptDataWrap :: getMinValue()
81         {
82                 return _minValue;
83         }
84
85         void ConceptDataWrap :: setMaxValue(int theMax)
86         {
87                 _maxValue = theMax;
88         }
89
90         int  ConceptDataWrap :: getMaxValue()
91         {
92                 return _maxValue;
93         }
94
95         void ConceptDataWrap :: setActualValue(int theActual)
96         {
97                 _actual = theActual;
98         }
99
100         int  ConceptDataWrap :: getActualValue()
101         {
102                 return _actual;
103         }
104
105         bool ConceptDataWrap :: isEmpty()
106         {
107                 return _actual == -1;
108         }
109         //------------------------------------------------------------------------------------------------------------
110         //  Other functional methods
111         //------------------------------------------------------------------------------------------------------------
112
113         //------------------------------------------------------------------------------------------------------------
114         //  Private methods
115         //------------------------------------------------------------------------------------------------------------
116
117         //------------------------------------------------------------------------------------------------------------
118         // Creational and initialization methods
119         //------------------------------------------------------------------------------------------------------------
120
121                 
122         //------------------------------------------------------------------------------------------------------------
123         // Attributtes
124         //------------------------------------------------------------------------------------------------------------
125         
126