1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGINSERTTESTTASK_H_
40 #define _OSGINSERTTESTTASK_H_
45 #include "OSGInsertTestTaskBase.h"
46 #include "OSGCSMWindow.h"
50 /*! \brief InsertTestTask class. See \ref
51 PageGroupInsertTestTask for a description.
54 class OSG_GROUP_DLLMAPPING InsertTestTask
: public InsertTestTaskBase
58 /*========================== PUBLIC =================================*/
62 typedef InsertTestTaskBase Inherited
;
63 typedef InsertTestTask Self
;
65 /*---------------------------------------------------------------------*/
69 virtual void changed(ConstFieldMaskArg whichField
,
74 /*---------------------------------------------------------------------*/
78 virtual void dump( UInt32 uiIndent
= 0,
79 const BitVector bvFlags
= 0) const;
82 /*========================= PROTECTED ===============================*/
86 // Variables should all be in InsertTestTaskBase.
88 /*---------------------------------------------------------------------*/
89 /*! \name Constructors */
93 InsertTestTask(const InsertTestTask
&source
);
96 /*---------------------------------------------------------------------*/
97 /*! \name Destructors */
100 virtual ~InsertTestTask(void);
103 /*---------------------------------------------------------------------*/
107 static void initMethod(InitPhase ePhase
);
110 /*========================== PRIVATE ================================*/
114 friend class FieldContainer
;
115 friend class InsertTestTaskBase
;
117 // prohibit default functions (move to 'public' if you need one)
118 void operator =(const InsertTestTask
&source
);
121 typedef InsertTestTask
*InsertTestTaskP
;
124 class TestDrawTask
: public DrawTask
126 /*========================== PUBLIC =================================*/
130 static const UInt32 TaskA
= Inherited::LastType
+ 1;
131 static const UInt32 TaskB
= Inherited::LastType
+ 2;
132 static const UInt32 LastType
= TaskB
;
134 typedef DrawTask Inherited
;
136 /*---------------------------------------------------------------------*/
137 /*! \name Statistic */
140 TestDrawTask(UInt32 uiType
);
143 /*---------------------------------------------------------------------*/
147 virtual void execute(HardwareContext
*pContext
, DrawEnv
*pEnv
);
150 /*---------------------------------------------------------------------*/
155 /*---------------------------------------------------------------------*/
160 /*---------------------------------------------------------------------*/
164 virtual void dump(UInt32 uiIndent
);
167 /*========================= PROTECTED ===============================*/
171 /*---------------------------------------------------------------------*/
176 /*---------------------------------------------------------------------*/
177 /*! \name Destructor */
180 virtual ~TestDrawTask(void);
183 /*========================== PRIVATE ================================*/
187 /*! \brief prohibit default function (move to 'public' if needed) */
188 TestDrawTask(const TestDrawTask
&source
);
189 /*! \brief prohibit default function (move to 'public' if needed) */
190 void operator =(const TestDrawTask
&source
);
193 typedef RefCountPtr
<TestDrawTask
,
194 MemObjRefCountPolicy
> TestDrawTaskRefPtr
;
198 #include "OSGInsertTestTaskBase.inl"
199 #include "OSGInsertTestTask.inl"
201 #endif /* _OSGINSERTTESTTASK_H_ */