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

CmdColor.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: CmdColor.h,v $
00013  *      $Author: johns $        $Locker:  $                $State: Exp $
00014  *      $Revision: 1.35 $      $Date: 2020/12/24 04:21:51 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  * 
00019  * Command objects for affecting molecules.
00020  *
00021  ***************************************************************************/
00022 #ifndef CMDCOLOR_H
00023 #define CMDCOLOR_H
00024 
00025 #include "Command.h"
00026 
00027 class VMDApp;
00028 
00029 // the following defines commands for the Cmdtypes:
00030 // COLOR_NAME, COLOR_CHANGE, COLOR_SCALE_METHOD, COLOR_SCALE_MIDPOINT,
00031 // COLOR_SCALE_MIN, COLOR_SCALE_MAX
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   // constructor: color name, R, G, B
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 

Generated on Wed Apr 24 02:41:50 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002