Changeset 620 for XIOS/trunk/src/node/axis.cpp
- Timestamp:
- 06/22/15 13:36:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/axis.cpp
r619 r620 85 85 } 86 86 else this->ni.setValue(size); 87 87 std::cout << "value " << value << std::endl; 88 88 StdSize true_size = value.numElements(); 89 89 if (this->ni.getValue() != true_size) … … 311 311 } 312 312 313 void CAxis::setTransformations(const std::vector< ETransformationType>& transformations)313 void CAxis::setTransformations(const std::vector<CTransformation*>& transformations) 314 314 { 315 315 transformations_ = transformations; 316 } 317 318 std::vector<CTransformation*> CAxis::getAllTransformations(void) 319 { 320 if (!hasTransformation()) 321 setTransformations(this->getVirtualTransformationGroup()->getAllChildren()); 322 323 return transformations_; 316 324 } 317 325 … … 333 341 if (refer_ptr->hasTransformation()) 334 342 for (int idx = 0; idx < refAxis.size(); ++idx) 335 refAxis[idx]->setTransformations(refer_ptr->get Transformations());343 refAxis[idx]->setTransformations(refer_ptr->getAllTransformations()); 336 344 } 337 345 … … 347 355 if (node.getElementName() == tranformation) { 348 356 this->getVirtualTransformationGroup()->parseChild(node); 349 transformations_.push_back(eInverse);350 357 } 351 358 } while (node.goToNextElement()) ; 352 359 node.goToParentElement(); 353 360 } 354 } 355 356 const std::vector<ETransformationType>& CAxis::getTransformations() 357 { 358 return transformations_; 359 } 360 361 DEFINE_REF_FUNC(Axis,axis) 361 setTransformations(this->getVirtualTransformationGroup()->getAllChildren()); 362 } 363 364 DEFINE_REF_FUNC(Axis,axis) 362 365 363 366 ///---------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.