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

OSGLightEnvBase.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 LightEnv
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #ifndef _OSGLIGHTENVBASE_H_
00055 #define _OSGLIGHTENVBASE_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 <OSGNodeCore.h> // Parent
00069 
00070 
00071 #include <OSGLightEnvFields.h>
00072 
00073 OSG_BEGIN_NAMESPACE
00074 
00075 class LightEnv;
00076 class BinaryDataHandler;
00077 
00079 
00080 class OSG_SYSTEMLIB_DLLMAPPING LightEnvBase : public NodeCore
00081 {
00082   private:
00083 
00084     typedef NodeCore    Inherited;
00085 
00086     /*==========================  PUBLIC  =================================*/
00087   public:
00088 
00089     typedef LightEnvPtr  Ptr;
00090 
00091 
00092     static const OSG::BitVector MTInfluenceMask;
00093 
00094     /*---------------------------------------------------------------------*/
00098     static        FieldContainerType &getClassType    (void); 
00099     static        UInt32              getClassTypeId  (void); 
00100 
00102     /*---------------------------------------------------------------------*/
00106     virtual       FieldContainerType &getType  (void); 
00107     virtual const FieldContainerType &getType  (void) const; 
00108 
00109     virtual       UInt32              getContainerSize(void) const;
00110 
00112     /*---------------------------------------------------------------------*/
00117     /*---------------------------------------------------------------------*/
00121     virtual UInt32 getBinSize (const BitVector         &whichField);
00122     virtual void   copyToBin  (      BinaryDataHandler &pMem,
00123                                const BitVector         &whichField);
00124     virtual void   copyFromBin(      BinaryDataHandler &pMem,
00125                                const BitVector         &whichField);
00126 
00127 
00129     /*---------------------------------------------------------------------*/
00133     static  LightEnvPtr      create          (void); 
00134     static  LightEnvPtr      createEmpty     (void); 
00135 
00138     /*---------------------------------------------------------------------*/
00142     virtual FieldContainerPtr     shallowCopy     (void) const; 
00143 
00145     /*=========================  PROTECTED  ===============================*/
00146   protected:
00147 
00148     /*---------------------------------------------------------------------*/
00152     LightEnvBase(void);
00153     LightEnvBase(const LightEnvBase &source);
00154 
00156     /*---------------------------------------------------------------------*/
00160     virtual ~LightEnvBase(void); 
00161 
00163     /*---------------------------------------------------------------------*/
00167 #if !defined(OSG_FIXED_MFIELDSYNC)
00168     void executeSyncImpl(      LightEnvBase *pOther,
00169                          const BitVector         &whichField);
00170 
00171     virtual void   executeSync(      FieldContainer    &other,
00172                                const BitVector         &whichField);
00173 #else
00174     void executeSyncImpl(      LightEnvBase *pOther,
00175                          const BitVector         &whichField,
00176                          const SyncInfo          &sInfo     );
00177 
00178     virtual void   executeSync(      FieldContainer    &other,
00179                                const BitVector         &whichField,
00180                                const SyncInfo          &sInfo);
00181 
00182     virtual void execBeginEdit     (const BitVector &whichField,
00183                                           UInt32     uiAspect,
00184                                           UInt32     uiContainerSize);
00185 
00186             void execBeginEditImpl (const BitVector &whichField,
00187                                           UInt32     uiAspect,
00188                                           UInt32     uiContainerSize);
00189 
00190     virtual void onDestroyAspect(UInt32 uiId, UInt32 uiAspect);
00191 #endif
00192 
00194     /*==========================  PRIVATE  ================================*/
00195   private:
00196 
00197     friend class FieldContainer;
00198 
00199     static FieldContainerType  _type;
00200 
00201 
00202     // prohibit default functions (move to 'public' if you need one)
00203     void operator =(const LightEnvBase &source);
00204 };
00205 
00206 //---------------------------------------------------------------------------
00207 //   Exported Types
00208 //---------------------------------------------------------------------------
00209 
00210 
00211 typedef LightEnvBase *LightEnvBaseP;
00212 
00213 typedef osgIF<LightEnvBase::isNodeCore,
00214               CoredNodePtr<LightEnv>,
00215               FieldContainer::attempt_to_create_CoredNodePtr_on_non_NodeCore_FC
00216               >::_IRet LightEnvNodePtr;
00217 
00218 typedef RefPtr<LightEnvPtr> LightEnvRefPtr;
00219 
00220 OSG_END_NAMESPACE
00221 
00222 #define OSGLIGHTENVBASE_HEADER_CVSID "@(#)$Id: OSGLightEnvBase.h,v 1.5 2005/07/20 00:09:34 vossg Exp $"
00223 
00224 #endif /* _OSGLIGHTENVBASE_H_ */

Generated on Thu Aug 25 04:07:02 2005 for OpenSG by  doxygen 1.4.3