glc_polylines.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the GLC-lib library.
00004  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
00005  http://glc-lib.sourceforge.net
00006 
00007  GLC-lib is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU Lesser General Public License as published by
00009  the Free Software Foundation; either version 3 of the License, or
00010  (at your option) any later version.
00011 
00012  GLC-lib is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  GNU Lesser General Public License for more details.
00016 
00017  You should have received a copy of the GNU Lesser General Public License
00018  along with GLC-lib; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020 
00021  *****************************************************************************/
00023 
00024 #ifndef GLC_POLYLINES_H_
00025 #define GLC_POLYLINES_H_
00026 
00027 #include "glc_geometry.h"
00028 
00029 #include "../glc_config.h"
00030 
00033 
00037 
00038 class GLC_LIB_EXPORT GLC_Polylines : public GLC_Geometry
00039 {
00041 
00043 
00044 public:
00046         GLC_Polylines();
00047 
00049         GLC_Polylines(const GLC_Polylines& polyline);
00050 
00052         virtual ~GLC_Polylines();
00054 
00056 
00058 
00059 public:
00061         const GLC_BoundingBox& boundingBox();
00062 
00064         virtual GLC_Geometry* clone() const;
00065 
00067         inline bool isEmpty() const
00068         {return GLC_Geometry::m_WireData.isEmpty();}
00069 
00070 
00072 
00073 
00075 
00076 public:
00078         inline GLC_uint addPolyline(const GLfloatVector& data)
00079         {return GLC_Geometry::m_WireData.addVerticeGroup(data);}
00080 
00082         GLC_Polylines& operator=(const GLC_Polylines& polyline);
00083 
00085         inline void clear()
00086         {GLC_Geometry::m_WireData.clear();}
00087 
00089 
00091 
00093 
00094 private:
00095 
00097 
00099         virtual void glDraw(const GLC_RenderProperties&);
00100 
00102 
00103 };
00104 
00105 #endif /* GLC_POLYLINES_H_ */

SourceForge.net Logo

©2005-2011 Laurent Ribon