/usr/include/ossim/base/ossim2dTo2dIdentityTransform.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | //*******************************************************************
//
// License:  MIT
// 
// See LICENSE.txt file in the top level directory for more details.
//
// Description:  Contains class definition for ossim2dTo2dIdentityTransform.
// 
//*******************************************************************
//  $Id$
#ifndef ossim2dTo2dIdentityTransform_HEADER
#define ossim2dTo2dIdentityTransform_HEADER
#include "ossim2dTo2dTransform.h"
/**
 * This is the identity transform and just passes the input to the output.
 */
class OSSIM_DLL ossim2dTo2dIdentityTransform : public ossim2dTo2dTransform
{
public:
   /**
    * forward transform just passes the point to the output.
    */
   virtual void forward(const ossimDpt& input,
                        ossimDpt& output) const
   {
      output = input;
   }
   
   /**
    * forward transform nothing is modified on the input point.
    */
   virtual void forward(ossimDpt&  /* modify_this */) const
   {
      // do nothing this is identity
   }
   
   /**
    * inverse transform just passes the point to the output.
    */
   virtual void inverse(const ossimDpt& input,
                        ossimDpt&       output) const
   {
      output = input;
   }
   
   /**
    * inverse transform nothing is modified on the input point.
    */
   virtual void inverse(ossimDpt&  /* modify_this */) const
   {
      // do nothing this is identity
   }
   
   /**
    * Pass equality to the parent
    */
   virtual const ossim2dTo2dIdentityTransform& operator=(
                                                 const ossim2dTo2dIdentityTransform& rhs)
   {
      ossim2dTo2dTransform::operator =(rhs);
      
      return *this;
   }
   
protected:
   TYPE_DATA
};
#endif
 |