text: // File Automatically generated by eLiSe
  #include "StdAfx.h"
  #include "cGen2DBundleEgProj_Deg0.h"
  
  
  cGen2DBundleEgProj_Deg0::cGen2DBundleEgProj_Deg0():
      cElCompiledFonc(2)
  {
     AddIntRef (cIncIntervale("CX",3,4));
     AddIntRef (cIncIntervale("CY",4,5));
     AddIntRef (cIncIntervale("Tmp_PTer",0,3));
     Close(false);
  }
  
  
  
  void cGen2DBundleEgProj_Deg0::ComputeVal()
  {
     double tmp0_ = mCompCoord[0];
     double tmp1_ = tmp0_-mLocPTerInit_x;
     double tmp2_ = mCompCoord[1];
     double tmp3_ = tmp2_-mLocPTerInit_y;
     double tmp4_ = mCompCoord[2];
     double tmp5_ = tmp4_-mLocPTerInit_z;
  
    mVal[0] = (mLocProjInit_x+mLocGradX_x*(tmp1_)+mLocGradY_x*(tmp3_)+mLocGradZ_x*(tmp5_)+mCompCoord[3])-mLocPIm_x;
  
    mVal[1] = (mLocProjInit_y+mLocGradX_y*(tmp1_)+mLocGradY_y*(tmp3_)+mLocGradZ_y*(tmp5_)+mCompCoord[4])-mLocPIm_y;
  
  }
  
  
  void cGen2DBundleEgProj_Deg0::ComputeValDeriv()
  {
     double tmp0_ = mCompCoord[0];
     double tmp1_ = tmp0_-mLocPTerInit_x;
     double tmp2_ = mCompCoord[1];
     double tmp3_ = tmp2_-mLocPTerInit_y;
     double tmp4_ = mCompCoord[2];
     double tmp5_ = tmp4_-mLocPTerInit_z;
  
    mVal[0] = (mLocProjInit_x+mLocGradX_x*(tmp1_)+mLocGradY_x*(tmp3_)+mLocGradZ_x*(tmp5_)+mCompCoord[3])-mLocPIm_x;
  
    mCompDer[0][0] = mLocGradX_x;
    mCompDer[0][1] = mLocGradY_x;
    mCompDer[0][2] = mLocGradZ_x;
    mCompDer[0][3] = 1;
    mCompDer[0][4] = 0;
    mVal[1] = (mLocProjInit_y+mLocGradX_y*(tmp1_)+mLocGradY_y*(tmp3_)+mLocGradZ_y*(tmp5_)+mCompCoord[4])-mLocPIm_y;
  
    mCompDer[1][0] = mLocGradX_y;
    mCompDer[1][1] = mLocGradY_y;
    mCompDer[1][2] = mLocGradZ_y;
    mCompDer[1][3] = 0;
    mCompDer[1][4] = 1;
  }
  
  
  void cGen2DBundleEgProj_Deg0::ComputeValDerivHessian()
  {
    ELISE_ASSERT(false,"Foncteur cGen2DBundleEgProj_Deg0 Has no Der Sec");
  }
  
  void cGen2DBundleEgProj_Deg0::SetGradX_x(double aVal){ mLocGradX_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetGradX_y(double aVal){ mLocGradX_y = aVal;}
  void cGen2DBundleEgProj_Deg0::SetGradY_x(double aVal){ mLocGradY_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetGradY_y(double aVal){ mLocGradY_y = aVal;}
  void cGen2DBundleEgProj_Deg0::SetGradZ_x(double aVal){ mLocGradZ_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetGradZ_y(double aVal){ mLocGradZ_y = aVal;}
  void cGen2DBundleEgProj_Deg0::SetPIm_x(double aVal){ mLocPIm_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetPIm_y(double aVal){ mLocPIm_y = aVal;}
  void cGen2DBundleEgProj_Deg0::SetPTerInit_x(double aVal){ mLocPTerInit_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetPTerInit_y(double aVal){ mLocPTerInit_y = aVal;}
  void cGen2DBundleEgProj_Deg0::SetPTerInit_z(double aVal){ mLocPTerInit_z = aVal;}
  void cGen2DBundleEgProj_Deg0::SetProjInit_x(double aVal){ mLocProjInit_x = aVal;}
  void cGen2DBundleEgProj_Deg0::SetProjInit_y(double aVal){ mLocProjInit_y = aVal;}
  
  
  
  double * cGen2DBundleEgProj_Deg0::AdrVarLocFromString(const std::string & aName)
  {
     if (aName == "GradX_x") return & mLocGradX_x;
     if (aName == "GradX_y") return & mLocGradX_y;
     if (aName == "GradY_x") return & mLocGradY_x;
     if (aName == "GradY_y") return & mLocGradY_y;
     if (aName == "GradZ_x") return & mLocGradZ_x;
     if (aName == "GradZ_y") return & mLocGradZ_y;
     if (aName == "PIm_x") return & mLocPIm_x;
     if (aName == "PIm_y") return & mLocPIm_y;
     if (aName == "PTerInit_x") return & mLocPTerInit_x;
     if (aName == "PTerInit_y") return & mLocPTerInit_y;
     if (aName == "PTerInit_z") return & mLocPTerInit_z;
     if (aName == "ProjInit_x") return & mLocProjInit_x;
     if (aName == "ProjInit_y") return & mLocProjInit_y;
     return 0;
  }
  
  
  cElCompiledFonc::cAutoAddEntry cGen2DBundleEgProj_Deg0::mTheAuto("cGen2DBundleEgProj_Deg0",cGen2DBundleEgProj_Deg0::Alloc);
  
  
  cElCompiledFonc *  cGen2DBundleEgProj_Deg0::Alloc()
  {  return new cGen2DBundleEgProj_Deg0();
  }
  
  
  