Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

cam_setup.h

Go to the documentation of this file.
00001 
00002 #ifndef _CAM_SETUP_H_
00003 #define _CAM_SETUP_H_
00004 
00005 #define CAMSETUP__OK GTK_RESPONSE_OK
00006 
00008 typedef struct _CamSetup_Head CamSetup_Head;
00009 struct _CamSetup_Head {
00010         gint radius;            // Radius des Stiftes/Bohrkopfes
00011         gint speed;             // Maximaler Vorschub
00012         gint type;              // Typ des Stiftes/Bohrkopfes
00013         gchar image[1024];      // Bild des Stiftes/Bohrkopfes (ca 20x100)
00014 };
00015 
00017 typedef struct _CamSetup_Tool CamSetup_Tool;
00018 struct _CamSetup_Tool {
00019         gint speed;             // Drehzahl des Bohrkopfes
00020         gint delay;             // Wartezeit nach anschalten des Stiftes/Bohrkopfes
00021         gint type;              // Typ des Werkzeugs (0=Stift, 1=Bohr-Motor)
00022         gint offset;
00023         CamSetup_Head head;
00024 };
00025 
00027 typedef struct _CamSetup_Axis CamSetup_Axis;
00028 struct _CamSetup_Axis {
00029         gint speed;
00030         gint type;
00031 };
00032 
00034 typedef struct _CamSetup_ToolAxis CamSetup_ToolAxis;
00035 struct _CamSetup_ToolAxis {
00036         gint speed;             // Achsen-Speed
00037         gint type;              // Typ des Achen-Antriebs (0=Stepper, 1=Servo)
00038         CamSetup_Tool tool;
00039 };
00040 
00042 typedef struct _CamSetup_Material CamSetup_Material;
00043 struct _CamSetup_Material {
00044         gchar name[64];
00045         gint speed;
00046         gint m_speed;
00047         gint z_steps;
00048 };
00049 
00051 typedef struct _CamSetup CamSetup;
00052 struct _CamSetup {
00053         CamSetup_Material camsetup__material[10];
00054         CamSetup_Axis axis_x[2];
00055         CamSetup_Axis axis_y[2];
00056         CamSetup_ToolAxis axis_z[3];
00057         GtkWidget *window;
00058         GladeXML *xml;
00059         gint tool;
00060         gint z_start;
00061         gint z_stop;
00062         gint z_over;
00063         gint z_step;
00064         gint z_steps;
00065         gint output;
00066         gfloat zoom;
00067         gint material;
00068 };
00069 
00070 
00071 CamSetup *camsetup__init ();
00072 void camsetup__show (void);
00073 void camsetup__hide (void);
00074 void camsetup__values_default (void);
00075 void camsetup__values_set (void);
00076 void camsetup__values_get (void);
00077 gint camsetup__run (gchar *title_str);
00078 
00079 #endif

Generated on Wed May 3 17:34:46 2006 for cnc2d by  doxygen 1.4.2