Changeset 339 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jul 27, 1999, 12:17:12 PM (26 years ago)
Author:
ercodmgr
Message:

Pour creer les ADAPTER de GeneralFitData cmv 27/7/99

Location:
trunk/SophyaPI/PIext
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r333 r339  
    286286  }
    287287
     288// Obsolete : ne pas virer SVP, cmv 26/7/99
    288289else if (kw == "gfd2d") {
     290  cout<<"----- gfd2d OBSOLETE: utilisez nt2d -----"<<endl;
    289291  if(tokens.size()<2)
    290292    {cout<<"Usage: gfd2d nomobj numvarx erreur=(x y xy) opt"<<endl;
     
    298300  }
    299301else if (kw == "gfd3d") {
     302  cout<<"----- gfd3d OBSOLETE: utilisez nt3d -----"<<endl;
    300303  if(tokens.size()<3)
    301304    {cout<<"Usage: gfd3d nameobj numvarx numvary erreur=(x y z xy xz yz xyz) opt"<<endl;
     
    710713usage += "\n Usage : nt3d nameobj varx vary varz [errx erry errz] [graphic_attributes]";
    711714usage += "\n  Related commands: disp  surf  nt2d nt2dw  gfd3d "; 
     715usage += "\n  Related commands: disp  surf  nt2d nt2dw "; 
    712716mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
     717
     718// Ceci est maintenant obsolete, on garde pour info.
    713719kw = "gfd2d";
    714720usage = "Displays Points (X-Y) with error-bars from a GeneralFit Data ";
    715721usage += "\n Usage : gfd2d nameobj numvarx erreur=(x y xy) [graphic_attributes]";
    716 usage += "\n  Related commands: gfd3d nt2d nt3d "; 
     722usage += "\n  Related commands: gfd3d nt2d nt3d ";
     723usage += "\n  ----- OBSOLETE: utilisez nt2d -----";
    717724mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    718725kw = "gfd3d";
     
    720727usage += "\n Usage : gfd3d nameobj numvarx numvary erreur=(x y z xy xz yz xyz) [graphic_attributes]";
    721728usage += "\n  Related commands: gfd2d nt2d nt3d "; 
     729usage += "\n  ----- OBSOLETE: utilisez nt3d -----";
    722730mpiac->RegisterCommand(kw, usage, this, "Obj. Display");
    723731
     
    819827mpiac->RegisterCommand(kw, usage, this, "Expr. Plotting");
    820828
    821 
    822829}
    823830
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r335 r339  
    925925}
    926926
    927 /* --Methode-- cmv 13/10/98 */
     927/* --Methode-- cmv 13/10/98 : Obsolete mais ne pas virer SVP */
    928928void NamedObjMgr::DisplayGFD(string& nom, string& numvarx, string& numvary, string& err, string dopt)
    929929//      Pour le display 2D ou 3D d'un ``GeneralFitData''.
     
    961961}
    962962// Decodage des numeros de variables en abscisse
    963 int numvx=-1, numvy=-1;
    964 if(numvarx.length()>0) numvx = atoi(numvarx.c_str());
    965 if(numvary.length()>0) numvy = atoi(numvary.c_str());
    966 
    967 int wrsid = 0;
    968 if(numvy>=0) {              // Display 3D
     963 int numvx=-1, numvy=-1;
     964 if(numvarx.length()>0) numvx = atoi(numvarx.c_str());
     965 if(numvary.length()>0) numvy = atoi(numvary.c_str());
     966 
     967 int wrsid = 0;
     968 if(numvy>=0) {              // display 3D
    969969  PIGenFitDat3D* pigfd = new PIGenFitDat3D(((GeneralFitData*)obj),false);
    970970  pigfd->SelectXY(numvx,numvy);
    971971  pigfd->SelectErrBar(errx,erry,errz);
    972972  wrsid = myImgApp->Disp3DDrawer(pigfd,nom,opt); 
    973 } else {                   // Display 2D
     973} else {                   // display 2D
    974974  PIGenFitDat* pigfd = new PIGenFitDat(((GeneralFitData*)obj),false);
    975975  pigfd->SelectX(numvx);
  • trunk/SophyaPI/PIext/pigfd1.cc

    r205 r339  
     1// Cette classe est maintenant obsolete: generaldata <==> ntuple pour le dessin
     2
    13#include <stdio.h>
    24#include "pigfd1.h"
     
    4143double dx, dy;
    4244double xmin=9.e19, xmax=-9.e19, ymin=9.e19, ymax=-9.e19;
    43 mGFD->GetMinMax(10*VarX+2,xmin,xmax);
    44 mGFD->GetMinMax(0,ymin, ymax);
     45mGFD->GetMnMx(10*VarX+2,xmin,xmax);
     46mGFD->GetMnMx(0,ymin, ymax);
    4547if(xmax<=xmin) xmax = xmin+1.;
    4648if(ymax<=ymin) ymax = ymin+1.;
  • trunk/SophyaPI/PIext/pigfd1.h

    r205 r339  
     1// Cette classe est maintenant obsolete: generaldata <==> ntuple pour le dessin
     2
    13#ifndef PIGFD1_H
    24#define PIGFD1_H
     
    2426
    2527#endif
     28
  • trunk/SophyaPI/PIext/pigfd2.cc

    r205 r339  
     1// Cette classe est maintenant obsolete: generaldata <==> ntuple pour le dessin
     2
    13#include <stdio.h>
    24#include "pigfd2.h"
     
    4143if(VarX<0 || VarY<0) return;
    4244double xmin=9.e19, xmax=-9.e19, ymin=9.e19, ymax=-9.e19, zmin=9.e19, zmax=-9.e19;
    43 mGFD->GetMinMax(10*VarX+2,xmin,xmax);
    44 mGFD->GetMinMax(10*VarY+2,ymin,ymax);
    45 mGFD->GetMinMax(0,zmin, zmax);
     45mGFD->GetMnMx(10*VarX+2,xmin,xmax);
     46mGFD->GetMnMx(10*VarY+2,ymin,ymax);
     47mGFD->GetMnMx(0,zmin, zmax);
    4648if(xmax<=xmin) xmax = xmin+1.;
    4749if(ymax<=ymin) ymax = ymin+1.;
     
    103105return;
    104106}
     107
  • trunk/SophyaPI/PIext/pigfd2.h

    r205 r339  
     1// Cette classe est maintenant obsolete: generaldata <==> ntuple pour le dessin
     2
    13#ifndef PIGFD2_H
    24#define PIGFD2_H
     
    2527
    2628#endif
     29
  • trunk/SophyaPI/PIext/piinit.cc

    r314 r339  
    44#include "servnobjm.h"
    55#include "nomhistadapter.h"
     6#include "nomgfdadapter.h"
    67#include "nommatvecadapter.h"
    78#include "nomimagadapter.h"
     
    2324  serv->RegisterClass(new NTuple, new NOMAdapter_NTuple );
    2425
     26  serv->RegisterClass(new GeneralFitData, new NOMAdapter_GeneralFitData );
     27
    2528  serv->RegisterClass(new Vector, new NOMAdapter_Vector );
    2629  serv->RegisterClass(new Matrix, new NOMAdapter_Matrix );
     
    3033  serv->RegisterClass(new Image<int_4>, new  NOMAdapter_Image<int_4> );
    3134  serv->RegisterClass(new Image<r_4>, new  NOMAdapter_Image<r_4> );
    32   
     35 
    3336  serv->RegisterClass(new FitsImage<uint_2>, new  NOMAdapter_Image<uint_2> );
    3437  serv->RegisterClass(new FitsImage<int_2>, new  NOMAdapter_Image<int_2> );
     
    3740
    3841  serv->RegisterClass(new StarList, new NOMAdapter_StarList );
    39  
    40 } 
     42
     43}
    4144
    4245PIAppInitiator::~PIAppInitiator()
Note: See TracChangeset for help on using the changeset viewer.