home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / moldyn / source / CMolDynView.h < prev   
Encoding:
Text File  |  1999-06-25  |  1.2 KB  |  62 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LOffscreenView.h           ©1994-1998 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef _H_CMolDynView
  6. #define _H_CMolDynView
  7. #pragma once
  8.  
  9. #include <LOffscreenView.h>
  10.  
  11. #if PP_Uses_Pragma_Import
  12.     #pragma import on
  13. #endif
  14.  
  15. PP_Begin_Namespace_PowerPlant
  16.  
  17. // ---------------------------------------------------------------------------
  18.  
  19. class    CMolDynView : public LView /* LOffscreenView */,
  20.                       public PP_PowerPlant::LPeriodical  {
  21. public:
  22.     enum { class_ID = FOUR_CHAR_CODE('MLDv') };
  23.  
  24.                             CMolDynView();
  25.                             
  26.                             CMolDynView(
  27.                                     const SPaneInfo&    inPaneInfo,
  28.                                     const SViewInfo&    inViewInfo);
  29.                                     
  30.                             CMolDynView(LStream*        inStream);
  31.                             
  32.     virtual                    ~CMolDynView();
  33.  
  34.     virtual    void            MolDynInit();
  35.  
  36.     virtual    void            SpendTime(const EventRecord&        inMacEvent);
  37.  
  38.  
  39. #if 0
  40.     virtual void            DrawOffscreen(
  41.                                     RgnHandle            inSuperDrawRgnH,
  42.                                     GWorldFlags            inFlags = 0);
  43. #endif
  44.  
  45.     virtual void            DrawSelf();
  46.  
  47. protected:
  48.  
  49.     double twoPi;
  50.     double t;
  51.     double delta;
  52.  
  53. };
  54.  
  55. PP_End_Namespace_PowerPlant
  56.  
  57.  
  58. #if PP_Uses_Pragma_Import
  59.     #pragma import reset
  60. #endif
  61.  
  62. #endif