Changeset 540 for XIOS/trunk/src/node/axis.cpp
- Timestamp:
- 12/16/14 12:55:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/axis.cpp
r501 r540 9 9 10 10 namespace xios { 11 11 12 12 /// ////////////////////// Définitions ////////////////////// /// 13 13 14 14 CAxis::CAxis(void) 15 15 : CObjectTemplate<CAxis>() 16 , CAxisAttributes(), isChecked(false), relFiles() 16 , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject() 17 17 { /* Ne rien faire de plus */ } 18 18 19 19 CAxis::CAxis(const StdString & id) 20 20 : CObjectTemplate<CAxis>(id) 21 , CAxisAttributes(), isChecked(false), relFiles() 21 , CAxisAttributes(), isChecked(false), relFiles(), baseRefObject() 22 22 { /* Ne rien faire de plus */ } 23 23 … … 56 56 ERROR("CAxis::checkAttributes(void)",<< "Attribut <size> of the axis must be specified") ; 57 57 StdSize size = this->size.getValue(); 58 58 59 59 StdSize zoom_begin,zoom_end, zoom_size ; 60 60 61 61 zoom_begin = (this->zoom_begin.isEmpty()) ? 1 : this->zoom_begin.getValue() ; 62 zoom_end = (this->zoom_end.isEmpty()) ? size : this->zoom_end.getValue() ; 62 zoom_end = (this->zoom_end.isEmpty()) ? size : this->zoom_end.getValue() ; 63 63 zoom_size = (this->zoom_size.isEmpty()) ? size : this->zoom_size.getValue() ; 64 64 65 65 if (this->zoom_begin.isEmpty()) zoom_begin=zoom_end-zoom_size+1 ; 66 66 if (this->zoom_end.isEmpty()) zoom_end=zoom_begin+zoom_size-1 ; 67 67 if (this->zoom_size.isEmpty()) zoom_size=zoom_end-zoom_begin+1 ; 68 68 69 69 if ( (zoom_begin < 1) || (zoom_begin > size) || (zoom_end<1) || (zoom_end>size) || (zoom_size<1) || (zoom_size>size) || (zoom_begin>zoom_end)) 70 70 ERROR("CAxis::checkAttributes(void)",<< "One or more attribut of <zoom_begin>, <zoom_end>, <zoom_size>, are not well specified") ; … … 72 72 this->zoom_end.setValue(zoom_end) ; 73 73 this->zoom_size.setValue(zoom_size) ; 74 74 75 75 StdSize true_size = value.numElements(); 76 76 if (size != true_size) … … 81 81 } 82 82 83 DEFINE_REF_FUNC(Axis,axis) 84 83 85 ///--------------------------------------------------------------- 84 86
Note: See TracChangeset
for help on using the changeset viewer.