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 _OSGTRAVERSALDATAHANDLERMIXIN_H_
40 #define _OSGTRAVERSALDATAHANDLERMIXIN_H_
45 #include "OSGTraversalValidationHandlerMixin.h"
47 #include "OSGTraversalData.h"
51 /*! \ingroup GrpSystemFieldContainerMixins
52 \ingroup GrpLibOSGBase
55 template <class ParentT
>
56 class TraversalDataHandlerMixin
:
57 public TraversalValidationHandlerMixin
<ParentT
>
59 /*========================== PRIVATE ================================*/
63 typedef TraversalValidationHandlerMixin
<ParentT
> Inherited
;
64 typedef typename
Inherited::DataSlotHandler DataSlotHandler
;
66 /*========================== PUBLIC =================================*/
70 typedef TraversalDataHandlerMixin
<ParentT
> Self
;
72 typedef typename
ParentT::Desc Desc
;
73 typedef typename
Desc::TypeObject TypeObject
;
75 typedef typename
Inherited::ValidationStatus ValidationStatus
;
79 NoPartitionGroup
= 0x0000,
80 InPartitionGroup
= 0x0001,
81 InPartitionList
= 0x0002
84 /*---------------------------------------------------------------------*/
89 /*---------------------------------------------------------------------*/
90 /*! \name General Fieldcontainer Declaration */
94 /*---------------------------------------------------------------------*/
95 /*! \name Constructors */
99 /*---------------------------------------------------------------------*/
100 /*! \name Destructor */
104 /*---------------------------------------------------------------------*/
108 void changed(ConstFieldMaskArg whichField
,
113 /*---------------------------------------------------------------------*/
118 /*---------------------------------------------------------------------*/
123 /*---------------------------------------------------------------------*/
124 /*! \name your_category */
128 /*---------------------------------------------------------------------*/
129 /*! \name Container Access */
133 /*---------------------------------------------------------------------*/
134 /*! \name Binary Access */
138 /*---------------------------------------------------------------------*/
139 /*! \name your_operators */
142 void setData(TraversalData
*pData
,
144 RenderActionBase
*pAction
);
147 /*---------------------------------------------------------------------*/
148 /*! \name Assignment */
152 /*---------------------------------------------------------------------*/
153 /*! \name Comparison */
157 /*---------------------------------------------------------------------*/
161 virtual void dump( UInt32 uiIndent
= 0,
162 const BitVector bvFlags
= 0) const;
165 /*========================= PROTECTED ===============================*/
169 /*---------------------------------------------------------------------*/
170 /*! \name Type information */
173 virtual void dataDestroyed(FieldContainer
*pCore
,
174 BitVector whichField
,
178 /*---------------------------------------------------------------------*/
183 /*---------------------------------------------------------------------*/
187 TraversalDataHandlerMixin(void);
188 TraversalDataHandlerMixin(const TraversalDataHandlerMixin
&source
);
190 virtual ~TraversalDataHandlerMixin(void);
193 /*---------------------------------------------------------------------*/
198 /*---------------------------------------------------------------------*/
199 /*! \name MT Destruction */
203 /*---------------------------------------------------------------------*/
208 /*---------------------------------------------------------------------*/
213 /*---------------------------------------------------------------------*/
218 /*========================== PRIVATE ================================*/
222 /*!\brief prohibit default function (move to 'public' if needed) */
223 void operator =(const TraversalDataHandlerMixin
&source
);
228 #include "OSGTraversalDataHandlerMixin.inl"
230 #endif /* _OSGTRAVERSALDATAHANDLERMIXIN_H_ */