fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGRenderOptions.h
blob858e48791710a8a7bca9f3a243707095c8308b54
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGRENDEROPTIONS_H_
40 #define _OSGRENDEROPTIONS_H_
42 #include "OSGRenderOptionsBase.h"
44 OSG_BEGIN_NAMESPACE
46 class RenderActionBase;
48 /*! \brief RenderOptions class. See \ref PageSystemWindowRenderOptions
49 for a description.
51 \ingroup GrpSystemWindowBase
52 \ingroup GrpLibOSGSystem
53 \includebasedoc
56 class OSG_SYSTEM_DLLMAPPING RenderOptions : public RenderOptionsBase
58 /*========================== PUBLIC =================================*/
60 public:
62 typedef RenderOptionsBase Inherited;
64 /*---------------------------------------------------------------------*/
65 /*! \name Sync */
66 /*! \{ */
68 virtual void changed(ConstFieldMaskArg whichField,
69 UInt32 origin,
70 BitVector detail);
72 /*! \} */
73 /*---------------------------------------------------------------------*/
74 /*! \name Output */
75 /*! \{ */
77 void setWireframe (bool value );
79 bool getWireframe (void );
80 BitVector getChanged (void );
81 BitVector getLastChanged (void );
83 /*! \} */
84 /*---------------------------------------------------------------------*/
85 /*! \name Output */
86 /*! \{ */
88 void activate (RenderActionBase *pAction);
89 void deactivate(RenderActionBase *pAction);
91 #ifdef OSG_OLD_RENDER_ACTION
92 void activateOptions(RenderAction *action);
93 #endif
95 /*! \} */
96 /*========================= PROTECTED ===============================*/
98 protected:
100 /*---------------------------------------------------------------------*/
101 /*! \name Constructors */
102 /*! \{ */
104 RenderOptions(void);
105 RenderOptions(const RenderOptions &source);
107 /*! \} */
108 /*---------------------------------------------------------------------*/
109 /*! \name Destructors */
110 /*! \{ */
112 virtual ~RenderOptions(void);
114 /*! \} */
115 /*---------------------------------------------------------------------*/
116 /*! \name Init */
117 /*! \{ */
119 static void initMethod(InitPhase ePhase);
121 /*! \} */
122 /*---------------------------------------------------------------------*/
123 /*! \name GL setup handling */
124 /*! \{ */
126 BitVector _changed;
127 BitVector _last_changed;
128 Real32 _gl_version;
129 GLenum _polygon_mode;
130 bool _backface_culling;
131 bool _two_sided_lighting;
132 bool _spec_tex_lighting;
134 /*! \} */
135 /*========================== PRIVATE ================================*/
137 private:
139 friend class FieldContainer;
140 friend class RenderOptionsBase;
142 // prohibit default functions (move to 'public' if you need one)
143 void operator =(const RenderOptions &source);
146 typedef RenderOptions *RenderOptionsP;
148 OSG_END_NAMESPACE
150 #include "OSGRenderOptionsBase.inl"
152 #endif /* _OSGRENDEROPTIONS_H_ */