Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MaterialFltkMenu.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: MaterialFltkMenu.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.17 $      $Date: 2019/01/17 21:21:00 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *   Material properties GUI form.
00019  ***************************************************************************/
00020 #ifndef MATERIAL_FLTK_MENU_H__
00021 #define MATERIAL_FLTK_MENU_H__
00022 
00023 #include "VMDFltkMenu.h"
00024 
00025 class Fl_Value_Slider;
00026 class Fl_Hold_Browser;
00027 class Fl_Button;
00028 class Fl_Input;
00029 
00032 class MaterialFltkMenu: public VMDFltkMenu {
00033 private:
00034   int curmat;                     
00035 
00036   void fill_material_browser();
00037   void set_sliders();
00038 
00039   void init(void);                
00040 
00041   Fl_Value_Slider *ambient;       
00042   Fl_Value_Slider *specular;      
00043   Fl_Value_Slider *diffuse;       
00044   Fl_Value_Slider *shininess;     
00045   Fl_Value_Slider *mirror;        
00046   Fl_Value_Slider *opacity;       
00047   Fl_Value_Slider *outline;       
00048   Fl_Value_Slider *outlinewidth;  
00049   Fl_Hold_Browser *browser;
00050   Fl_Check_Button *transmode;     
00051   Fl_Input *nameinput;
00052   Fl_Button *deletebutton;
00053   Fl_Button *defaultbutton;
00054 
00055 private:
00056   static void slider_cb(Fl_Widget *w, void *v);
00057   static void createnew_cb(Fl_Widget *w, void *v);
00058   static void delete_cb(Fl_Widget *w, void *v);
00059   static void browser_cb(Fl_Widget *w, void *v);
00060   static void name_cb(Fl_Widget *w, void *v);
00061   static void default_cb(Fl_Widget *w, void *v);
00062 
00063 protected:
00064   int act_on_command(int, Command *);
00065 
00066 public:
00067   MaterialFltkMenu(VMDApp *);
00068 };
00069 
00070 #endif

Generated on Thu Apr 18 02:44:47 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002