home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / mgl11 / demo / demoarea.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-09  |  1.9 KB  |  71 lines

  1. /****************************************************************************
  2. *
  3. *                Visual - A 3D Scientific Visualisation Program
  4. *
  5. *                   Copyright (C) 1994 SciTech Software.
  6. *                            All rights reserved.
  7. *
  8. * Filename:        $RCSfile: demoarea.hpp $
  9. * Version:        $Revision: 1.2 $
  10. *
  11. * Language:        C++ 3.0
  12. * Environment:    IBM PC (MS DOS)
  13. *
  14. * Description:    Header file for the class DemoArea, a class for
  15. *                performing the demos in a double buffered window.
  16. *
  17. * $Id: demoarea.hpp 1.2 1994/03/09 11:29:32 kjb release $
  18. *
  19. ****************************************************************************/
  20.  
  21. #ifndef    __DEMOAREA_HPP
  22. #define    __DEMOAREA_HPP
  23.  
  24. #ifndef    __TRENDERA_HPP
  25. #include "trendera.hpp"
  26. #endif
  27.  
  28. /*-------------------------- Class definitions ----------------------------*/
  29.  
  30. //---------------------------------------------------------------------------
  31. // The DemoArea class is a class used to represent an area for peforming
  32. // the double buffered demonstrations.
  33. //---------------------------------------------------------------------------
  34.  
  35. class DemoArea : public TRenderArea {
  36. protected:
  37.     short    cntDemo;                    // Current demonstration
  38.  
  39.             // Method to run each of the specific demonstrations
  40.             void displayStatusInfo();
  41.             void lineDemo();
  42.             void ellipseDemo();
  43.             void arcDemo();
  44.             void polygonDemo();
  45.             void rectangleDemo();
  46.             void fontDemo();
  47.             void colorDemo();
  48.             void markerDemo();
  49.             void patternDemo();
  50.             void floodFillDemo();
  51.             void animationDemo();
  52.  
  53.             // Method to set the demonstration title name
  54.             void setDemoTitle(char *title);
  55.  
  56.             // Method to set the information window text
  57.             void setInfoText(char *text);
  58.  
  59. public:
  60.             // Constructor
  61.             DemoArea(const TRect& bounds);
  62.  
  63.             // Method handle interaction with the rendering
  64.     virtual    void handleEvent(TEvent& event,phaseType phase = phFocused);
  65.  
  66.             // Method to render the scene
  67.     virtual    void render();
  68.     };
  69.  
  70. #endif    // __RENDERA_HPP
  71.