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: DisplayRocker.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.9 $ $Date: 2019/01/17 21:20:59 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * 00019 ***************************************************************************/ 00020 #ifndef DISPLAYROCKER_H 00021 #define DISPLAYROCKER_H 00022 00023 #include "Displayable.h" 00024 00025 class DisplayRocker : public Displayable { 00026 private: 00028 int Rocking, rockSteps, currRockStep, rockOnce; 00029 char rockAxis; 00030 float rockAmount; 00031 00032 public: 00033 DisplayRocker(Displayable *); 00034 00035 void start_rocking(float a, char ax, int steps, int doOnce = FALSE); 00036 void stop_rocking() { Rocking = FALSE; } 00037 00038 virtual void prepare(); 00039 }; 00040 00041 #endif 00042