lineprofile.h

Go to the documentation of this file.
00001 /* Gxsm - Gnome X Scanning Microscopy
00002  * universal STM/AFM/SARLS/SPALEED/... controlling and
00003  * data analysis software
00004  * 
00005  * Copyright (C) 1999,2000,2001,2002,2003 Percy Zahl
00006  *
00007  * Authors: Percy Zahl <zahl@users.sf.net>
00008  * additional features: Andreas Klust <klust@users.sf.net>
00009  * WWW Home: http://gxsm.sf.net
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00024  */
00025 
00026 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 8 c-style: "K&R" -*- */
00027 
00028 #ifndef __LINEPROFILE_H
00029 #define __LINEPROFILE_H
00030 
00031 #include <iostream>
00032 #include <fstream>
00033 
00034 #include <cstdio>
00035 #include <cstdlib>
00036 #include <cmath>
00037 #include <cstring>
00038 
00039 #include "scan.h"
00040 
00041 /*
00042  * LineProfile Class
00043  */
00044 class LineProfile1D{
00045 public:
00046   LineProfile1D();
00047   LineProfile1D(int n, UnitObj *ux, UnitObj *uy, double xmin=0., double xmax=1.);
00048   virtual ~LineProfile1D();
00049 
00050   double GetPoint(int n);
00051   void SetPoint(int n, double y);
00052   void SetPoint(int n, double x, double y);
00053   void AddPoint(int n, double a);
00054   void MulPoint(int n, double f);
00055 
00056   int SetData(Scan *sc, int line=-1);
00057   int load(gchar *fname);
00058   int save(gchar *fname);
00059   
00060   GSList *ScanList;
00061 
00062   Scan *masterscan;
00063   Scan *scan1d;
00064 
00065 private:
00066   int private_scan;
00067   int ChanNo;
00068 };
00069 
00070 #endif
00071 
00072 
00073 

Generated on Sat Apr 1 09:04:00 2006 for GXSM by  doxygen 1.4.6