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

OSGBackgroundBase.cpp

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 Background!
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #define OSG_COMPILEBACKGROUNDINST
00055 
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058 
00059 #include <OSGConfig.h>
00060 
00061 #include "OSGBackgroundBase.h"
00062 #include "OSGBackground.h"
00063 
00064 
00065 OSG_USING_NAMESPACE
00066 
00067 const OSG::BitVector BackgroundBase::MTInfluenceMask = 
00068     (Inherited::MTInfluenceMask) | 
00069     (static_cast<BitVector>(0x0) << Inherited::NextFieldId); 
00070 
00071 
00072 
00073 FieldContainerType BackgroundBase::_type(
00074     "Background",
00075     "AttachmentContainer",
00076     NULL,
00077     NULL, 
00078     Background::initMethod,
00079     NULL,
00080     0);
00081 
00082 //OSG_FIELD_CONTAINER_DEF(BackgroundBase, BackgroundPtr)
00083 
00084 /*------------------------------ get -----------------------------------*/
00085 
00086 FieldContainerType &BackgroundBase::getType(void) 
00087 {
00088     return _type; 
00089 } 
00090 
00091 const FieldContainerType &BackgroundBase::getType(void) const 
00092 {
00093     return _type;
00094 } 
00095 
00096 
00097 UInt32 BackgroundBase::getContainerSize(void) const 
00098 { 
00099     return sizeof(Background); 
00100 }
00101 
00102 
00103 #if !defined(OSG_FIXED_MFIELDSYNC)
00104 void BackgroundBase::executeSync(      FieldContainer &other,
00105                                     const BitVector      &whichField)
00106 {
00107     this->executeSyncImpl((BackgroundBase *) &other, whichField);
00108 }
00109 #else
00110 void BackgroundBase::executeSync(      FieldContainer &other,
00111                                     const BitVector      &whichField,                                    const SyncInfo       &sInfo     )
00112 {
00113     this->executeSyncImpl((BackgroundBase *) &other, whichField, sInfo);
00114 }
00115 void BackgroundBase::execBeginEdit(const BitVector &whichField, 
00116                                             UInt32     uiAspect,
00117                                             UInt32     uiContainerSize) 
00118 {
00119     this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00120 }
00121 
00122 void BackgroundBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00123 {
00124     Inherited::onDestroyAspect(uiId, uiAspect);
00125 
00126 }
00127 #endif
00128 
00129 /*------------------------- constructors ----------------------------------*/
00130 
00131 #ifdef OSG_WIN32_ICL
00132 #pragma warning (disable : 383)
00133 #endif
00134 
00135 BackgroundBase::BackgroundBase(void) :
00136     Inherited() 
00137 {
00138 }
00139 
00140 #ifdef OSG_WIN32_ICL
00141 #pragma warning (default : 383)
00142 #endif
00143 
00144 BackgroundBase::BackgroundBase(const BackgroundBase &source) :
00145     Inherited                 (source)
00146 {
00147 }
00148 
00149 /*-------------------------- destructors ----------------------------------*/
00150 
00151 BackgroundBase::~BackgroundBase(void)
00152 {
00153 }
00154 
00155 /*------------------------------ access -----------------------------------*/
00156 
00157 UInt32 BackgroundBase::getBinSize(const BitVector &whichField)
00158 {
00159     UInt32 returnValue = Inherited::getBinSize(whichField);
00160 
00161 
00162     return returnValue;
00163 }
00164 
00165 void BackgroundBase::copyToBin(      BinaryDataHandler &pMem,
00166                                   const BitVector         &whichField)
00167 {
00168     Inherited::copyToBin(pMem, whichField);
00169 
00170 
00171 }
00172 
00173 void BackgroundBase::copyFromBin(      BinaryDataHandler &pMem,
00174                                     const BitVector    &whichField)
00175 {
00176     Inherited::copyFromBin(pMem, whichField);
00177 
00178 
00179 }
00180 
00181 #if !defined(OSG_FIXED_MFIELDSYNC)
00182 void BackgroundBase::executeSyncImpl(      BackgroundBase *pOther,
00183                                         const BitVector         &whichField)
00184 {
00185 
00186     Inherited::executeSyncImpl(pOther, whichField);
00187 
00188 
00189 }
00190 #else
00191 void BackgroundBase::executeSyncImpl(      BackgroundBase *pOther,
00192                                         const BitVector         &whichField,
00193                                         const SyncInfo          &sInfo      )
00194 {
00195 
00196     Inherited::executeSyncImpl(pOther, whichField, sInfo);
00197 
00198 
00199 
00200 }
00201 
00202 void BackgroundBase::execBeginEditImpl (const BitVector &whichField, 
00203                                                  UInt32     uiAspect,
00204                                                  UInt32     uiContainerSize)
00205 {
00206     Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00207 
00208 }
00209 #endif
00210 
00211 
00212 
00213 #include <OSGSFieldTypeDef.inl>
00214 #include <OSGMFieldTypeDef.inl>
00215 
00216 OSG_BEGIN_NAMESPACE
00217 
00218 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00219 DataType FieldDataTraits<BackgroundPtr>::_type("BackgroundPtr", "AttachmentContainerPtr");
00220 #endif
00221 
00222 OSG_DLLEXPORT_SFIELD_DEF1(BackgroundPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00223 OSG_DLLEXPORT_MFIELD_DEF1(BackgroundPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00224 
00225 OSG_END_NAMESPACE
00226 
00227 
00228 /*------------------------------------------------------------------------*/
00229 /*                              cvs id's                                  */
00230 
00231 #ifdef OSG_SGI_CC
00232 #pragma set woff 1174
00233 #endif
00234 
00235 #ifdef OSG_LINUX_ICC
00236 #pragma warning( disable : 177 )
00237 #endif
00238 
00239 namespace
00240 {
00241     static Char8 cvsid_cpp       [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.42 2004/08/03 05:53:03 dirk Exp $";
00242     static Char8 cvsid_hpp       [] = OSGBACKGROUNDBASE_HEADER_CVSID;
00243     static Char8 cvsid_inl       [] = OSGBACKGROUNDBASE_INLINE_CVSID;
00244 
00245     static Char8 cvsid_fields_hpp[] = OSGBACKGROUNDFIELDS_HEADER_CVSID;
00246 }
00247 

Generated on Thu Aug 25 04:01:09 2005 for OpenSG by  doxygen 1.4.3