Changeset 268


Ignore:
Timestamp:
01/23/05 19:24:00 (19 years ago)
Author:
kil064
Message:

add insitu version of function veliocityAlignment

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r262 r268  
    228228}
    229229
     230void SDMathWrapper::velocityAlignmentInSitu (SDMemTableWrapper& in)
     231{
     232  SDMemTable* pIn = in.getPtr();
     233  SDMath sdm;
     234  SDMemTable* pOut = sdm.velocityAlignment(*pIn);
     235  *pIn = *pOut;
     236  delete pOut;
     237}
     238
     239
    230240SDMemTableWrapper SDMathWrapper::velocityAlignment (const SDMemTableWrapper& in)
    231241{
  • trunk/src/SDMathWrapper.h

    r262 r268  
    8585
    8686// Apply velocity alignment
     87  void velocityAlignmentInSitu (SDMemTableWrapper& in);
    8788  SDMemTableWrapper velocityAlignment(const SDMemTableWrapper& in);
    8889
  • trunk/src/python_SDMath.cc

    r264 r268  
    8484//
    8585      def("align", &SDMathWrapper::velocityAlignment);
     86      def("align_insitu", &SDMathWrapper::velocityAlignmentInSitu);
    8687//
    8788      def("opacity", &SDMathWrapper::opacity);
Note: See TracChangeset for help on using the changeset viewer.