DrawableObjectFactory.h

Go to the documentation of this file.
00001 /*
00002  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
00003  * Copyright (C) 2007 - INRIA - Jean-Baptiste Silvy 
00004  * desc : Factory for drawable objects. Automaticaly create a drawable
00005  * object with the right algorithms from the garphic handle
00006  * 
00007  * This file must be used under the terms of the CeCILL.
00008  * This source file is licensed as described in the file COPYING, which
00009  * you should have received as part of this distribution.  The terms
00010  * are also available at    
00011  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
00012  *
00013  */
00014 
00015 #ifndef _DRAWABLE_OBJECT_FACTORY_H_
00016 #define _DRAWABLE_OBJECT_FACTORY_H_
00017 
00018 extern "C"
00019 {
00020 #include "../../../graphics/includes/ObjectStructure.h"
00021 }
00022 #include "DrawableObject.h"
00023 
00024 namespace sciGraphics
00025 {
00026 
00027 class DrawableObjectFactory
00028 {
00029 
00030 public:
00031 
00032   DrawableObjectFactory( void ) { m_pDrawed = NULL ; }
00033 
00034   virtual ~DrawableObjectFactory( void ) { m_pDrawed = NULL ; }
00035   
00041   void setGraphicObj( sciPointObj * drawedObj ) ;
00042 
00046   virtual DrawableObject * create( void ) ;
00047 
00052   virtual void update( void ) ;
00053 
00054 protected:
00055 
00056   sciPointObj * m_pDrawed ;
00057 
00058 private:
00059 
00063   DrawableObjectFactory * createRightFactory( void ) ;
00064 
00065 } ;
00066 
00067 }
00068 
00069 #endif /* _DRAWABLE_OBJECT_FACTORY_H_  */

Generated on Tue Sep 9 17:48:28 2008 for Scilab [trunk] by  doxygen 1.5.5