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

CmdColor.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2011 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.31 $      $Date: 2010/12/16 04:08:07 $
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   CmdColorScaleSettings(float newmid, float newmin, float newmax);
00083 };
00084 
00085 class CmdColorScaleColors : public Command {
00086 protected:
00087   virtual void create_text();
00088 public:
00089   const char *method;
00090   float colors[3][3];
00091   CmdColorScaleColors(const char *, const float *, const float *, const float *);
00092 };
00093 
00094 class CmdColorItem : public Command {
00095 protected:
00096   virtual void create_text();
00097 public:
00098   char *category, *name, *defcolor;
00099   CmdColorItem(const char *cat, const char *nm, const char *def);
00100   ~CmdColorItem();
00101 };
00102 #endif
00103 

Generated on Sat May 26 01:47:47 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002