1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2003 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 _OSGSTAGEHANDLERMIXIN_H_
40 #define _OSGSTAGEHANDLERMIXIN_H_
45 #include "OSGTraversalDataHandlerMixin.h"
47 #include "OSGStageData.h"
49 #include "OSGMultiCore.h"
50 #include "OSGViewport.h"
54 /*! \ingroup GrpSystemFieldContainerMixins
55 \ingroup GrpLibOSGBase
58 template <class ParentT
>
59 class StageHandlerMixin
: public TraversalDataHandlerMixin
<ParentT
>
61 /*========================== PRIVATE ================================*/
65 typedef TraversalDataHandlerMixin
<ParentT
> Inherited
;
66 typedef typename
Inherited::DataSlotHandler DataSlotHandler
;
68 /*========================== PUBLIC =================================*/
72 typedef StageHandlerMixin
<ParentT
> Self
;
74 typedef typename
ParentT::Desc Desc
;
75 typedef typename
Desc::TypeObject TypeObject
;
77 typedef typename
Inherited::ValidationStatus ValidationStatus
;
81 NoPartitionGroup
= 0x0000,
82 InPartitionGroup
= 0x0001,
83 InPartitionList
= 0x0002
86 /*---------------------------------------------------------------------*/
91 /*---------------------------------------------------------------------*/
92 /*! \name General Fieldcontainer Declaration */
96 /*---------------------------------------------------------------------*/
97 /*! \name Constructors */
101 /*---------------------------------------------------------------------*/
102 /*! \name Destructor */
106 /*---------------------------------------------------------------------*/
110 void changed(ConstFieldMaskArg whichField
,
115 /*---------------------------------------------------------------------*/
119 ValidationStatus
validateOnEnter(RenderActionBase
*pAction
);
120 ValidationStatus
validateOnLeave(RenderActionBase
*pAction
);
123 /*---------------------------------------------------------------------*/
127 void pushPartition (RenderActionBase
*pAction
,
128 UInt32 uiCopyOnPush
= 0x0000,
129 RenderPartitionBase::Mode eMode
=
130 RenderPartitionBase::StateSorting
);
131 void popPartition (RenderActionBase
*pAction
);
133 void beginPartitionGroup(RenderActionBase
*pAction
);
134 void endPartitionGroup (RenderActionBase
*pAction
);
136 void beginPartitions (RenderActionBase
*pAction
);
137 void endPartitions (RenderActionBase
*pAction
);
140 /*---------------------------------------------------------------------*/
141 /*! \name your_category */
145 /*---------------------------------------------------------------------*/
146 /*! \name Container Access */
150 /*---------------------------------------------------------------------*/
151 /*! \name Binary Access */
155 /*---------------------------------------------------------------------*/
156 /*! \name your_operators */
160 /*---------------------------------------------------------------------*/
161 /*! \name Assignment */
165 /*---------------------------------------------------------------------*/
166 /*! \name Comparison */
170 /*---------------------------------------------------------------------*/
174 virtual void dump( UInt32 uiIndent
= 0,
175 const BitVector bvFlags
= 0) const;
178 /*========================= PROTECTED ===============================*/
182 TraversalValidator::ValidationStatus _tmpStatus
;
184 /*---------------------------------------------------------------------*/
185 /*! \name Type information */
189 /*---------------------------------------------------------------------*/
194 /*---------------------------------------------------------------------*/
198 StageHandlerMixin(void);
199 StageHandlerMixin(const StageHandlerMixin
&source
);
201 virtual ~StageHandlerMixin(void);
204 /*---------------------------------------------------------------------*/
209 /*---------------------------------------------------------------------*/
210 /*! \name MT Destruction */
214 /*---------------------------------------------------------------------*/
218 Action::ResultE
recurseFromThis(Action
*action
);
220 Action::ResultE
recurseFrom (Action
*action
,
223 Action::ResultE
recurse (Action
*action
,
226 /*---------------------------------------------------------------------*/
231 /*---------------------------------------------------------------------*/
236 /*========================== PRIVATE ================================*/
240 /*!\brief prohibit default function (move to 'public' if needed) */
241 void operator =(const StageHandlerMixin
&source
);
246 #include "OSGStageHandlerMixin.inl"
248 #endif /* _OSGSTAGEHANDLERMIXIN_H_ */