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 ScaleManipulator
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGSCALEMANIPULATORBASE_H_
55 #define _OSGSCALEMANIPULATORBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGContribGUIDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGManipulator.h" // Parent
68 #include "OSGSysFields.h" // Uniform type
70 #include "OSGScaleManipulatorFields.h"
75 class ScaleManipulator
;
77 //! \brief ScaleManipulator Base Class.
79 class OSG_CONTRIBGUI_DLLMAPPING ScaleManipulatorBase
: public Manipulator
83 typedef Manipulator Inherited
;
84 typedef Manipulator ParentContainer
;
86 typedef Inherited::TypeObject TypeObject
;
87 typedef TypeObject::InitPhase InitPhase
;
89 OSG_GEN_INTERNALPTR(ScaleManipulator
);
91 /*========================== PUBLIC =================================*/
97 UniformFieldId
= Inherited::NextFieldId
,
98 NextFieldId
= UniformFieldId
+ 1
101 static const OSG::BitVector UniformFieldMask
=
102 (TypeTraits
<BitVector
>::One
<< UniformFieldId
);
103 static const OSG::BitVector NextFieldMask
=
104 (TypeTraits
<BitVector
>::One
<< NextFieldId
);
106 typedef SFBool SFUniformType
;
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 SFBool
*editSFUniform (void);
133 const SFBool
*getSFUniform (void) const;
136 bool &editUniform (void);
137 bool getUniform (void) const;
140 /*---------------------------------------------------------------------*/
141 /*! \name Field Set */
144 void setUniform (const bool value
);
147 /*---------------------------------------------------------------------*/
148 /*! \name Ptr MField Set */
152 /*---------------------------------------------------------------------*/
153 /*! \name Binary Access */
156 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
157 virtual void copyToBin (BinaryDataHandler
&pMem
,
158 ConstFieldMaskArg whichField
);
159 virtual void copyFromBin(BinaryDataHandler
&pMem
,
160 ConstFieldMaskArg whichField
);
164 /*---------------------------------------------------------------------*/
165 /*! \name Construction */
168 static ScaleManipulatorTransitPtr
create (void);
169 static ScaleManipulator
*createEmpty (void);
171 static ScaleManipulatorTransitPtr
createLocal (
172 BitVector bFlags
= FCLocal::All
);
174 static ScaleManipulator
*createEmptyLocal(
175 BitVector bFlags
= FCLocal::All
);
177 static ScaleManipulatorTransitPtr
createDependent (BitVector bFlags
);
180 /*---------------------------------------------------------------------*/
184 virtual FieldContainerTransitPtr
shallowCopy (void) const;
185 virtual FieldContainerTransitPtr
shallowCopyLocal(
186 BitVector bFlags
= FCLocal::All
) const;
187 virtual FieldContainerTransitPtr
shallowCopyDependent(
188 BitVector bFlags
) const;
191 /*========================= PROTECTED ===============================*/
195 static TypeObject _type
;
197 static void classDescInserter(TypeObject
&oType
);
198 static const Char8
*getClassname (void );
200 /*---------------------------------------------------------------------*/
207 /*---------------------------------------------------------------------*/
208 /*! \name Constructors */
211 ScaleManipulatorBase(void);
212 ScaleManipulatorBase(const ScaleManipulatorBase
&source
);
215 /*---------------------------------------------------------------------*/
216 /*! \name Destructors */
219 virtual ~ScaleManipulatorBase(void);
222 /*---------------------------------------------------------------------*/
223 /*! \name onCreate */
228 /*---------------------------------------------------------------------*/
229 /*! \name Generic Field Access */
232 GetFieldHandlePtr
getHandleUniform (void) const;
233 EditFieldHandlePtr
editHandleUniform (void);
236 /*---------------------------------------------------------------------*/
240 #ifdef OSG_MT_CPTR_ASPECT
241 virtual void execSyncV( FieldContainer
&oFrom
,
242 ConstFieldMaskArg whichField
,
243 AspectOffsetStore
&oOffsets
,
244 ConstFieldMaskArg syncMode
,
245 const UInt32 uiSyncInfo
);
247 void execSync ( ScaleManipulatorBase
*pFrom
,
248 ConstFieldMaskArg whichField
,
249 AspectOffsetStore
&oOffsets
,
250 ConstFieldMaskArg syncMode
,
251 const UInt32 uiSyncInfo
);
255 /*---------------------------------------------------------------------*/
260 /*---------------------------------------------------------------------*/
261 /*! \name Aspect Create */
264 #ifdef OSG_MT_CPTR_ASPECT
265 virtual FieldContainer
*createAspectCopy(
266 const FieldContainer
*pRefAspect
) const;
270 /*---------------------------------------------------------------------*/
274 /*---------------------------------------------------------------------*/
278 virtual void resolveLinks(void);
281 /*========================== PRIVATE ================================*/
284 /*---------------------------------------------------------------------*/
286 // prohibit default functions (move to 'public' if you need one)
287 void operator =(const ScaleManipulatorBase
&source
);
290 typedef ScaleManipulatorBase
*ScaleManipulatorBaseP
;
294 #endif /* _OSGSCALEMANIPULATORBASE_H_ */