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: CmdMaterial.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.22 $ $Date: 2019/01/17 21:20:58 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * Commands for manipulating materials 00019 ***************************************************************************/ 00020 00021 #ifndef CMD_MATERIAL_H__ 00022 #define CMD_MATERIAL_H__ 00023 00024 #include "Command.h" 00025 00027 class CmdMaterialAdd : public Command { 00028 private: 00029 char *name, *copy; 00030 00031 protected: 00032 virtual void create_text(void); 00033 00034 public: 00035 CmdMaterialAdd(const char *, const char *copyfrom); 00036 ~CmdMaterialAdd(void); 00037 }; 00038 00039 00041 class CmdMaterialRename : public Command { 00042 private: 00043 char *oldname, *newname; 00044 00045 protected: 00046 virtual void create_text(void); 00047 00048 public: 00049 CmdMaterialRename(const char *oldnm, const char *newnm); 00050 ~CmdMaterialRename(void); 00051 }; 00052 00053 00055 class CmdMaterialChange : public Command { 00056 private: 00057 char *name; 00058 int property; 00059 float val; 00060 00061 protected: 00062 virtual void create_text(void); 00063 00064 public: 00065 CmdMaterialChange(const char *, int, float); 00066 ~CmdMaterialChange(void); 00067 }; 00068 00069 00071 class CmdMaterialDelete : public Command { 00072 private: 00073 char *name; 00074 00075 protected: 00076 virtual void create_text(); 00077 00078 public: 00079 CmdMaterialDelete(const char *); 00080 ~CmdMaterialDelete(); 00081 }; 00082 00083 00085 class CmdMaterialDefault : public Command { 00086 protected: 00087 int ind; 00088 virtual void create_text(); 00089 public: 00090 CmdMaterialDefault(int matind) 00091 : Command(MATERIAL_DEFAULT), ind(matind) {} 00092 }; 00093 00094 #endif