00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #define OSG_COMPILETWOSIDEDLIGHTINGCHUNKINST
00055
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058
00059 #include <OSGConfig.h>
00060
00061 #include "OSGTwoSidedLightingChunkBase.h"
00062 #include "OSGTwoSidedLightingChunk.h"
00063
00064
00065 OSG_BEGIN_NAMESPACE
00066
00067 const OSG::BitVector TwoSidedLightingChunkBase::MTInfluenceMask =
00068 (Inherited::MTInfluenceMask) |
00069 (static_cast<BitVector>(0x0) << Inherited::NextFieldId);
00070
00071
00072
00073 FieldContainerType TwoSidedLightingChunkBase::_type(
00074 "TwoSidedLightingChunk",
00075 "StateChunk",
00076 NULL,
00077 reinterpret_cast<PrototypeCreateF>(&TwoSidedLightingChunkBase::createEmpty),
00078 TwoSidedLightingChunk::initMethod,
00079 NULL,
00080 0);
00081
00082
00083
00084
00085
00086 FieldContainerType &TwoSidedLightingChunkBase::getType(void)
00087 {
00088 return _type;
00089 }
00090
00091 const FieldContainerType &TwoSidedLightingChunkBase::getType(void) const
00092 {
00093 return _type;
00094 }
00095
00096
00097 FieldContainerPtr TwoSidedLightingChunkBase::shallowCopy(void) const
00098 {
00099 TwoSidedLightingChunkPtr returnValue;
00100
00101 newPtr(returnValue, dynamic_cast<const TwoSidedLightingChunk *>(this));
00102
00103 return returnValue;
00104 }
00105
00106 UInt32 TwoSidedLightingChunkBase::getContainerSize(void) const
00107 {
00108 return sizeof(TwoSidedLightingChunk);
00109 }
00110
00111
00112 #if !defined(OSG_FIXED_MFIELDSYNC)
00113 void TwoSidedLightingChunkBase::executeSync( FieldContainer &other,
00114 const BitVector &whichField)
00115 {
00116 this->executeSyncImpl(static_cast<TwoSidedLightingChunkBase *>(&other),
00117 whichField);
00118 }
00119 #else
00120 void TwoSidedLightingChunkBase::executeSync( FieldContainer &other,
00121 const BitVector &whichField, const SyncInfo &sInfo )
00122 {
00123 this->executeSyncImpl((TwoSidedLightingChunkBase *) &other, whichField, sInfo);
00124 }
00125 void TwoSidedLightingChunkBase::execBeginEdit(const BitVector &whichField,
00126 UInt32 uiAspect,
00127 UInt32 uiContainerSize)
00128 {
00129 this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00130 }
00131
00132 void TwoSidedLightingChunkBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00133 {
00134 Inherited::onDestroyAspect(uiId, uiAspect);
00135
00136 }
00137 #endif
00138
00139
00140
00141 #ifdef OSG_WIN32_ICL
00142 #pragma warning (disable : 383)
00143 #endif
00144
00145 TwoSidedLightingChunkBase::TwoSidedLightingChunkBase(void) :
00146 Inherited()
00147 {
00148 }
00149
00150 #ifdef OSG_WIN32_ICL
00151 #pragma warning (default : 383)
00152 #endif
00153
00154 TwoSidedLightingChunkBase::TwoSidedLightingChunkBase(const TwoSidedLightingChunkBase &source) :
00155 Inherited (source)
00156 {
00157 }
00158
00159
00160
00161 TwoSidedLightingChunkBase::~TwoSidedLightingChunkBase(void)
00162 {
00163 }
00164
00165
00166
00167 UInt32 TwoSidedLightingChunkBase::getBinSize(const BitVector &whichField)
00168 {
00169 UInt32 returnValue = Inherited::getBinSize(whichField);
00170
00171
00172 return returnValue;
00173 }
00174
00175 void TwoSidedLightingChunkBase::copyToBin( BinaryDataHandler &pMem,
00176 const BitVector &whichField)
00177 {
00178 Inherited::copyToBin(pMem, whichField);
00179
00180
00181 }
00182
00183 void TwoSidedLightingChunkBase::copyFromBin( BinaryDataHandler &pMem,
00184 const BitVector &whichField)
00185 {
00186 Inherited::copyFromBin(pMem, whichField);
00187
00188
00189 }
00190
00191 #if !defined(OSG_FIXED_MFIELDSYNC)
00192 void TwoSidedLightingChunkBase::executeSyncImpl( TwoSidedLightingChunkBase *pOther,
00193 const BitVector &whichField)
00194 {
00195
00196 Inherited::executeSyncImpl(pOther, whichField);
00197
00198
00199 }
00200 #else
00201 void TwoSidedLightingChunkBase::executeSyncImpl( TwoSidedLightingChunkBase *pOther,
00202 const BitVector &whichField,
00203 const SyncInfo &sInfo )
00204 {
00205
00206 Inherited::executeSyncImpl(pOther, whichField, sInfo);
00207
00208
00209
00210 }
00211
00212 void TwoSidedLightingChunkBase::execBeginEditImpl (const BitVector &whichField,
00213 UInt32 uiAspect,
00214 UInt32 uiContainerSize)
00215 {
00216 Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00217
00218 }
00219 #endif
00220
00221
00222
00223 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00224 DataType FieldDataTraits<TwoSidedLightingChunkPtr>::_type("TwoSidedLightingChunkPtr", "StateChunkPtr");
00225 #endif
00226
00227
00228
00229
00230
00231
00232 #ifdef OSG_SGI_CC
00233 #pragma set woff 1174
00234 #endif
00235
00236 #ifdef OSG_LINUX_ICC
00237 #pragma warning( disable : 177 )
00238 #endif
00239
00240 namespace
00241 {
00242 static Char8 cvsid_cpp [] = "@(#)$Id: OSGTwoSidedLightingChunkBase.cpp,v 1.7 2008/06/09 12:28:21 vossg Exp $";
00243 static Char8 cvsid_hpp [] = OSGTWOSIDEDLIGHTINGCHUNKBASE_HEADER_CVSID;
00244 static Char8 cvsid_inl [] = OSGTWOSIDEDLIGHTINGCHUNKBASE_INLINE_CVSID;
00245
00246 static Char8 cvsid_fields_hpp[] = OSGTWOSIDEDLIGHTINGCHUNKFIELDS_HEADER_CVSID;
00247 }
00248
00249 OSG_END_NAMESPACE
00250