#include "OSGSharePtrGraphOp.h"#include <functional>#include <algorithm>#include <OSGLog.h>#include <OSGGeometry.h>#include <OSGGeoFunctions.h>#include <OSGVector.h>Go to the source code of this file.
Namespaces | |
| namespace | osg |
Functions | |
| template<typename T> | |
| static bool | compareMField (Field *a, Field *b) |
Definition at line 389 of file OSGSharePtrGraphOp.cpp.
References osg::MField< FieldTypeT, fieldNameSpace >::size().
00390 { 00391 MField<T> *mfa = dynamic_cast<MField<T> *>(a); 00392 MField<T> *mfb = dynamic_cast<MField<T> *>(b); 00393 00394 if(mfa == NULL && mfb == NULL) 00395 return true; 00396 00397 if(mfa == NULL || mfb == NULL) 00398 return false; 00399 00400 if(mfa->size() != mfb->size()) 00401 return false; 00402 00403 for(UInt32 j=0;j<mfa->size();++j) 00404 { 00405 if((*mfa)[j] != (*mfb)[j]) 00406 { 00407 return false; 00408 } 00409 } 00410 00411 return true; 00412 }
1.5.5