Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGImageComposerBase.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *               Copyright (C) 2000-2002 by the OpenSG Forum                 *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 /*****************************************************************************\
00040  *****************************************************************************
00041  **                                                                         **
00042  **                  This file is automatically generated.                  **
00043  **                                                                         **
00044  **          Any changes made to this file WILL be lost when it is          **
00045  **           regenerated, which can become necessary at any time.          **
00046  **                                                                         **
00047  **     Do not change this file, changes should be done in the derived      **
00048  **     class ImageComposer
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #ifndef _OSGIMAGECOMPOSERBASE_H_
00055 #define _OSGIMAGECOMPOSERBASE_H_
00056 #ifdef __sgi
00057 #pragma once
00058 #endif
00059 
00060 
00061 #include <OSGConfig.h>
00062 #include <OSGSystemDef.h>
00063 
00064 #include <OSGBaseTypes.h>
00065 #include <OSGRefPtr.h>
00066 #include <OSGCoredNodePtr.h>
00067 
00068 #include <OSGAttachmentContainer.h> // Parent
00069 
00070 #include <OSGBoolFields.h> // Enabled type
00071 #include <OSGBoolFields.h> // Statistics type
00072 
00073 #include <OSGImageComposerFields.h>
00074 
00075 OSG_BEGIN_NAMESPACE
00076 
00077 class ImageComposer;
00078 class BinaryDataHandler;
00079 
00081 
00082 class OSG_SYSTEMLIB_DLLMAPPING ImageComposerBase : public AttachmentContainer
00083 {
00084   private:
00085 
00086     typedef AttachmentContainer    Inherited;
00087 
00088     /*==========================  PUBLIC  =================================*/
00089   public:
00090 
00091     typedef ImageComposerPtr  Ptr;
00092 
00093     enum
00094     {
00095         EnabledFieldId    = Inherited::NextFieldId,
00096         StatisticsFieldId = EnabledFieldId    + 1,
00097         NextFieldId       = StatisticsFieldId + 1
00098     };
00099 
00100     static const OSG::BitVector EnabledFieldMask;
00101     static const OSG::BitVector StatisticsFieldMask;
00102 
00103 
00104     static const OSG::BitVector MTInfluenceMask;
00105 
00106     /*---------------------------------------------------------------------*/
00110     static        FieldContainerType &getClassType    (void); 
00111     static        UInt32              getClassTypeId  (void); 
00112 
00114     /*---------------------------------------------------------------------*/
00118     virtual       FieldContainerType &getType  (void); 
00119     virtual const FieldContainerType &getType  (void) const; 
00120 
00121     virtual       UInt32              getContainerSize(void) const;
00122 
00124     /*---------------------------------------------------------------------*/
00128            SFBool              *getSFEnabled        (void);
00129            SFBool              *getSFStatistics     (void);
00130 
00131            bool                &getEnabled        (void);
00132      const bool                &getEnabled        (void) const;
00133            bool                &getStatistics     (void);
00134      const bool                &getStatistics     (void) const;
00135 
00137     /*---------------------------------------------------------------------*/
00141      void setEnabled        ( const bool &value );
00142      void setStatistics     ( const bool &value );
00143 
00145     /*---------------------------------------------------------------------*/
00150     /*---------------------------------------------------------------------*/
00154     virtual UInt32 getBinSize (const BitVector         &whichField);
00155     virtual void   copyToBin  (      BinaryDataHandler &pMem,
00156                                const BitVector         &whichField);
00157     virtual void   copyFromBin(      BinaryDataHandler &pMem,
00158                                const BitVector         &whichField);
00159 
00160 
00162     /*=========================  PROTECTED  ===============================*/
00163   protected:
00164 
00165     /*---------------------------------------------------------------------*/
00169     SFBool              _sfEnabled;
00170     SFBool              _sfStatistics;
00171 
00173     /*---------------------------------------------------------------------*/
00177     ImageComposerBase(void);
00178     ImageComposerBase(const ImageComposerBase &source);
00179 
00181     /*---------------------------------------------------------------------*/
00185     virtual ~ImageComposerBase(void); 
00186 
00188     /*---------------------------------------------------------------------*/
00192 #if !defined(OSG_FIXED_MFIELDSYNC)
00193     void executeSyncImpl(      ImageComposerBase *pOther,
00194                          const BitVector         &whichField);
00195 
00196     virtual void   executeSync(      FieldContainer    &other,
00197                                const BitVector         &whichField);
00198 #else
00199     void executeSyncImpl(      ImageComposerBase *pOther,
00200                          const BitVector         &whichField,
00201                          const SyncInfo          &sInfo     );
00202 
00203     virtual void   executeSync(      FieldContainer    &other,
00204                                const BitVector         &whichField,
00205                                const SyncInfo          &sInfo);
00206 
00207     virtual void execBeginEdit     (const BitVector &whichField,
00208                                           UInt32     uiAspect,
00209                                           UInt32     uiContainerSize);
00210 
00211             void execBeginEditImpl (const BitVector &whichField,
00212                                           UInt32     uiAspect,
00213                                           UInt32     uiContainerSize);
00214 
00215     virtual void onDestroyAspect(UInt32 uiId, UInt32 uiAspect);
00216 #endif
00217 
00219     /*==========================  PRIVATE  ================================*/
00220   private:
00221 
00222     friend class FieldContainer;
00223 
00224     static FieldDescription   *_desc[];
00225     static FieldContainerType  _type;
00226 
00227 
00228     // prohibit default functions (move to 'public' if you need one)
00229     void operator =(const ImageComposerBase &source);
00230 };
00231 
00232 //---------------------------------------------------------------------------
00233 //   Exported Types
00234 //---------------------------------------------------------------------------
00235 
00236 
00237 typedef ImageComposerBase *ImageComposerBaseP;
00238 
00239 typedef osgIF<ImageComposerBase::isNodeCore,
00240               CoredNodePtr<ImageComposer>,
00241               FieldContainer::attempt_to_create_CoredNodePtr_on_non_NodeCore_FC
00242               >::_IRet ImageComposerNodePtr;
00243 
00244 typedef RefPtr<ImageComposerPtr> ImageComposerRefPtr;
00245 
00246 OSG_END_NAMESPACE
00247 
00248 #define OSGIMAGECOMPOSERBASE_HEADER_CVSID "@(#)$Id: FCBaseTemplate_h.h,v 1.38 2005/07/08 06:37:35 vossg Exp $"
00249 
00250 #endif /* _OSGIMAGECOMPOSERBASE_H_ */

Generated on Thu Aug 25 04:06:19 2005 for OpenSG by  doxygen 1.4.3