GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_renderer.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 *****************************************************************************/
22 
24 
25 #ifndef GLC_RENDERER_H_
26 #define GLC_RENDERER_H_
27 
28 #include <QHash>
29 
30 #include "glc_renderproperties.h"
31 
32 #include "../glc_config.h"
33 
35 
38 
42 
44 {
45 public:
47 
49 
50 
51  GLC_Renderer();
52  GLC_Renderer(GLC_3DViewCollection* pCollection);
53  GLC_Renderer(const GLC_Renderer& other);
54  virtual ~GLC_Renderer();
56 
58 
60 
61 public:
63  inline bool hasCollection() const
64  {return m_pCollection != NULL;}
65 
67  inline GLC_3DViewCollection* collection() const
68  {return m_pCollection;}
69 
71  bool instanceRenderPropertiesIsAvailable(GLC_uint id) const;
72 
74  const GLC_RenderProperties& renderPropertiesOfInstance(GLC_uint id) const;
75 
77  inline bool isCurrent() const
78  {return m_IsCurrent;}
79 
81 
83 
85 
86 public:
88  void clear();
89 
91  GLC_Renderer& operator=(const GLC_Renderer& other);
92 
94  void setCollection(GLC_3DViewCollection* pCollection);
95 
97 
98  void setCurrent();
99 
101 
102  void unSetCurrent();
103 
105  void addRenderPropertiesOfInstanceId(GLC_uint id);
107 
109 // Private services fonction
111 private:
112 
114 // Private Members
116 private:
119 
120  QHash<GLC_uint, GLC_RenderProperties> m_IdToRenderProperties;
121 
123 
124 };
125 
126 #endif /* GLC_RENDERER_H_ */

©2005-2013 Laurent Ribon