00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CMDCOLOR_H
00023 #define CMDCOLOR_H
00024
00025 #include "Command.h"
00026
00027 class VMDApp;
00028
00029
00030
00031
00032
00034 class CmdColorName : public Command {
00035 protected:
00036 virtual void create_text(void);
00037
00038 public:
00039 char *cCatStr, *cNameStr, *cColStr;
00040
00042 CmdColorName(const char *, const char *, const char *);
00043 ~CmdColorName();
00044 };
00045
00046
00048 class CmdColorChange : public Command {
00049 public:
00050 char *color;
00051 float newR, newG, newB;
00052
00053 protected:
00054 virtual void create_text();
00055
00056 public:
00057
00058 CmdColorChange(const char *, float, float, float);
00059 ~CmdColorChange();
00060 };
00061
00062
00064 class CmdColorScaleMethod : public Command {
00065 protected:
00066 virtual void create_text();
00067
00068 public:
00069 char *method;
00070 CmdColorScaleMethod(const char *);
00071 ~CmdColorScaleMethod();
00072 };
00073
00074
00076 class CmdColorScaleSettings : public Command {
00077 protected:
00078 virtual void create_text(void);
00079
00080 public:
00081 float mid, min, max;
00082 int rev, posterize;
00083
00084 CmdColorScaleSettings(float newmid, float newmin, float newmax, int newrev, int posterize);
00085 };
00086
00087 class CmdColorScaleColors : public Command {
00088 protected:
00089 virtual void create_text();
00090 public:
00091 const char *method;
00092 float colors[3][3];
00093 CmdColorScaleColors(const char *, const float *, const float *, const float *);
00094 };
00095
00096 class CmdColorItem : public Command {
00097 protected:
00098 virtual void create_text();
00099 public:
00100 char *category, *name, *defcolor;
00101 CmdColorItem(const char *cat, const char *nm, const char *def);
00102 ~CmdColorItem();
00103 };
00104 #endif
00105