1 /**
2     \author mean fixounet@free.fr 2010
3 */
4 
5 /***************************************************************************
6  *                                                                         *
7  *   This program is free software; you can redistribute it and/or modify  *
8  *   it under the terms of the GNU General Public License as published by  *
9  *   the Free Software Foundation; either version 2 of the License, or     *
10  *   (at your option) any later version.                                   *
11  *                                                                         *
12  ***************************************************************************/
13 #include "config.h"
14 #include "ADM_default.h"
15 #include "DIA_coreToolkit.h"
16 #include "GUI_render.h"
17 #include "GUI_renderInternal.h"
18 #include "GUI_accelRender.h"
19 
20 class simpleRender: public VideoRenderBase
21 {
22       protected:
23       public:
24                              simpleRender( void ) ;
25                              ~simpleRender();
26               virtual	bool init( GUI_WindowInfo *window, uint32_t w, uint32_t h, float zoom);
27               virtual	bool stop(void);
28               virtual   bool displayImage(ADMImage *pic);
29               virtual   bool changeZoom(float newZoom);
30               virtual   bool refresh(void);
usingUIRedraw(void)31               virtual   bool usingUIRedraw(void) {return false;};
getName()32                   const char *getName() {return "Dummy";}
33 };
34 
35 
36 
spawnSimpleRender()37 VideoRenderBase *spawnSimpleRender()
38 {
39     return new simpleRender();
40 }
41 
42 
43 /**
44     \fn simpleRender
45 */
simpleRender()46 simpleRender::simpleRender()
47 {
48     ADM_info("creating dummy render.\n");
49 }
50 /**
51     \fn simpleRender
52 */
~simpleRender()53 simpleRender::~simpleRender()
54 {
55     ADM_info("Destroying dummy render.\n");
56 }
57 
58 /**
59     \fn stop
60 */
stop(void)61 bool simpleRender::stop(void)
62 {
63     ADM_info("stopping dummy render.\n");
64     return true;
65 }
66 /**
67     \fn refresh
68 */
refresh(void)69 bool simpleRender::refresh(void)
70 {
71      return true;
72 }
73 /**
74     \fn displayImage
75 */
displayImage(ADMImage * pic)76 bool simpleRender::displayImage(ADMImage *pic)
77 {
78         return true;
79 }
80 /**
81     \fn changeZoom
82 */
changeZoom(float newZoom)83 bool simpleRender::changeZoom(float newZoom)
84 {
85         return true;
86 }
87 /**
88     \fn changeZoom
89 */
init(GUI_WindowInfo * window,uint32_t w,uint32_t h,float zoom)90 bool simpleRender::init( GUI_WindowInfo *window, uint32_t w, uint32_t h, float zoom)
91 {
92     ADM_info("init, simple render. w=%d, h=%d, zoom=%.4f\n",(int)w,(int)h,zoom);
93     return true;
94 }
95 
96