1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
48 ** class ShaderVariableMVec3f
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGSHADERVARIABLEMVEC3FBASE_H_
55 #define _OSGSHADERVARIABLEMVEC3FBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGShaderValueVariable.h" // Parent
68 #include "OSGVecFields.h" // Value type
70 #include "OSGShaderVariableMVec3fFields.h"
75 class ShaderVariableMVec3f
;
77 //! \brief ShaderVariableMVec3f Base Class.
79 class OSG_SYSTEM_DLLMAPPING ShaderVariableMVec3fBase
: public ShaderValueVariable
83 typedef ShaderValueVariable Inherited
;
84 typedef ShaderValueVariable ParentContainer
;
86 typedef Inherited::TypeObject TypeObject
;
87 typedef TypeObject::InitPhase InitPhase
;
89 OSG_GEN_INTERNALPTR(ShaderVariableMVec3f
);
91 /*========================== PUBLIC =================================*/
97 ValueFieldId
= Inherited::NextFieldId
,
98 NextFieldId
= ValueFieldId
+ 1
101 static const OSG::BitVector ValueFieldMask
=
102 (TypeTraits
<BitVector
>::One
<< ValueFieldId
);
103 static const OSG::BitVector NextFieldMask
=
104 (TypeTraits
<BitVector
>::One
<< NextFieldId
);
106 typedef MFVec3f MFValueType
;
108 /*---------------------------------------------------------------------*/
109 /*! \name Class Get */
112 static FieldContainerType
&getClassType (void);
113 static UInt32
getClassTypeId (void);
114 static UInt16
getClassGroupId(void);
117 /*---------------------------------------------------------------------*/
118 /*! \name FieldContainer Get */
121 virtual FieldContainerType
&getType (void);
122 virtual const FieldContainerType
&getType (void) const;
124 virtual UInt32
getContainerSize(void) const;
127 /*---------------------------------------------------------------------*/
128 /*! \name Field Get */
132 MFVec3f
*editMFValue (void);
133 const MFVec3f
*getMFValue (void) const;
136 MFVec3f ::reference
editValue (const UInt32 index
);
137 const Vec3f
&getValue (const UInt32 index
) const;
140 /*---------------------------------------------------------------------*/
141 /*! \name Field Set */
146 /*---------------------------------------------------------------------*/
147 /*! \name Ptr MField Set */
151 /*---------------------------------------------------------------------*/
152 /*! \name Binary Access */
155 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
156 virtual void copyToBin (BinaryDataHandler
&pMem
,
157 ConstFieldMaskArg whichField
);
158 virtual void copyFromBin(BinaryDataHandler
&pMem
,
159 ConstFieldMaskArg whichField
);
163 /*---------------------------------------------------------------------*/
164 /*! \name Construction */
167 static ShaderVariableMVec3fTransitPtr
create (void);
168 static ShaderVariableMVec3f
*createEmpty (void);
170 static ShaderVariableMVec3fTransitPtr
createLocal (
171 BitVector bFlags
= FCLocal::All
);
173 static ShaderVariableMVec3f
*createEmptyLocal(
174 BitVector bFlags
= FCLocal::All
);
176 static ShaderVariableMVec3fTransitPtr
createDependent (BitVector bFlags
);
179 /*---------------------------------------------------------------------*/
183 virtual FieldContainerTransitPtr
shallowCopy (void) const;
184 virtual FieldContainerTransitPtr
shallowCopyLocal(
185 BitVector bFlags
= FCLocal::All
) const;
186 virtual FieldContainerTransitPtr
shallowCopyDependent(
187 BitVector bFlags
) const;
190 /*========================= PROTECTED ===============================*/
194 static TypeObject _type
;
196 static void classDescInserter(TypeObject
&oType
);
197 static const Char8
*getClassname (void );
199 /*---------------------------------------------------------------------*/
206 /*---------------------------------------------------------------------*/
207 /*! \name Constructors */
210 ShaderVariableMVec3fBase(void);
211 ShaderVariableMVec3fBase(const ShaderVariableMVec3fBase
&source
);
214 /*---------------------------------------------------------------------*/
215 /*! \name Destructors */
218 virtual ~ShaderVariableMVec3fBase(void);
221 /*---------------------------------------------------------------------*/
222 /*! \name onCreate */
227 /*---------------------------------------------------------------------*/
228 /*! \name Generic Field Access */
231 GetFieldHandlePtr
getHandleValue (void) const;
232 EditFieldHandlePtr
editHandleValue (void);
235 /*---------------------------------------------------------------------*/
239 #ifdef OSG_MT_CPTR_ASPECT
240 virtual void execSyncV( FieldContainer
&oFrom
,
241 ConstFieldMaskArg whichField
,
242 AspectOffsetStore
&oOffsets
,
243 ConstFieldMaskArg syncMode
,
244 const UInt32 uiSyncInfo
);
246 void execSync ( ShaderVariableMVec3fBase
*pFrom
,
247 ConstFieldMaskArg whichField
,
248 AspectOffsetStore
&oOffsets
,
249 ConstFieldMaskArg syncMode
,
250 const UInt32 uiSyncInfo
);
254 /*---------------------------------------------------------------------*/
259 /*---------------------------------------------------------------------*/
260 /*! \name Aspect Create */
263 #ifdef OSG_MT_CPTR_ASPECT
264 virtual FieldContainer
*createAspectCopy(
265 const FieldContainer
*pRefAspect
) const;
269 /*---------------------------------------------------------------------*/
273 /*---------------------------------------------------------------------*/
277 virtual void resolveLinks(void);
280 /*========================== PRIVATE ================================*/
283 /*---------------------------------------------------------------------*/
285 // prohibit default functions (move to 'public' if you need one)
286 void operator =(const ShaderVariableMVec3fBase
&source
);
289 typedef ShaderVariableMVec3fBase
*ShaderVariableMVec3fBaseP
;
293 #endif /* _OSGSHADERVARIABLEMVEC3FBASE_H_ */