baf52dacd8003c3ac6d43bfef7073aae9e871e3b
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

1) /* Blinker
2)    Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org>
3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

6) #ifndef BLINKER_CANVAS_H
7) #define BLINKER_CANVAS_H
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

8) 
9) #include <list>
10) #include <string>
11) 
12) #include <BlinkenLib/BlinkenFrame.h>
13) 
14) #include "Directory.h"
15) #include "File.h"
16) #include "Format.h"
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

17) #include "FormatFile.h"
Stefan Schuermans converted canvas module to...

Stefan Schuermans authored 12 years ago

18) #include "ListTracker.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

19) #include "Mgrs.h"
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

20) #include "Module.h"
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

21) #include "OutStreamFile.h"
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

22) 
23) namespace Blinker {
24) 
25) /// a canvas to merge and split streams
26) class Canvas: public Module
27) {
28) protected:
29)   /// input to canvas
30)   class Input;
31) 
Stefan Schuermans converted canvas module to...

Stefan Schuermans authored 12 years ago

32)   /// input list tracker
33)   typedef ListTracker<Canvas, Input, Directory> InListTracker;
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

34) 
35) public:
36)   /**
37)    * @brief constructor
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

38)    * @param[in] mgrs managers
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

39)    * @param[in] dirBase base directory
40)    */
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

41)   Canvas(Mgrs &mgrs, const Directory &dirBase);
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

42) 
43)   /// virtual destructor
44)   virtual ~Canvas();
45) 
46) private:
47)   /// copy constructor disabled
48)   Canvas(const Canvas &that);
49) 
50)   /// assignment operator disabled
51)   const Canvas & operator=(const Canvas &that);
52) 
53) public:
54)   /// check for update of configuration
55)   virtual void updateConfig();
56) 
57) protected:
58)   /// (re-)create canvas
59)   void createCanvas();
60) 
61)   /// tear down canvas
62)   void destroyCanvas();
63) 
64)   /// notfication to redraw (called by inputs)
65)   void redraw();
66) 
67)   /// send current frame to output stream
68)   void sendFrame();
69) 
70) protected:
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

71)   FormatFile     m_fileFormat;     ///< canvas format file
72)   OutStreamFile  m_fileOutStream;  ///< output stream name file
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

73)   stBlinkenFrame *m_pCanvas;       ///< canvas to put streams on
Stefan Schuermans typos in comments and docum...

Stefan Schuermans authored 12 years ago

74)   bool           m_canvasHasFrame; ///< if there is >= 1 frame on canvas
Stefan Schuermans converted canvas module to...

Stefan Schuermans authored 12 years ago

75)   InListTracker  m_inListTracker;  ///< input list tracker
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

76) }; // class Canvas
77) 
78) } // namespace Blinker
79) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

80) #endif // #ifndef BLINKER_CANVAS_H