00001 /* 00002 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 00003 * Copyright (C) 2007 - INRIA - Jean-Baptiste Silvy 00004 * desc : Strategy interface for the getArcRepresentation algorithm 00005 * 00006 * This file must be used under the terms of the CeCILL. 00007 * This source file is licensed as described in the file COPYING, which 00008 * you should have received as part of this distribution. The terms 00009 * are also available at 00010 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 00011 * 00012 */ 00013 00014 #ifndef _DECOMPOSE_LINE_STRATEGY_HXX_ 00015 #define _DECOMPOSE_LINE_STRATEGY_HXX_ 00016 00017 #include "DrawablePolyline.h" 00018 00019 namespace sciGraphics 00020 { 00021 00022 class DecomposeLineStrategy 00023 { 00024 public: 00025 00026 DecomposeLineStrategy( DrawablePolyline * polyline ) {m_pDrawed = polyline;} 00027 00028 virtual ~DecomposeLineStrategy( void ) {m_pDrawed = NULL;} 00029 00039 virtual void getDrawnVertices(double xCoords[], double yCcoords[], double zCcoords[]) = 0; 00040 00046 virtual void getDrawnVerticesColor(int colors[]) = 0; 00047 00051 virtual int getDrawnVerticesLength(void) = 0; 00052 00053 DrawablePolyline * getDrawedPolyline(void) { return m_pDrawed;} 00054 00055 protected: 00056 00057 DrawablePolyline * m_pDrawed; 00058 00059 }; 00060 00061 } 00062 00063 #endif /* _DECOMPOSE_LINE_STRATEGY_HXX_ */ 00064
1.5.5