glc_pointcloud.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_POINTCLOUD_H_
00025 #define GLC_POINTCLOUD_H_
00026 
00027 #include "glc_geometry.h"
00028 #include "../maths/glc_vector3d.h"
00029 #include "../maths/glc_vector3df.h"
00030 
00031 #include "../glc_config.h"
00032 
00035 
00039 
00040 class GLC_LIB_EXPORT GLC_PointCloud : public GLC_Geometry
00041 {
00043 
00045 
00046 
00047 public:
00049         GLC_PointCloud();
00050 
00052         GLC_PointCloud(const GLC_PointCloud& pointCloud);
00053 
00055         virtual ~GLC_PointCloud();
00057 
00059 
00061 
00062 public:
00064         const GLC_BoundingBox& boundingBox();
00065 
00067         virtual GLC_Geometry* clone() const;
00068 
00070         inline bool isEmpty() const
00071         {return GLC_Geometry::m_WireData.isEmpty();}
00072 
00074 
00075 
00077 
00078 public:
00080         inline GLC_uint addPoint(const GLfloatVector& data)
00081         {return GLC_Geometry::m_WireData.addVerticeGroup(data);}
00082 
00084         GLC_uint addPoint(const QList<GLC_Point3d>& pointsList);
00085 
00087         GLC_uint addPoint(const QList<GLC_Point3df>& pointsList);
00088 
00090         GLC_PointCloud& operator=(const GLC_PointCloud& pointcloud);
00091 
00093         inline void clear()
00094         {GLC_Geometry::m_WireData.clear();}
00095 
00097 
00099 
00101 
00102 private:
00103 
00105 
00107         virtual void glDraw(const GLC_RenderProperties&);
00108 
00110 
00111 };
00112 
00113 #endif /* GLC_POINTCLOUD_H_ */

SourceForge.net Logo

©2005-2011 Laurent Ribon