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

CmdDisplay.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: CmdDisplay.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.68 $       $Date: 2019/01/17 21:20:58 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *   These are the Commands that control the various aspects
00019  * of the display, like, the clipping planes, eye separation, etc.
00020  *
00021  ***************************************************************************/
00022 #ifndef CMDDISPLAY_H
00023 #define CMDDISPLAY_H
00024 
00025 #include "Command.h"
00026 #include "DisplayDevice.h"
00027 #include "utilities.h"
00028 
00029 class VMDApp;
00030 class Axes;
00031 
00032 // These are the Command:: enums used by this file:
00033 //  DISP_RESETVIEW, DISP_STEREO, DISP_PROJ, DISP_EYESEP, 
00034 //  DISP_FOCALLEN, DISP_LIGHT_ON, DISP_LIGHT_HL, DISP_LIGHT_ROT, 
00035 //  DISP_MATERIALS_CHANGE, DISP_CLIP, DISP_DEPTHCUE, DISP_ANTIALIAS, 
00036 //  DISP_CULLING, DISP_BACKGROUNDGRADIENT,
00037 //  DISP_UPDATE, CMD_AXES, CMD_STAGE
00038 
00040 class CmdResetView : public Command {
00041 protected:
00042   virtual void create_text(void);
00043 public:
00044   CmdResetView();
00045 };
00046 
00047 
00049 class CmdDisplayStereo : public Command {
00050 private:
00051   char *mode;
00052 protected:
00053   virtual void create_text(void);
00054 public:
00055   CmdDisplayStereo(const char *newmode);
00056   ~CmdDisplayStereo();
00057 };
00058 
00059 
00061 class CmdDisplayStereoSwap : public Command {
00062 private:
00063   int onoff;
00064 protected:
00065   virtual void create_text(void);
00066 public:
00067   CmdDisplayStereoSwap(int turnon);
00068 };
00069 
00070 
00072 class CmdDisplayCacheMode : public Command {
00073 private:
00074   char *mode;
00075 protected:
00076   virtual void create_text(void);
00077 public:
00078   CmdDisplayCacheMode(const char *newmode);
00079   ~CmdDisplayCacheMode();
00080 };
00081 
00082 
00084 class CmdDisplayRenderMode : public Command {
00085 private:
00086   char *mode;
00087 protected:
00088   virtual void create_text(void);
00089 public:
00090   CmdDisplayRenderMode(const char *newmode);
00091   ~CmdDisplayRenderMode();
00092 };
00093 
00094 
00096 class CmdDisplayProj : public Command {
00097 public:
00098   CmdDisplayProj(const char *proj);
00099   ~CmdDisplayProj();
00100 private:
00101   char *projection;
00102 protected:
00103   virtual void create_text(void);
00104 };
00105 
00106 
00108 class CmdDisplayEyesep : public Command {
00109 private:
00110   float sep;
00111 protected:
00112   virtual void create_text(void);
00113 public:
00114   CmdDisplayEyesep(float newsep);
00115 };
00116 
00117 
00119 class CmdDisplayFocallen : public Command {
00120 private:
00121   float flen;
00122 protected:
00123   virtual void create_text(void);
00124 public:
00125   CmdDisplayFocallen(float newlen);
00126 };
00127 
00128 
00130 class CmdDisplayScreenHeight : public Command {
00131 private:
00132   float val;
00133 protected:
00134   virtual void create_text(void);
00135 public:
00136   CmdDisplayScreenHeight(float newval);
00137 };
00138 
00139 
00141 class CmdDisplayScreenDistance : public Command {
00142 private:
00143   float val;
00144 protected:
00145   virtual void create_text(void);
00146 public:
00147   CmdDisplayScreenDistance(float newval);
00148 };
00149 
00150 
00152 class CmdDisplayAAOn : public Command {
00153 private:
00154   int onoff;
00155 protected:
00156   virtual void create_text(void);
00157 public:
00158   CmdDisplayAAOn(int turnon);
00159 };
00160 
00161 
00163 class CmdDisplayDepthcueOn : public Command {
00164 private:
00165   int onoff;
00166 protected:
00167   virtual void create_text(void);
00168 public:
00169   CmdDisplayDepthcueOn(int turnon);
00170 };
00171 
00172 
00174 class CmdDisplayCullingOn : public Command {
00175 private:
00176   int onoff;
00177 protected:
00178   virtual void create_text(void);
00179 public:
00180   CmdDisplayCullingOn(int turnon);
00181 };
00182 
00184 class CmdDisplayBackgroundGradientOn : public Command {
00185 private:
00186   int onoff;
00187 protected:
00188   virtual void create_text(void);
00189 public:
00190   CmdDisplayBackgroundGradientOn(int turnon);
00191 };
00192 
00193 
00194 
00196 class CmdDisplayFPSOn : public Command {
00197 private:
00198   int onoff;
00199 protected:
00200   virtual void create_text(void);
00201 public:
00202   CmdDisplayFPSOn(int turnon);
00203 };
00204 
00205 
00211 class CmdDisplayClip : public Command {
00212 private:
00213   int changenear;               // near (T) or far (F) clip plane
00214   int setval;                   // absolute (T) or relative (F) change
00215   float amount;                 // how much to change
00216 protected:
00217   virtual void create_text(void);
00218 public:
00219   CmdDisplayClip(int ischangenear, int issetval, float newamt);
00220 };
00221 
00222 
00225 class CmdDisplayClipNear : public CmdDisplayClip {
00226  public:
00227    CmdDisplayClipNear(float nearval) : 
00228         CmdDisplayClip(TRUE, TRUE, nearval) {
00229    }
00230 };
00231 
00232 
00234 class CmdDisplayClipNearRel : public CmdDisplayClip {
00235  public:
00236    CmdDisplayClipNearRel(float nearval) : 
00237          CmdDisplayClip(TRUE, FALSE, nearval) {
00238    }
00239 };
00240 
00241 
00243 class CmdDisplayClipFar : public CmdDisplayClip {
00244  public:
00245    CmdDisplayClipFar(float farclip) : 
00246           CmdDisplayClip(FALSE, TRUE, farclip) {
00247    }
00248 };
00249 
00250 
00252 class CmdDisplayClipFarRel : public CmdDisplayClip {
00253  public:
00254    CmdDisplayClipFarRel(float farclip) : 
00255           CmdDisplayClip(FALSE, FALSE, farclip) {
00256    }
00257 };
00258 
00259 
00261 class CmdDisplayCueMode : public Command {
00262 private:
00263   char *mode;
00264 protected:
00265   void create_text();
00266 public:
00267   CmdDisplayCueMode(const char *newmode)
00268   : Command(DISP_CUEMODE) {
00269     mode = stringdup(newmode);
00270   }
00271   ~CmdDisplayCueMode() { delete [] mode; }
00272 };
00273 
00274 
00276 class CmdDisplayCueStart : public Command {
00277 private:
00278   float value;
00279 protected:
00280   void create_text();
00281 public:
00282   CmdDisplayCueStart(float newvalue)
00283   : Command(DISP_CUESTART), value(newvalue) {}
00284 };
00285 
00286 
00288 class CmdDisplayCueEnd : public Command {
00289 private:
00290   float value;
00291 protected:
00292   void create_text();
00293 public:
00294   CmdDisplayCueEnd(float newvalue)
00295   : Command(DISP_CUEEND), value(newvalue) {}
00296 };
00297 
00298 
00300 class CmdDisplayCueDensity : public Command {
00301 private:
00302   float value;
00303 protected:
00304   void create_text();
00305 public:
00306   CmdDisplayCueDensity(float newvalue)
00307   : Command(DISP_CUEDENSITY), value(newvalue) {}
00308 };
00309 
00311 class CmdDisplayShadowOn : public Command {
00312 private:
00313   int onoff;
00314 protected:
00315   void create_text();
00316 public:
00317   CmdDisplayShadowOn(int turnon);
00318 };
00319 
00320 
00322 class CmdDisplayAOOn : public Command {
00323 private:
00324   int onoff;
00325 protected:
00326   void create_text();
00327 public:
00328   CmdDisplayAOOn(int turnon);
00329 };
00330 
00332 class CmdDisplayAOAmbient : public Command {
00333 private:
00334   float value;
00335 protected:
00336   void create_text();
00337 public:
00338   CmdDisplayAOAmbient(float newvalue)
00339   : Command(DISP_AO_AMBIENT), value(newvalue) {}
00340 };
00341 
00343 class CmdDisplayAODirect : public Command {
00344 private:
00345   float value;
00346 protected:
00347   void create_text();
00348 public:
00349   CmdDisplayAODirect(float newvalue)
00350   : Command(DISP_AO_DIRECT), value(newvalue) {}
00351 };
00352 
00353 
00355 class CmdDisplayDoFOn : public Command {
00356 private:
00357   int onoff;
00358 protected:
00359   void create_text();
00360 public:
00361   CmdDisplayDoFOn(int turnon);
00362 };
00363 
00365 class CmdDisplayDoFFNumber : public Command {
00366 private:
00367   float value;
00368 protected:
00369   void create_text();
00370 public:
00371   CmdDisplayDoFFNumber(float newvalue)
00372   : Command(DISP_DOF_FNUMBER), value(newvalue) {}
00373 };
00374 
00376 class CmdDisplayDoFFocalDist : public Command {
00377 private:
00378   float value;
00379 protected:
00380   void create_text();
00381 public:
00382   CmdDisplayDoFFocalDist(float newvalue)
00383   : Command(DISP_DOF_FOCALDIST), value(newvalue) {}
00384 };
00385 
00386 
00388 class CmdDisplayAxes : public Command {
00389 private:
00390   char *pos;
00391 protected:
00392   virtual void create_text();
00393 public:
00394   CmdDisplayAxes(const char *newpos)
00395   : Command(CMD_AXES) { 
00396     pos = stringdup(newpos);
00397   }
00398   ~CmdDisplayAxes() { delete [] pos; }
00399 };
00400     
00401 
00403 class CmdDisplayStageLocation : public Command { 
00404 public:
00405   CmdDisplayStageLocation(const char *newpos)
00406   : Command(CMD_STAGE) { 
00407     pos = stringdup(newpos);
00408   }
00409   ~CmdDisplayStageLocation() { delete [] pos; }
00410 protected:
00411   void create_text();
00412 private:
00413   char *pos;
00414 };
00415 
00416 
00418 class CmdDisplayStagePanels : public Command {
00419 public:
00420   CmdDisplayStagePanels(int newnum)
00421   : Command(CMD_STAGE), num(newnum) {}
00422 protected:
00423   void create_text();
00424 private:
00425   int num;
00426 };
00427 
00428 
00430 class CmdDisplayStageSize : public Command {
00431 public:
00432   CmdDisplayStageSize(float newsz)
00433   : Command(CMD_STAGE), sz(newsz) {}
00434 protected:
00435   void create_text();
00436 private:
00437   float sz;
00438 };
00439 
00440 
00442 class CmdDisplayLightOn : public Command {
00443 private:
00444   int n, onoff;
00445 protected:
00446   void create_text();
00447 public:
00448   CmdDisplayLightOn(int ln, int turnon)
00449   : Command(DISP_LIGHT_ON), n(ln), onoff(turnon) {}
00450 };
00451 
00452 
00454 class CmdDisplayLightHL : public Command {
00455 private:
00456   int n, hl;
00457 protected:
00458   void create_text();
00459 public:
00460   CmdDisplayLightHL(int ln, int highlt)
00461   : Command(DISP_LIGHT_HL), n(ln), hl(highlt) {}
00462 };
00463 
00464 
00466 class CmdDisplayLightRot : public Command {
00467 private:
00468   float theta;
00469   char axis;
00470   int n;
00471 protected:
00472   void create_text();
00473 public:
00474   CmdDisplayLightRot(int ln, float th, char ax)
00475   : Command(DISP_LIGHT_ROT), theta(th), axis(ax), n(ln) {}
00476 };
00477 
00478 
00480 class CmdDisplayLightMove : public Command {
00481 private:
00482   float pos[3];
00483   int n;
00484 protected:
00485   void create_text();
00486 public:
00487   CmdDisplayLightMove(int ln, const float *newpos)
00488   : Command(DISP_LIGHT_MOVE), n(ln) {
00489     for (int i=0; i<3; i++) pos[i] = newpos[i];
00490   }
00491 };
00492  
00493 #endif
00494 

Generated on Fri Oct 4 02:43:28 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002