app_v3dcontrol.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 APP_V3DCONTROL_H
00029 #define APP_V3DCONTROL_H
00030 
00031 #include "view.h"
00032 
00033 class V3dControl : public AppBase{
00034 public:
00035   V3dControl(char *title, int ChNo, Scan *scan,
00036              GCallback realize,
00037              GCallback configure_event,
00038              GCallback expose_event,
00039              void *vdata);
00040   virtual ~V3dControl();
00041 
00042   virtual void AppWidgetInit(gchar *title, int InWindow=TRUE);
00043 
00044   static void view_file_openhere_callback (GtkWidget *widget, V3dControl *vc);
00045   static void view_file_save_callback (GtkWidget *widget, V3dControl *vc);
00046   static void view_file_save_as_callback (GtkWidget *widget, V3dControl *vc);
00047   static void view_file_save_image_callback (GtkWidget *widget, V3dControl *vc);
00048   static void view_file_print_callback (GtkWidget *widget, V3dControl *vc);
00049   static void view_file_kill_callback (GtkWidget *widget, V3dControl *vc);
00050 
00051   static void view_view_quick_callback (GtkWidget *widget, V3dControl *vc);
00052   static void view_view_direct_callback (GtkWidget *widget, V3dControl *vc);
00053   static void view_view_log_callback (GtkWidget *widget, V3dControl *vc);
00054   static void view_view_horizont_callback (GtkWidget *widget, V3dControl *vc);
00055   static void view_view_periodic_callback (GtkWidget *widget, V3dControl *vc);
00056   static void view_view_differential_callback (GtkWidget *widget, V3dControl *vc);
00057 
00058   static void view_GL_Wh_zoom_callback (GtkWidget *widget, V3dControl *vc);
00059   static void view_GL_Wh_rotX_callback (GtkWidget *widget, V3dControl *vc);
00060   static void view_GL_Wh_rotY_callback (GtkWidget *widget, V3dControl *vc);
00061   static void view_GL_Wh_rotZ_callback (GtkWidget *widget, V3dControl *vc);
00062   static void view_GL_Wh_Zskl_callback (GtkWidget *widget, V3dControl *vc);
00063 
00064   static void view_GL_nZP_callback (GtkWidget *widget, V3dControl *vc);
00065   static void view_GL_Mesh_callback (GtkWidget *widget, V3dControl *vc);
00066   static void view_GL_Ticks_callback (GtkWidget *widget, V3dControl *vc);
00067   static void view_GL_Smooth_callback (GtkWidget *widget, V3dControl *vc);
00068 
00069   static gint glarea_event_cb(GtkWidget *glarea, GdkEvent *event, V3dControl *vc);
00070   static void Activate_callback (GtkWidget *widget, V3dControl *vc);
00071   static void apply_all_callback (GtkWidget *widget, V3dControl *vc);
00072   static void preferences_callback (GtkWidget *widget, V3dControl *vc);
00073 
00074   static void SetOff_callback (GtkWidget *widget, V3dControl *vc);
00075   static void SetOn_callback (GtkWidget *widget, V3dControl *vc);
00076   static void SetMath_callback (GtkWidget *widget, V3dControl *vc);
00077   static void SetX_callback (GtkWidget *widget, V3dControl *vc);
00078   static void AutoDisp_callback (GtkWidget *widget, V3dControl *vc);
00079 
00080   void SetTitle(char *title);
00081   void SetActive(int flg);
00082   void CheckOptions();
00083   GtkWidget *GetGlarea(){ return glarea; };
00084 
00085   double(Surf3d::*WheelFkt)(double);
00086   
00087 private:
00088   int chno;
00089   Scan *scan;
00090   GtkWidget *VPopup;
00091   GtkWidget *glarea;
00092 };
00093 
00094 #endif

Generated on Sat Apr 1 09:03:49 2006 for GXSM by  doxygen 1.4.6