fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComplexSceneManager / Native-Dummy / OSGCSMNativeWindow.h
blob8ec032c2955ea8399e96474b8c62d3d7ffd36975
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 _OSGCSMNATIVEWINDOW_H_
40 #define _OSGCSMNATIVEWINDOW_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGCSMNativeWindowBase.h"
47 OSG_BEGIN_NAMESPACE
49 /*! \brief CSMNativeWindow class. See \ref
50 PageContribCSMCSMNativeWindow for a description.
53 class OSG_CONTRIBCSM_DLLMAPPING CSMNativeWindow : public CSMNativeWindowBase
55 protected:
57 /*========================== PUBLIC =================================*/
59 public:
61 typedef CSMNativeWindowBase Inherited;
62 typedef CSMNativeWindow Self;
64 /*---------------------------------------------------------------------*/
65 /*! \name Sync */
66 /*! \{ */
68 virtual void changed(ConstFieldMaskArg whichField,
69 UInt32 origin,
70 BitVector details );
72 /*! \} */
73 /*---------------------------------------------------------------------*/
74 /*! \name Output */
75 /*! \{ */
77 virtual bool init(void);
79 /*! \} */
80 /*---------------------------------------------------------------------*/
81 /*! \name Output */
82 /*! \{ */
84 static void initWindowSystemThreading(void);
86 /*! \} */
87 /*---------------------------------------------------------------------*/
88 /*! \name Output */
89 /*! \{ */
91 virtual void dump( UInt32 uiIndent = 0,
92 const BitVector bvFlags = 0) const;
94 /*! \} */
95 /*========================= PROTECTED ===============================*/
97 protected:
99 /*---------------------------------------------------------------------*/
100 /*! \name Constructors */
101 /*! \{ */
103 CSMNativeWindow(void);
104 CSMNativeWindow(const CSMNativeWindow &source);
106 /*! \} */
107 /*---------------------------------------------------------------------*/
108 /*! \name Destructors */
109 /*! \{ */
111 virtual ~CSMNativeWindow(void);
113 /*! \} */
114 /*---------------------------------------------------------------------*/
115 /*! \name Init */
116 /*! \{ */
118 /*! \} */
119 /*---------------------------------------------------------------------*/
120 /*! \name Init */
121 /*! \{ */
123 virtual void resolveLinks (void);
124 virtual void terminateGLContext(void);
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name Init */
129 /*! \{ */
131 static void initMethod(InitPhase ePhase);
133 /*! \} */
134 /*---------------------------------------------------------------------*/
135 /*! \name Init */
136 /*! \{ */
138 /*! \} */
139 /*========================== PRIVATE ================================*/
141 private:
143 friend class FieldContainer;
144 friend class CSMNativeWindowBase;
146 // prohibit default functions (move to 'public' if you need one)
147 void operator =(const CSMNativeWindow &source);
150 typedef CSMNativeWindow *CSMNativeWindowP;
152 OSG_END_NAMESPACE
154 #include "OSGCSMNativeWindowBase.inl"
155 #include "OSGCSMNativeWindow.inl"
157 #endif /* _OSGCSMNATIVEWINDOW_H_ */