bdba57f8d36648215ebba14524e72b8c94af19ed
[scilab.git] / scilab / modules / renderer / src / cpp / subwinDrawing / DrawableSubwinFactory.cpp
1 /*------------------------------------------------------------------------*/
2 /* file: DrawableSubwinFactory.cpp                                        */
3 /* Copyright INRIA 2007                                                   */
4 /* Authors : Jean-Baptiste Silvy                                          */
5 /* desc : Factory for subwin objects. Automaticaly create a subwin        */
6 /*        drawer with the right algorithms from the garphic handle        */
7 /*------------------------------------------------------------------------*/
8
9 #include "DrawableSubwinFactory.h"
10 #include "DrawableSubwin.h"
11 //#include "CameraFactory.h"
12 #include "DrawableSubwinBridgeFactory.h"
13
14
15
16 namespace sciGraphics
17 {
18
19 /*------------------------------------------------------------------------------------------*/
20 DrawableObject * DrawableSubwinFactory::create( void )
21 {
22   DrawableSubwin * newSubwin = new DrawableSubwin( m_pDrawed ) ;
23   DrawableSubwinBridgeFactory imp;
24   imp.setDrawedSubwin(newSubwin);
25   newSubwin->setDrawableImp(imp.create());
26
27   // create the camera
28   //CameraFactory cf;
29   //cf.setCorrespondingSubwin(res) ;
30   //res->setCamera( cf.create() ) ;
31
32   return newSubwin;
33 }
34 /*------------------------------------------------------------------------------------------*/
35 void DrawableSubwinFactory::update( void )
36 {
37   // nothing for now
38 }
39 /*------------------------------------------------------------------------------------------*/
40
41 }