GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_pointsprite.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  Copyright (C) 2009 Laurent Bauer
6  http://glc-lib.sourceforge.net
7 
8  GLC-lib is free software; you can redistribute it and/or modify
9  it under the terms of the GNU Lesser General Public License as published by
10  the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version.
12 
13  GLC-lib is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with GLC-lib; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 
22  *****************************************************************************/
24 
25 #include "glc_pointcloud.h"
26 #include <QVector>
27 
28 #include "../glc_config.h"
29 
30 #ifndef GLC_POINTSPRITE_H_
31 #define GLC_POINTSPRITE_H_
32 
35 
38 
39 
41 {
42 public:
44 
46 
47 
48 
50 
52  GLC_PointSprite(const GLC_PointSprite& point);
53 
55  virtual ~GLC_PointSprite();
57 
58 
60 
61 public:
62 
64  inline float size() const
65  {return m_Size;}
66 
68  virtual GLC_Geometry* clone() const;
69 
71  inline float fadeThresoldSize()
72  {return m_FadeThresoldSize;}
73 
75 
76  inline static float maximumPointSize()
77  {return m_MaxSize;}
78 
80 
82 
84 
85 public:
86 
88  void setSize(float size);
89 
91 
92  void setPointDistanceAttenuation(QVector<float>);
93 
95  inline void setFadeThresoldSize(float value)
96  {m_FadeThresoldSize= value;}
97 
99 
101 
103 
104 private:
106  virtual void render(const GLC_RenderProperties&);
107 
109 
110  virtual void glDraw(const GLC_RenderProperties&);
112 
113 // Private Member
115 
116 private:
118  float m_Size;
119 
121  QVector<float> m_DistanceAttenuation;
122 
125 
127  static float m_MaxSize;
128 };
129 
130 #endif /* GLC_POINTSPRITE_H_ */

©2005-2013 Laurent Ribon