home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / QD3D Juggler / Juggler Sources / CPropPane.h < prev    next >
Encoding:
Text File  |  1995-12-27  |  1.3 KB  |  51 lines  |  [TEXT/CWIE]

  1. //
  2. //    CPropPane.h
  3. //
  4. //    class CPropPane
  5. //    A Pane for rendering 4 boxes in a QuickDraw 3D view.
  6. //    Borrowed heavily from the "START HERE" sample code from Apple.
  7. //
  8. //    by James Jennings
  9. //    November 22, 1995
  10. //
  11.  
  12. #pragma once
  13.  
  14. //#include "CQD3DPane.h"
  15. #include "CQD3DGimbalPane.h"
  16. #include "CProp.h"
  17.  
  18. class CPropPane : public CQD3DGimbalPane, LPeriodical, LCommander {
  19. public:
  20.     enum { class_ID = 'Prop' };
  21.     typedef enum { prop_Cube, prop_Club } PropType;
  22.     static CPropPane*    CreatePropPaneStream(LStream *inStream);
  23.     
  24.                     CPropPane();
  25.                     CPropPane(const CPropPane &inOriginal);        
  26.                     CPropPane(LStream *inStream);
  27.     virtual            ~CPropPane();
  28.     virtual void    FinishCreateSelf();
  29.     
  30. protected:
  31.     // Override to build a custom view.
  32.     virtual void    MakeCamera();
  33.     virtual void    MakeLightGroup();
  34.     virtual void    MakeModel();
  35.  
  36.     virtual TQ3Status    SubmitScene();
  37.     virtual Boolean        ClickLoop( const EventRecord &inMacEvent);
  38. public:
  39.     // LPeriodical methods
  40.     virtual    void    SpendTime( const EventRecord &inMacEvent);
  41.     // LCommander methods
  42.     virtual Boolean        ObeyCommand(CommandT inCommand, void* ioParam);    
  43.     virtual void        FindCommandStatus(CommandT inCommand,
  44.                             Boolean &outEnabled, Boolean &outUsesMark,
  45.                             Char16 &outMark, Str255 outName);
  46. protected:
  47.     CProp        mClub, mCube;
  48.     PropType    mPropType;
  49.     Boolean        mJitterbug;
  50. };
  51.