GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_pointcloud.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  *****************************************************************************/
23 
24 #ifndef GLC_POINTCLOUD_H_
25 #define GLC_POINTCLOUD_H_
26 
27 #include "glc_geometry.h"
28 #include "../maths/glc_vector3d.h"
29 #include "../maths/glc_vector3df.h"
30 
31 #include "../glc_config.h"
32 
35 
39 
41 {
43 
45 
46 
47 public:
50 
52  GLC_PointCloud(const GLC_PointCloud& pointCloud);
53 
55  virtual ~GLC_PointCloud();
57 
59 
61 
62 public:
65 
67  virtual GLC_Geometry* clone() const;
68 
70  inline bool isEmpty() const
72 
74 
75 
77 
78 public:
80  inline GLC_uint addPoint(const GLfloatVector& data)
82 
84  GLC_uint addPoint(const QList<GLC_Point3d>& pointsList);
85 
87  GLC_uint addPoint(const QList<GLC_Point3df>& pointsList);
88 
90  inline void addColors(const GLfloatVector& colors)
92 
94  void addColors(const QList<QColor>& colors);
95 
97  GLC_PointCloud& operator=(const GLC_PointCloud& pointcloud);
98 
100  inline void clear()
102 
104 
106 
108 
109 protected:
110 
112 
114  virtual void glDraw(const GLC_RenderProperties&);
115 
117 
118 };
119 
120 #endif /* GLC_POINTCLOUD_H_ */

©2005-2013 Laurent Ribon